/* ==========================================================================
   境德智能 · 稽真 — 品牌视觉规范 / 共享样式表
   调性：医疗科技蓝 · 专业 · 可信 · 数据感
   ========================================================================== */

/* ---------- 1. 设计 Token ---------- */
:root {
  /* 品牌主色阶 */
  --brand-950: #041F40;
  --brand-900: #062E5C;
  --brand-800: #0A3D7C;
  --brand-700: #0B4F9E;
  --brand-600: #1361C4;
  --brand-500: #2E7BF6;
  --brand-300: #7FB0F8;
  --brand-100: #E3EDFB;
  --brand-50:  #F0F6FE;

  /* 青色点缀 */
  --cyan-600: #0893A0;
  --cyan-500: #00B9C7;
  --cyan-400: #12D0D8;
  --cyan-100: #DFF8FA;

  /* 中性色 */
  --ink-900: #0F1F33;
  --ink-800: #1B2E45;
  --ink-700: #33475F;
  --ink-500: #5A6B80;
  --ink-400: #8496AC;
  --ink-300: #AEBBCB;
  --line:    #E3EBF5;
  --line-2:  #EFF4FA;
  --bg:      #F5F8FC;
  --bg-2:    #FAFCFE;
  --white:   #FFFFFF;

  /* 语义色（风险等级） */
  --danger: #DC2626;
  --danger-bg: #FEECEC;
  --warn: #E8801A;
  --warn-bg: #FEF3E6;
  --ok: #16A34A;
  --ok-bg: #E9F8EF;
  --info: var(--brand-600);
  --info-bg: var(--brand-100);

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(15, 31, 51, .05);
  --sh-sm: 0 1px 2px rgba(15, 31, 51, .05), 0 4px 14px rgba(15, 31, 51, .05);
  --sh-md: 0 8px 28px rgba(11, 79, 158, .09);
  --sh-lg: 0 20px 52px rgba(11, 79, 158, .14);
  --sh-glow: 0 10px 30px rgba(46, 123, 246, .32);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    Roboto, Helvetica, Arial, sans-serif;
  --font-num: "Inter", "Segoe UI", "DIN Alternate", ui-sans-serif, system-ui, sans-serif;

  /* 布局 */
  --maxw: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 兜底：任何情况下都不出现横向滚动 */
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--brand-500); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD8E8; border: 3px solid transparent; background-clip: content-box; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #A9BDD6; background-clip: content-box; }

/* ---------- 3. 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--bg { background: var(--bg); }
.section--dark { background: var(--brand-950); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }

/* ---------- 4. 排版组件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-500); box-shadow: 0 0 0 3px var(--cyan-100);
}
.section--dark .eyebrow {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: var(--cyan-400);
}

.h-title { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; }
.h-sub { font-size: clamp(24px, 3vw, 36px); }
.h-card { font-size: 18px; }
.lead { font-size: 17px; color: var(--ink-500); max-width: 720px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head .lead { margin-top: 16px; }

.text-cyan { color: var(--cyan-500); }
.text-brand { color: var(--brand-600); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: all .22s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(46,123,246,.42); }
.btn--ghost { background: var(--white); color: var(--brand-700); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.btn--ghost:hover { border-color: var(--brand-300); background: var(--brand-50); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 6. 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(15,31,51,.05); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 26px; }
.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__logo-mark { width: 34px; height: 34px; }
.nav__logo-text { font-size: 17px; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; white-space: nowrap; }
.nav__logo-text span { color: var(--brand-600); font-weight: 500; font-size: 13px; margin-left: 6px; letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 8px 12px; border-radius: var(--r-xs);
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__cta .btn { white-space: nowrap; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: var(--r-xs); align-items: center; justify-content: center; }
.nav__burger span { position: relative; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .25s; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .25s;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

.nav__mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
  box-shadow: var(--sh-md); z-index: 890;
}
.nav__mobile a { display: block; padding: 13px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line-2); color: var(--ink-800); }
.nav__mobile .btn { margin-top: 18px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 84px) 0 96px;
  background:
    radial-gradient(1000px 560px at 82% 8%, rgba(0,185,199,.09), transparent 62%),
    radial-gradient(900px 620px at 6% 0%, rgba(46,123,246,.10), transparent 58%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--white) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,79,158,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11,79,158,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 34%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 34%, #000 12%, transparent 72%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; }
/* grid 的 1fr 默认最小宽度是 auto，长文本子项会把列撑破，进而让整页横向溢出 */
.hero__inner > * { min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.16; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand-600), var(--cyan-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__desc { margin-top: 24px; font-size: 17.5px; line-height: 1.75; color: var(--ink-500); max-width: 560px; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-500);
}
.hero__tag svg { width: 15px; height: 15px; color: var(--ok); }

/* Hero 数据面板 */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.panel__dot { width: 9px; height: 9px; border-radius: 50%; background: #DEE7F2; }
.panel__dot:nth-child(1) { background: #FF6058; }
.panel__dot:nth-child(2) { background: #FFBD2E; }
.panel__dot:nth-child(3) { background: #29CA41; }
.panel__title { margin-left: 8px; font-size: 12.5px; color: var(--ink-400); font-weight: 500; }
.panel__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ok); font-weight: 600; }
.panel__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.panel__body { padding: 20px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-mini { padding: 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); min-width: 0; }
.kpi-mini__label { font-size: 11.5px; color: var(--ink-400); }
.kpi-mini__val { font-size: 21px; font-weight: 700; color: var(--ink-900); margin-top: 2px; line-height: 1.2; }
.kpi-mini__val small { font-size: 12px; font-weight: 500; color: var(--ink-400); margin-left: 2px; }
.kpi-mini--danger .kpi-mini__val { color: var(--danger); }
.kpi-mini--ok .kpi-mini__val { color: var(--ok); }

.alert-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 13px;
}
.alert-item__code {
  font-family: var(--font-num); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; background: var(--danger-bg); color: var(--danger); flex-shrink: 0;
}
.alert-item__code--warn { background: var(--warn-bg); color: var(--warn); }
.alert-item__code--ok { background: var(--ok-bg); color: var(--ok); }
.alert-item__text { color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.alert-item__amt { margin-left: auto; font-family: var(--font-num); font-weight: 700; color: var(--ink-900); flex-shrink: 0; }

/* 信任条 */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white); padding: 26px 0;
}
.trust__inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.trust__label { font-size: 13px; color: var(--ink-400); font-weight: 500; }
.trust__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.trust__stat b { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--brand-700); line-height: 1.2; }
.trust__stat b sup { font-size: 14px; margin-left: 1px; }
.trust__stat span { font-size: 13px; color: var(--ink-400); }

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-100); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--cyan { background: var(--cyan-100); color: var(--cyan-600); }
.card__icon--danger { background: var(--danger-bg); color: var(--danger); }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.7; }
.card__meta { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--brand-600); font-weight: 600; }

/* 痛点卡 */
.pain { border-left: 3px solid transparent; }
.pain:hover { border-left-color: var(--danger); }
.pain__no { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--ink-300); letter-spacing: .08em; }
.pain h3 { font-size: 16.5px; margin: 8px 0 10px; }
.pain__quote {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--r-xs);
  background: var(--bg); font-size: 13.5px; color: var(--ink-500); font-style: italic;
}

/* ---------- 9. 三层防控 ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer {
  position: relative; padding: 32px 28px 30px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: #fff;
  overflow: hidden;
}
.layer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-500));
}
.layer:nth-child(2)::before { background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400)); }
.layer:nth-child(3)::before { background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); }
.layer__step { font-family: var(--font-num); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brand-500); }
.layer h3 { font-size: 20px; margin: 10px 0 12px; }
.layer > p { font-size: 14.5px; color: var(--ink-500); }
.layer ul { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.layer li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-700); line-height: 1.6; }
.layer li svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.layer__tag {
  display: inline-block; margin-top: 22px; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600;
}

/* ---------- 10. 能力矩阵 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  padding: 26px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); transition: .28s var(--ease);
}
.cap:hover { border-color: var(--brand-300); box-shadow: var(--sh-md); transform: translateY(-3px); }
.cap__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cap__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.cap__ico svg { width: 19px; height: 19px; }
.cap h3 { font-size: 16.5px; }
.cap p { font-size: 14px; color: var(--ink-500); }
.cap__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-500);
}

/* ---------- 11. 规则库 ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rule-list { display: flex; flex-direction: column; gap: 10px; }
.rule-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line);
  transition: .25s var(--ease);
}
.rule-row:hover { border-color: var(--brand-300); transform: translateX(4px); }
.rule-row__bar { width: 4px; height: 30px; border-radius: 2px; background: var(--brand-500); flex-shrink: 0; }
.rule-row__name { font-size: 14.5px; font-weight: 600; color: var(--ink-800); }
.rule-row__desc { font-size: 12.5px; color: var(--ink-400); }
.rule-row__count { margin-left: auto; font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--brand-700); flex-shrink: 0; }
.rule-row__count small { font-size: 11px; font-weight: 500; color: var(--ink-400); margin-left: 2px; }

/* ---------- 12. 案例 ---------- */
.case { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case__head {
  padding: 22px 26px; background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff; position: relative; overflow: hidden;
}
.case__head::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.case__type { font-size: 12px; opacity: .82; letter-spacing: .04em; }
.case__name { font-size: 19px; font-weight: 700; margin-top: 6px; position: relative; z-index: 1; }
.case__body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.case__desc { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.case__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.case__metric { padding: 12px; border-radius: var(--r-sm); background: var(--bg); }
.case__metric b { display: block; font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--brand-700); line-height: 1.3; }
.case__metric span { font-size: 12px; color: var(--ink-400); }
.case__quote { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-500); font-style: italic; }

/* ---------- 13. 交付流程 ---------- */
.steps { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 25px; height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--brand-300), var(--brand-100)); }
.steps__grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.step { text-align: center; }
.step__dot {
  width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
  border: 2px solid var(--brand-300); color: var(--brand-600);
  font-family: var(--font-num); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 6px #fff, var(--sh-xs); position: relative; z-index: 1;
}
.step h4 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--ink-400); line-height: 1.65; }

/* ---------- 14. 部署与安全 ---------- */
.secure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.secure__item {
  padding: 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: .28s var(--ease);
}
.secure__item:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.secure__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,185,199,.14); color: var(--cyan-400); margin-bottom: 16px; }
.secure__ico svg { width: 20px; height: 20px; }
.secure__item h4 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.secure__item p { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.7; }

/* ---------- 15. FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 0; font-size: 16.5px; font-weight: 600; color: var(--ink-900);
  transition: color .2s;
}
.faq__q:hover { color: var(--brand-600); }
.faq__q svg { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; color: var(--ink-400); transition: transform .3s var(--ease); }
.faq__item.is-open .faq__q { color: var(--brand-600); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--brand-600); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .34s var(--ease); }
.faq__a p { padding: 0 0 22px; font-size: 14.5px; color: var(--ink-500); max-width: 780px; }

/* ---------- 16. CTA 表单 ---------- */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 58%, var(--brand-600) 100%);
  color: #fff; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cta-box::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,185,199,.28), transparent 68%);
}
.cta-box__content { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; }
.cta-box p { margin-top: 16px; font-size: 15.5px; color: rgba(255,255,255,.72); max-width: 440px; }
.cta-box__points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.cta-box__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.86); }
.cta-box__points svg { width: 16px; height: 16px; color: var(--cyan-400); flex-shrink: 0; margin-top: 4px; }

.form-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-lg);
}
.form-card h3 { font-size: 19px; margin-bottom: 6px; }
.form-card > p { font-size: 13.5px; color: var(--ink-400); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 14.5px; color: var(--ink-900); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(46,123,246,.12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-400); text-align: center; }
.form-ok {
  display: none; padding: 14px; border-radius: var(--r-sm);
  background: var(--ok-bg); color: #0F7A38; font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.form-ok.is-show { display: block; }
.form-err {
  display: none; padding: 14px; border-radius: var(--r-sm);
  background: var(--danger-bg); color: var(--danger); font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.form-err.is-show { display: block; }
/* 蜜罐字段：视觉上隐藏，但保留在 DOM 中供机器人误填 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--brand-950); color: rgba(255,255,255,.55); padding: 64px 0 32px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand span { color: #fff; font-weight: 700; font-size: 16px; }
.footer__desc { max-width: 300px; line-height: 1.75; font-size: 13.5px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--cyan-400); }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.4); }

/* ---------- 18. 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1150px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { margin-left: auto; }
  .nav__cta .btn { display: none; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__desc { max-width: none; }
  .g-4, .cap-grid, .secure { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-6, .steps__grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps__line { display: none; }
  .rules { grid-template-columns: 1fr; gap: 32px; }
  .cta-box { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .g-3, .g-2, .layers, .cap-grid { grid-template-columns: 1fr; }
  .trust__inner { gap: 20px; }
  .trust__stats { gap: 28px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .g-4, .g-6, .secure, .steps__grid, .case__metrics, .field-row, .kpi-row { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--nav-h) + 52px) 0 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta-box { padding: 28px 22px; border-radius: var(--r-lg); }
  .form-card { padding: 24px 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi-mini { padding: 9px; }
  .kpi-mini__val { font-size: 16px; }
}
