/* （产品名）官网 · 视觉设计版 v3（设计轮，portal 席）
 * 依据：portal-brief v2.0 §3 风格定调 + 用户 10-27 颜色二次裁决（系统为橙色基底，官网弃墨绿）
 * 配色：橙主色（与产品系统一致）× 暖米底（非白）× 琥珀终端（与主色同族）
 * 深橙按钮白字对比 ≈ 4.8:1 达 AA；布局/间距/字阶/动效沿用 v1 构图，未动
 */

:root {
  /* 面与底（暖米，降黄调衬橙） */
  --bg: #f7f5f1;
  --bg-alt: #efece5;
  --surface: #fcfbf8;
  /* 墨阶（暖中性灰） */
  --ink: #211d18;
  --ink-2: #544e46;
  --ink-3: #696158;
  --line: #e6e1d7;
  --line-strong: #ccc5b6;
  /* 主色 · 橙（与产品系统橙色基底一致） */
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --accent-soft: #fbe8dc;
  /* 信号色（成功=绿语义保留；拒绝=深红与主橙拉开距离） */
  --ok: #15804a;
  --warn: #9e3b25;
  /* 终端（琥珀复古终端 · 与主色同族） */
  --term-bg: #211a13;
  --term-bar: #1a140e;
  /* 字体 */
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  /* 间距（8 基数） */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  /* 圆角：容器 12 / 控件 8 */
  --radius: 12px;
  --radius-ctrl: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--s3); }
.wrap--narrow { max-width: 760px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--s3);
  height: 64px; display: flex; align-items: center; gap: var(--s4);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav__logo {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent); color: #fff8f2;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.nav__name { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.nav__links { margin-left: auto; display: flex; gap: var(--s3); }
.nav__links a {
  position: relative; color: var(--ink-2); text-decoration: none; font-size: 15px;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease-out;
}
.nav__links a:hover { color: var(--accent-ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- 按钮（CTA 无动效强调：hover 只换色，不起飞不脉冲） ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-size: 16px; line-height: 1; padding: 15px 30px;
  border-radius: var(--radius-ctrl); border: 1.5px solid transparent; cursor: pointer;
  min-height: 48px; min-width: 48px;
  transition: background-color .15s ease, color .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: #fff8f2; font-weight: 600; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--nav { padding: 10px 20px; font-size: 14px; min-height: 40px; }

/* ---------- S1 Hero：居中式构图（主句大字 + 终端窗口为主视觉） ---------- */
.hero { padding: 112px 0 var(--s5); }
.hero__grid {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--s3);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__copy { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.22; font-weight: 700;
  letter-spacing: .02em;
}
.hero__subtitle {
  margin-top: var(--s2); font-size: clamp(20px, 2.6vw, 27px);
  color: var(--accent-ink); font-weight: 600; letter-spacing: .01em;
}
.hero__cta { margin-top: var(--s4); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__audience { margin-top: var(--s2); color: var(--ink-3); font-size: 15px; }

.hero__visual { margin-top: var(--s4); width: 100%; max-width: 760px; display: flex; flex-direction: column; }

/* Hero 主视觉：数据积木汇聚 v3（v1 散落布局；三枚碎片具象化为图标，浮动同拍） */
.hero__pain { margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--ink-2); }
.hero-viz { position: relative; }
.hero-viz .ag-plain { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1; }
.hero-viz .ag-soft { fill: var(--accent-soft); stroke: var(--line); stroke-width: 1; }
.hero-viz .ag-accent { fill: var(--accent); }
.hero-viz .ag-ico { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.hero-viz .ag-ico--hot { stroke: var(--accent); }
.hero-viz .ag-ico-dot { fill: var(--accent); }
.hero-viz .ag-shape { fill: var(--accent-soft); stroke: var(--line); stroke-width: 1.4; }
.hero-viz .ag-frag, .hero-viz .ag-ico-g, .hero-viz .ag-shape-g { animation: agFloat 3.6s ease-in-out infinite; opacity: .65; }
.hero-viz .ag-frag--d2 { animation-delay: -1.2s; }
.hero-viz .ag-frag--d3 { animation-delay: -2.1s; }
.hero-viz .ag-frag--d4 { animation-delay: -2.9s; }
@keyframes agFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 终端打字层（R-1 引子 · 居中主视觉 · 琥珀终端） */
.term {
  background: var(--term-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #35291d;
  box-shadow: 0 24px 60px -26px rgba(33, 26, 19, .4);
  text-align: left;
}
.term__bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; background: var(--term-bar); }
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3d3021; }
.term__bar em { margin-left: auto; font-style: normal; color: #8a7660; font-family: var(--mono); font-size: 12px; }
.term__line { padding: 24px 20px 10px; font-family: var(--mono); font-size: 16px; color: #f2ebdf; min-height: 64px; }
.term__prompt { color: #ffb86b; margin-right: 9px; }
.term__cursor { display: inline-block; width: 9px; height: 18px; background: #ffcf9e; vertical-align: -3px; margin-left: 2px; }
.term__done { padding: 0 20px 20px; color: #ffb86b; font-size: 13px; font-family: var(--mono); opacity: 0; transition: opacity .4s ease; }
.term.is-done .term__done { opacity: 1; }

/* 截图/录屏占位（诚实占位：不摆拍任何界面） */
.slot {
  margin-top: var(--s2); min-height: 140px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(194, 65, 12, .03) 14px 28px);
  display: grid; place-items: center; padding: 18px;
}
.slot figcaption { color: var(--ink-3); font-size: 13px; text-align: center; line-height: 1.6; opacity: .88; }
.slot figcaption b { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }

/* ---------- S2 能力 · 三支柱 ---------- */
.pillars { padding: var(--s4) 0 var(--s3); }
.pillar { padding: var(--s7) 0; border-top: 1px solid var(--line); }

/* 支柱头：左竖线母题（工程图纸感，三支柱一致） */
.pillar__head {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  max-width: 880px;
}
.pillar__eyebrow {
  color: var(--accent-ink); font-size: 14px; font-weight: 600;
  letter-spacing: 3px;
}
.pillar h2 {
  font-size: clamp(24px, 3.2vw, 36px); font-weight: 700;
  line-height: 1.3; margin-top: 6px; letter-spacing: .01em;
}
.pillar__fact { margin-top: 10px; font-size: 19px; color: var(--ink-2); }
.pillar__closing { margin-top: var(--s5); text-align: center; font-size: 19px; color: var(--ink-2); }

/* 图标短语 */
.chips { margin-top: var(--s3); display: flex; gap: 12px; flex-wrap: wrap; list-style: none; }
.chips li {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 15px; color: var(--ink-2);
}
.chip__ico { color: var(--accent); font-size: 15px; }

/* ---------- 数字位已按 spotlight 23:08 分拣退回库内（页面不再展示内部口径数字） ---------- */
.pillar__sub { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.pillar__body { margin-top: var(--s5); }

/* 双端截图占位（PC ↔ H5） */
.duo { margin-top: var(--s4); display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--s2); align-items: stretch; }
.shot {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); min-height: 260px;
  display: grid; place-items: center; background: var(--surface);
}
.shot figcaption { color: var(--ink-3); font-size: 14px; }

/* ---------- 演示位 ---------- */
.demo-grid {
  margin-top: var(--s4); display: grid; gap: var(--s3);
  grid-template-columns: repeat(2, 1fr);
}
/* 单卡网格自动全宽（流入站仅 R-9 一卡，为横宽录屏预留正确版式，两卡网格不受影响） */
.demo-grid > .demo:only-child { grid-column: 1 / -1; }
.demo-grid--port { grid-template-columns: repeat(2, 1fr); }
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: var(--s2);
}
.demo__head { position: relative; padding-right: 150px; }
.demo__head h3 { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.demo__cap { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.badge {
  position: absolute; top: 2px; right: 0;
  font-size: 12px; color: var(--ink-3); white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg-alt); border-radius: 6px; padding: 3px 9px;
}
.demo__stage {
  background: var(--bg-alt); border-radius: var(--radius-ctrl); padding: 20px;
  min-height: 160px; display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.demo__stage .slot { margin-top: 0; flex: 1; }
.slot--fill { flex: 1; min-height: 170px; margin: 0; }

/* R-6 AI 执行：迷你终端 + 操作卡 */
.mini-term {
  font-family: var(--mono); font-size: 14px;
  background: var(--term-bg); color: #f2ebdf; border-radius: var(--radius-ctrl);
  padding: 13px 15px; min-height: 46px; line-height: 1.6;
}
.mini-term::before { content: "> "; color: #ffb86b; }
.opcard {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-ctrl); padding: 14px 16px;
  opacity: 0; transform: translateY(8px); transition: all .35s ease;
}
.opcard.is-in { opacity: 1; transform: none; }
.opcard__title { font-weight: 600; font-size: 15px; }
.opcard__result { color: var(--ok); font-size: 14px; margin-top: 4px; }
.opcard__result::before { content: "✓ "; }

/* R-8 时间线 */
.demo__stage--timeline { gap: 14px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 46px; height: 25px; border-radius: 999px; background: #c4bdb0; position: relative; transition: background .25s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: left .25s;
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { left: 24px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch__label { font-size: 14px; color: var(--ink-2); }
.timeline {
  list-style: none; font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 8px; max-height: 176px; overflow: hidden;
}
.timeline li { display: flex; gap: 14px; white-space: nowrap; }
.timeline .t { color: var(--ink-3); }
.timeline .deny { color: var(--warn); }
.timeline li.deny .op::after { content: " — 已拒绝：授权已收回"; }

/* R-10 导出 */
.demo__stage--export { align-items: flex-start; }
.exportfile {
  display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-ctrl); padding: 12px 16px;
}
.exportfile__ico { font-size: 20px; }

/* ---------- D-11 三站原型装置（正常代码版：SVG 管线图 + CSS 动效，零框架零库） ---------- */
/* 装置外框：B 档示意语言（角标 + 线框，与真实截图区视觉区分） */
.proto {
  position: relative; margin-top: var(--s4);
  background: var(--surface); border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-ctrl); padding: 26px 26px 18px;
}
.proto > .badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; color: var(--ink-3); white-space: nowrap; opacity: .82;
  border: 1px solid var(--line); background: var(--bg-alt); border-radius: 5px; padding: 2px 7px;
}
.proto__note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-3); }

.fx { display: block; width: 100%; height: auto; }
/* stroke 渐变由各站 path 的 stroke="url(#fxPipeN)" 属性提供（浅橙→深橙流向感），此处不写 stroke 以免 CSS 覆盖 */
.fx-pipe { fill: none; stroke-width: 2.5; opacity: .55; }
.fx-card rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.fx-cardtitle { font-size: 13px; fill: var(--ink-2); text-anchor: middle; }
.fx-srctitle { font-size: 12px; fill: var(--ink-2); text-anchor: middle; }
.fx-src--more rect { stroke-dasharray: 4 3; } /* 虚线卡=开放列举（更多单据） */
.fx-merge { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; stroke-dasharray: 4 5; animation: fxDash 1.4s linear infinite; }
.fx-card line { stroke: var(--line); stroke-width: 1; }
.fx-row { fill: var(--accent-soft); animation: fxRowLight 6s infinite; }
.fx-row2 { animation-delay: -2s; }
.fx-row3 { animation-delay: -4s; }
.fx-row4 { animation-delay: -1s; }
.fx-row5 { animation-delay: -3s; }
/* 点亮时从浅橙底变实橙（闪烁赋予背景色） */
@keyframes fxRowLight {
  0%, 30%, 100% { opacity: .35; fill: var(--accent-soft); }
  40%, 80% { opacity: 1; fill: var(--accent); }
}
.fx-node .fx-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .45; }
.fx-core { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.fx-nodetext { font-size: 14px; font-weight: 700; fill: var(--accent-ink); text-anchor: middle; }
.fx-nodelabel { font-size: 12px; fill: var(--ink-3); text-anchor: middle; }
.fx-ai .fx-ring { animation: fxRingPulse 2.4s ease-out infinite; }
.fx-ai .fx-core { filter: drop-shadow(0 0 5px rgba(194, 65, 12, .3)); }
@keyframes fxRingPulse { 0% { opacity: .75; stroke-width: 2; } 100% { opacity: .12; stroke-width: 1; } }
/* 流入段粒子由 main.js 统一节拍器驱动（1.5s 一槽，入/出间隔固定）；此处只留静态外观 */
.fx-raw { fill: none; stroke: var(--accent); stroke-width: 2; }
.fx-pad { fill: var(--surface); stroke: none; } /* 形状底垫：遮住穿形的流程线，图标浮于线上层 */
.fx-dot { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(194, 65, 12, .45)); }
.fx-bad { fill: none; stroke: var(--warn); stroke-width: 1.7; }
.fx-glow1, .fx-glow2, .fx-glow3, .fx-glow4, .fx-glow5, .fx-glow6 { animation: fxStationGlow 7s linear infinite; }
.fx-glow2 { animation-delay: -1.17s; }
.fx-glow3 { animation-delay: -2.33s; }
.fx-glow4 { animation-delay: -3.5s; }
.fx-glow5 { animation-delay: -4.67s; }
.fx-glow6 { animation-delay: -5.83s; }
@keyframes fxStationGlow { 0%, 16%, 34%, 100% { opacity: .35; } 20%, 27% { opacity: 1; } }
@keyframes fxDash { to { stroke-dashoffset: -14; } }
.fx-ripple {
  fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0;
  animation: fxRipple 2.4s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes fxRipple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.fx-minichart rect { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1; }
.fx-minichart polyline { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .7; }
.fx-minichart .fx-line2 { stroke: var(--accent-ink); opacity: .8; }
/* 分析图表面板：饼图（环形三段）与柱状图（B 档概念示意） */
.fx-pie { fill: none; stroke-width: 13; }
.fx-pie--track { stroke: var(--accent-soft); }
.fx-pie--s1 { stroke: var(--accent); }
.fx-pie--s2 { stroke: var(--accent-ink); }
.fx-minichart .fx-bar { fill: var(--accent); opacity: .8; }
.fx-minichart .fx-bar--alt { fill: var(--accent-ink); }
.fx-minichart .fx-baseline { stroke: var(--line); stroke-width: 1.5; }

/* 处理站：站间链 + AI 覆盖弧（D-11 修订 · 用户减字大气版：装置内无说明小字、无底座背景条） */
.fx-link { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: .55; }
/* AI 作用线：斜线+垂直折线，虚线向下流动（指令下达每一环） */
.fx-ray { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .45; stroke-dasharray: 4 5; stroke-linejoin: round; animation: fxDash 1.4s linear infinite; }

/* 流出站：去向分支（默认通行；数据钥匙收回后断流变淡） */
.fx-branch { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; transition: opacity .5s ease; }
.fx-branch--concept { stroke-dasharray: 5 4; }
.fx-dest-label { font-size: 14px; font-weight: 600; fill: var(--ink); }
.fx-dest-sub { font-size: 11px; fill: var(--ink-3); }
/* 去向卡层级：A 档实线框、B 档虚线框（浅色底统一，层级靠线型与尺寸近等）；主支线加粗 */
.fx-dest--concept rect { stroke-dasharray: 5 4; }
.fx-branch--strong { stroke-width: 3; opacity: .8; }
/* 流出站自由叙事（marketing v1.3）：卡角限定小字 / 开放去向条 */
.fx-dest--open rect { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 4 3; }
.fx-dest-openlabel { font-size: 12px; fill: var(--ink-3); text-anchor: middle; }

/* 装置③ 数据钥匙：锁形开关——默认开锁放行（锁扣掀开），点击上锁断流（锁扣扣下）；不自动循环
   数据点由 main.js 逐点驱动：开=穿过赴去向，关=新点撞回（is-hit 撞击反馈）、在途点走完 */
.fx-auth { cursor: pointer; }
.fx-auth .fx-ring { transition: stroke-width .18s ease, opacity .18s ease; }
.fx-auth:hover .fx-ring { stroke-width: 2.4; opacity: .85; }
.fx-auth.is-hit .fx-ring { stroke-width: 3; opacity: .9; }
.fx-authcore { fill: var(--accent); transition: fill .5s ease; }
.fx-lock__body { fill: #fff8f2; }
.fx-lock__hole { fill: var(--accent); transition: fill .5s ease; }
.fx-lock__shackle { fill: none; stroke: #fff8f2; stroke-width: 1.8; stroke-linecap: round;
  transform-box: fill-box; transform-origin: 0% 100%; transform: rotate(-30deg); transition: transform .3s ease; }
.proto--out.is-closed .fx-authcore { fill: var(--warn); }
.proto--out.is-closed .fx-branch { opacity: .15; }
.proto--out.is-closed .fx-lock__hole { fill: var(--warn); }
.proto--out.is-closed .fx-lock__shackle { transform: rotate(0deg); }

/* 处理站子段（底座 / AI 能力，原文案降级承载） */
.sub { margin-top: var(--s5); }
.sub__title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: .01em; }
.sub .pillar__fact { margin-top: 8px; }

/* ---------- S3 目标段（全站最安静：零持续动画 · 大留白） ---------- */
.vision { padding: 168px 0; background: var(--bg); border-top: 1px solid var(--line); text-align: center; }
.vision__line { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.45; letter-spacing: .01em; }
.vision__line--end { margin-top: var(--s3); color: var(--ink-2); font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; }
.vision__cta { margin-top: var(--s6); }

/* ---------- S4 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 60px 0 44px; }
.footer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer__trust { font-size: 15px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; }
.footer__dot { color: var(--ink-3); }
.footer__contact { font-weight: 600; color: var(--ink); }
.footer__meta, .footer__copy { color: var(--ink-3); font-size: 13px; }

/* ---------- 进场动效（once · 400ms · ease-out，由 main.js 加 .in） ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .45s cubic-bezier(.2, .7, .3, 1), transform .45s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 数字滚动由 JS 驱动；三装置动画见上方 proto 区 */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.term__cursor { animation: blink 1.05s step-end infinite; }

/* ---------- 移动端（≤768px）：密度减半与折叠由 main.js 驱动 ---------- */
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero__copy { max-width: 100%; }
  .hero__visual { margin-top: var(--s4); }
  .term__line { font-size: 14px; min-height: 56px; }
  .pillar { padding: 64px 0; }
  .pillar__body { margin-top: var(--s4); }
  .duo { margin-top: var(--s3); grid-template-columns: 1fr; }
  .demo-grid, .demo-grid--port { grid-template-columns: 1fr; }
  .demo { padding: 22px; }
  .demo__head { padding-right: 0; }
  .badge { position: static; display: inline-block; margin-top: 8px; }
  .nav__links { display: none; }
  /* 演示密度减半：每支柱首个演示位自动呈现，其余收进「查看演示」 */
  .demo.is-folded { display: none; }
  .demo-toggle {
    display: block; width: 100%; text-align: center; padding: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-ctrl); background: var(--surface);
    color: var(--accent-ink); font-size: 15px; cursor: pointer; min-height: 48px;
  }
  /* 三站装置：管线图 SVG 自适应缩放，小屏字号加大保持可读 */
  .fx { min-width: 640px; }
  .proto { overflow-x: auto; }
  .vision { padding: 104px 0; }
}
.demo-toggle { display: none; }

/* ---------- reduced-motion：全站直接呈现终态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .term__cursor { opacity: 1; }
  .opcard { opacity: 1; transform: none; }
  /* SMIL 流动点不受 CSS animation 控制：直接隐藏，装置呈静态管线+节点（数据钥匙默认开态，点击切换仍有效）；Hero 汇聚图在途块与出口块同理隐藏 */
  .fx-dot, .fx-bad { display: none; }
}
