/* ============================================================
   AI数字员工 · 站点样式
   全部颜色走 css/theme.css 的变量，禁止硬编码色值（除图形内部）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* 尊重减少动效：气泡只淡入，不做位移也不再跳声波 */
@media (prefers-reduced-motion: reduce) {
  .call-line, .call-end { animation-duration: .12s !important; transform: none !important; }
  .call-wave i { animation: none !important; height: 6px !important; }
  .call-body { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ---------- 通用组件 ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.tag-sim {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--warn); border: 1px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  white-space: nowrap;
}
.tag-real {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--ok); border: 1px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  white-space: nowrap;
}

.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
  margin-bottom: 14px;
}
.section { padding: 92px 0; position: relative; }
/* 锚点跳转要给固定导航留位置，否则标题被压在导航条下面 */
section[id], main[id] { scroll-margin-top: 78px; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; margin: 0 0 14px;
  letter-spacing: -.01em;
}
.section-head p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--on-accent); font-size: 14px; font-weight: 900;
}
.nav-links { display: flex; gap: 4px; margin-left: 10px; flex: 1; overflow: hidden; }
.nav-links a {
  padding: 7px 11px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* 主题选择器 */
.theme-picker { position: relative; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2);
}
.theme-btn:hover { color: var(--text); }
.theme-dots { display: flex; gap: 3px; }
.theme-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 232px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 8px; box-shadow: var(--shadow);
  display: none; z-index: 100;
}
.theme-menu.open { display: block; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.theme-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 9px; background: none; border: 0; cursor: pointer;
  font-size: 14px; color: var(--text-2);
}
.theme-item:hover { background: var(--surface-2); color: var(--text); }
.theme-item[aria-checked="true"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.theme-swatch { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border-strong); flex: none; }
.theme-item .tick { margin-left: auto; opacity: 0; color: var(--accent); }
.theme-item[aria-checked="true"] .tick { opacity: 1; }

.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
  }
  .nav-mobile {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface-solid); border-bottom: 1px solid var(--border);
    padding: 12px 16px; box-shadow: var(--shadow);
  }
  .nav-mobile.open { display: grid; gap: 2px; }
  .nav-mobile a { padding: 11px 8px; border-radius: 8px; color: var(--text-2); font-size: 15px; }
  .nav-mobile a:hover { background: var(--surface-2); color: var(--text); }
}
@media (min-width: 1081px) { .nav-mobile { display: none !important; } }

/* 窄屏导航：品牌只留图标，主题入口只留色点，避免把品牌名挤成竖排 */
@media (max-width: 620px) {
  .nav-inner { gap: 10px; }
  .brand span:last-child { display: none; }
  .theme-btn { padding: 7px 10px; }
  .theme-btn #themeLabel { display: none; }
  .nav-actions .btn.btn-sm { padding: 8px 13px; font-size: 13px; }
  .theme-menu { width: 210px; }
}

/* ---------- 第一屏 Hero ---------- */
.hero {
  position: relative; padding: 74px 0 84px; overflow: hidden;
  background-image: var(--hero-glow), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  background-position: center top, center, center;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.hero h1 {
  font-size: clamp(27px, 3.5vw, 43px); line-height: 1.2; margin: 0 0 20px;
  letter-spacing: -.02em; font-weight: 800;
}
.hero-sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-2); margin: 0 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
@media (max-width: 420px) { .hero-cta .btn { flex: 1 1 44%; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; color: var(--muted); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero-visual { position: relative; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 48px 0 56px; }
}

/* ---------- 第二屏 两大能力 ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 860px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  overflow: hidden; padding: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
}
.cap-visual { height: 240px; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--border); }
.cap-body { padding: 26px; }
.cap-body h3 { margin: 10px 0 10px; font-size: 23px; }
.cap-body p { margin: 0 0 16px; color: var(--text-2); }
.cap-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cap-list li { display: flex; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.cap-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-top: 9px; flex: none; }

/* ---------- 外呼演示 ---------- */
.call-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap); align-items: start; }
@media (max-width: 940px) { .call-wrap { grid-template-columns: 1fr; } }
.call-panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.call-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.call-live { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); }
.call-live.paused { background: var(--muted); box-shadow: none; }
.call-title { font-weight: 700; font-size: 15px; }
.call-speak {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.call-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.call-wave i {
  width: 2px; height: 4px; border-radius: 2px; background: var(--accent);
  animation: waveBar 1.1s ease-in-out infinite; animation-play-state: paused;
}
.call-speak.is-playing .call-wave i { animation-play-state: running; }
.call-speak.is-idle .call-wave { opacity: .35; }
@keyframes waveBar { 0%, 100% { height: 4px; } 50% { height: 13px; } }
.call-timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }
.call-body { padding: 18px 20px 8px; height: 372px; overflow-y: auto; scroll-behavior: smooth; }
@media (max-width: 620px) { .call-body { height: 322px; } }
.call-line { display: flex; gap: 10px; margin-bottom: 14px; opacity: 0; transform: translateY(10px); animation: lineIn .32s cubic-bezier(.16,1,.3,1) forwards; cursor: pointer; }
/* 拖动进度条回填的历史句：不播动画，直接呈现 */
.call-line.instant { animation: none; opacity: 1; transform: none; }
.call-idle {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
}
.call-idle.hide { display: none; }
.call-idle-ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  border: 1px solid var(--border-strong); color: var(--accent);
}
.call-idle-ic svg { width: 22px; height: 22px; }
.call-idle b { font-size: 15px; }
.call-idle p { margin: 0; max-width: 32ch; font-size: 13.4px; color: var(--muted); line-height: 1.65; }
.call-idle .btn { margin-top: 2px; }
.call-end {
  margin: 4px 0 8px; padding: 14px; border-radius: 12px; text-align: center;
  display: grid; gap: 3px; justify-items: center;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  animation: lineIn .32s cubic-bezier(.16,1,.3,1) forwards;
}
.call-end b { font-size: 14.5px; color: var(--text); }
.call-end span { font-size: 12.5px; color: var(--muted); }
.call-end .btn { margin-top: 8px; }
.call-latest {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 3;
  padding: 6px 13px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: none; font-family: inherit;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.6);
}
@keyframes lineIn { to { opacity: 1; transform: none; } }
.call-line .who { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.call-line.u .who { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.call-line.ai .who { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.call-bubble {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px;
  padding: 10px 14px; font-size: 14.8px; color: var(--text-2); max-width: 88%;
}
.call-line.ai .call-bubble { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border-color: var(--border-strong); color: var(--text); }
.call-line.now .call-bubble { box-shadow: 0 0 0 1px var(--accent) inset; }
/* 进度条：24px 热区 + 6px 视觉条，可点、可拖、可键盘 */
.call-track {
  position: relative; height: 24px; cursor: pointer; touch-action: none;
  outline: none; -webkit-tap-highlight-color: transparent;
}
.call-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px;
  transform: translateY(-50%); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border); border-radius: 99px;
}
.call-fill {
  position: absolute; left: 0; top: 50%; height: 6px; width: 0; border-radius: 99px;
  transform: translateY(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none; transition: width .18s linear;
}
.call-track.drag .call-fill, .call-track.drag .call-knob { transition: none; }
.call-knob {
  position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface);
  transform: translateY(-50%); opacity: 0; transition: opacity .18s; pointer-events: none;
}
.call-track:hover .call-knob, .call-track:focus-visible .call-knob, .call-track.drag .call-knob { opacity: 1; }
.call-track:focus-visible::before { box-shadow: inset 0 0 0 1px var(--border), 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.call-tip {
  position: absolute; bottom: calc(100% - 2px); left: 0; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 7px; font-size: 11.5px; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .16s;
}
.call-track:hover .call-tip, .call-track.drag .call-tip, .call-track:focus-visible .call-tip { opacity: 1; }
.call-ctrl { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.icon-btn svg { width: 16px; height: 16px; }
.call-ctrl .grow { flex: 1; }
.call-ctrl label { font-size: 13px; color: var(--muted); }

/* 音色选择 */
.voice-pick { position: relative; }
.voice-pick > button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
}
.voice-pick > button:hover { border-color: var(--accent); }
.voice-menu {
  position: absolute; left: 0; top: calc(100% + 8px); width: 300px; max-height: 320px; overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow); display: none; z-index: 60;
}
.voice-menu.open { display: block; }
.voice-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; background: none; border: 0; font-size: 13.5px; color: var(--text-2);
}
.voice-item:hover { background: var(--surface-2); color: var(--text); }
.voice-item[aria-checked="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.voice-item .g { font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--muted); }
.voice-item .ds { color: var(--muted); font-size: 12px; font-weight: 400; }

/* 外呼四项能力 */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }
.mini { padding: 16px 16px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--border); }
.mini h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mini p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* 通话报告卡 */
.report {
  margin-top: 12px; border-radius: var(--radius-s); border: 1px dashed var(--border-strong);
  background: var(--panel); padding: 16px 18px; font-size: 13.5px;
}
.report h5 { margin: 0 0 10px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.report dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.report dt { color: var(--muted); white-space: nowrap; }
.report dd { margin: 0; color: var(--text-2); }

/* ---------- 手机智控 ---------- */
.ctrl-layout { display: grid; grid-template-columns: 400px 1fr; gap: 42px; align-items: start; }
@media (max-width: 1000px) { .ctrl-layout { grid-template-columns: 1fr; justify-items: center; } }
.scene-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.scene-tab {
  cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  transition: all .2s var(--ease);
}
.scene-tab:hover { color: var(--text); border-color: var(--border-strong); }
.scene-tab[aria-selected="true"] {
  background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600;
}
.scene-desc { color: var(--text-2); font-size: 15px; margin: 0 0 18px; min-height: 52px; }
.instr {
  border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0;
  padding: 14px 18px; font-size: 14.5px; color: var(--text-2); margin-bottom: 18px;
}
.instr b { color: var(--text); }
.steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: st; display: grid; gap: 7px; max-height: 250px; overflow-y: auto; }
.steps li {
  counter-increment: st; display: flex; gap: 10px; font-size: 13.8px; color: var(--muted);
  padding: 6px 8px; border-radius: 8px; transition: all .2s var(--ease);
}
.steps li::before {
  content: counter(st); flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 11px; display: grid; place-items: center; margin-top: 2px;
}
.steps li.done { color: var(--text-2); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); color: #fff; content: "✓"; }
.steps li.now { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.steps li.now::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* 场景A 两种输入方式切换 */
.mode-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mode-tabs[hidden] { display: none; }
.mode-tab {
  font: inherit; font-size: 13px; padding: 8px 13px; border-radius: 9px; cursor: pointer;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border);
  transition: border-color .18s, color .18s, background .18s;
}
.mode-tab[aria-pressed="true"] {
  color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-weight: 600;
}
.ctrl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctrl-progress { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.ctrl-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s var(--ease); }
.ctrl-time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }

.phone-stage { position: relative; display: grid; place-items: center; padding: 10px 0 0; }
.phone-stage .stage-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 340px; }

/* 手机机身 */
.phone {
  position: relative; width: 336px; height: 690px; border-radius: 44px;
  background: var(--phone-shell); padding: 11px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  flex: none;
}
.phone::after { /* 侧键 */
  content: ""; position: absolute; right: -2px; top: 150px; width: 3px; height: 66px;
  border-radius: 2px; background: color-mix(in srgb, var(--phone-shell) 70%, #fff);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--phone-screen); color: var(--phone-text);
  font-size: 13px; line-height: 1.45;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.phone-notch {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 99px; background: #0d0f14; z-index: 12;
}
.statusbar {
  height: 44px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 20px 4px; font-size: 11.5px; font-weight: 600; color: inherit; opacity: .85;
}
.statusbar .right { display: flex; gap: 5px; align-items: center; }

/* 屏幕内的"应用"层 */
.app-view {
  position: absolute; inset: 44px 0 0; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateX(16px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.app-view.active { opacity: 1; pointer-events: auto; transform: none; }
.appbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px;
  background: var(--wx-bar, #ededed); border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-weight: 600; font-size: 14.5px; flex: none;
}
.appbar .back { width: 22px; height: 22px; display: grid; place-items: center; opacity: .75; }
.appbar .title { flex: 1; text-align: center; margin-right: 22px; }
.app-body { flex: 1; min-height: 0; overflow: hidden; position: relative; background: #f5f5f5; }

/* 微信样式（固定在屏幕内，不跟主题走，保证像微信） */
.wx { --wx-green: #07c160; }
/* .wx 是屏幕内的样式作用域容器，同时必须是高度链条的一环，否则输入栏会被键盘挤出可视区 */
.app-body > .wx { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.wx-list { background: #fff; height: 100%; overflow: hidden; }
.wx-row { display: flex; gap: 11px; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; align-items: center; }
.wx-row .ava { width: 42px; height: 42px; border-radius: 8px; flex: none; }
.wx-row .meta { flex: 1; min-width: 0; }
.wx-row .nm { font-size: 14px; font-weight: 600; color: #111; }
.wx-row .ms { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-row .tm { font-size: 11px; color: #bbb; align-self: flex-start; margin-top: 3px; }
.wx-search { padding: 8px 12px; background: #ededed; }
.wx-search div { height: 30px; border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: 12px; color: #b0b0b0; }

.wx-chat { background: #ededed; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.wx-chat-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.wx-time { text-align: center; font-size: 10.5px; color: #9a9a9a; }
.msg { display: flex; gap: 7px; max-width: 86%; }
.msg .ava { width: 30px; height: 30px; border-radius: 5px; flex: none; }
.msg .bub {
  background: #fff; border-radius: 5px; padding: 8px 10px; font-size: 12.8px; color: #1a1a1a;
  position: relative; word-break: break-word;
}
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bub { background: #95ec69; }
.msg .txt-in { min-height: 1.2em; }
.msg .caret { display: inline-block; width: 1px; height: 12px; background: #1a1a1a; vertical-align: -1px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.wx-inputbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #f7f7f7; border-top: 1px solid #e2e2e2;
}
.wx-inputbar .field {
  flex: 1 1 0; min-width: 0; height: 30px; border-radius: 5px; background: #fff; display: flex; align-items: center;
  padding: 0 8px; font-size: 12.5px; color: #bbb; overflow: hidden; white-space: nowrap;
}
.wx-inputbar .field.typing { color: #1a1a1a; }
.wx-send {
  padding: 5px 11px; border-radius: 5px; background: var(--wx-green); color: #fff;
  font-size: 12px; font-weight: 600; opacity: .45; transition: opacity .2s, transform .2s;
}
.wx-send.ready { opacity: 1; }

/* 朋友圈 */
.mo-feed { background: #fff; height: 100%; min-height: 0; overflow-y: auto; }
.mo-cover { height: 132px; position: relative; background: linear-gradient(160deg, #2b3a55, #0e1726); }
.mo-cover .me { position: absolute; right: 12px; bottom: -18px; display: flex; align-items: flex-end; gap: 8px; }
.mo-cover .me .nm { color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); margin-bottom: 22px; }
.mo-cover .me .ava { width: 48px; height: 48px; border-radius: 8px; border: 2px solid #fff; }
.mo-post { padding: 16px 14px 12px; border-bottom: 1px solid #f2f2f2; }
.mo-post .hd { display: flex; gap: 9px; margin-bottom: 7px; }
.mo-post .ava { width: 36px; height: 36px; border-radius: 5px; flex: none; }
.mo-post .nm { font-size: 13.5px; font-weight: 700; color: #4c6a92; line-height: 1.3; }
.mo-post .tx { font-size: 13px; color: #1a1a1a; margin: 2px 0 8px; }
.mo-post .pic { border-radius: 4px; overflow: hidden; margin-bottom: 8px; background: #f0f0f0; }
.mo-post .ft { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: #999; }
.mo-post .ft .act { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.mo-post .heart { transition: transform .25s var(--ease), fill .25s; }
.mo-post.liked .heart { fill: #f4364c; stroke: #f4364c; transform: scale(1.18); }
.mo-like-list {
  margin-top: 8px; background: #f7f7f7; border-radius: 3px; padding: 5px 8px;
  font-size: 11.5px; color: #576b95; display: none;
}
.mo-like-list.show { display: block; animation: likeIn .3s var(--ease) both; }
@keyframes likeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 系统级「已粘贴」提示：录屏里是圆角白条，居中悬浮，约 2.5 秒 */
.ph-toast {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) scale(.96);
  z-index: 18; max-width: 92%; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .97); color: #111; font-size: 12px; line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ph-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* 输入框右侧发送键：空=灰，有内容=绿 */
.wx-send.empty { background: #c9cdd4; color: #fff; opacity: 1; }
.mo-like-list .cm { color: #1a1a1a; display: none; margin-top: 3px; }
.mo-like-list .cm.show { display: block; }
.mo-like-list .cm b { color: #576b95; font-weight: 600; }

/* 九宫格拼音键盘（按录屏 1-numpad 的 Gboard 中文九宫格还原） */
.kb9 {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; height: 218px;
  /* 收起时直接 display:none：这套嵌套布局里 bottom/transform 都算不准（实测会露出 60-85px） */
  display: none;
  overflow: hidden;
  background: var(--kb-bg); padding: 5px 4px 8px;
  flex-direction: column; gap: 4px;
}
.kb9.show { display: flex; animation: kbIn .18s var(--ease); }
@keyframes kbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.np-cand {
  flex: none; height: 26px; display: flex; align-items: center; gap: 2px;
  font-size: 13px; color: #111; overflow: hidden; white-space: nowrap;
  padding: 0 2px;
}
.np-cand b { font-size: 11px; font-weight: 500; color: #7a7f87; margin-right: 4px; letter-spacing: .02em; }
.np-cand span {
  padding: 1px 5px; border-radius: 4px; flex: none; transition: background .15s, color .15s;
}
.np-cand span.on { background: #dbe7f5; }
.np-body { flex: 1 1 auto; display: flex; gap: 3px; min-height: 0; overflow: hidden; }
.np-side { width: 13%; display: flex; flex-direction: column; gap: 4px; }
.np-side i {
  flex: 1; display: grid; place-items: center; font-style: normal;
  font-size: 12px; color: #555; border-radius: 4px; background: transparent;
}
.np-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 4px; }
.np-grid button, .np-fn button {
  border: 0; border-radius: 5px; background: var(--kb-key); color: #111;
  display: grid; place-items: center; font-family: inherit; line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .26); padding: 0; cursor: default;
  transition: background .1s, transform .1s;
}
.np-grid button b { font-size: 13px; font-weight: 600; }
.np-grid button span { font-size: 8px; letter-spacing: .04em; color: #4a4f57; margin-top: 1px; }
.np-grid button.num { display: flex; flex-direction: column; gap: 1px; align-items: center; justify-content: center; }
.np-grid button.pressed, .np-fn button.pressed { background: #9aa1ab; transform: translateY(1px); }
.np-fn { width: 17%; display: flex; flex-direction: column; gap: 4px; }
.np-fn button { font-size: 12px; }
.np-fn button.tall { flex: 1.6; }
.np-fn button.send-on { background: var(--wx-green); color: #fff; font-weight: 700; }

/* 键盘 */
.kb {
  position: absolute; left: 0; right: 0; bottom: 0; height: 232px; z-index: 11;
  background: var(--kb-bg); padding: 7px 4px 10px; transform: translateY(100%);
  transition: transform .26s var(--ease); display: flex; flex-direction: column; gap: 6px;
}
.kb.show { transform: none; }
.kb-rows { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.kb-row { display: flex; gap: 5px; justify-content: center; }
.kb-key {
  flex: 1; max-width: 30px; height: 34px; border-radius: 4px; background: var(--kb-key);
  display: grid; place-items: center; font-size: 13px; color: #111; box-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  user-select: none;
}
.kb-key.wide { max-width: 44px; font-size: 12px; background: #adb3bd; color: #111; }
.kb-key.pressed { background: #8f959e; transform: translateY(1px); }
.kb-bar { display: flex; gap: 5px; padding: 0 4px; }
.kb-bar { justify-content: center; gap: 26px; }
.kb-bar .kb-key { width: 30px; flex: none; height: 30px; font-size: 12px; }

/* 悬浮小圆点：按录屏 1:1 还原——彩色玻璃球，直径≈屏宽4.2%，无波纹，按下只缩一下 */
.dot {
  position: absolute; width: 4.2%; aspect-ratio: 1 / 1; margin: 0; z-index: 20;
  --dx: 0px; --dy: 0px;
  left: 0; top: 0; margin: -2.1% 0 0 -2.1%;   /* 按自身半径回退，translate 才能对准点击点 */
  transform: translate(var(--dx), var(--dy));
  border-radius: 50%; pointer-events: none; opacity: 0;
  /* 录屏实测：单次跨屏移动 0.6-0.8s，缓动近似 ease-out */
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .32));
  will-change: transform;
}
.dot.show { opacity: 1; }
.dot i {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 62% 68%, #ff9ad5 0%, #c07bf0 30%, #7b8cf8 58%, #6ad4f5 82%, #bff3ff 100%);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, .75);
  transition: transform .12s ease-out;
}
/* 点击反馈：缩到 0.86 再回弹，没有扩散波纹 */
.dot.clicking i { transform: scale(.86); }
.kb-press .kb-key.pressed { background: #8f959e; }

/* 任务完成浮层 */
.task-done {
  position: absolute; inset: 0; z-index: 15; display: grid; place-items: center;
  background: rgba(8, 14, 26, .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
}
.task-done.show { opacity: 1; }
.task-done .box {
  background: #fff; color: #111; border-radius: 16px; padding: 22px 26px; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); transform: scale(.94); transition: transform .28s var(--ease);
  max-width: 250px;
}
.task-done.show .box { transform: none; }
.task-done .ok {
  width: 44px; height: 44px; border-radius: 50%; background: #07c160; color: #fff;
  display: grid; place-items: center; margin: 0 auto 10px; font-size: 22px;
}
.task-done b { display: block; font-size: 15px; margin-bottom: 4px; }
.task-done span { font-size: 12px; color: #666; }

@media (max-width: 420px) {
  .phone { width: 300px; height: 616px; border-radius: 40px; }
  .kb { height: 208px; }
  .kb-key { height: 30px; font-size: 12px; }
}

/* ---------- 业务闭环 ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }
.loop-step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.loop-step .n {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.loop-step h4 { margin: 0 0 8px; font-size: 17px; }
.loop-step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.loop-foot {
  margin-top: 16px; padding: 15px 18px; border-radius: var(--radius-s);
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  font-size: 13.5px; color: var(--text-2);
}

/* ---------- 行业场景 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .scene-grid { grid-template-columns: 1fr; } }
.scene-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scene-card .pic { height: 148px; border-bottom: 1px solid var(--border); }
.scene-card .txt { padding: 18px; }
.scene-card h4 { margin: 0 0 8px; font-size: 16.5px; }
.scene-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); }
.scene-card .use { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.scene-card .use b { color: var(--text-2); font-weight: 600; }

/* ---------- 硬件与使用 ---------- */
.hw-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hw-grid { grid-template-columns: 1fr; } }
.hw-list { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.hw-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.hw-list .k {
  flex: none; width: 84px; color: var(--muted); font-size: 13px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.spec-table td { color: var(--text-2); }
.pending { color: var(--warn); font-weight: 600; }

/* ---------- 信任 / 安全 / FAQ ---------- */
.trust-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.safe-list { display: grid; gap: 12px; }
.safe-item { display: flex; gap: 13px; padding: 16px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); }
.safe-item .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.safe-item h5 { margin: 0 0 4px; font-size: 14.5px; }
.safe-item p { margin: 0; font-size: 13.3px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px 18px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.8px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 13.8px; color: var(--text-2); }

/* ---------- 渠道合作 ---------- */
.partner-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-types { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.partner-types li { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); font-size: 14.5px; color: var(--text-2); }
.partner-types b { color: var(--text); font-weight: 600; }

/* ---------- 扫码联系（替代原表单） ---------- */
.qr-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 30px;
}
@media (max-width: 800px) { .qr-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; } }
.qr-card--stack { grid-template-columns: 1fr; gap: 20px; justify-items: start; padding: 24px; }
/* 二维码永远白底：深色主题反色会扫不出来 */
.qr-box {
  display: grid; gap: 10px; justify-items: center; background: #fff;
  border: 1px solid rgba(0,0,0,.08); border-radius: 18px; padding: 14px;
}
/* 全局 img{max-width:100%} 会压窄固定 height 的二维码，把它拉成长条导致扫不出来。
   这里改成「宽定 + 等比高」，窄屏自动缩，永远保持 1:1。 */
.qr-box img {
  width: 240px; height: auto; aspect-ratio: 1 / 1; max-width: 100%;
  object-fit: contain; display: block; border-radius: 8px; background: #fff;
}
@media (max-width: 420px) {
  .qr-box img { width: 200px; }
}
.qr-cap { font-size: 12.5px; color: #4b5563; }
.qr-fallback {
  width: 240px; aspect-ratio: 1 / 1; max-width: 100%;
  display: grid; place-items: center; text-align: center;
  font-size: 12.5px; line-height: 1.9; color: #6b7280;
  border: 1.5px dashed #c7ccd6; border-radius: 10px;
}
/* display:grid 会盖掉 [hidden] 自带的 display:none，缺图占位和真图会同时出现 */
.qr-fallback[hidden] { display: none; }
.qr-fallback code { font-size: 11px; color: #9aa1ad; }
.qr-info h3 { margin: 6px 0 14px; font-size: 22px; }
.qr-tel-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qr-tel {
  font-size: 26px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  color: var(--text); text-decoration: none; transition: color .18s;
}
.qr-tel:hover { color: var(--accent); }
.btn.ok { color: var(--ok); border-color: var(--ok); }
.qr-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.qr-points li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.qr-points li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-2);
}
.qr-points b { color: var(--text); }
.qr-note {
  margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 12.3px; color: var(--muted); line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.footer { padding: 46px 0 34px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 10px; }
.footer p { margin: 0; font-size: 12.8px; color: var(--muted); line-height: 1.8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* 通用小工具 */
.mt-s { margin-top: 10px; }
.mt { margin-top: 20px; }
.mt-l { margin-top: 34px; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
