/* ============================================================
   杉霖科技 SEENDEER · 官网首页
   视觉规范：motion-and-crawl-spec.json v3
   ============================================================ */

/* ---------- 拉丁字体自托管（品牌名 / 标签 / 数字），不走第三方 ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F6F3EC;
  --paper-hero-from: #F9F6EF;
  --paper-hero-to: #F6F3EC;
  --paper-card: #FFFFFF;
  --paper-faq: #F1EDE2;
  --paper-card-soft: #F8F6F0;
  --paper-strip: #FBF9F3;
  --paper-line: #E4DED0;
  --faq-line: #DDD6C4;
  --ink-deep: #0B1A14;
  --ink-surface: #08170F;
  --ink-card: #0C211A;
  --ink-pill: #122A20;
  --text-on-paper: #16241D;
  --text-on-paper-sub: #5F6E64;
  --text-on-dark: #F6F3EC;
  --text-on-dark-sub: #93A79C;
  --accent-moss: #A9C79A;
  --accent-moss-deep: #6E8F6A;
  --mono-faint: #98A08E;
  --hero-title: #0F1F16;
  --btn-ink: #0C1A14;
  --btn-green: #4E7A45;
  --btn-cream: #F0EDE0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 88px;
  --font-cn: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-en: "Outfit", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-cn);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection { background: rgba(110, 143, 106, 0.35); }

a { text-decoration: none; color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-moss-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1312px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

.mono { font-family: var(--font-mono); }

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-moss-deep);
  margin-bottom: 12px;
}

h2 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-on-paper);
  letter-spacing: 0.01em;
}

/* 标题行宽自动均衡，避免末行只剩一两个字（不支持则按普通换行降级） */
h1, h2, h3, h4, .company-name, .metric-num { text-wrap: balance; }
p { text-wrap: pretty; }  /* 正文避免末行孤字与行首标点 */

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--paper-line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: auto; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-en {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 600;
  color: #12241B;
  letter-spacing: 0.04em;
}
.brand-sub { font-size: 11px; color: #4E6154; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 14px; color: #33473D; transition: color 0.18s ease; }
.nav-menu a:hover { color: var(--text-on-paper); }
.nav-menu a.is-active { color: #2F5A3C; font-weight: 500; }
.nav-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--btn-cream);
  background: var(--btn-ink);
  padding: 12px 20px;
  border-radius: 6px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav-phone:hover { transform: translateY(-1px); background: #142A20; }

/* ---------- 抽屉导航（≤1100px 取代电话按钮） ---------- */
.nav-toggle,
.nav-drawer,
.nav-scrim { display: none; }

.nav-toggle {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 2px;
  background: #16281F;
  transition: transform 0.3s var(--ease-out), opacity 0.18s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(10, 24, 18, 0.44);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
/* 抽屉打开时去掉导航底部描边，避免面板顶上出现一条亮线 */
body.nav-open .nav { border-bottom-color: transparent; }

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  z-index: 60;
  width: min(300px, 78vw);
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  flex-direction: column;
  background: #10231A;
  border-left: 1px solid rgba(246, 243, 236, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(103%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-out), visibility 0s linear 0.34s;
}
body.nav-open .nav-drawer {
  transform: none;
  visibility: visible;
  transition: transform 0.34s var(--ease-out), visibility 0s linear 0s;
}

.nav-drawer-links {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer-links a {
  display: block;
  padding: 18px 26px;
  font-size: 15px;
  color: #E4DFD2;
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.3s ease, transform 0.36s var(--ease-out), background 0.18s ease, color 0.18s ease;
}
.nav-drawer-links a:active { background: rgba(169, 199, 154, 0.12); }
.nav-drawer-links a.is-active {
  color: #F6F3EC;
  background: rgba(169, 199, 154, 0.13);
  box-shadow: inset 3px 0 0 var(--accent-moss);
}
body.nav-open .nav-drawer-links a {
  opacity: 1;
  transform: none;
}
body.nav-open .nav-drawer-links a:nth-child(1) { transition-delay: 0.06s; }
body.nav-open .nav-drawer-links a:nth-child(2) { transition-delay: 0.10s; }
body.nav-open .nav-drawer-links a:nth-child(3) { transition-delay: 0.14s; }
body.nav-open .nav-drawer-links a:nth-child(4) { transition-delay: 0.18s; }
body.nav-open .nav-drawer-links a:nth-child(5) { transition-delay: 0.22s; }

.nav-drawer-phone {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 18px 22px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--btn-cream);
  color: #10231A;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.36s var(--ease-out), background 0.18s ease;
}
.nav-drawer-phone:active { background: #E2DCCA; }
body.nav-open .nav-drawer-phone {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}
.nav-drawer-phone-label { font-size: 11px; color: #4E6154; letter-spacing: 0.02em; }
.nav-drawer-phone-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 抽屉内的企业微信入口：描边款，与实心电话卡形成主次 */
.nav-drawer-wx {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 18px 22px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid rgba(169, 199, 154, 0.34);
  background: rgba(169, 199, 154, 0.07);
  color: #E4DFD2;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.36s var(--ease-out), background 0.18s ease;
}
.nav-drawer-wx:active { background: rgba(169, 199, 154, 0.16); }
body.nav-open .nav-drawer-wx {
  opacity: 1;
  transform: none;
  transition-delay: 0.30s;
}
.nav-drawer-wx-label { font-size: 14px; }
.nav-drawer-wx-sub { font-size: 11px; color: #8FA997; }

/* 抽屉内的抖音入口：文字款，最轻的一层，不与电话/企微抢注意力 */
.nav-drawer-dy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  color: #E4DFD2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.36s var(--ease-out), background 0.18s ease;
}
.nav-drawer-dy:active { background: rgba(246, 243, 236, 0.06); }
body.nav-open .nav-drawer-dy {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}
.nav-drawer-dy-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.nav-drawer-dy-label { font-size: 14px; }
.nav-drawer-dy-sub { font-size: 11px; color: #8FA997; }
.dy-icon { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; }
.dy-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

/* 菜单区可滚动时底部留一道渐隐，提示下面还有内容 */
.nav-drawer-links.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}

/* ---------- 企业微信二维码弹层 ---------- */
body.wx-open { overflow: hidden; }
.wx-modal {
  margin: auto;          /* 全局 margin 重置会覆盖 dialog 默认的居中，须显式声明 */
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(90vw, 360px);
  max-height: none;
  overflow: visible;
}
.wx-modal::backdrop {
  background: rgba(6, 18, 13, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.wx-modal-card {
  position: relative;
  padding: 30px 26px 24px;
  border-radius: 20px;
  background: var(--paper-strip);
  border: 1px solid var(--paper-line);
  text-align: center;
  box-shadow: 0 32px 80px rgba(6, 18, 13, 0.34);
}
.wx-modal[open] { animation: wxModalIn 0.26s var(--ease-out) both; }
.wx-modal[open]::backdrop { animation: wxScrimIn 0.26s ease both; }
@keyframes wxModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes wxScrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wx-modal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mono-faint);
}
.wx-modal-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-paper);
}
.wx-modal-qr {
  display: block;
  width: 216px;
  height: 216px;
  margin: 18px auto 0;
  border-radius: 10px;
  background: #fff;
}
.wx-modal-tip {
  margin-top: 16px;
  font-size: 13px;
  color: #2E5A3C;
}
.wx-modal-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--mono-faint);
}
.wx-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5C6B60;
  cursor: pointer;
  transition: background 0.18s ease;
}
.wx-modal-close:hover { background: rgba(11, 26, 20, 0.06); }
.wx-modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-drawer,
  .nav-drawer-links a,
  .nav-drawer-phone,
  .nav-drawer-wx,
  .nav-drawer-dy,
  .nav-scrim { transition: none; }
  .nav-drawer-links a,
  .nav-drawer-phone,
  .nav-drawer-wx,
  .nav-drawer-dy { opacity: 1; transform: none; }
  .wx-modal[open],
  .wx-modal[open]::backdrop { animation: none; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: max(760px, 100vh);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--paper-hero-from), var(--paper-hero-to));
  display: flex;
  flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-picture { position: absolute; inset: 0; display: block; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(110, 143, 106, 0.10) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, rgba(110, 143, 106, 0.10) 0 1px, transparent 1px 80px),
    radial-gradient(circle, rgba(110, 143, 106, 0.30) 1px, transparent 1.5px);
  background-size: auto, auto, 240px 240px;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(169, 199, 154, 0.22), transparent 65%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, 24px); }
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 128px;
  padding-bottom: 56px;
  width: 100%;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #3F6B45;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 62px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--hero-title);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.8;
  color: #3D5145;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--btn-ink); color: var(--btn-cream); }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(12, 26, 20, 0.22); }
.btn-green { background: var(--btn-green); color: var(--paper); }
.btn-green:hover { box-shadow: 0 10px 24px rgba(78, 122, 69, 0.28); }
.btn-ghost { color: #1E3327; border-color: rgba(30, 51, 39, 0.35); font-weight: 500; }
.btn-ghost:hover { border-color: rgba(30, 51, 39, 0.65); background: rgba(255, 255, 255, 0.4); }

.hero-fig {
  margin-top: 56px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #5A6B58;
}

.metrics {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(89, 107, 82, 0.45);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.metric-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--hero-title);
  line-height: 1.15;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-label { font-size: 13px; color: #41564A; }

/* ---------- 通用区块头 ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
}
.sec-head-left { max-width: 640px; }
.sec-head-side {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-on-paper-sub);
  max-width: 420px;
  flex-shrink: 0;
}

.section-paper { background: var(--paper); }
.section-white { background: var(--paper-card); }

/* ---------- 关于 ---------- */
.about { padding: 96px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 64px;
  align-items: center;
}
.about h2 { font-size: 38px; margin-bottom: 22px; }
.about-copy p:not(.label) {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-on-paper-sub);
  margin-bottom: 22px;
}
.company-card {
  background: var(--paper-card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(12, 26, 20, 0.06);
}
.card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7A9A6F;
}
.company-card .card-label { margin-bottom: 18px; }
.company-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-on-paper);
  margin-bottom: 18px;
}
.company-rows .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
}
.company-rows .row + .row { border-top: 1px solid #ECE7DA; }
.company-rows dt { font-size: 13px; color: #7A8579; flex-shrink: 0; }
.company-rows dd { font-size: 14px; font-weight: 500; color: var(--text-on-paper); text-align: right; }
.phone-green { color: #2F5A3C; }
.company-rows dd a { display: inline-block; padding: 7px 0; }

/* ---------- 关于 · 技术底座面板 ---------- */
.capability {
  position: relative;
  margin-top: 64px;
  padding: 48px 48px 34px;
  background: var(--paper-strip);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  overflow: hidden;
}
/* 右上角极淡苔绿光晕：给浅色面板一点科技感，不引入大面积深色 */
.capability::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 199, 154, 0.26), rgba(169, 199, 154, 0) 68%);
  pointer-events: none;
}
.capability > * { position: relative; z-index: 1; }

.capability-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: end;
}
.capability-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-on-paper);
  letter-spacing: 0.01em;
}
.capability-lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-on-paper-sub);
}

.capability-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 32px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-line);
}
.capability-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-paper);
}
.cap-check {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: rgba(110, 143, 106, 0.14);
  stroke: var(--accent-moss-deep);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.cap-card {
  padding: 24px 22px 26px;
  background: var(--paper-card);
  border: 1px solid #EDE7D9;
  border-radius: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cap-card:hover, .cap-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--faq-line);
  box-shadow: 0 14px 30px rgba(12, 26, 20, 0.07);
}
.cap-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cap-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(110, 143, 106, 0.13);
  color: var(--btn-green);
}
.cap-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap-kicker {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #7A9A6F;
  margin-bottom: 5px;
}
.cap-card h4 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-on-paper);
}
.cap-card p:not(.cap-kicker) {
  font-size: 13px;
  line-height: 1.82;
  color: var(--text-on-paper-sub);
}

.capability-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--faq-line);
  font-size: 12px;
  line-height: 1.7;
  color: #7A8579;
}
.capability-note .mono {
  display: inline-block;
  margin-right: 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent-moss-deep);
}

/* ---------- 服务 / 方法 / 交付 卡片 ---------- */
.services, .process { padding: 80px 0; }
.deliverables { padding: 88px 0; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--paper-card-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 24px;
  min-height: 176px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px);
  border-color: var(--faq-line);
  box-shadow: 0 12px 28px rgba(12, 26, 20, 0.07);
}
.card-white { background: var(--paper-card); }
.card .card-label { margin-bottom: 14px; }
.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-on-paper);
  margin-bottom: 14px;
}
.card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-on-paper-sub);
}
.step-grid .card { padding: 22px; }
.step-grid .card .card-label { margin-bottom: 12px; }
.step-grid .card h3 { font-size: 19px; margin-bottom: 12px; }
.step-grid .card p { font-size: 13px; }

/* ---------- 行业墙 ---------- */
.industries {
  background: var(--ink-deep);
  padding: 64px 0;
  overflow: hidden;
}
.industries-head { margin-bottom: 28px; }
.label-moss { color: var(--accent-moss); margin-bottom: 8px; }
.h2-dark { font-size: 28px; color: var(--text-on-dark); }
.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  flex-shrink: 0;
  display: flex;
  gap: 14px;
  padding-right: 14px;
  animation: marquee-scroll 30s linear infinite;
}
.marquee[data-direction="right"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  to { transform: translateX(-100%); }
}
.pill {
  flex-shrink: 0;
  background: var(--ink-pill);
  color: #C5D0C8;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(169, 199, 154, 0.12);
}

/* ---------- 转化条 ---------- */
.cta-bar {
  margin-top: 40px;
  background: var(--ink-deep);
  border-radius: 14px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-price {
  font-family: var(--font-en);
  font-size: clamp(25px, 8.2vw, 34px);
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.cta-note { font-size: 14px; color: var(--text-on-dark-sub); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cream { background: var(--btn-cream); color: var(--btn-ink); }
.btn-cream:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.btn-outline-dark {
  color: #C5D0C8;
  border-color: rgba(197, 208, 200, 0.35);
  font-weight: 500;
}
.btn-outline-dark:hover { border-color: rgba(197, 208, 200, 0.7); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-faq); padding: 88px 0; }
.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.faq-item { border-bottom: 1px solid var(--faq-line); }
.faq-col .faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 22px 0;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-no {
  width: 40px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--mono-faint);
}
.faq-q {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-on-paper);
}
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  align-self: center;
  margin-left: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-moss-deep);
  transition: transform 0.18s ease;
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-a { padding-left: 40px; }
/* 说明：现行 Chrome/Safari 对 details 内容是 content-visibility 隐藏，
   grid-template-rows 的高度动画不会生效（收起是硬切）。此处改为答案淡入上浮，
   只动 opacity/transform，不触发布局，任何内核表现一致。 */
.faq-item[open] .faq-a > p { animation: faq-in 0.24s var(--ease-out) both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.faq-a > p {
  font-size: 14px;
  line-height: 1.86;
  color: var(--text-on-paper-sub);
  padding-bottom: 22px;
}

.consult-bar {
  margin-top: 56px;
  background: var(--paper-strip);
  border-radius: 12px;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.consult-title { font-size: 17px; font-weight: 600; color: var(--text-on-paper); margin-bottom: 8px; }
.consult-desc { font-size: 14px; color: var(--text-on-paper-sub); }
.consult-right { text-align: right; }
.consult-phone {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #2E5A3C;
  margin-bottom: 6px;
}
.consult-hours { font-size: 12px; color: var(--mono-faint); }

/* 独立电话链接：把点击热区撑到 44px（拇指可点） */
.consult-phone { padding: 7px 0; }
.footer-phone { padding: 10px 0; }

/* ---------- 页脚 ---------- */
/* 页脚拆两段：浅色「行业生态」目录带 + 最底一条深色联系栏，
   保持全站「浅底为主、深色占比小」的调性。 */
.footer { background: var(--paper-strip); }

.footer-eco { border-top: 1px solid var(--paper-line); padding: 52px 0 44px; }
.eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  min-height: 44px;
  border-bottom: 1px solid var(--paper-line);
  cursor: pointer;
  list-style: none;
}
.eco-head::-webkit-details-marker { display: none; }
.eco-title { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; }
.eco-key { font-size: 10.5px; letter-spacing: 0.18em; color: var(--mono-faint); }
.eco-name { font-size: 19px; font-weight: 600; color: var(--text-on-paper); letter-spacing: 0.01em; }
.eco-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-on-paper-sub);
  transition: color 0.18s;
}
.eco-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
  transition: transform 0.24s var(--ease-out);
}
.eco[open] .eco-toggle svg { transform: rotate(0deg); }
.eco-toggle-on { display: none; }
.eco[open] .eco-toggle-on { display: inline; }
.eco[open] .eco-toggle-off { display: none; }
.eco-head:hover .eco-toggle { color: var(--text-on-paper); }

.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; padding-top: 26px; }
.eco-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-paper);
}
.eco-group-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent-moss-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 用留白分栏而不用「·」，否则换行后行首会甩出一个孤立的点 */
.eco-links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.eco-links li { display: flex; align-items: center; }
.eco-links a {
  display: inline-block;
  padding: 7px 0;   /* 热区撑到 34px，手机上不至于点错到相邻链接 */
  font-size: 13.5px;
  color: var(--text-on-paper-sub);
  transition: color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.eco-links a:hover { color: var(--text-on-paper); box-shadow: inset 0 -1px 0 0 var(--accent-moss-deep); }
.eco-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
  max-width: 88ch;
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--mono-faint);
}

/* 最底深色栏：品牌 + 电话 + 企业微信二维码（各端都放在页面最底部） */
.footer-bar { background: var(--ink-deep); padding: 32px 0; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 40px;
}
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-mark { display: block; width: auto; height: 32px; flex-shrink: 0; opacity: 0.92; }
.footer-brand {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.footer-copy { font-size: 12px; color: #6E8F7E; }
.footer-copy .footer-icp { color: inherit; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(110, 143, 126, 0.45); }
.footer-copy .footer-icp:hover { color: var(--accent-moss); border-bottom-color: currentColor; }
.footer-right { text-align: right; }
.footer-phone {
  display: block;
  font-size: 16px;
  color: var(--accent-moss);
  margin-bottom: 6px;
}
.footer-note { font-size: 12px; color: #6E8F7E; }

/* 页脚抖音入口：紧跟电话，视觉上比二维码卡轻一档 */
.footer-dy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  background: rgba(246, 243, 236, 0.035);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--text-on-dark);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.footer-dy:hover {
  border-color: rgba(169, 199, 154, 0.34);
  background: rgba(246, 243, 236, 0.06);
  color: var(--accent-moss);
}
.footer-dy:focus-visible { outline: 2px solid var(--accent-moss); outline-offset: 3px; }
.footer-dy .dy-icon { width: 14px; height: 14px; }
.footer-dy .dy-arrow { width: 12px; height: 12px; opacity: 0.45; }
/* 视觉保持小巧，热区补到 44px 高，手机上不用瞄准 */
@media (max-width: 1100px) {
  .footer-dy::after { content: ""; position: absolute; inset: -7px -12px; }
}

/* 页脚企业微信二维码：点开看大图，手机上可长按识别 */
.footer-wx {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 16px 9px 9px;
  border-radius: 12px;
  border: 1px solid rgba(246, 243, 236, 0.09);
  background: rgba(246, 243, 236, 0.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.footer-wx:hover { border-color: rgba(169, 199, 154, 0.34); background: rgba(246, 243, 236, 0.06); }
.footer-wx:focus-visible { outline: 2px solid var(--accent-moss); outline-offset: 3px; }
.footer-wx-qr {
  display: block;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #fff;
}
.footer-wx-cap {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.footer-wx-cap .wx-d { display: block; }
.footer-wx-cap .wx-m { display: none; }
.footer-wx-cap em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11.5px;
  color: #6E8F7E;
}

/* ---------- 入场动效（仅 JS 可用时隐藏，no-js 直接可读） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .marquee-track { animation: none; }
  .faq-item[open] .faq-a > p { animation: none; }
  .btn, .card, .nav-phone { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: flex; }
  .nav-scrim { display: block; }
  /* 无 JS 时抽屉不可用，退回电话入口 */
  html.no-js .nav-toggle { display: none; }
  html.no-js .nav-phone { display: inline-block; }
  /* 两列会把每组挤成「最后一项单独一行」，改单列四组更好读 */
  .eco-grid { grid-template-columns: 1fr; gap: 20px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { max-width: 640px; }
  .capability { padding: 40px 36px 30px; }
  .capability-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .capability-lead { max-width: 640px; }
  .capability-title { font-size: 27px; }
  .capability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-card { padding: 20px 18px 22px; }
  .cap-card-top { gap: 10px; }
  .cap-icon { width: 34px; height: 34px; border-radius: 9px; }
  .cap-icon svg { width: 18px; height: 18px; }
  .cap-card h4 { font-size: 15.5px; }
  .cap-card p:not(.cap-kicker) { font-size: 12.5px; line-height: 1.78; }
}
@media (max-width: 900px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .brand-mark { height: 32px; }
  .brand-en { font-size: 18px; }
  .brand-sub { font-size: 10px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero h1 { font-size: 44px; }
  .hero-sub br { display: none; }
  .faq-cols { grid-template-columns: 1fr; gap: 0; }
  .faq-col .faq-item:last-child { border-bottom: 1px solid var(--faq-line); }
  .faq-cols .faq-col:last-child .faq-item:last-child { border-bottom: none; }
  .metrics { flex-wrap: wrap; }
  .metric { width: calc(50% - 12px); }
  h2 { font-size: 32px; }
  .about h2 { font-size: 30px; }
  .cap-cards { grid-template-columns: 1fr; }
  .cap-card { padding: 22px 20px 24px; }
  /* 平板以下：页脚改单列，二维码保留在最底部（长按可识别） */
  .eco-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .footer-right { text-align: left; }
  .footer-wx { width: fit-content; gap: 11px; padding: 8px 14px 8px 8px; }
  .footer-wx-qr { width: 78px; height: 78px; }
  .footer-wx-cap .wx-d { display: none; }
  .footer-wx-cap .wx-m { display: block; }
}
@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .brand { gap: 8px; }
  .brand-mark { height: 28px; }
  .brand-en { font-size: 16px; letter-spacing: 0.02em; }
  .brand-sub { font-size: 10px; }
  .nav-drawer { width: min(280px, 76vw); }
  .nav-drawer-links a { padding: 17px 22px; font-size: 14.5px; }
  .nav-drawer-phone { margin: 16px 16px 20px; padding: 13px 16px; }
  .module-grid, .step-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 36px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-fig { display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
  .fig-sep { display: none; }
  .metric-num { font-size: clamp(26px, 8vw, 32px); }
  .br-wide { display: none; }  /* 手机端取消设计稿的硬换行，交给自动均衡 */
  .capability { margin-top: 40px; padding: 26px 20px 22px; border-radius: 14px; }
  /* 只保留「，」后的设计断行：连续缩放让第二行（13 字）在 320–430 都能放得下，
     否则自动均衡会把「每个」拆到两行 */
  .capability-title { font-size: clamp(17.5px, 5.5vw, 22px); }
  .capability-title .br-wide { display: inline; }
  .capability-lead { font-size: 13.5px; }
  .capability-list { grid-template-columns: 1fr; gap: 13px; margin-top: 24px; padding-top: 22px; }
  .capability-list li { font-size: 13.5px; }
  .capability-note { font-size: 11.5px; }
  .company-name { font-size: 18px; }
  .cta-bar, .consult-bar { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .consult-right, .footer-right { text-align: left; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-eco { padding: 30px 0 28px; }
  .eco-head { padding-bottom: 14px; }
  /* 手机上省掉这枚装饰性小标，避免标题被挤到第二行 */
  .eco-key { display: none; }
  .eco-name { font-size: 16px; }
  .eco-grid { gap: 20px; padding-top: 20px; }
  .eco-links { gap: 2px 16px; }
  .eco-group-title { font-size: 13px; margin-bottom: 7px; }
  .eco-links a { font-size: 13px; }
  .eco-note { margin-top: 20px; padding-top: 14px; font-size: 11px; }
  .footer-bar { padding: 26px 0; }
  .nav-drawer-wx { margin: 0 16px 18px; padding: 12px 16px; }
  .wx-modal { max-width: min(92vw, 330px); }
  .wx-modal-card { padding: 26px 20px 22px; border-radius: 18px; }
  .wx-modal-qr { width: min(66vw, 240px); height: min(66vw, 240px); }
}

/* ---------- 矮屏手机（≤620px 高，如 iPhone SE / 小屏安卓）----------
   高度不够时整体收一档间距，保证 5 个导航项 + 电话 / 企微 / 抖音三个入口
   全部在天窗内可见，不把「常见问题」挤进滚动区。写在最后以覆盖窄屏规则。 */
@media (max-height: 620px) {
  .nav-drawer .nav-drawer-links a { padding: 11px 20px; font-size: 14.5px; }
  .nav-drawer .nav-drawer-phone { margin: 12px 16px; padding: 11px 16px; }
  .nav-drawer .nav-drawer-wx { margin: 0 16px 10px; padding: 10px 16px; }
  .nav-drawer .nav-drawer-dy { margin: 0 16px 12px; padding: 10px 16px; }
}
