/* ==========================================================================
   江西欣林农机制造有限公司 — 官网统一样式表
   所有颜色、圆角、字体都收敛在 :root 变量里，改一处全站生效。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 底色 */
  --bg:            #05090a;
  --bg-mid:        #070f11;
  --panel:         rgba(9, 17, 17, 0.72);
  --panel-solid:   #070f0f;
  --card-top:      rgba(14, 26, 24, 0.82);
  --card-bottom:   rgba(8, 15, 15, 0.82);
  --well:          #07100f;

  /* 文字 */
  --text:          #e7f2ec;
  --text-soft:     #c2d6cc;
  --text-body:     #b3c8bf;
  --muted:         #8ea89d;
  --muted-deep:    #7c948a;
  --dim:           #617f74;   /* 4.57:1，达 WCAG AA（原 #5d7a70 只有 4.27） */

  /* 主色：绿 */
  --green:         #2fe08a;
  --green-hi:      #54efa6;
  --green-soft:    #8df0c1;
  --green-pale:    #bff3da;
  --green-ink:     #03130c;
  --green-l10:     rgba(47, 224, 138, 0.10);
  --green-l14:     rgba(47, 224, 138, 0.14);
  --green-l18:     rgba(47, 224, 138, 0.18);
  --green-l24:     rgba(47, 224, 138, 0.24);
  --green-l45:     rgba(47, 224, 138, 0.45);

  /* 辅色：青（数字孪生 / 智圃园）与金（公司实力 / 合作） */
  --cyan:          #38e0d0;
  --cyan-soft:     #9defe4;
  --cyan-l10:      rgba(56, 224, 208, 0.10);
  --cyan-l24:      rgba(56, 224, 208, 0.24);
  --cyan-l40:      rgba(56, 224, 208, 0.40);
  --gold:          #e0b25c;
  --gold-dim:      #947f4c;   /* 4.58:1，达 WCAG AA（原 #8a7647 只有 4.04） */
  --gold-l22:      rgba(224, 178, 92, 0.22);

  /* 中性描边 */
  --line:          rgba(255, 255, 255, 0.10);
  --line-strong:   rgba(255, 255, 255, 0.22);
  --surface:       rgba(255, 255, 255, 0.06);
  --surface-hi:    rgba(255, 255, 255, 0.14);

  /* 字体 —— 中文一律走系统字体，避免加载境外字体导致的白屏与延迟 */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
          -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* 形状与节奏 */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --maxw: 1360px;
  --maxw-wide: 1500px;
  --gutter: clamp(16px, 3.4vw, 44px);
  --ease: 0.24s ease;
}

/* --------------------------------------------------------------------------
   2. 自托管字体（仅拉丁字符子集，约 20KB/字重）
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}

/* --------------------------------------------------------------------------
   3. 基础重置
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-soft); }

img, iframe { max-width: 100%; }
img { display: block; }

::selection { background: rgba(47, 224, 138, 0.3); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* 图标：尺寸跟随父级 font-size，颜色跟随 currentColor */
.ico {
  width: 1em; height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex: none;
}

/* 仅供读屏软件的文本 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. 页面外壳与网格背景
   -------------------------------------------------------------------------- */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(47, 224, 138, 0.14), transparent 60%),
    radial-gradient(760px 460px at 88%  4%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 60%, var(--bg) 100%);
}

.page::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(47, 224, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 224, 138, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(1200px 700px at 50% 0%, #000 30%, transparent 85%);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px) var(--gutter) 90px;
  position: relative;
}
.wrap--wide {
  max-width: var(--maxw-wide);
  padding: clamp(20px, 3vw, 36px) clamp(12px, 2.4vw, 32px) 60px;
}

/* --------------------------------------------------------------------------
   5. 页头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 18px;
  min-height: 70px;
  padding: 10px clamp(14px, 3vw, 44px);
  background: rgba(5, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 224, 138, 0.16);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.brand:hover { color: var(--text); }

/* 企业标志本身是深绿 #0f6b3a，为浅色背景设计。
   直接放深色页头只有 3.03:1 对比度（刚踩 WCAG 图形下限，视觉发闷），
   所以垫一块白色底板：品牌色原样保留，对比度提到 6.59:1。 */
.brand-mark {
  width: 41px; height: 32px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.brand-sub {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em;
  color: var(--dim); text-transform: uppercase; white-space: nowrap;
}

.nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  flex: 1 1 420px; justify-content: flex-end;
}
.nav a {
  font-size: 13.5px; font-weight: 500;
  /* 11px 上下内边距 → 链接高约 44px，达到触摸目标下限 */
  padding: 11px clamp(9px, 1vw, 14px);
  border-radius: 999px; white-space: nowrap;
  color: #94ada2;
  transition: background var(--ease), color var(--ease);
}
.nav a:hover { background: var(--green-l14); color: var(--green-pale); }
.nav a[aria-current="page"] { background: rgba(47, 224, 138, 0.16); color: var(--green-soft); }

/* 窄屏把导航改成横向滚动条，始终保持单行 */
@media (max-width: 820px) {
  .nav {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    flex: 1 1 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), color var(--ease);
}
.btn--primary {
  border: 1px solid var(--green);
  background: var(--green); color: var(--green-ink); font-weight: 700;
}
.btn--primary:hover { background: var(--green-hi); color: var(--green-ink); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
}
.btn--ghost:hover { background: var(--surface-hi); color: #fff; transform: translateY(-2px); }

.btn--cyan {
  min-height: 44px; padding: 0 18px; font-size: 14px;
  border: 1px solid var(--cyan-l40);
  background: var(--cyan-l10); color: var(--cyan-soft);
}
.btn--cyan:hover { background: rgba(56, 224, 208, 0.2); color: var(--cyan-soft); }

.btn--lg { min-height: 48px; padding: 0 24px; font-size: 15px; }

/* --------------------------------------------------------------------------
   7. 首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  border: 1px solid var(--green-l18); border-radius: var(--r-lg);
  overflow: hidden;
  min-height: min(600px, 78vh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 4.4vw, 60px);
  background: #050c0a;
}
.hero--short  { min-height: min(520px, 68vh); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 54px); }
.hero--banner { min-height: 340px; border-radius: var(--r-xl); justify-content: flex-end;
                padding: clamp(26px, 3.6vw, 46px); }

.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* 左→右压暗，保证白字可读 */
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg,  rgba(3, 9, 8, 0.92), transparent 58%),
    linear-gradient(90deg, rgba(3, 10, 8, 0.95) 0%, rgba(4, 14, 12, 0.82) 46%, rgba(4, 14, 12, 0.28) 100%);
}
.hero--banner::after {
  background: linear-gradient(90deg, rgba(3, 10, 8, 0.94) 0%, rgba(4, 14, 12, 0.66) 55%, rgba(4, 14, 12, 0.10) 100%);
}

/* 顶部那道绿色高光线 */
.hero-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .7;
}

.hero-body { position: relative; z-index: 1; max-width: 820px; }
.hero-body--md { max-width: 760px; }
.hero-body--sm { max-width: 620px; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 224, 138, 0.32);
  background: rgba(47, 224, 138, 0.12);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  color: #a9f0cd;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.75rem, 6.6vw, 4.4rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.012em;
  margin-bottom: 22px; text-wrap: pretty;
}
.hero--short h1 { font-size: clamp(1.55rem, 5.6vw, 3.4rem); line-height: 1.18; font-weight: 700; margin-bottom: 18px; }
.hero--banner h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; font-weight: 700; margin-bottom: 14px; text-wrap: pretty; }
.hero h1 em { font-style: normal; color: var(--green); }

.lede {
  max-width: 600px;
  font-size: clamp(.96rem, 1.15vw, 1.04rem);
  line-height: 1.85; color: #a9c0b6;
  margin-bottom: 30px; text-wrap: pretty;
}
.hero--short .lede { max-width: 620px; font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.95; color: var(--text-body); margin-bottom: 0; }
.hero--banner .lede { color: var(--text-body); line-height: 1.9; font-size: .98rem; margin-bottom: 22px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
  color: var(--green-soft); margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   8. 指标条
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px; max-width: 800px;
}
.stat {
  padding: 16px 15px;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(4, 12, 10, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stat b {
  display: block; font-family: var(--mono);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px;
}
.stat span { font-size: 12px; letter-spacing: .02em; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. 区块标题
   -------------------------------------------------------------------------- */
.section { margin-top: 64px; }
.section--tight { margin-top: 56px; }
.section--loose { margin-top: 70px; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  margin-bottom: 26px;
}
.sec-head--gold { border-left-color: var(--gold); }
.sec-head--cyan { border-left-color: var(--cyan); }
.sec-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 700; }
.sec-head p  { color: var(--muted-deep); font-size: .95rem; }
.sec-head .mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; color: var(--cyan); }

/* --------------------------------------------------------------------------
   10. 通用面板与栅格
   -------------------------------------------------------------------------- */
.panel {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid rgba(47, 224, 138, 0.16); border-radius: var(--r-lg);
  background: var(--panel);
}

/* --cols 由行内 style 传入，控制自适应列的最小宽度 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--cols, 280px), 100%), 1fr));
  gap: 18px;
}
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row--sm { gap: 12px; }
.row--md { gap: 14px; }

/* 两栏图文 */
.split {
  display: grid;
  /* min() 必须有：固定 320px 下限在 320px 视口会连同 panel padding 一起把正文顶出屏幕 */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 3.6vw, 48px);
  align-items: center;
}
.split h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.3; font-weight: 700; margin-bottom: 18px; text-wrap: pretty; }
.split > div > p { color: #a9c0b6; line-height: 1.95; font-size: 1rem; margin-bottom: 26px; text-wrap: pretty; }

.tagline {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  margin-bottom: 16px;
}
.tagline--cyan  { color: var(--cyan); }
.tagline--gold  { color: var(--gold); }
.tagline--green { color: var(--green); }

/* 带说明文字的配图卡 */
.media-card {
  border: 1px solid var(--green-l18); border-radius: var(--r);
  overflow: hidden; background: var(--panel-solid);
}
.media-card img { width: 100%; height: 340px; object-fit: cover; }
.media-card figcaption {
  padding: 18px 20px; font-size: .9rem; color: var(--muted);
  line-height: 1.75; border-top: 1px solid var(--green-l14);
}

/* --------------------------------------------------------------------------
   11. 卡片
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--green-l14); border-radius: var(--r);
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--green-l45);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.card--tall { padding: 30px 26px 32px; }
.card--flex { flex: 1 1 300px; }

/* 卡片左上角那道短绿线 */
.card--ruled::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 2px; background: var(--green);
}

.card h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: 12px; }
.card p  { color: var(--muted); line-height: 1.8; font-size: .93rem; text-wrap: pretty; }

.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 224, 138, 0.12);
  border: 1px solid var(--green-l24);
  color: var(--green); font-size: 17px;
  margin-bottom: 18px;
}
.card-icon--lg { width: 44px; height: 44px; font-size: 18px; margin-bottom: 20px; }

/* 图标与标题同排的变体（智圃园平台能力） */
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h3 { margin-bottom: 0; font-size: 1.06rem; }
.card-head .card-icon {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 0; font-size: 15px;
  background: var(--cyan-l10); border-color: var(--cyan-l24); color: var(--cyan);
}

/* 金色编号卡（合作路径） */
.card--gold {
  border-color: rgba(224, 178, 92, 0.2);
  background: linear-gradient(180deg, rgba(30, 24, 14, 0.7), rgba(10, 14, 13, 0.85));
  padding: 30px 26px;
}
.card--gold:hover { border-color: rgba(224, 178, 92, 0.5); }
.card--gold .no { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.card--gold h3 { margin: 14px 0 12px; }

/* --------------------------------------------------------------------------
   12. 公司概述
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  border-color: var(--green-l14);
}
.about-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .26em; color: var(--gold); margin-bottom: 14px; }
.about h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.3; font-weight: 700; margin-bottom: 18px; text-wrap: pretty; }
.about-note { color: var(--muted); line-height: 1.9; font-size: .97rem; }
.about-body { display: flex; flex-direction: column; gap: 18px; }
.about-body p {
  line-height: 2.05; font-size: 1rem; color: var(--text-body);
  padding-left: 18px; border-left: 2px solid rgba(47, 224, 138, 0.28);
  text-wrap: pretty;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. 公司实力（金色数据块 + 团队构成）
   -------------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 18px; }

.metric {
  flex: 1 1 200px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--gold-l22); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(28, 23, 13, 0.7), rgba(9, 14, 13, 0.86));
}
.metric .code { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--gold-dim); }
.metric b { font-family: var(--mono); font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--gold); line-height: 1; }
.metric span { font-size: 13px; color: #9db6ab; line-height: 1.6; }

.team-panel {
  padding: 28px 26px;
  border: 1px solid rgba(47, 224, 138, 0.16); border-radius: var(--r);
  background: rgba(9, 17, 17, 0.75);
}
.team-panel h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.team-panel > p { font-size: .9rem; color: #7f978c; line-height: 1.7; margin-bottom: 20px; }

.team-item {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  border-radius: 9px; border: 1px solid var(--green-l14);
  background: rgba(47, 224, 138, 0.05);
}
.team-item .badge {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 224, 138, 0.12); color: var(--green); font-size: 12.5px;
}
.team-item div { display: flex; flex-direction: column; gap: 3px; }
.team-item b { font-size: .94rem; font-weight: 600; color: #d8efe4; }
.team-item span { font-size: 12.5px; color: #7f978c; }

/* --------------------------------------------------------------------------
   14. 产品卡（带放大）
   -------------------------------------------------------------------------- */
.prod {
  flex: 1 1 280px;
  display: flex; flex-direction: column;
  border: 1px solid var(--green-l14); border-radius: var(--r);
  overflow: hidden; background: rgba(9, 17, 17, 0.8);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.prod:hover {
  border-color: var(--green-l45);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.prod-media {
  position: relative; display: block;
  width: 100%; height: 200px;
  padding: 0; overflow: hidden;
  background: var(--well); border: none; cursor: zoom-in;
}
.prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 10, 0.05), rgba(4, 12, 10, 0.8));
}
.prod-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--green-soft);
}
.prod-zoom {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: rgba(4, 12, 10, 0.6);
  border: 1px solid rgba(47, 224, 138, 0.3);
  color: var(--green-soft); font-size: 13px;
}
.prod-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.prod-body h3 { font-size: 1.05rem; font-weight: 650; }
.prod-body p  { color: var(--muted); line-height: 1.8; font-size: .92rem; text-wrap: pretty; }

/* 数字孪生入口条 */
.twin-bar {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(56, 224, 208, 0.22); border-radius: var(--r);
  background: linear-gradient(150deg, rgba(15, 40, 38, 0.85), rgba(8, 16, 16, 0.9));
}
.twin-bar > div { flex: 1 1 240px; }
.twin-bar .code { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--cyan); margin-bottom: 8px; }
.twin-bar p { font-size: .95rem; color: var(--text-soft); line-height: 1.7; }

/* --------------------------------------------------------------------------
   15. 家庭温室
   -------------------------------------------------------------------------- */
.spec {
  flex: 1 1 220px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  border: 1px solid rgba(47, 224, 138, 0.16); border-radius: 11px;
  background: rgba(10, 20, 19, 0.7);
}
.spec .code { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--dim); }
.spec b { font-family: var(--mono); font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--green); line-height: 1.2; }
.spec span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.figure {
  flex: 1 1 320px;
  display: flex; flex-direction: column;
  border: 1px solid var(--green-l14); border-radius: var(--r);
  overflow: hidden; background: rgba(9, 17, 17, 0.8);
  transition: border-color var(--ease);
}
.figure:hover { border-color: var(--green-l45); }
.figure-media {
  display: block; width: 100%; height: 230px;
  overflow: hidden; background: var(--well);
  border: none; padding: 0; cursor: zoom-in;
}
.figure-media img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { padding: 20px 22px; display: flex; flex-direction: column; gap: 9px; text-align: left; }
.figure b { font-size: 1rem; font-weight: 650; color: #d8efe4; }
.figure span { font-size: .91rem; color: var(--muted); line-height: 1.75; }

/* 收尾行动区 */
.cta {
  margin-top: 60px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(47, 224, 138, 0.2); border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(14, 34, 28, 0.9), rgba(7, 13, 13, 0.9));
}
.cta > div { flex: 1 1 300px; }
.cta h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; margin-bottom: 12px; }
.cta p  { color: #a9c0b6; line-height: 1.9; font-size: .98rem; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   16. 智圃园：智能体格、架构图、APP 截图
   -------------------------------------------------------------------------- */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.agent {
  padding: 14px 16px;
  border-radius: 10px; border: 1px solid rgba(47, 224, 138, 0.16);
  background: rgba(47, 224, 138, 0.05);
}
.agent b { display: block; font-size: .95rem; font-weight: 650; margin-bottom: 6px; color: #d8efe4; }
.agent span { font-size: 12.5px; color: #7f978c; }

.arch {
  margin-top: 64px;
  padding: clamp(26px, 3.6vw, 46px) clamp(20px, 3vw, 40px);
  border: 1px solid rgba(56, 224, 208, 0.2); border-radius: var(--r-xl);
  background: radial-gradient(680px 400px at 50% 0%, rgba(56, 224, 208, 0.12), transparent 62%), rgba(7, 14, 15, 0.9);
}
.arch-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 30px;
}
.arch-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 700; }
.arch-head .mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; color: var(--cyan); }

.arch-flow { display: flex; flex-direction: column; align-items: stretch; }
.arch-tier { padding: 18px 22px; border-radius: var(--r); text-align: center; }
.arch-tier b { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.arch-tier span { font-size: 12.5px; color: #7f978c; }
.arch-tier--in   { border: 1px solid rgba(47, 224, 138, 0.3);  background: rgba(47, 224, 138, 0.08); }
.arch-tier--in b { color: var(--green-pale); }
.arch-tier--hub  { border: 1px solid rgba(56, 224, 208, 0.35); background: rgba(56, 224, 208, 0.09); }
.arch-tier--hub b { color: var(--cyan-soft); }

.arch-link { width: 2px; height: 26px; margin: 0 auto; }
.arch-link--a { background: linear-gradient(180deg, rgba(47, 224, 138, 0.7), rgba(56, 224, 208, 0.3)); }
.arch-link--b { background: linear-gradient(180deg, rgba(56, 224, 208, 0.6), rgba(56, 224, 208, 0.2)); }
.arch-link--c { background: linear-gradient(180deg, rgba(56, 224, 208, 0.2), rgba(56, 224, 208, 0.6)); }

.arch-node {
  flex: 1 1 150px;
  padding: 16px 15px;
  border: 1px solid var(--green-l18); border-radius: 11px;
  background: rgba(12, 24, 23, 0.9); text-align: center;
}
.arch-node .badge {
  display: inline-flex; width: 34px; height: 34px; border-radius: 9px;
  align-items: center; justify-content: center;
  background: var(--green-l10); color: var(--green); font-size: 13px; margin-bottom: 11px;
}
.arch-node b { display: block; font-size: .92rem; font-weight: 650; color: #d8efe4; margin-bottom: 5px; }
.arch-node span { font-size: 12px; color: #75897f; line-height: 1.55; }

.arch-base {
  flex: 1 1 190px;
  padding: 16px 18px;
  border: 1px dashed rgba(224, 178, 92, 0.32); border-radius: 11px;
  background: rgba(24, 20, 12, 0.55);
}
.arch-base .code { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--gold); margin-bottom: 8px; }
.arch-base span { font-size: .92rem; color: var(--text-soft); line-height: 1.6; }

/* 手机截图 */
.shot {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px;
  border: 1px solid rgba(56, 224, 208, 0.16); border-radius: var(--r-lg);
  background: rgba(9, 17, 18, 0.8);
}
.phone {
  display: block; width: min(210px, 100%); margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px; padding: 7px;
  background: linear-gradient(160deg, #1d3b38, #0a1414);
  border: 1px solid rgba(56, 224, 208, 0.28);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.shot figcaption b { display: block; font-size: 1rem; font-weight: 650; margin-bottom: 8px; color: #d8efe4; }
.shot figcaption span { font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* --------------------------------------------------------------------------
   17. 联系方式
   -------------------------------------------------------------------------- */
.contact-card {
  padding: 30px 28px;
  border: 1px solid rgba(47, 224, 138, 0.2); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(14, 30, 26, 0.9), rgba(7, 13, 13, 0.9));
}
.contact-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(47, 224, 138, 0.16);
}
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 13px; font-size: .96rem; color: var(--text-soft); list-style: none; }
.contact-list .badge {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-l10); color: var(--green); font-size: 13px;
}
.contact-list a { color: var(--text-soft); }
.contact-list a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   18. 数字孪生模型页
   -------------------------------------------------------------------------- */
.model-note {
  max-width: 1000px; color: var(--muted);
  line-height: 1.95; font-size: .97rem; margin-bottom: 22px; text-wrap: pretty;
}
.model-frame {
  position: relative;
  border: 1px solid var(--cyan-l24); border-radius: var(--r-lg);
  overflow: hidden; background: #04090a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.model-frame iframe {
  display: block; width: 100%; border: none;
  height: min(78vh, 760px);
  /* dvh 排除手机地址栏高度，避免地址栏收起/展开时 iframe 跟着变高、页面跳动。
     上一行是老浏览器（Safari <15.4 / Chrome <108）的兜底，顺序不能反。 */
  height: min(78dvh, 760px);
}

/* 交互闸门 —— 模型页把 touch-action 设成 none，滚轮又被 OrbitControls 吃掉，
   所以光标或手指一落在模型上，整个页面就滚不动了（实测：iframe 外滚 5 格走
   500px，iframe 内滚 5 格纹丝不动）。默认让 iframe 不接收指针事件，点一下才放行。
   .has-gate 由 site.js 加 —— 万一脚本没加载，这条规则不生效，
   页面退回原样（模型照常能转），而不是变成永远点不动。 */
.model-frame.has-gate:not(.is-live) iframe { pointer-events: none; }

.model-veil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; border: none;
  /* 轻度压暗：提示居中放，不会跟模型页的品牌条、读数条、面板抢位置；
     压暗本身也是「这层要点一下」的信号 —— 全透明的话很多人会直接去拖模型，
     拖不动就以为模型坏了。 */
  background: rgba(4, 9, 10, .30);
  cursor: pointer; font: inherit; color: inherit;
  transition: background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.model-veil:hover { background: rgba(4, 9, 10, .16); }
.model-frame.is-live .model-veil { display: none; }
.model-veil span {
  background: rgba(4, 9, 10, .86); backdrop-filter: blur(6px);
  border: 1px solid var(--cyan-l40); border-radius: 999px;
  color: var(--cyan-soft); padding: 10px 20px;
  font-size: .9rem; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}
.model-veil:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .model-veil { transition: none; } }

@media (max-width: 860px) {
  /* 手机上留住至少 30% 的屏幕给页面本身 —— 这样即便 JS 没跑、闸门失效，
     手指也总能落在 iframe 外面把页面滑走，不至于被卡死在模型里。 */
  .model-frame iframe { height: min(70vh, 620px); height: min(70dvh, 620px); }
}

/* --------------------------------------------------------------------------
   19. 图片灯箱
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 7, 6, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: zoom-out;
  border: none;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; cursor: default; }
.lightbox img { max-width: 100%; max-height: calc(90vh - 70px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { font-size: .98rem; color: var(--text-soft); }
.lightbox-close {
  position: absolute; top: clamp(14px, 2.4vw, 28px); right: clamp(14px, 2.4vw, 28px);
  width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid rgba(47, 224, 138, 0.3);
  background: rgba(9, 17, 17, 0.85); color: var(--green-soft);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(47, 224, 138, 0.18); }

/* --------------------------------------------------------------------------
   20. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--green-l14);
  padding: 34px var(--gutter);
  text-align: center;
  background: rgba(4, 9, 9, 0.8);
  position: relative;
}
.site-footer p { font-size: 13px; color: #6c847a; line-height: 2; }
/* 两个备案号（工信部 ICP + 公安联网备案）并排。窄屏放不下时整条换行，
   nowrap 保证换的是「两个号之间」，而不是把某个号从中间劈开。 */
.site-footer .beian-row {
  display: inline-flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 0 14px;
}
.site-footer .beian { color: #6c847a; white-space: nowrap; }
.site-footer .beian:hover { color: var(--green); }
/* 警徽用背景图，不用 <img>。
   原因：作为 flex item 的 <a>，浏览器算它的固有宽度时不把行内 <img> 计入
   （实测 width:max-content 得到 185px，而内容实际需要 203px），
   于是 flex 把链接压到 185px，警徽独占一行、号码被挤到下一行。
   white-space:nowrap 和 flex-shrink:0 都救不了 —— 问题出在固有宽度计算，不是换行规则。
   padding-left 属于盒模型，一定会计入固有宽度，所以这样写是确定的。
   图片路径相对 site.css 自身所在的 assets/ 目录解析。 */
.site-footer .beian--police {
  padding-left: 18px;
  background: url('beian-police.png') left center / 14px 15px no-repeat;
}

/* --------------------------------------------------------------------------
   21. 降低动效偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   22. 打印
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .lightbox, .page::before { display: none !important; }
  body { background: #fff; color: #000; }
  .page { background: none; }
}

/* --------------------------------------------------------------------------
   23. 页脚咨询电话 —— 任何页面滑到底都能直接拨号
   -------------------------------------------------------------------------- */
.foot-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 15px; color: var(--text-soft);
}
.foot-tel .ico { color: var(--green); }
.foot-tel a {
  font-family: var(--mono); font-size: 16px; font-weight: 500;
  letter-spacing: .02em; color: var(--green);
}
.foot-tel a:hover { color: var(--green-hi); }

/* 首屏主 CTA 下面那行「政府与科研单位走这边」的次要入口 */
.hero-alt {
  margin: -22px 0 30px;
  font-size: .9rem; color: var(--muted-deep);
}
.hero-alt a { border-bottom: 1px solid rgba(47, 224, 138, 0.35); }
