/* ============================================
   Axis Bio 网站样式
   配色：白底 + 深绿主色（参考 Lab Grade 风格）
   ============================================ */

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.green {
  color: #1e6b3c;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #1e6b3c;
  border-bottom: 1px solid #14532d;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.logo-img {
  height: 52px;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
}

.logo i {
  color: #bfe0c8;
  font-style: normal;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 18px;
  font-weight: 500;
  color: #e3f0e6;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: #bfe0c8;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: #f7f7f5;
  padding: 70px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-sub {
  margin: 22px 0 28px;
  font-size: 16px;
  color: #555555;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e6b3c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #14532d;
}

.hero-checks {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-checks li {
  font-size: 13px;
  color: #666666;
  padding-left: 20px;
  position: relative;
}

.hero-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e6b3c;
  font-weight: 700;
}

.hero-image {
  flex: 0 0 380px;
}

.hero-image img {
  width: 100%;
  border-radius: 4px;
}

/* ---------- Category entry ---------- */
.cats {
  padding: 30px 0 70px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
}

.link-more {
  font-size: 14px;
  color: #1e6b3c;
  font-weight: 600;
}

.link-more:hover {
  text-decoration: underline;
}

.cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f7f7f5;
  border: 1px solid #ececec;
  padding: 28px 30px;
  transition: border-color 0.2s, transform 0.2s;
}

.cat-card:hover {
  border-color: #1e6b3c;
  transform: translateY(-3px);
}

.cat-card img {
  width: 130px;
  flex-shrink: 0;
}

.cat-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.cat-info p {
  font-size: 14px;
  color: #777777;
}

/* ---------- 产品页 ---------- */
.page-banner {
  background: #f7f7f5;
  border-bottom: 1px solid #ececec;
  padding: 44px 0;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
}

.page-banner p {
  margin-top: 8px;
  font-size: 15px;
  color: #666666;
}

.page-banner strong {
  color: #1e6b3c;
}

.toolbar {
  border-bottom: 1px solid #ececec;
  background: #ffffff;
  position: sticky;
  top: 62px;
  z-index: 90;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cat-tabs {
  display: flex;
  gap: 8px;
}

.tab {
  border: 1px solid #dcdcdc;
  background: #ffffff;
  color: #444444;
  font-size: 14px;
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  border-color: #1e6b3c;
  color: #1e6b3c;
}

.tab.active {
  background: #1e6b3c;
  border-color: #1e6b3c;
  color: #ffffff;
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcdcdc;
  padding: 8px 14px;
  color: #999999;
  min-width: 240px;
}

.search-box:focus-within {
  border-color: #1e6b3c;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: #1a1a1a;
}

.products-main {
  padding: 28px 0 70px;
  background: #ffffff;
}

.result-tip {
  font-size: 13px;
  color: #888888;
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  border: 1px solid #ececec;
  background: #ffffff;
  padding: 18px 16px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: #1e6b3c;
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e6b3c;
  letter-spacing: 0.5px;
}

.product-cat {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #777777;
  background: #f0f4f0;
  padding: 3px 10px;
}

.empty-tip {
  text-align: center;
  color: #999999;
  padding: 60px 0;
  font-size: 15px;
}

/* ---------- About Us ---------- */
.about-banner {
  background: url("../image/about-lab.png") center 35% no-repeat;
  background-size: cover;
}

.about-banner-overlay {
  background: rgba(18, 62, 35, 0.78);
  padding: 90px 0;
  text-align: center;
  color: #ffffff;
}

.about-banner-overlay h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
}

.about-banner-name {
  margin-top: 14px;
  font-size: 18px;
  color: #d8e8d8;
}

.about-banner-tagline {
  margin-top: 6px;
  font-size: 15px;
  color: #bfe0c8;
  letter-spacing: 1px;
}

.about-main {
  padding: 70px 0 80px;
  background: #ffffff;
}

/* Intro: text left + image right */
.about-intro {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 70px;
}

.about-intro-text {
  flex: 1;
}

.about-intro-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.about-logo {
  width: 110px;
  height: 76px;
  object-fit: contain;
  background: #ffffff;
  flex-shrink: 0;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.about-intro-head h2 {
  font-size: 34px;
  font-weight: 800;
}

.about-intro-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #444444;
  margin-bottom: 16px;
}

.about-intro-img {
  flex: 0 0 42%;
  width: 42%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

/* Capability cards with images */
.about-caps {
  margin-bottom: 70px;
}

.about-caps h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  border: 1px solid #ececec;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.14);
}

.cap-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cap-body {
  padding: 20px 22px 24px;
}

.cap-body h3 {
  font-size: 19px;
  color: #1e6b3c;
  margin-bottom: 8px;
}

.cap-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
}

/* Feature icons band */
.about-features {
  background: #14532d;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 70px;
  border-radius: 8px;
  color: #ffffff;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #bfe0c8;
  margin-bottom: 14px;
}

.feature-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: #cfe0cf;
  line-height: 1.6;
}

/* Company info cards */
.about-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-item {
  background: #ffffff;
  border: 1px solid #ececec;
  border-top: 3px solid #1e6b3c;
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 83, 45, 0.12);
}

.info-item h3 {
  font-size: 14px;
  color: #1e6b3c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.info-item p {
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
}

@media (max-width: 900px) {
  .about-intro {
    flex-direction: column;
  }
  .about-intro-img {
    flex: none;
    width: 100%;
    height: 240px;
  }
  .caps-grid {
    grid-template-columns: 1fr;
  }
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-info {
    grid-template-columns: 1fr;
  }
  .about-banner-overlay h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product Detail ---------- */
.breadcrumb {
  background: #f7f7f5;
  border-bottom: 1px solid #ececec;
  padding: 14px 0;
  font-size: 14px;
  color: #777777;
}

.breadcrumb a {
  color: #555555;
}

.breadcrumb a:hover {
  color: #1e6b3c;
}

.breadcrumb span {
  margin: 0 8px;
  color: #bbbbbb;
}

.breadcrumb strong {
  color: #1e6b3c;
}

.detail-main {
  padding: 50px 0 70px;
  background: #ffffff;
}

.detail-wrap {
  display: flex;
  gap: 44px;
  align-items: flex-start;
}

.detail-img-box {
  flex: 0 0 420px;
  border: 1px solid #ececec;
  padding: 24px;
}

.detail-img-box img {
  width: 100%;
}

.detail-info {
  flex: 1;
}

.detail-cat {
  display: inline-block;
  font-size: 12px;
  color: #1e6b3c;
  background: #eaf2ea;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.detail-info h1 {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a1a;
}

.detail-sub {
  margin-top: 8px;
  font-size: 14px;
  color: #888888;
}

.detail-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
}

.detail-section h2 {
  font-size: 17px;
  color: #1e6b3c;
  margin-bottom: 10px;
}

.detail-section p {
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
  margin-bottom: 10px;
}

.detail-specs li {
  font-size: 15px;
  color: #444444;
  line-height: 2;
}

.detail-specs strong {
  color: #1a1a1a;
}

.detail-back {
  margin-top: 28px;
}

.related {
  margin-top: 60px;
}

.related h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

.related-grid {
  grid-template-columns: repeat(6, 1fr) !important;
}

@media (max-width: 900px) {
  .detail-wrap {
    flex-direction: column;
  }
  .detail-img-box {
    flex: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .detail-info h1 {
    font-size: 28px;
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---------- Reviews photo wall ---------- */
.reviews-main {
  padding: 40px 0 70px;
  background: #ffffff;
}

.review-wall {
  columns: 3;
  column-gap: 20px;
}

.review-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border: 1px solid #ececec;
  background: #ffffff;
  cursor: zoom-in;
  transition: box-shadow 0.2s;
}

.review-item:hover {
  box-shadow: 0 8px 20px rgba(20, 83, 45, 0.14);
}

.review-item img {
  width: 100%;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 90%;
}

@media (max-width: 900px) {
  .review-wall {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .review-wall {
    columns: 1;
  }
  .main-nav a {
    font-size: 16px;
  }
  .main-nav {
    gap: 20px;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #14532d;
  border-top: 1px solid #0f4525;
  padding: 40px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.footer-logo i {
  color: #bfe0c8;
  font-style: normal;
}

.footer-brand p {
  font-size: 13px;
  color: #cfe0cf;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
  color: #d8e8d8;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 12px;
  color: #a9c2ab;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
  margin-top: 4px;
  text-align: center;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border: none;
  background: #1e6b3c;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, background 0.2s;
  z-index: 200;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: #14532d;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 40px;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image {
    flex: none;
    width: 280px;
  }
  .hero-checks {
    justify-content: center;
  }
  .cats-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #1e6b3c;
    border-bottom: 1px solid #14532d;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 14px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 0;
    border-bottom: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    min-width: 0;
  }
  .cat-card {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    padding: 44px 0;
  }
  .hero-image {
    width: 220px;
    max-width: 100%;
  }
  .about-banner-overlay {
    padding: 60px 0;
  }
  .about-main {
    padding: 50px 0 60px;
  }
  .site-footer {
    padding: 30px 0 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* 平板宽度：4 个导航项适当收紧 */
@media (max-width: 900px) and (min-width: 641px) {
  .main-nav {
    gap: 20px;
  }
  .main-nav a {
    font-size: 16px;
  }
  .logo-img {
    height: 40px;
  }
}
