body {
  background-color: #F6F6F6;
}

.neibanner {
  overflow: hidden;
  position: relative;
  padding-top: var(--nav-header-height);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  /* background-attachment: fixed;*/
  background-position: center;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
  padding:96px 0 142.21px;
  color: #fff;
  width: var(--container_main_vw);
  margin: auto;
}

.banner-content .search {
  border: 0.15rem solid #fff;
  border-radius: 30px;
  background-color: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  width: 60%;
}

.banner-content .search .icon-search {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.banner-content .search .search-input {
  flex: 1;
  color: #333;
  font-size: 1.1rem;
}

.banner-content p {
  font-size: clamp(1.2rem, 2vw, 1.3rem);
}

/* 通知 */
.notice-bar {
  overflow: hidden;
  position: relative;
  background: #fafbff;
  color: #302f2f;
}

.notice-bar__content {
  display: flex;
  align-items: center;
  position: relative;
  max-width: var(--container_main_vw);
  margin: auto;
}

.notice-bar__prefix {
  flex-shrink: 0;
  /* 固定宽度不收缩 */
  width: 1.5rem;
}

.notice-bar__prefix img {
  width: 100%;
  object-fit: contain;
}

.notice-bar__text {
  display: inline-block;
  flex: 1;
  /* overflow-y: hidden; */
  transition: transform 0.3s ease-out;
}

.notice-bar__text span {
  display: block;
  padding: 0.5rem 1rem;
}

.notice-bar .icon-close {
  font-size: 1.2rem;
  display: none;
}

.notice-bar__content:hover .icon-close {
  display: block;
}

/* 导航栏 */
.breadcrumb-navigation {
  display: flex;
  color: #838282;
  padding-top: 1rem;
}

.breadcrumb-item a {
  color: #838282;
  text-decoration: none;
}

.content {
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.main {
  flex: 1;
}

.sidebar .title {
  font-size: 1.1em;
  padding: 1rem 0;
  font-weight: 500;
  border-bottom: 1px solid #d6d5d6;
}

/* 树形菜单 */
.tree-menu {
  padding: 0 1.5rem;
  margin: 0;
  border: none;
  max-height: none !important;
  overflow-y: visible !important;
}

.tree-menu .menu-root>.menu-item>.menu-link>span:first-child {
  font-size: 1.05em;
}

.tree-menu .menu-root>.menu-item:first-child {
  border-top: none;
}

.tree-menu .menu-link {
  font-size: 1em;
  padding: 1rem 0;
  font-weight: 400;
  color: #313131;
}

.tree-menu .menu-link:hover {
  background-color: transparent;
}

.tree-menu .menu-link.active {
  background-color: transparent;
}

.tree-menu .menu-root>.menu-item {
  border-top: 1px solid #d6d5d6;
}

.tree-menu .menu-item>.menu-children {
  border-left: none;
}

/* 复选框组 */
.card {
  padding: 0 1.5rem;
  border: none;
}

.checkbox-group {
  color: #313131;
  padding: 0.5rem 0;
}

.form-check {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.form-check .form-check-input {
  margin-top: 0.1em;
}

.form-check-input:focus {
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 产品卡片 */
.product-card {
  display: flex;
  gap: 2rem;
  background-color: #fff;
  padding: 1rem 2rem;
  border-radius: 6px;
  align-items: center;
  margin-bottom: 2rem;
  text-decoration: none;
}

.product-image {
  width: 10rem;
  height: 10rem;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  /* height: 100%;
  object-fit: cover; */
  border-radius: 10px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #333;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.product-info h4 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.product-info .bottom {
  display: flex;
  justify-content: space-between;
}

.product-info strong {
  font-weight: 500;
}

.product-info .unit-price {
  white-space: nowrap;
}

.product-info .unit-price strong {
  color: #e60012;
  padding: 0 10px;
}

.product-info .unit-price span {
  font-size: 1.5rem;
}

.footer-container {
  background-color: #fff;
  position: relative;
  height: auto;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary-color-two);
  --bs-btn-border-color: var(--primary-color-two);
  --bs-btn-hover-bg: var(--primary-color-two);
  --bs-btn-hover-border-color: var(--primary-color-two);
  --bs-btn-active-bg: var(--primary-color-two);
  --bs-btn-active-border-color: var(--primary-color-two);
  --bs-btn-disabled-color: var(--primary-color-two);
  --bs-btn-disabled-border-color: var(--primary-color-two);
}

.btn-primary {
  --bs-btn-bg: var(--primary-color-two);
  --bs-btn-border-color: var(--primary-color-two);
}

.content .filtrate {
  display: none;
}

@media (max-width: 990px) {
  .product-categories {
    display: none;
  }

  .banner-content .search {
    border: 0.15rem solid #fff;
    border-radius: 20px;
    padding: 0.5rem;
    width: 85%;
  }

  .banner-content .search .icon-search {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: medium;
  }

  .content {
    flex-direction: column;
    gap: 1rem;
  }

  .content .filtrate {
    display: block;
  }

  .product-card {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }

  .product-image {
    width: 8rem;
    height: 8rem;
  }

  .product-info {
    gap: 0.2rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
  }

  .product-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
    color: var(--primary-color-two);
  }

  .product-info strong {
    font-weight: bolder;
  }

  .product-info .bottom {
    flex-direction: column;
  }

  .product-info .unit-price {
    text-align: end;
  }

  /* 移动端筛选栏 */
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    height: 100%;
    background: #edf0fe;
    transition: left 0.3s ease;
    gap: var(--container);
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 0;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar .doc-menu {
    border-radius: 0;
  }

  .sidebar .card {
    border-radius: 0;
  }

  .tree-menu {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: var(--container) 1.5rem 0;
  }

  .sidebar .confirm-btn {
    display: block;
  }
}

.sidebar-header {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

/* 产品中心分类目录 */
.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.product-categories .category-block {
    width: 32%;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
    background: linear-gradient(180deg, #fff5f5, #fff);
    min-height: 300px;
}

.product-categories .category-header {
      margin-bottom: 0.8rem;
    text-align: center;
    padding: 25px;
    background-image: url(/static/images/shengwuxuebiology.png);
        background-repeat: no-repeat;
    background-position-x: center;
}

.product-categories .category-header a {
  font-size: 1.15rem;
  font-weight: 600;
  color:#000;
  text-decoration: none;
  transition: color 0.2s;
}

.product-categories .category-header a:hover {
  color: var(--primary-color-two);
}

.product-categories .category-items {
      display: block;
}

.product-categories .category-item {
    display: inline-block;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: auto;
        line-height: 1.8;
}

.product-categories .category-item:hover {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .product-categories {
    gap: 1rem;
    padding: 1.5rem;
  }

  .product-categories .category-block {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .product-categories {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .product-categories .category-block {
    max-width: none;
    min-width: 100%;
	min-height:120px;
  }

  .product-categories .category-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .product-categories .category-items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }

  .product-categories .category-item {
    font-size: 0.9rem;
  }
}

.confirm-btn {
  width: 80%;
  margin: 0 auto 1rem;
  display: none;
}
/* ===== 移动端修复：产品卡片文字撑开 / 横向溢出（2026-08-25） ===== */
/* flex 子项默认 min-width:auto 会导致长标题/简介把卡片撑出视口，必须允许收缩 */
.product-card { min-width: 0; }
.product-info { min-width: 0; }
.product-info h4,
.product-info p { overflow-wrap: break-word; word-break: break-word; }

@media (max-width: 768px) {
  .container_main { width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 1rem; padding-right: 1rem; }
  .main { min-width: 0; }
  .breadcrumb-navigation { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-card { flex-direction: column; align-items: stretch; }
  .product-image { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
