* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html,body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height:auto;
}


.index-logo{
  display: block;
  width: 300px;
  height: auto;
  margin: 120px auto 60px;
}

.search-input {
    max-width: 100%;
    margin: auto;
    position: relative;
  }

.el-textarea {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    font-size: 14px;
  }

  .search-input .el-textarea__inner {
    display: block;
    height: 80px;
    max-height: 200px;
    padding: 25px 200px 25px 35px;
    box-sizing: border-box;
    border: 1px solid #c6d0dd;
    font-size: 14px;
    color: #1d2129;
    border-radius: 4px;
    outline: none;
    line-height: 2;
    font-family: Microsoft YaHei;
    overflow: hidden;
    color: #606266;
    background-color: #fff;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  }

  .el-textarea .el-textarea__inner {
    resize: none;
  }

  .el-textarea__inner {
    padding: 5px 15px;
    width: 100%;
    font-size: inherit;
    border: 1px solid #dcdfe6;
  }

  .camera-icon {
    display: inline-block;
    position:absolute;
    vertical-align: middle;

    right: 106px;
    top:26px;
  }

  .search-btn {
    height: 39px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1c4cba;
    border-color: #1c4cba;
    color: #fff;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 4px;
  }
  .el-textarea__inner:focus {
    border-color: #1c4cba;
    box-shadow: 0 0 0 3px rgba(28, 76, 186, 0.3);
  }
  .history {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    box-sizing: border-box;
  }

  /* .search-input:hover .history {
    display: block;
  } */
.search-card-body{ padding:0}
.search-nav-tabs{ border:none;}
.search-card{ border: none; background-color: transparent;}
.search-card .nav-link{ font-size:1.3em ; border:none}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{ color:#1c4cba}

.btn-block {
  width: 100%;
}
.search-sidebar {
    width: 100%;
    display: none;
    flex-direction: column;
}
.search-sidebar .accordion-body{ overflow-x: auto;  padding-left:0}
.search-sidebar .accordion-body>ul{ margin-left:0}

.search-sidebar .no-border-accordion .accordion-item {
    border: none !important;
}
.search-sidebar .no-border-accordion  h2 {  border-bottom: 1px solid rgba(0, 0, 0, .125); }
.search-sidebar .no-border-accordion .accordion-button {
    border: none !important;
}

.search-sidebar .no-border-accordion .accordion-button.collapsed {
    border: none !important;
}


/* 如果你也想去掉阴影，可以添加下面这个规则 */
.search-sidebar .no-border-accordion .accordion-item {
    box-shadow: none !important;
    padding-left:18px;
}
.search-sidebar .no-border-accordion .accordion-button{
    padding-top:0.8rem;
    padding-bottom:0.8rem;
}
.search-sidebar .accordion-body>ul{ padding-left:0}
.search-sidebar .load-more{font-size: 12px;
    color: #1c4cba;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}
.search-sidebar ul {list-style-type: none;}
.search-sidebar ul li div{ height:30px}
/* 默认宽度，适用于小屏幕设备 */

.search-sidebar .dropdown-item{
  align-items: center;
}
.search-sidebar .dropdown-item input.form-check-input { flex-shrink: 0;}
.search-sidebar .dropdown-item label{  
  flex: 1; /* 让标签占据剩余空间 */
  overflow: hidden; /* 超出部分隐藏 */
  text-overflow: ellipsis; /* 添加省略号 */
  white-space: nowrap; /* 禁止换行 */
}
.search-sidebar .flag {margin-right: 4px;}
.mr4{margin-right: 4px;}
.mr6{margin-right: 6px;}

.filter-and, .filter-not {
    width: 50px;
    height: 50px;
    border-radius: 0 8px 8px 0;
    position: sticky;
    right: -50px;
    top: 50%;
    font-size: 14px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    padding-top: 6px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 2002;
  }

  .filter-and  {
    background-color: rgba(33,73,171,.7);

  }
  .filter-not  {
    background-color: rgba(134,71,55,.7);
    margin-top: 30px;
    top:calc(50% + 90px);
  }
.sticky-outer-wrapper{

    position: absolute;
    right: -60px; /* 将包装器定位到父元素的外侧 */
    top: 0;
    height: 100%;
}
#filter{ position: relative;}
.input-group.is-valid .input-group-text {
  border-color: #198754; /* Bootstrap成功状态的绿色边框 */
  background-color: #d1e7dd; /* Bootstrap成功状态的绿色背景 */
}

.input-group.is-valid .input-group-text .fa-eye {
  color: #198754; /* Bootstrap成功状态的绿色文本 */
}

.input-group.is-invalid .input-group-text {
  border-color: #dc3545; /* Bootstrap错误状态的红色边框 */
  background-color: #f8d7da; /* Bootstrap错误状态的红色背景 */
}

.input-group.is-invalid .form-control {
  border-color: #dc3545; /* Bootstrap错误状态的红色边框 */
}

/* 当添加了.is-invalid类时，只给输入框的左侧设置圆角 */
.input-group .form-control  ,.input-group.is-invalid .form-control ,.input-group.is-valid .form-control{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* 确保眼睛图标的边界是直角 */
  .input-group-text {
    /* border-radius: 0; */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  /* 如果需要，也可以为眼睛图标设置左侧圆角 */
  .input-group.is-invalid .input-group-text ,.input-group.is-valid .input-group-text{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

.filter-action .btn{margin-right:4px;}
.filter-action .-more{float: right;}
.search-sidebar .btn-close{float: right; color:#dc3545}
#parent_info ul li.list-group-item{   line-height: 2.5em; padding:0}

/* .tab-pane  h3{  text-align: center; margin:30px auto; padding:30px } */
.tab-pane   .table thead{font-size: 1rem;}
.mix-mode .list-group-item{
    border-left: none;
     border-right: none;
     border-top: none;
     border-radius: 0 !important;
   }

.icon18{font-size: 18px;}
.icon20{font-size: 20px;  }

.icon48{font-size: 48px;}
#customSuggestions {
    top: calc(100% + 0.25rem); /* 输入框高度加上一些间隙 */
    z-index: 1000;
    background: #fff; /* 添加白色背景 */
    border: 1px solid #ccc; /* 添加边框 */
    border-radius: 0.25rem; /* 添加圆角 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); /* 添加阴影 */
}

.list-group-item-action {
    cursor: pointer; /* 确保鼠标悬停时显示指针 */
}

/* 当下拉列表不为空时，确保它显示在输入框下方 */
#customSuggestions:not(.d-none) {
    display: block;
}

/* 调整列表项的内边距 */
#customSuggestions .list-group-item {
    padding: 0.5rem 1rem;
}

/* 鼠标悬停时的样式 */
#customSuggestions .list-group-item:hover {
    background-color: #f8f9fa;
}
#customSuggestions .text-muted {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
  }
.patent-type{ min-width: min-content;}

#patent-detail .table thead th{ font-size: .9rem;}
.echart-container {
    width: 100%;
}
.h-loading{ text-align: center; padding: 3rem;}
.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    background-color: #ccc;
    cursor: not-allowed;
  }
  .valid-feedback, .invalid-feedback {
    height: 10px; /* 你可以根据需要调整这个值 */
    display: block;
    visibility: hidden;
  }

  .sort-up-icon{
    width: 2em;
    height: 1.2em;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="icon"   viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 5l0 14"></path><path d="M16 9l-4 -4"></path><path d="M8 9l4 -4"></path></svg>')
  }
  .sort-down-icon{
    width: 2em;
    height: 1.2em;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="icon"   viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 5l0 14"></path><path d="M16 15l-4 4"></path><path d="M8 15l4 4"></path></svg>')
  }

.chart-bar-icon{
  width: 1.2em;
  height: 1.2em;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml,<svg t="1722074973850" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4233" ><path d="M992 992H32V32h64v896h896v64z" p-id="4234"></path><path d="M384 864H160V416h224z m288 0H448V320h224z m287.28 0h-224V192h224z" p-id="4235"></path></svg>');
}
span.search-highlight {
    color: #FF0000 !important;
}

label .search-highlight {
    color: gray;
}

th .search-highlight {
    color: rgba(0, 0, 0, .87);
}

div.description span span.search-highlight {
    color: gray;
}

div.description span.-highlight-target-segment span.search-highlight {
    color: #FF0000;
}


   /* Custom styles for the overlay and alert box */
   .alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Higher than Bootstrap's modal backdrop */
}
.alert-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    position: relative;
    width: 80%;  /* Set a default width */
    max-width: 500px;  /* Set a maximum width */
    min-width: 300px;  /* Set a minimum width */
}
.alert-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
}
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #f3f3f3;
    border-top: 0.4rem solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 20px;
}
.alert-content {
    display: flex;
    align-items: center;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.payment-provider-wechat {
  background-image:url(/static/images/wechat_pay.svg)
}

.result_btns{ 

  text-align: right;
 }

.doc-header{
  position: sticky;top: 0;left: 0;right: 0;
  z-index: 80000;
}

.home-title{
  margin: 100px auto ;
}



.pdf-modal-size  .modal-body{ padding:0;}

/***图片检索**/
#image_search {
  display: none;
}
.dropzone {
  border-color: #ccc !important;
}
.image-search-layout .desc {
  font-size: .7rem;
  display: block;
}

.carousel-image-container {
  display: flex;
  align-items: center;
  position: relative;
}
.image-search-history {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
  margin-top: 1em;
  gap: 10px;
  flex-grow: 1;
}
.form-imagecheck {
  margin-right: 10px;
}
.form-imagecheck-image {
  height: 150px;
  /* 设置统一的高度 */
  min-width: 150px;
  /* 自动调整宽度以保持比例 */
  object-fit: cover;
  /* 保持图片比例并填充整个容器 */
}
.add-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 10px;
}
.add-icon {
  font-size: 48px;
  margin-top: -12px;
  color: #666;
}
.carousel-image-control-prev,
.carousel-image-control-next {
  background-color: #ccc;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  /* 确保按钮可以接收点击事件 */
  z-index: 10;
  /* 确保按钮在其他元素之上 */
}
.carousel-image-control-prev {
  left: 110px;
}
.carousel-image-control-next {
  right: 0;
}
.carousel-image-control-prev:disabled,
.carousel-image-control-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.image-search-layout .card {
 
}
.image-search-layout .card-body {
  padding: 0.5rem;
}
.image-search-layout .card-img-top {
  height: 150px;
  object-fit: contain;
}
.image-search-layout .carousel-inner img {
  object-fit: cover;
}
.image-search-layout .carousel-inner .d-flex img {
  margin-right: 5px;
}
.image-search-layout .position-relative {
  position: relative;
}
.image-search-layout .height250 {
  height: 200px;
}
.image-search-layout .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='15 18 9 12 15 6'%3e%3c/polyline%3e%3c/svg%3e")
}
.image-search-layout .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='9 18 15 12 9 6'%3e%3c/polyline%3e%3c/svg%3e");
}

 .ims-placeholder {
  border: 2px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #aaa;
  height: 120px;
  width: 120px;
  margin: 10px;
  cursor: pointer;
}




#custom-popover {
  position: absolute;
  display: none;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 1000;
}

#custom-popover::before {
  content: '';
  position: absolute;
  top: -20px; /* 调整位置 */
  left: 20px; /* 调整位置 */
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #ccc transparent;
}

#custom-popover::after {
  content: '';
  position: absolute;
  top: -18px; /* 调整位置 */
  left: 21px; /* 调整位置 */
  border-width: 9px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}
#custom-popover .table {
  border-collapse: collapse;
}

#custom-popover .table td,
#custom-popover .table th {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px;
}


#pdfModal .modal-body {
  height: 80vh; /* 80% of the viewport height */
  overflow-y: auto; /* Enable scrolling if content overflows */
}

/* .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
} */

.flag-country-wo {
  background-image: url(/static/svg/wipo.svg);
}

.hidden-link {
  position: absolute;
  left: -9999px;
}


body:not([data-bs-theme]) .nav-link-icon{
  color:#000;
}

body[data-bs-theme="dark"] .nav-link-icon {
  border-color: #fff !important;
}
body[data-bs-theme="dark"] .icon20,body[data-bs-theme="dark"] .icon18,body[data-bs-theme="dark"] .icon48{

  border-color: #fff !important;
}

body:not([data-bs-theme])  #customSuggestions {
  top: calc(100% + 0.25rem); /* 输入框高度加上一些间隙 */
  z-index: 1000;
  background: #fff; /* 添加白色背景 */
}

body[data-bs-theme="dark"] #customSuggestions {
  background: #123;
}
/* 鼠标悬停时的样式 */
body[data-bs-theme="dark"] #customSuggestions .list-group-item:hover {
  background-color: #091f34;
}
body[data-bs-theme="dark"]  #customSuggestions .text-muted {
  background: #091f34;
  border-bottom: 1px solid #ccc;
}

.friendlinks-wapper {
 
  padding: 20px 0;
}
.friendlinks-wapper a {

  text-decoration: none;
  margin-right: 15px;
}
.friendlinks-wapper a:hover {
  text-decoration: underline;
}

body[data-bs-theme="dark"]  .alert-box{
  background:#224a97
}

#filter h2{
  line-height: 1em;
}

.suggestions-container {
  max-height: 200px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ccc;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  color: #333;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* Dark mode styles */
body[data-bs-theme="dark"] .suggestions-container {
  background-color: #333;
  border-color: #555;
}

body[data-bs-theme="dark"] .suggestion-item {
  color: #aaa;
}

body[data-bs-theme="dark"] .suggestion-item:hover {
  background-color: #555;
}

body[data-bs-theme="dark"] .search-sidebar .no-border-accordion h2{
  border-bottom: 1px solid #1f2e41;
}
.input-group .form-select.country-code-select {
  flex: 0 0 120px;
}