/* 查扫录USB版 · 官网与使用指南 */
:root {
  color-scheme: light;
  --ink: #0d1320;
  --ink-2: #2b3445;
  --muted: #5b6577;
  --faint: #8a93a3;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e3e1d9;
  --line-2: #d6d3c8;
  --blue: #1d5bd6;
  --blue-2: #3f7bf0;
  --blue-soft: #e9effc;
  --rec: #ef4444;
  --ok: #16a34a;
  --night: #0b1020;
  --night-line: rgba(255, 255, 255, .1);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 19, 32, .05), 0 12px 32px -12px rgba(13, 19, 32, .13);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .18), 0 32px 68px -22px rgba(11, 16, 32, .48);
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand-logo { display: block; flex: none; width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 2px; font-size: 14px; }
nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
nav a:hover { color: var(--ink); background: rgba(13, 19, 32, .05); }

/* ---------- 通用区块与排版 ---------- */
.section { padding-block: 76px; }
.sec-head { max-width: 600px; margin-bottom: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.sec-head h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.24; font-weight: 700; letter-spacing: -.005em; }
.sec-head h2:first-child { margin-top: 0; }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.75; }
h3 { font-size: 16.5px; font-weight: 700; line-height: 1.45; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.btn-disabled { color: #b7c2d6; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .24); cursor: not-allowed; width: 100%; }

/* ---------- 首屏：下载软件 + 三步装好 ---------- */
.quickstart { padding-block: 44px 68px; }
.qs-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 28px; align-items: stretch; }
.dl-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 36px 34px 32px; border-radius: 22px; color: #fff;
  background: radial-gradient(80% 110% at 100% 0%, rgba(46, 104, 230, .44), transparent 62%), var(--night);
  box-shadow: var(--shadow-lg);
}
.dl-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(135deg, transparent 35%, #000);
  -webkit-mask-image: linear-gradient(135deg, transparent 35%, #000);
}
.dl-head, .dl-action, .dl-facts { position: relative; z-index: 1; }
.dl-card .eyebrow { color: #7ea6ff; }
.dl-card h1 { margin-top: 10px; font-size: clamp(28px, 3vw, 36px); line-height: 1.24; font-weight: 700; }
.dl-sub { margin-top: 8px; color: #a7b3c9; font-size: 14.5px; }
.dl-note { margin-top: 12px; color: #8c98b3; font-size: 13px; line-height: 1.7; }
.dl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.dl-facts span { display: block; color: #7d89a3; font-size: 12px; }
.dl-facts b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #e6ecf8; }

.qs-steps { padding: 34px 36px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qs-head h2 { margin-top: 10px; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.28; }
.setup-list { counter-reset: n; margin-top: 26px; }
.setup-list li { counter-increment: n; position: relative; padding: 0 0 24px 54px; }
.setup-list li:last-child { padding-bottom: 0; }
.setup-list li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.setup-list li::after { content: ""; position: absolute; left: 17.5px; top: 42px; bottom: 6px; width: 1px; background: var(--line-2); }
.setup-list li:last-child::after { display: none; }
.setup-list p { margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ---------- 高拍仪安装与摆放（1:1 真实场景矢量动画） ---------- */
.hardware { background: var(--card); border-top: 1px solid var(--line); }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-top .sec-head { margin-bottom: 0; }
.ext-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ext-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.ext-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--blue); }
.ext-btn i { font-style: normal; color: var(--faint); font-size: 12px; }
.ext-btn:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); transform: translateY(-1px); }
.ext-btn:hover i { color: var(--blue); }

.scene-box { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.scene-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; background: #eeede7; border-bottom: 1px solid var(--line); }
.scene-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 14px; border: 0; border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.scene-tabs button em {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(13, 19, 32, .08); color: var(--muted); font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 700;
  transition: background .25s, color .25s;
}
.scene-tabs button:hover { color: var(--ink); }
.scene-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(13, 19, 32, .08); }
.scene-tabs button[aria-selected="true"] em { background: var(--blue); color: #fff; }

.scene-stage { padding: 18px 18px 20px; }
.scene-canvas { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #d6dae0; }
.bench-svg { display: block; width: 100%; height: auto; }
.scene-caption { margin-top: 16px; padding: 16px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.scene-caption strong { display: block; font-size: 15px; color: var(--ink); }
.scene-caption p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* 真实场景 SVG 状态过渡与动画 */
.bench-svg .s-camera-unit,
.bench-svg .s-parcel { transform-box: fill-box; transform-origin: center bottom; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.bench-svg .s-base-riser,
.bench-svg .s-tall-riser,
.bench-svg .s-fov-basic,
.bench-svg .s-fov-expand,
.bench-svg .s-paper,
.bench-svg .s-ruler,
.bench-svg .s-film,
.bench-svg .s-usb3,
.bench-svg .s-parcel-label,
.bench-svg .scr-single,
.bench-svg .scr-zone,
.bench-svg .callouts { transition: opacity .4s ease, transform .55s cubic-bezier(.22, 1, .36, 1); }

/* 默认全部辅助层隐藏，按当前场景显示 */
.s-base-riser, .s-tall-riser, .s-fov-expand, .callouts, .scr-zone { opacity: 0; }
.s-base-riser, .s-tall-riser { transform: translateY(16px); }

/* 场景 1：基础摆放 */
[data-scene="basic"] .c-basic,
[data-scene="basic"] .s-fov-basic,
[data-scene="basic"] .s-paper,
[data-scene="basic"] .s-ruler,
[data-scene="basic"] .s-film,
[data-scene="basic"] .s-usb3 { opacity: 1; }
[data-scene="basic"] .usb-ring { transform-box: fill-box; transform-origin: center; animation: usbPulse 1.8s ease-out infinite; }
[data-scene="basic"] .s-film { transform-box: fill-box; transform-origin: left center; animation: filmPeel 2.8s ease-in-out infinite; }
@keyframes usbPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes filmPeel { 0%, 20% { transform: translate(0, 0) rotate(0deg); opacity: .95; } 65% { transform: translate(12px, 14px) rotate(14deg); opacity: .25; } 100% { transform: translate(0, 0) rotate(0deg); opacity: .95; } }

/* 场景 2：垫高拍大包裹（仅高拍仪底座垫 1 个盒子，下方放大包裹） */
[data-scene="raise"] .s-camera-unit { transform: translateY(-58px); }
[data-scene="raise"] .s-base-riser { opacity: 1; transform: translateY(0); }
[data-scene="raise"] .s-parcel { transform: scale(1.18); }
[data-scene="raise"] .s-fov-basic,
[data-scene="raise"] .s-paper,
[data-scene="raise"] .s-ruler,
[data-scene="raise"] .s-film,
[data-scene="raise"] .s-usb3 { opacity: 0; }
[data-scene="raise"] .s-fov-expand,
[data-scene="raise"] .c-raise { opacity: 1; }

/* 场景 3：扫码区 + 打包区（左盒专放面单识别 + 中间黄箱正常打包） */
[data-scene="zone"] .s-camera-unit { transform: translateY(-58px); }
[data-scene="zone"] .s-base-riser,
[data-scene="zone"] .s-tall-riser { opacity: 1; transform: translateY(0); }
[data-scene="zone"] .s-parcel-label,
[data-scene="zone"] .scr-single,
[data-scene="zone"] .s-fov-basic,
[data-scene="zone"] .s-paper,
[data-scene="zone"] .s-ruler,
[data-scene="zone"] .s-film,
[data-scene="zone"] .s-usb3 { opacity: 0; }
[data-scene="zone"] .scr-zone,
[data-scene="zone"] .s-fov-expand,
[data-scene="zone"] .c-zone { opacity: 1; }

/* 画面不清楚 5 步速查条 */
.check-bar { margin-top: 22px; padding: 18px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.check-title { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.check-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.check-list em { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-style: normal; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }

/* ---------- 两种工作模式动画演示 ---------- */
.how { background: var(--paper); border-top: 1px solid var(--line); }
.how-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.how-top .sec-head { margin-bottom: 0; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 13px; background: #eeede7; border: 1px solid var(--line); gap: 4px; }
.mode-switch button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 19, 32, .08); }

.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }

.demo { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.demo-screen { position: relative; overflow: hidden; border-radius: 16px; background: #f4f6fb; border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 16 / 10.6; display: flex; flex-direction: column; }
.ds-tabs { display: flex; align-items: center; gap: 4px; padding: 9px 12px; background: #fbfcff; border-bottom: 1px solid #e6e9f1; font-size: 12.5px; color: #6b7487; }
.ds-tab { padding: 5px 11px; border-radius: 7px; transition: background .3s, color .3s; }
[data-view="record"] .ds-tab-record, [data-view="search"] .ds-tab-search { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.ds-mode-pill { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #edf1f9; color: #475569; font-size: 11px; font-weight: 600; }
[data-mode="camera"] .ds-mode-pill { background: #e8f5ee; color: #15803d; }

.ds-body { position: relative; flex: 1; }
.ds-view { position: absolute; inset: 12px; transition: opacity .4s ease, transform .4s ease; }
.ds-search { opacity: 0; transform: translateY(10px); pointer-events: none; }
[data-view="search"] .ds-record { opacity: 0; transform: scale(.98); }
[data-view="search"] .ds-search { opacity: 1; transform: none; }

.cam { position: relative; height: 100%; overflow: hidden; border-radius: 10px; background: #36393f; }
.cam::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0); transition: box-shadow .35s; pointer-events: none; }
[data-phase="rec"] .cam::after { box-shadow: inset 0 0 0 2.5px rgba(239, 68, 68, .8); }
.cam-desk { position: absolute; inset: 0; background: radial-gradient(80% 70% at 48% 55%, #5f646d, #3a3e45 70%, #2c2f35); }
.cam-desk::after { content: ""; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1px); background-size: 6px 6px; }
.parcel { position: absolute; left: 16%; top: 20%; width: 48%; height: 62%; border-radius: 4px; background: linear-gradient(160deg, #cca577, #b58957 60%, #a47b4d); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .75s cubic-bezier(.22, 1, .36, 1), left .5s ease; }
[data-mode="camera"] .parcel { left: 24%; }
[data-mode="camera"][data-phase="idle"] .parcel { transform: translate(-18%, 8%) scale(.95); }
.parcel::before { content: ""; position: absolute; left: 0; right: 0; top: 47%; height: 6%; background: rgba(0, 0, 0, .06); }
.tape { position: absolute; left: 44%; top: 0; width: 13%; height: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .15)); border-inline: 1px solid rgba(255, 255, 255, .26); transition: height 2.3s ease .25s; }
[data-phase="rec"] .tape, [data-phase="stop"] .tape { height: 100%; }
.label { position: absolute; left: 28%; top: 30%; width: 44%; padding: 7% 6% 5%; border-radius: 3px; background: #fbfbf8; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.bars { height: 28px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px, #111 12px 13px, transparent 13px 16px); }
.label-no { margin-top: 5px; font-family: var(--mono); font-size: 8.5px; color: #333; text-align: center; letter-spacing: .05em; white-space: nowrap; overflow: hidden; }
.laser { position: absolute; left: 23%; right: 23%; top: 45%; height: 2px; border-radius: 2px; background: #ff3b3b; box-shadow: 0 0 10px 2px rgba(255, 59, 59, .75); opacity: 0; }
[data-mode="scanner"][data-phase="scan"] .laser, [data-mode="scanner"][data-phase="stop"] .laser { animation: laser 1.05s ease-in-out; }
@keyframes laser { 0% { opacity: 0; transform: translateY(-13px); } 18% { opacity: 1; } 68% { opacity: 1; transform: translateY(11px); } 100% { opacity: 0; transform: translateY(0); } }

/* 扫码枪直扫：手持扫码枪 SVG */
.scanner-rig { position: absolute; right: 2%; top: 10%; width: 52%; height: 50%; pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
[data-mode="camera"] .scanner-rig { opacity: 0; transform: translate(26px, -14px) scale(.92); }
.scanner-svg { position: absolute; right: 4%; top: 6%; width: 46%; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .48)); transform-origin: 72% 48%; transition: transform .48s cubic-bezier(.22, 1, .36, 1); }
[data-mode="scanner"][data-phase="scan"] .scanner-svg, [data-mode="scanner"][data-phase="stop"] .scanner-svg { transform: translate(-10%, 10%) rotate(-7deg); }
.scanner-led { transition: fill .2s; }
[data-mode="scanner"][data-phase="scan"] .scanner-led, [data-mode="scanner"][data-phase="stop"] .scanner-led { fill: #22c55e; }
.scanner-beam { position: absolute; right: 40%; top: 15%; width: 70%; height: auto; opacity: 0; transform-origin: right center; }
[data-mode="scanner"][data-phase="scan"] .scanner-beam, [data-mode="scanner"][data-phase="stop"] .scanner-beam { animation: beam 1.05s ease-in-out; }
@keyframes beam { 0% { opacity: 0; } 18%, 72% { opacity: 1; } 100% { opacity: 0; } }

/* 摄像头直扫：自动识别框 */
.cam-reticle { position: absolute; left: 32%; top: 27%; width: 32%; height: 42%; pointer-events: none; opacity: 0; transform: scale(1.06); border: 1px dashed rgba(126, 166, 255, .45); border-radius: 8px; transition: opacity .35s ease, transform .4s ease, border-color .3s ease, background .3s ease; }
[data-mode="camera"] .cam-reticle { opacity: 1; transform: scale(1); }
[data-mode="camera"][data-phase="scan"] .cam-reticle, [data-mode="camera"][data-phase="stop"] .cam-reticle { border-color: #22c55e; background: rgba(34, 197, 94, .1); transform: scale(.96); }
[data-mode="camera"][data-phase="rec"] .cam-reticle { opacity: .45; }
.cr-tag { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); padding: 2px 8px; border-radius: 4px; background: rgba(13, 19, 32, .74); color: #9dbaff; font-size: 10px; font-weight: 600; white-space: nowrap; transition: color .25s, background .25s; }
[data-mode="camera"][data-phase="scan"] .cr-tag, [data-mode="camera"][data-phase="stop"] .cr-tag { background: #15803d; color: #fff; }
.cr-c { position: absolute; width: 12px; height: 12px; border-color: #7ea6ff; border-style: solid; border-width: 0; transition: border-color .25s; }
[data-mode="camera"][data-phase="scan"] .cr-c, [data-mode="camera"][data-phase="stop"] .cr-c { border-color: #4ade80; }
.cr-tl { left: -2px; top: -2px; border-left-width: 2.5px; border-top-width: 2.5px; border-top-left-radius: 5px; }
.cr-tr { right: -2px; top: -2px; border-right-width: 2.5px; border-top-width: 2.5px; border-top-right-radius: 5px; }
.cr-bl { left: -2px; bottom: -2px; border-left-width: 2.5px; border-bottom-width: 2.5px; border-bottom-left-radius: 5px; }
.cr-br { right: -2px; bottom: -2px; border-right-width: 2.5px; border-bottom-width: 2.5px; border-bottom-right-radius: 5px; }
.cr-scanline { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; border-radius: 2px; background: #4ade80; box-shadow: 0 0 10px 2px rgba(74, 222, 128, .7); opacity: 0; }
[data-mode="camera"][data-phase="scan"] .cr-scanline, [data-mode="camera"][data-phase="stop"] .cr-scanline { animation: laser 1.05s ease-in-out; }

.cam-hud { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #fff; }
.hud-rec, .hud-time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .48); letter-spacing: .1em; opacity: .35; transition: opacity .3s; }
.hud-rec .rec-dot { width: 7px; height: 7px; animation: none; background: #888; }
[data-phase="rec"] .hud-rec, [data-phase="rec"] .hud-time { opacity: 1; }
[data-phase="rec"] .hud-rec .rec-dot { background: var(--rec); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.pip { position: absolute; right: 10px; bottom: 10px; width: 25%; aspect-ratio: 4 / 3; border: 2px solid rgba(255, 255, 255, .9); border-radius: 4px; background: linear-gradient(180deg, #59677d 0 45%, #6b6e74 45%); overflow: hidden; }
.pip-parcel { position: absolute; left: 34%; bottom: 18%; width: 34%; height: 30%; background: #b88d5c; border-radius: 2px; }
.beep { position: absolute; left: 40%; top: 12%; padding: 5px 12px; border-radius: 999px; background: rgba(13, 19, 32, .88); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: 12px; transform: translate(-50%, 6px) scale(.9); opacity: 0; pointer-events: none; white-space: nowrap; }
[data-mode="camera"] .beep { left: 48%; }
[data-phase="scan"] .beep, [data-phase="stop"] .beep { animation: beep 1.25s ease .35s both; }
@keyframes beep { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.92); } 22%, 75% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px) scale(1); } }

.ds-search { display: flex; flex-direction: column; gap: 10px; padding: 6px; }
.q-bar { display: flex; gap: 8px; }
.q-input { flex: 1; display: flex; align-items: center; height: 38px; padding-inline: 12px; border-radius: 8px; background: #fff; border: 1px solid #d5dbe8; font-family: var(--mono); font-size: 13px; color: var(--ink); letter-spacing: .04em; }
.caret { width: 1.5px; height: 16px; margin-left: 2px; background: var(--blue); animation: blink 1s steps(2, start) infinite; }
.q-btn { display: grid; place-items: center; padding-inline: 18px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.q-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #e3e7f0; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s, box-shadow .4s; }
[data-found] .q-result { opacity: 1; transform: none; }
[data-found] .q-result:first-of-type { box-shadow: 0 0 0 2px rgba(29, 91, 214, .35), 0 10px 24px -12px rgba(29, 91, 214, .5); }
[data-found] .q-dim { opacity: .55; transition-delay: .12s; }
.q-thumb { display: grid; place-items: center; flex: none; width: 72px; aspect-ratio: 16 / 10; border-radius: 6px; background: linear-gradient(160deg, #60656d, #3c3f45); color: #fff; font-size: 13px; }
.q-thumb span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.q-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.q-info b { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.q-info span { color: #7a8396; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-play { padding: 6px 12px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }

.ds-toast { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-top: 1px solid #e6e9f1; background: #fbfcff; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.ds-toast span { overflow: hidden; text-overflow: ellipsis; }
.st-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #b5bccb; transition: background .3s; }
[data-phase="scan"] .st-dot, [data-phase="search"] .st-dot { background: var(--blue); }
[data-phase="rec"] .st-dot { background: var(--rec); animation: pulse 1.6s ease-out infinite; }
[data-phase="stop"] .st-dot { background: var(--ok); }

.demo-steps { display: flex; flex-direction: column; gap: 6px; }
.demo-steps button { position: relative; display: flex; gap: 15px; width: 100%; padding: 15px 18px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; overflow: hidden; transition: background .3s, border-color .3s, box-shadow .3s; }
.demo-steps button:hover { background: rgba(255, 255, 255, .65); }
.demo-steps em { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--faint); font-style: normal; font-size: 13px; font-weight: 700; font-family: var(--mono); transition: all .3s; }
.demo-steps b { display: block; font-size: 15.5px; color: var(--ink-2); transition: color .3s; }
.demo-steps small { display: block; margin-top: 3px; color: var(--faint); font-size: 13.5px; line-height: 1.7; transition: color .3s; }
.demo-steps .bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.demo-steps .is-active button { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.demo-steps .is-active em { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-steps .is-active b { color: var(--ink); }
.demo-steps .is-active small { color: var(--muted); }
.demo-steps .is-active .bar { animation: fill var(--dur, 3s) linear forwards; }
.demo.is-paused .demo-steps .bar { animation: none; transform: scaleX(0); }
@keyframes fill { to { transform: scaleX(1); } }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.rule { padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.rule p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; }
.arr { color: var(--faint); font-weight: 700; }
.chip, .seg { display: inline-flex; align-items: center; height: 28px; padding-inline: 10px; border-radius: 7px; white-space: nowrap; }
.chip { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; }
.chip.ok { background: #eaf7ee; border-color: #cbead4; color: #157a3b; }
.seg { position: relative; padding-left: 23px; background: #fdecec; color: #b42323; font-weight: 600; }
.seg::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--rec); }
.seg.next { background: linear-gradient(90deg, #eaf7ee, #fdecec 55%); color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 56px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 92px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line-2); }
summary { position: relative; display: block; padding: 20px 40px 20px 0; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--blue); }
summary::before, summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { padding: 0 36px 22px 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; color: var(--muted); font-size: 13px; }
.brand-sm { font-size: 14px; color: var(--ink-2); gap: 8px; }
.brand-sm .brand-logo { width: 32px; height: 32px; }
.footer a:hover { color: var(--ink); }

/* ---------- 进场动画 ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .qs-grid { grid-template-columns: 1fr; gap: 20px; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo { grid-template-columns: 1fr; gap: 22px; }
  .demo-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
  .faq-grid .sec-head { position: static; margin-bottom: 24px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 58px; }
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 54px; gap: 8px; }
  .brand { font-size: 15.5px; gap: 6px; }
  .brand-logo { width: 34px; height: 34px; }
  nav { gap: 0; font-size: 13px; }
  nav a { padding: 6px 7px; }
  nav a[href="#download"] { display: none; }
  .quickstart { padding-block: 24px 48px; }
  .dl-card, .qs-steps { padding: 24px 20px; border-radius: 18px; }
  .dl-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .setup-list li { padding: 0 0 20px 46px; }
  .setup-list li::before { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .setup-list li::after { left: 15.5px; top: 38px; }
  .section { padding-block: 56px; }
  .sec-head { margin-bottom: 22px; }
  .sec-head h2 { font-size: clamp(22px, 6.4vw, 28px); }
  .sec-head p { font-size: 14px; }
  .ext-links { width: 100%; }
  .ext-btn { flex: 1 1 0; justify-content: center; padding: 9px 10px; font-size: 12.5px; }
  .scene-tabs { grid-template-columns: 1fr; gap: 4px; }
  .scene-tabs button { justify-content: flex-start; padding: 9px 12px; font-size: 13.5px; }
  .scene-stage { padding: 12px; }
  .scene-caption { padding: 14px; margin-top: 12px; }
  .scene-caption strong { font-size: 14px; }
  .scene-caption p { font-size: 13px; }
  .check-bar { padding: 14px; }
  .check-list { grid-template-columns: 1fr; gap: 8px; }
  .how-top { gap: 16px; margin-bottom: 22px; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1 1 0; padding: 9px 10px; font-size: 13.5px; }
  .demo-screen { aspect-ratio: auto; height: 320px; border-radius: 12px; }
  .ds-tabs { font-size: 11.5px; padding: 8px; }
  .ds-tab { padding: 5px 8px; }
  .ds-mode-pill { font-size: 10.5px; padding: 2px 7px; }
  .ds-view { inset: 8px; }
  .label { left: 20%; width: 60%; }
  .bars { height: 19px; }
  .label-no { font-size: 7px; letter-spacing: 0; }
  .ds-toast { font-size: 12px; min-height: 34px; padding: 7px 10px; }
  .q-thumb { width: 58px; }
  .demo-steps { display: flex; gap: 4px; }
  .demo-steps button { padding: 12px 14px; gap: 12px; }
  .demo-steps em { width: 26px; height: 26px; font-size: 12.5px; }
  .demo-steps b { font-size: 15px; }
  .demo-steps small { font-size: 13px; }
  .rules { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .rule { padding: 20px 18px; }
  .flow { font-size: 12px; gap: 5px; }
  .chip, .seg { height: 27px; padding-inline: 9px; }
  .seg { padding-left: 21px; }
  .seg::before { left: 8px; }
  summary { padding: 17px 34px 17px 0; font-size: 15px; }
  details p { padding: 0 8px 18px 0; font-size: 14px; }
}

@media (max-width: 410px) {
  html { scroll-padding-top: 86px; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding-block: 6px; }
  .nav .brand { align-self: flex-start; }
  .nav nav { justify-content: space-between; }
}

@media (max-width: 380px) {
  .ext-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.btn-download { width: 100%; color: #fff; background: var(--blue); }
.btn-download:hover { background: #2466dc; }
.btn-download:focus-visible { outline: 2px solid #a8caff; outline-offset: 4px; }