/* ==========================================================================
   DealBuddy 购物搭子 — 落地页样式 v2
   形态：README 式文档流 · Editorial Paper 工艺升级
   （暖纸底 + 墨蓝 + 琥珀；账册双线、印版相框、字段批注、letterpress 按钮）
   ========================================================================== */

:root {
  /* 纸面 */
  --paper: #FAF6EE;
  --paper-2: #F2EBDD;
  --card: #FFFDF8;
  /* 墨色 */
  --ink: #172033;
  --body: #3A4254;
  --muted: #5C6577;
  --line: rgba(23, 32, 51, 0.16);
  --line-dash: rgba(23, 32, 51, 0.22);
  /* 品牌 */
  --blue: #1D4ED8;
  --blue-bright: #2563EB;
  --cyan: #0E7490;
  --amber: #FBBF24;
  --amber-ink: #8A5A06;
  --amber-line: #B45309;
  --amber-soft: rgba(251, 191, 36, 0.46);
  /* 墨蓝面板（报告样张 / 代码块） */
  --panel: #0F172A;
  --panel-2: #14203A;
  --panel-card: #0B1322;
  --panel-text: #E8EDF6;
  --panel-body: #C3CDE0;
  --panel-muted: #8FA0BC;
  --panel-line: rgba(148, 163, 184, 0.2);
  /* 字体 */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* 纸纹 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.12 0 0 0 0 0.2 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --wrap-max: 1120px;
  --doc-max: 800px;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

a:hover { color: var(--blue-bright); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(23, 32, 51, 0.07);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere; /* 长 URL / 路径在窄屏可断行；pre 内不受影响 */
}

::selection { background: var(--amber-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; color: var(--paper); }

/* ---------- 按钮：letterpress（硬投影，按下归位） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}

.btn svg { flex: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover { background: var(--blue-bright); color: #fff; }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(23, 32, 51, 0.3);
}

.btn-ghost:hover { background: #fff; color: var(--ink); }

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-sm:active { transform: translate(2px, 2px); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
}

.nav-inner {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-name em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 26px);
}

.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 2px;
}

.nav-links a:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-github {
  color: var(--ink);
  display: inline-flex;
  padding: 8px;
  border-radius: 8px;
}

.nav-github:hover { color: var(--blue); }

/* ---------- 文档骨架 ---------- */
.doc {
  max-width: var(--doc-max);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 76px) clamp(20px, 4vw, 32px) clamp(72px, 9vw, 110px);
  counter-reset: fig;
}

/* 文档头 */
h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tagline {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.9;
  max-width: 36em;
}

.meta-line {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.meta-line span:not(:last-child)::after {
  content: " / ";
  color: rgba(23, 32, 51, 0.35);
  margin: 0 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.cta-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 章节：账册双线 + 静态页边码 */
.doc-section {
  position: relative;
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 34px;
}

.doc-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  pointer-events: none;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.doc-section > p { margin-bottom: 14px; }

h3 {
  font-size: 1.22rem;
  font-weight: 750;
  margin: 30px 0 12px;
}

/* 页边码（≥1200px，静态档案页标） */
@media (min-width: 1200px) {
  .doc-section::before {
    content: attr(data-folio);
    position: absolute;
    top: 30px;
    left: -148px;
    width: 108px;
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: rgba(23, 32, 51, 0.42);
    border-right: 2px solid var(--amber);
    padding-right: 14px;
    line-height: 1.4;
  }
}

/* ---------- 列表与目录 ---------- */
.plain-list {
  margin: 0 0 14px;
  padding-left: 1.3em;
}

.plain-list li { margin-bottom: 4px; }

.plain-list li::marker { color: var(--amber-line); }

.toc {
  margin-top: 38px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 3px 3px 0 rgba(23, 32, 51, 0.12);
  padding: 18px 24px 20px;
}

.toc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 40px; }
}

.toc li {
  counter-increment: toc;
  break-inside: avoid;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--blue);
  margin-right: 12px;
}

.toc a {
  display: inline-block;
  padding: 5px 0;
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }

.toc a.current {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--amber);
}

/* ---------- 组成 ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 18px 0 6px;
}

.flow span {
  border: 1.5px solid var(--ink);
  background: var(--card);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(23, 32, 51, 0.15);
}

.flow i {
  font-style: normal;
  color: var(--amber-line);
  margin: 0 10px;
  font-weight: 700;
}

.component {
  margin-top: 34px;
  padding-top: 6px;
}

.component > p { margin-bottom: 12px; }

.io {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 14px 0;
}

.io dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber-ink);
  border: 1px solid rgba(180, 83, 9, 0.5);
  border-radius: 999px;
  padding: 2px 0 2px 4px;
  text-align: center;
}

.io dd { margin: 0; }

.ui-str {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(23, 32, 51, 0.35);
  border-radius: 6px;
  padding: 1px 10px;
  margin: 0 5px 3px 0;
  box-shadow: 2px 2px 0 rgba(23, 32, 51, 0.15);
}

/* ---------- 图版：印版式相框 + 自动编号 ---------- */
.doc-fig {
  margin: 30px 0 26px;
  counter-increment: fig;
}

.fig-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  outline: 1px solid rgba(23, 32, 51, 0.35);
  outline-offset: 4px;
  padding: 8px;
  margin: 5px;
}

.fig-frame img {
  display: block;
  border: 1px solid rgba(23, 32, 51, 0.3);
}

.doc-fig figcaption {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.doc-fig figcaption::before {
  content: "图 " counter(fig) "：";
  font-weight: 700;
  color: var(--ink);
}

/* 印章（全页唯一弹性动效） */
.stamp {
  position: absolute;
  right: -10px;
  bottom: -18px;
  transform: rotate(-8deg);
  border: 2.5px solid var(--amber-line);
  color: var(--amber-line);
  background: rgba(250, 246, 238, 0.94);
  border-radius: 10px;
  padding: 8px 12px 6px;
  text-align: center;
  box-shadow: 0 6px 16px -8px rgba(23, 32, 51, 0.4);
}

.stamp b {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.stamp i {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.js .doc-section.in .stamp {
  animation: stamp-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-8deg) scale(1.55); }
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* ---------- 报告样张 ---------- */
.specimen-fig { margin-top: 26px; }

@media (min-width: 1080px) and (hover: hover) {
  .specimen-fig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 28px;
  }

  .specimen-fig figcaption { grid-column: 1 / -1; }

  .specimen-footnotes { display: none; }
}

.specimen {
  min-width: 0;
  background: var(--panel-card);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.55);
}

/* 齿孔边条 */
.specimen::before {
  content: "";
  display: block;
  height: 9px;
  border-radius: 12px 12px 0 0;
  background-image: radial-gradient(circle at 7px 4px, var(--paper) 2.4px, transparent 2.9px);
  background-size: 16px 9px;
}

.specimen-tab {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.specimen-tab span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--panel-muted);
  letter-spacing: 0.05em;
}

.specimen-body {
  padding: 20px 22px 24px;
  overflow: visible;
}

.r-line {
  position: relative;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.9;
  color: #B9C6DC;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.r-line p { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }

.r-h { color: #F4F7FD; font-weight: 700; }
.r-h2 { color: #7DD3FC; font-weight: 700; margin-top: 12px; }
.r-q { color: #94A6C4; margin: 10px 0; }
.r-k { color: var(--amber); }

.r-line sup {
  color: #7DD3FC;
  font-family: var(--sans);
  font-size: 0.7rem;
  margin-left: 4px;
}

.r-note-line {
  cursor: default;
  border-radius: 4px;
  white-space: normal; /* 容器内是结构化子元素，避免源码缩进被 pre-wrap 渲染成空行 */
}

.r-note-line:hover,
.r-note-line:focus {
  background: rgba(148, 163, 184, 0.1);
}

/* 宽屏批注：绝对定位于卡片右侧留白，不引起布局位移 */
.r-note {
  position: absolute;
  left: calc(100% + 30px);
  top: 0;
  width: 196px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--body);
  border-left: 2.5px solid var(--amber);
  padding-left: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  display: none;
}

@media (min-width: 1080px) and (hover: hover) {
  .r-note { display: block; }
}

.r-note-line:hover .r-note,
.r-note-line:focus .r-note {
  opacity: 1;
  transform: none;
}

/* 窄屏 / 触屏：静态脚注 */
.specimen-footnotes {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.specimen-footnotes li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.7;
}

/* ---------- 价格口径表 ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: 1rem;
}

.spec-table th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  border-bottom: 2.5px solid var(--ink);
  padding: 8px 12px 10px;
}

.spec-table td {
  border-bottom: 1px dashed var(--line-dash);
  padding: 12px;
  vertical-align: top;
  line-height: 1.7;
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 8em;
}

/* 记号笔（仅字段标注，draw-in） */
.mk {
  color: inherit;
  padding: 0 0.08em;
  background: linear-gradient(0deg, var(--amber-soft), var(--amber-soft)) no-repeat left bottom 10% / 100% 46%;
}

.js .doc-section .mk {
  background-size: 0% 46%;
  transition: background-size 0.6s ease 0.35s;
}

.js .doc-section.in .mk { background-size: 100% 46%; }

.disclaimer {
  margin: 22px 0 0;
  border-left: 4px solid var(--amber);
  background: rgba(251, 191, 36, 0.1);
  padding: 14px 20px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- 安装步骤 ---------- */
.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  border-top: 1.5px dashed var(--line-dash);
  padding: 24px 0 24px 62px;
}

.steps > li:last-child { border-bottom: 1.5px dashed var(--line-dash); }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 4px;
  top: 26px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }

.steps p { margin-bottom: 8px; }

/* ---------- 代码块 + 复制按钮 ---------- */
.code {
  position: relative;
  background: var(--panel-2);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 15px 18px;
  margin: 12px 0;
  overflow-x: auto;
}

.code code {
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: #D7E1F2;
  white-space: pre;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 62px;
  font: 600 0.75rem var(--sans);
  color: #D7E1F2;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.code-copy:hover { background: rgba(148, 163, 184, 0.28); }

.code-copy.ok {
  color: var(--panel-card);
  background: var(--amber);
  border-color: var(--amber);
}

/* ---------- 数据边界 ---------- */
.boundary-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.boundary-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px dashed var(--line-dash);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  box-shadow: -3px 3px 0 rgba(251, 191, 36, 0.35);
}

.text-link {
  font-weight: 600;
}

.text-link::after {
  content: " →";
  color: var(--amber-line);
}

/* ---------- FAQ ---------- */
.faq-list details { border-top: 1.5px solid var(--line); }
.faq-list details:last-child { border-bottom: 1.5px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 4px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:hover { color: var(--blue); }

.faq-list summary svg {
  flex: none;
  transition: transform 0.25s ease;
  color: var(--muted);
}

.faq-list details[open] summary svg { transform: rotate(180deg); }

.faq-list details p {
  padding: 0 4px 22px;
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] p { animation: faq-in 0.3s ease; }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--paper-2) var(--grain);
  border-top: 3px solid var(--ink);
  padding-top: clamp(36px, 5vw, 52px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.footer-brand img {
  display: block;
  width: min(260px, 64vw);
  height: auto;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-links-row a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links-row a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  margin-top: clamp(24px, 4vw, 36px);
  border-top: 1px dashed var(--line-dash);
  padding-block: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px 32px;
  flex-wrap: wrap;
}

.footer-legal p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- 渐显（每节一次；JS 可用且未减动效时才启用） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* 账册双线生长 */
.js .doc-section.reveal::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.js .doc-section.reveal.in::after { transform: scaleX(1); }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .steps > li { padding-left: 50px; }

  .steps > li::before {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    top: 27px;
  }

  .flow i { margin: 0 7px; }

  .io { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 420px) {
  .brand-name em { display: none; }

  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .doc-section.reveal::after {
    transform: none;
    transition: none;
  }
}
