:root {
  --primary-green: #5C8A64;  /* 主品牌绿 */
  --earth-brown:  #A67D52;  /* 大地棕 */
  --grain-yellow: #C98F5A;
  --soft-gold:    #EDC97A;
  --deep-gray:    #4A4A4A;
  --off-white:    #f9f6f3;   /* 统一米灰色背景（整站） */
  --light-border: #E5E0D8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--off-white);
  color: var(--deep-gray);
}

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

.page {
  min-height: 100vh;
}

/* 顶部导航（多页面公用） */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;  /* 叠在首屏大图上 */
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(92,138,100,0.98); /* 滚动后绿底 */
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}


/* 顶部 logo 图片尺寸控制 */
.navbar-logo-img {
  height: 26px;           /* 这里是视觉高度，你可以调成 24 / 28 等 */
  display: block;
}

.navbar-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  align-items: center; /* 让 EN 与其它字垂直居中 */
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

/* 默认状态：导航文本都是白色 */
.navbar:not(.scrolled) .nav-link,
.navbar.scrolled .nav-link {
  color: #fff;
}

/* 悬停：不管是否滚动，都用金色高亮 */
.navbar:not(.scrolled) .nav-link:hover,
.navbar.scrolled .nav-link:hover {
  color: var(--soft-gold);
}

/* 当前页面高亮（active）：不管是否滚动，都用金色 */
.navbar:not(.scrolled) .nav-link.active {
  color: var(--soft-gold);
}

.navbar:not(.scrolled) .nav-link.active,
.navbar.scrolled .nav-link.active {
  color: var(--soft-gold);
  border-bottom: none; /* 不再加底线，只换颜色 */
}

/* 语言 EN */

.navbar-en {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0;
  line-height: 1;
}

/* ------------------- 首页首屏轮播（仅 index.html 用） ------------------- */

.hero {
  position: relative;
  height: 520px;
  margin-top: 0;        /* 不再预留空白，导航直接叠在图片上 */
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero { height: 640px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.58),
    rgba(0,0,0,0.36),
    rgba(0,0,0,0.05)
  );
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 90px;  /* 避开上方导航 */
}

@media (min-width: 900px) {
  .hero-inner { padding-top: 110px; }
}

.hero-text {
  max-width: 680px;
}

.hero-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}

@media (min-width: 900px) {
  .hero-title { font-size: 40px; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 52px; }
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.94);
  max-width: 480px;
}

/* 轮播指示条 */

.hero-indicators {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .hero-indicators { display: flex; }
}

.hero-indicator {
  width: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  height: 40px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, height 0.3s ease;
}

.hero-indicator.active {
  background: var(--soft-gold);
  height: 56px;
}

/* 三数字条 */

.hero-stats-wrapper {
  position: relative;
  z-index: 5;
  margin-top: -70px;
  margin-bottom: 80px;
}

@media (min-width: 900px) {
  .hero-stats-wrapper {
    margin-top: -90px;
    margin-bottom: 100px;
  }
}

.hero-stats {
  width: 94%;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--primary-green);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3,1fr);
  }
}

.hero-stat {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.22);
}

.hero-stat:first-child {
  border-top: none;
}

@media (min-width: 768px) {
  .hero-stat {
    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.22);
  }
  .hero-stat:last-child {
    border-right: none;
  }
}

.hero-stat-number {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.hero-stat-number .unit {
  font-size: 14px;     /* 单位字小一点 */
  font-weight: 400;    /* 用常规字体 */
  margin-left: 0px;    /* 与数字隔一点距离 */
  opacity: 0.85;       /* 轻一点，不喧宾夺主 */
  vertical-align: baseline;
  position: relative;
  top: -2px;           /* 微微上提，看起来更协调 */
}

@media (min-width: 900px) {
  .hero-stat-number { font-size: 48px; }
}

.hero-stat-text {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

/* ------------------- 通用内容区样式 ------------------- */

.section {
  padding: 70px 5vw;
  background: var(--off-white);
}

@media (min-width: 900px) {
  .section { padding: 90px 8vw; }
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-en {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title-en-brown {
  color: var(--earth-brown);
}

.section-title-zh {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--deep-gray);
}

.section-title-sub {
  font-size: 14px;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(0,0,0,0.68);
  line-height: 1.7;
}

/* 产品区 */

.product-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

/* 左侧产品图片 */

.product-image img {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

/* 右侧正文：字号统一到 14px */

.product-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.75);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  background: var(--primary-green);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #4c7354;
  transform: translateY(-1px);
}

/* ================================
   技术核心整体布局
================================ */
.features-section {
  background: var(--off-white);
}

.features-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  text-align: center;
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
  }
}

.feature-item {
  padding: 0 20px;
}

/* ================================
   高级 ICON 盒子（支持光晕 + 浮动）
================================ */
.feature-icon-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease, filter .35s ease;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}

.feature-item:hover .feature-icon-box {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.18));
}

/* ================================
   ICON 本体（150px，高级扁平风）
================================ */
.feature-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* ================================
   文本部分
================================ */
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--deep-gray);
}

.feature-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.7);
  max-width: 20em;
  margin: 0 auto;
}

/* 应用场景 2×2 田字格 */

.scenarios-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .scenarios-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

.scenario-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 让图片完全按原始比例展示，不再被裁切或挡住 */
.scenario-image {
  overflow: hidden;
}

.scenario-image img {
  width: 100%;
  height: auto;         /* ✅ 关键：自动高度，整张 450px 都能露出来 */
  display: block;
}

/* 绿色文字条：不叠在图片上，而是接在图片下面 */
.scenario-text {
  background: var(--primary-green);
  color: #fff;
  padding: 16px 20px 20px;
  min-height: 100px;    /* ✅ 至少 100，高度统一，两行/三行都能装下 */
  box-sizing: border-box;
}

.scenario-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scenario-desc {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.96;
}
/* 进一步了解 两条图片长条 */

.deep-dive {
  background: var(--off-white); /* 用全站统一的米白色 */
}

.deep-dive-title {
  margin-bottom: 32px;
}

.deep-dive-list {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 每条长条 = 图片 + 渐变 + 文字 */

.deep-dive-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 210px;              /* 稍微高一点，更大气 */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* 关键：整张卡片用 flex，把内容垂直居中 */
  display: flex;
  align-items: center;
}

.deep-dive-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 更深的遮罩：顶部+左侧双渐变，保证白字一定看得清 */
.deep-dive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* 上到下 */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.18) 40%,
      rgba(0,0,0,0.04) 90%,
      rgba(0,0,0,0.00) 100%
    ),
    /* 左到右 */
    linear-gradient(
      to right,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.32) 25%,
      rgba(0,0,0,0.14) 50%,
      rgba(0,0,0,0.05) 75%,
      rgba(0,0,0,0.00) 100%
    );
}

/* 内容：左右居中排布，保证文字块和箭头在同一垂直中心线上 */
.deep-dive-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;          /* 垂直居中 */
  justify-content: space-between;
  width: 100%;                    /* 🔥 必须加上，让箭头贴右侧 */
  padding: 24px 24px 26px;
  gap: 24px;
}

.deep-dive-text {
  max-width: 70%;
}

.deep-dive-meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft-gold);
  margin-bottom: 6px;
}

.deep-dive-title-zh {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.deep-dive-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.94);
}

/* 箭头：稍微往上提一点，对齐视觉中心 */
.deep-dive-arrow {
  font-size: 32px;
  line-height: 1;
  color: rgba(255,255,255,0.9);
  margin-top: -2px;
}

.deep-dive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

/* 联系我们（页脚） */

.contact {
  background: var(--primary-green);
  color: #fff;
  padding: 70px 5vw 40px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .contact { padding: 90px 8vw 50px; }
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-header-en {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--soft-gold); /* CONTACT US 用金色 */
}

.contact-header-zh {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  font-size: 14px;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2,1fr); gap: 48px; }
}

.contact-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-item p {
  margin: 4px 0;
  opacity: 0.95;
}

.contact-footer {
  border-top: 1px solid rgba(255,255,255,0.22);
  margin-top: 32px;
  padding-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}

/* 其它页面的内容容器（产品/学术/品牌页） */

.page-banner {
  height: 240px;
  margin-top: 56px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 900px) {
  .page-banner { height: 300px; margin-top: 64px; }
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
}

.page-banner-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.page-banner-text {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
}

.page-banner-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-banner-sub {
  font-size: 15px;
  max-width: 520px;
}

/* 通用内容容器 */
.page-content {
  padding: 60px 5vw 0;
  background: var(--off-white);
}

@media (min-width: 900px) {
  .page-content { padding: 80px 8vw 0; }
}

.page-content-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.78);
}
/* --- hero 数字单位 + 上标效果（新增） --- */

.unit-plus {
  font-size: 0.55em;        /* 让 + 更小 */
  vertical-align: super;    /* 上标效果 */
  line-height: 0;           /* 避免撑高行高 */
  margin-left: 2px;         /* 与数字保持一点距离 */
  position: relative;
  top: -1px;                /* 再轻微上移，使更漂亮 */
}

.unit-text {
  font-size: 0.45em;        /* 单位小一号 */
  margin-left: 6px;
  opacity: 0.9;             /* 更精致的观感 */
}
/* —— LOGO 统一样式 —— */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 30px;         /* 推荐大小 */
  width: auto;          /* 自动保持比例 */
  object-fit: contain;  
  display: none;        /* 默认隐藏，按状态显示 */
}

/* 默认显示白色 logo（透明导航） */
.logo-white {
  display: block;
}

/* 默认隐藏彩色 logo */
.logo-colored {
  display: none;
}

/* 滚动后：导航变绿 → 使用白色 logo 才看得清 */
.navbar.scrolled .logo-white {
  display: block;
}

.navbar.scrolled .logo-colored {
  display: none;
}