/* ============================================================================
 * 找丫找 官网 · 高保真预览样式
 * ----------------------------------------------------------------------------
 * 取值口径：《设计系统与组件规范》语义色板 / 间距 / 圆角
 * 与 App 的差异：仅扩展 Web 展示字号阶、容器宽度与一个派生阴影，不新增品牌色。
 * 无外部字体、无第三方资源；脚本由 CSP 在设计文档中明确禁用（预览本身零 JS）。
 * ========================================================================== */

/* 1. Design Tokens --------------------------------------------------------- */
:root {
  /* 语义色（App 设计系统同源） */
  --primary: #0B7C8C;
  --primary-dark: #075E6B;
  --primary-light: #E6F6F8;
  --accent: #B4531A;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --success-text: #15803D;
  --warning-text: #B45309;
  --error-text: #B91C1C;
  --text: #1F2937;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F8FAFC;
  --surface: #FFFFFF;

  /* 五大分类色：仅作图形（圆点/色条），不承载文字 */
  --cat-work: #3B82F6;
  --cat-house: #8B5CF6;
  --cat-vehicle: #F97316;
  --cat-life: #10B981;
  --cat-service: #EC4899;

  /* 间距与圆角（4 的倍数） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Web 专属派生值 */
  --container: 1120px;
  --pad-x: 24px;
  --section-y: clamp(56px, 8vw, 96px);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-phone: 0 24px 64px rgba(15, 23, 42, .18);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  /* 字号阶 */
  --fs-display: clamp(34px, 4.6vw, 52px);
  --fs-h1: clamp(28px, 3.4vw, 40px);
  --fs-h2: clamp(22px, 2.4vw, 28px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.container.narrow { max-width: 820px; }

/* 跳过导航（键盘可达） */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* 预览专用提示与占位符：上线前必须移除 */
.preview-banner { padding-top: var(--sp-4); }

.design-note {
  margin: 0 0 var(--sp-4);
  padding: 10px 14px;
  border: 1px dashed var(--warning);
  border-radius: var(--radius-s);
  background: #FFFBEB;
  color: var(--warning-text);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.placeholder {
  color: var(--text-2);
  border-bottom: 1px dashed var(--text-3);
  padding-bottom: 1px;
}

/* 3. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-size: 20px; letter-spacing: .5px; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: var(--fs-small);
}
.nav a {
  color: var(--text-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 4. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--bg) 0%, #EFF8F9 62%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.hero h1 {
  margin-top: var(--sp-6);
  font-size: var(--fs-display);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  white-space: nowrap;
}

.hero .lead {
  margin-top: var(--sp-6);
  max-width: 34em;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-body);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.hero-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-caption);
  color: var(--text-3);
}

/* Hero 右侧：同心波纹 + 双手机 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  padding-top: var(--sp-2);
}
.ripple {
  position: absolute;
  right: -12%;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
}
.phone {
  background: #0F172A;
  border-radius: 38px;
  padding: 6px;
  box-shadow: var(--shadow-phone);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  display: block;
}
.phone-home { width: 224px; transform: rotate(-2.5deg); }
.phone-ai { width: 182px; transform: rotate(2.5deg) translateY(24px); }

/* 5. Sections ------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section.tinted { background: #F1F8F9; }
.section.surface { background: var(--surface); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.section-kicker {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  text-transform: uppercase;
}
.section-head h2,
.intro h2,
.doc-title {
  margin-top: var(--sp-3);
  font-size: var(--fs-h1);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-sub {
  margin-top: var(--sp-4);
  color: var(--text-2);
}

/* 6. 应用简介 ------------------------------------------------------------- */
.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.intro-quote {
  margin-top: var(--sp-6);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.intro-quote::before,
.intro-quote::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin: 0 auto var(--sp-6);
}
.intro-quote::after { margin: var(--sp-6) auto 0; }
.intro-meta {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--text-3);
}

/* 7. 功能卡 --------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 32px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 124, 140, .35);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  margin-top: var(--sp-4);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
}
.card p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.75;
}

.chips {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: var(--fs-caption);
  color: var(--text-2);
  line-height: 1.6;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot-work { background: var(--cat-work); }
.dot-house { background: var(--cat-house); }
.dot-vehicle { background: var(--cat-vehicle); }
.dot-life { background: var(--cat-life); }
.dot-service { background: var(--cat-service); }
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-error { background: var(--error); }

/* 8. 三步 ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-6) 0;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-body);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 56px;
  right: 8px;
  border-top: 2px dashed rgba(11, 124, 140, .28);
}
.step h3 {
  margin-top: var(--sp-4);
  font-size: var(--fs-h3);
  font-weight: 600;
}
.step p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-small);
}

/* 9. 信任面板 ------------------------------------------------------------- */
.trust {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.trust .section-kicker { color: rgba(255, 255, 255, .7); }
.trust h2 {
  margin-top: var(--sp-3);
  font-size: var(--fs-h1);
  line-height: 1.25;
  font-weight: 700;
}
.trust .trust-lead {
  margin-top: var(--sp-4);
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-small);
}
.trust-list { display: grid; gap: var(--sp-4); }
.trust-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
}
.trust-item svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-top: 2px;
}
.trust-item strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
}
.trust-item span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* 10. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr 1.3fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-brand p {
  color: var(--text-2);
  font-size: var(--fs-small);
  max-width: 26em;
}
.footer-appinfo {
  margin-top: var(--sp-2);
  color: var(--text-3) !important;
  font-size: var(--fs-caption) !important;
}
.footer-col h3 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-2);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-caption);
}
.footer-disclaimer {
  padding-bottom: var(--sp-6);
  color: var(--text-3);
  font-size: var(--fs-caption);
  line-height: 1.7;
}

/* 11. 协议页 ------------------------------------------------------------- */
.doc-main { padding: var(--sp-12) 0 var(--section-y); }
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  min-width: 0;
}
.doc-toc {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: var(--sp-4);
}
.doc-toc h2 {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}
.doc-toc ol { display: grid; gap: 6px; }
.doc-toc a {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.6;
  padding: 4px 6px;
  border-radius: 6px;
}
.doc-toc a:hover { background: var(--primary-light); color: var(--primary-dark); }

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 48px);
  max-width: 840px;
  min-width: 0;
}
.doc h1 {
  font-size: var(--fs-h2);
  line-height: 1.35;
  font-weight: 700;
}
.doc-meta {
  margin-top: var(--sp-2);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-caption);
}
.doc h2 {
  margin-top: var(--sp-8);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.doc h2:first-of-type { margin-top: var(--sp-6); }
.doc h3 {
  margin-top: var(--sp-6);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.doc p,
.doc li {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
}
.doc ol.numbered { list-style: decimal; padding-left: 1.4em; }
.doc ul.numbered { list-style: disc; padding-left: 1.4em; }
.doc ol.numbered li,
.doc ul.numbered li { margin-top: var(--sp-2); }
.doc strong { font-weight: 600; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.doc .table-scroll {
  margin-top: var(--sp-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doc .table-scroll table { margin-top: 0; }
.doc table thead th {
  background: var(--primary-light);
  color: var(--text);
  font-weight: 600;
}
.doc table th,
.doc table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.doc table.wide { min-width: 720px; }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.doc-back:hover { color: var(--primary); }

/* 11b. 下载区（v1.1） ---------------------------------------------------- */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.meta-sep { color: var(--text-3); }

.download-main .hero-actions { margin-top: var(--sp-6); }
.download-note {
  margin-top: var(--sp-3);
  color: var(--text-2);
  font-size: var(--fs-caption);
  line-height: 1.7;
}
.design-note-inline {
  margin-top: var(--sp-3);
  padding: 8px 12px;
  border: 1px dashed var(--warning);
  border-radius: var(--radius-s);
  background: #FFFBEB;
  color: var(--warning-text);
}
.store-row {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--text-3);
  font-size: var(--fs-caption);
}
.store-chip em {
  font-style: normal;
  color: var(--warning-text);
  font-size: 11px;
}

.qr-panel {
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.qr-box {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto var(--sp-3);
  border: 2px dashed var(--text-3);
  border-radius: var(--radius-m);
  background: var(--bg);
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: var(--fs-caption);
}
.qr-note { margin-top: var(--sp-1); color: var(--text-3); font-size: 11px; }

.verify-card {
  margin-top: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px);
}
.verify-head h3 { font-size: var(--fs-h3); font-weight: 600; }
.verify-head p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.verify-grid {
  margin: var(--sp-6) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-6);
}
.verify-grid > div { min-width: 0; }
.verify-grid dt { color: var(--text-3); font-size: var(--fs-caption); }
.verify-grid dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
}
.verify-wide { grid-column: 1 / -1; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  word-break: break-all;
}

.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* 11c. 运行流程图页（v1.1） ----------------------------------------------- */
.flow-head {
  max-width: 780px;
  margin: 0 auto var(--sp-8);
  text-align: center;
}
.flow-head h1 {
  font-size: var(--fs-h1);
  line-height: 1.25;
  font-weight: 700;
}
.flow-head .flow-sub {
  margin-top: var(--sp-3);
  color: var(--text-2);
}
.flow-id {
  margin: var(--sp-6) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-caption);
}
.flow-id strong { color: var(--text); }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
.flow-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--sp-4);
  text-align: center;
}
.flow-step {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.flow-shot {
  width: 100%;
  max-width: 250px;
  margin: var(--sp-3) auto 0;
  padding: 4px;
  border-radius: 22px;
  background: #0F172A;
}
.flow-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.flow-item h3 {
  margin-top: var(--sp-4);
  font-size: var(--fs-body);
  font-weight: 600;
}
.flow-item p {
  margin-top: var(--sp-1);
  color: var(--text-2);
  font-size: var(--fs-caption);
  line-height: 1.7;
}
.flow-actions {
  margin-top: var(--sp-8);
  text-align: center;
}
.flow-actions .btn { margin: 0 6px 12px; }
.flow-actions p {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.flow-actions .design-note-inline {
  margin: var(--sp-3) auto 0;
  max-width: 640px;
  color: var(--warning-text);
  background: #FFFBEB;
  text-align: left;
}

/* 12. 响应式 ------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-visual { min-height: 400px; }
  .phone-home { width: 210px; }
  .phone-ai { width: 172px; }
  .ripple { width: 500px; height: 500px; right: -20%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; min-height: 0; padding-top: var(--sp-8); }
  .hero .lead { max-width: none; }
  .trust { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
  }
  .doc-toc h2 { margin: 0 var(--sp-2) 0 0; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 var(--sp-6) 56px; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::after {
    top: 48px;
    bottom: -4px;
    left: 19px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed rgba(11, 124, 140, .28);
  }
  .step h3, .step p { margin-top: 0; }
  .step h3 { margin-top: var(--sp-1); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; }
  .download-panel { grid-template-columns: 1fr; }
  .qr-panel { margin-top: var(--sp-2); }
  .verify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 559px) {
  .nav { gap: var(--sp-4); font-size: var(--fs-caption); }
  .nav a[href="#features"],
  .nav a[href="#how"],
  .nav a[href="#download"],
  .nav a[href="flow.html"],
  .nav a[href="index.html#features"],
  .nav a[href="index.html#download"] { display: none; }
  .brand-name { font-size: 18px; }
  .phone-ai { display: none; }
  .phone-home { width: min(78vw, 280px); transform: none; }
  .hero-visual { padding-top: var(--sp-6); }
  .ripple { width: 380px; height: 380px; right: -30%; }
  .hero h1 br { display: none; }
  .btn { width: 100%; }
  .intro-quote::before, .intro-quote::after { width: 28px; }
  .verify-grid { grid-template-columns: 1fr; }
  .meta-sep { display: none; }
}

/* 13. 打印（协议页） ------------------------------------------------------ */
@media print {
  .site-header, .doc-toc, .site-footer, .doc-back, .design-note { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc-main { padding: 0; }
  .doc {
    border: 0;
    border-radius: 0;
    padding: 0;
    max-width: none;
  }
  .doc a { color: #000; text-decoration: underline; }
  .doc h2 { page-break-after: avoid; }
}

/* 14. 减少动态效果 -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
