:root {
  --brand: #1f6bff;
  --brand-2: #4c8dff;
  --brand-dark: #1650e6;
  --brand-light: #eaf1ff;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-4: #c9cdd4;
  --bg: #f4f6f9;
  --card: #fff;
  --line: #e5e6eb;
  --fill: #f2f3f5;
  --green: #00b42a;
  --green-light: #e8ffea;
  --red: #f53f3f;
  --red-light: #ffece8;
  --orange: #ff7d00;
  --orange-light: #fff3e8;
  --gold: #e6c18a;
  --gold-dark: #3a2a14;
  --night: #0b1a38;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 56, 88, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(160deg, #e9f0ff 0%, #f5f7fb 45%, #eef3fb 100%);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.link { color: var(--brand); font-size: inherit; }

/* ================= 舞台：电脑端居中显示应用，左侧是介绍 ================= */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 80px; padding: 24px; }
.stage-side { width: 340px; display: none; }
@media (min-width: 1040px) { .stage-side { display: block; } }
.logo svg { width: 32px; height: 32px; stroke: none; }
.logo rect { fill: var(--brand); }
.logo path { stroke: #ffd27a; stroke-width: 2.6; fill: none; }
.logo circle { fill: #fff; }
.logo.big svg { width: 44px; height: 44px; filter: drop-shadow(0 8px 16px rgba(31, 107, 255, .3)); }
.side-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.side-title { font-size: 34px; line-height: 1.35; letter-spacing: 1px; margin: 28px 0 32px; }
.side-features { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 20px; }
.side-features li { display: flex; gap: 14px; align-items: center; }
.side-features i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.f-blue { color: var(--brand); } .f-orange { color: var(--orange); } .f-green { color: var(--green); }
.side-features b { display: block; font-size: 15px; }
.side-features span { font-size: 13px; color: var(--text-3); }
.side-mini { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: var(--shadow); }
.mini-qr { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); }
.mini-qr svg { width: 30px; height: 30px; stroke-width: 1.6; }
.side-mini b { display: block; font-size: 14px; }
.side-mini span { font-size: 12.5px; color: var(--text-3); }

.app {
  position: relative; flex: none; overflow: hidden; overflow: clip;
  width: 400px; height: min(860px, calc(100vh - 48px)); min-height: 640px;
  border-radius: 28px; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(31, 56, 88, .06), 0 30px 70px rgba(31, 56, 88, .18), 0 8px 20px rgba(31, 56, 88, .08);
}
@media (max-width: 520px) {
  .stage { padding: 0; display: block; }
  .app { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; }
}

/* ================= 页面切换 ================= */
.view { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg); }
.view[data-active] { display: flex; animation: enter .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ================= 通用组件 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; font-weight: 600;
  transition: transform .12s, opacity .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.btn-primary { background: linear-gradient(90deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 16px rgba(31, 107, 255, .28); }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.btn-white { background: #fff; color: var(--brand); }
.btn-gold { background: linear-gradient(90deg, #f5d9a8, #e2b26b); color: var(--gold-dark); box-shadow: 0 6px 16px rgba(226, 178, 107, .35); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--fill); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.light { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-row h3, .card-title { margin: 0; font-size: 15px; font-weight: 600; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-blue { background: var(--brand-light); color: var(--brand); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-red { background: var(--red-light); color: var(--red); }
.tag-gray { background: var(--fill); color: var(--text-3); }
.tag-gold { background: #fff4e0; color: #b3741c; }

.navbar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: calc(48px + var(--safe-top)); padding: var(--safe-top) 8px 0; background: #fff;
  border-bottom: 1px solid rgba(229, 230, 235, .6);
}
.nav-title { font-size: 16px; font-weight: 600; }
.nav-back, .nav-space { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.nav-back svg { width: 22px; height: 22px; }
.nav-back.glass { position: absolute; z-index: 3; top: calc(10px + var(--safe-top)); left: 10px; background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.page-head { flex: none; padding: calc(14px + var(--safe-top)) 16px 8px; background: var(--bg); }
.page-head h2 { margin: 0; font-size: 20px; }

.bottom-bar {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom)); background: #fff; box-shadow: 0 -2px 12px rgba(31, 56, 88, .05);
}
.bottom-bar.two { display: grid; grid-template-columns: 1fr 1.5fr; }
.bottom-bar .cost { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.bottom-bar .cost span { font-size: 13px; color: var(--text-2); }
.bottom-bar .cost b { font-size: 18px; color: var(--orange); margin: 0 2px; }
.bottom-bar .cost small { font-size: 12px; color: var(--text-3); }
.bottom-bar .cost em { font-style: normal; color: var(--text-2); }
.bottom-bar .btn { min-width: 150px; }

.stars { display: inline-flex; gap: 3px; vertical-align: -1px; }
.stars i { width: 12px; height: 12px; background: var(--text-4); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #ffb400; }

.foot-note { text-align: center; font-size: 12px; color: var(--text-3); margin: 16px 0 24px; }
.empty { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; color: var(--text-3); font-size: 13px; text-align: center; }
.empty img { width: 132px; margin-bottom: 6px; }
.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--fill), #e8eaee, var(--fill)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.load-more { display: block; margin: 4px auto 20px; padding: 6px 18px; font-size: 13px; color: var(--text-3); }

/* ================= 登录 ================= */
#view-login { background: #fff; }
.login-hero {
  height: calc(210px + var(--safe-top)); padding: calc(36px + var(--safe-top)) 24px 0; color: #fff;
  background: url("/static/img/login-hero.svg") center / cover no-repeat, var(--brand);
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .logo svg { width: 44px; height: 44px; }
.login-brand .logo rect { fill: #fff; }
.login-brand .logo path { stroke: #ffb547; }
.login-brand .logo circle { fill: var(--brand); }
.login-brand h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.login-brand p { margin: 2px 0 0; font-size: 12.5px; opacity: .85; max-width: 150px; line-height: 1.45; }
.login-card { position: relative; margin: -36px 16px 0; padding: 8px 20px 18px; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(31, 56, 88, .1); }
.login-tabs { display: flex; gap: 28px; padding: 10px 4px 14px; }
.login-tabs button { position: relative; font-size: 16px; color: var(--text-3); padding: 4px 0; }
.login-tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; font-size: 17px; }
.login-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--brand); }
.login-form { display: grid; gap: 12px; }
.input-row {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 10px;
  background: var(--fill); border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.input-row:focus-within { border-color: var(--brand); background: #fff; }
.input-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 15px; }
.input-row input::placeholder { color: var(--text-4); }
.input-row .prefix { font-size: 15px; font-weight: 500; padding-right: 10px; border-right: 1px solid var(--line); }
.code-btn { flex: none; font-size: 14px; color: var(--brand); padding-left: 10px; border-left: 1px solid var(--line); }
.code-btn:disabled { color: var(--text-4); cursor: default; }
.eye-btn { color: var(--text-4); display: grid; }
.eye-btn.on { color: var(--brand); }
.form-tip { margin: -2px 2px 4px; font-size: 12px; color: var(--text-3); }
.form-tip.between { display: flex; justify-content: space-between; }
.agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.agree input { margin: 1px 0 0; width: 15px; height: 15px; accent-color: var(--brand); flex: none; }
.agree.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.other-login { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px calc(24px + var(--safe-bottom)); }
.divider { display: flex; align-items: center; gap: 12px; width: 70%; font-size: 12px; color: var(--text-4); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wx-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #f0f9f2; color: #07c160; opacity: .7; }
.wx-btn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.other-login small { font-size: 11.5px; color: var(--text-4); }

/* ================= 首页 ================= */
.tab-pane { position: absolute; inset: 0 0 calc(56px + var(--safe-bottom)); display: none; flex-direction: column; }
.tab-pane[data-active] { display: flex; }
#tab-home .scroll { background: linear-gradient(180deg, #dce8ff 0, #edf3ff 180px, var(--bg) 320px); }
.home-head { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + var(--safe-top)) 16px 12px; }
.greet { margin: 2px 0 0 2px; font-size: 13px; color: var(--text-2); }
.cat-picker { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; font-size: 19px; color: var(--text); }
.cat-picker b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-picker > svg { width: 18px; height: 18px; color: var(--text-3); }
.cat-picker .cat-icon { width: 28px; height: 28px; border-radius: 8px; }
.cat-picker .cat-icon svg { width: 16px; height: 16px; }
.points-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 12px; color: var(--text-2); }
.points-chip b { font-size: 15px; color: var(--orange); }
.coin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ffc15a, #ff8a00); }
.banner {
  position: relative; margin: 0 16px; padding: 18px 18px 20px; border-radius: 16px; color: #fff; overflow: hidden;
  background: url("/static/img/banner.svg") right center / cover no-repeat, var(--brand);
  box-shadow: 0 10px 24px rgba(31, 107, 255, .25);
}
.banner h3 { margin: 8px 0 2px; font-size: 19px; letter-spacing: .5px; }
.banner p { margin: 0; font-size: 12.5px; opacity: .85; max-width: 62%; }
.banner-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, .2); }
.banner-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.banner-tag.mock::before { background: #ffb547; }
.stat-card { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 16px 0; padding: 14px 4px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.stat-card div + div { border-left: 1px solid var(--fill); }
.stat-card b { display: block; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.stat-card span { font-size: 11.5px; color: var(--text-3); }
.notice { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 8px 12px; border-radius: 8px; background: var(--orange-light); color: #d25f00; font-size: 12.5px; }
.notice svg { width: 16px; height: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 16px 10px; }
.section-head h3 { margin: 0; font-size: 17px; }
.section-head span { font-size: 12px; color: var(--text-3); }
.customer-list { display: grid; gap: 10px; padding: 0 16px; }
.customer {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 16px; gap: 12px; align-items: center;
  width: 100%; padding: 12px; text-align: left; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .12s;
}
.customer:active { transform: scale(.985); }
.c-cover { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; }
.c-cover img { position: absolute; left: 50%; bottom: 0; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); top: 6px; }
.c-top { display: flex; align-items: center; gap: 6px; }
.c-top b { font-size: 16px; }
.c-role { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.c-my b { color: var(--brand); font-weight: 600; }
.c-new { color: var(--orange); }
.customer > svg { width: 16px; height: 16px; color: var(--text-4); }

.theme-price { background-image: url("/static/img/cover-price.svg"); }
.theme-discover { background-image: url("/static/img/cover-discover.svg"); }
.theme-objection { background-image: url("/static/img/cover-objection.svg"); }

/* ================= 底部 Tab ================= */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex;
  height: calc(56px + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: #fff;
  box-shadow: 0 -1px 0 rgba(229, 230, 235, .8);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--text-3); }
.tabbar svg { width: 23px; height: 23px; stroke-width: 1.8; }
.tabbar button[aria-current="page"] { color: var(--brand); font-weight: 500; }
.tabbar button[aria-current="page"] svg { fill: rgba(31, 107, 255, .12); }

/* ================= 记录 ================= */
#tab-records .scroll { padding: 0 16px; }
.chart-card { margin-bottom: 12px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; color: var(--text-2); background: var(--fill); }
.chip[aria-pressed="true"] { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.chart { position: relative; height: 160px; }
.chart.small { height: 120px; margin: 4px 0 8px; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart .empty-chart { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--text-3); }
.record-list { display: grid; gap: 10px; }
.record { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.record img { width: 44px; height: 44px; border-radius: 50%; }
.r-main b { font-size: 15px; }
.r-main .tag { margin-left: 6px; vertical-align: 1px; }
.r-sub { display: flex; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.r-score { text-align: right; line-height: 1.1; }
.r-score b { font-size: 22px; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); font-variant-numeric: tabular-nums; }
.r-score small { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }
.score-high { color: var(--green); } .score-mid { color: var(--brand); } .score-low { color: var(--orange); } .score-none { color: var(--text-4); }
.record-list.mini { gap: 0; }
.record-list.mini .record { box-shadow: none; padding: 10px 0; border-radius: 0; border-top: 1px solid var(--fill); grid-template-columns: minmax(0, 1fr) auto; }
.record-list.mini .record img { display: none; }
.record-list.mini .r-score b { font-size: 18px; }

/* ================= 我的 ================= */
#tab-me .scroll { background: linear-gradient(180deg, #dce8ff 0, var(--bg) 260px); }
.me-head { display: flex; align-items: center; gap: 14px; padding: calc(28px + var(--safe-top)) 20px 18px; }
.me-avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); border: 3px solid #fff; box-shadow: var(--shadow); }
.me-avatar.small { width: 44px; height: 44px; font-size: 18px; border-width: 2px; }
.me-info { flex: 1; min-width: 0; }
.me-info h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 6px; }
.me-info p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
.vip-mark { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--gold-dark); background: linear-gradient(90deg, #f5d9a8, #e2b26b); }
.me-edit { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: rgba(255, 255, 255, .7); }
.me-edit svg { width: 16px; height: 16px; }
.vip-card {
  display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 14px 14px 14px 16px; border-radius: 14px 14px 0 0;
  background: linear-gradient(110deg, #3a3226, #1f1a14); color: #f3d8a8;
}
.vip-crown { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 216, 168, .14); }
.vip-crown svg { width: 18px; height: 18px; fill: #f3d8a8; stroke: none; }
.vip-text { flex: 1; min-width: 0; }
.vip-text b { font-size: 15px; }
.vip-text p { margin: 0; font-size: 12px; color: rgba(243, 216, 168, .7); }
.vip-btn { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; font-size: 12.5px; font-weight: 600; color: var(--gold-dark); background: linear-gradient(90deg, #f5d9a8, #e2b26b); }
.points-card { display: flex; align-items: center; margin: 0 16px; border-radius: 0 0 14px 14px; }
.pc-main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pc-main span { font-size: 12.5px; color: var(--text-3); }
.pc-main b { font-size: 28px; color: var(--text); font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.pc-main small { font-size: 12px; color: var(--text-3); }
.pc-actions { display: flex; gap: 8px; }
.cell-group { margin: 12px 16px 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; text-align: left; font-size: 15px; }
.cell + .cell { border-top: 1px solid var(--fill); }
.cell span { flex: 1; }
.cell em { font-style: normal; font-size: 14px; color: var(--text-3); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .chev { width: 16px; height: 16px; color: var(--text-4); }
.cell.static { cursor: default; padding-right: 42px; }
.ci { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.ci svg { width: 16px; height: 16px; }
.ci-blue { background: var(--brand); } .ci-orange { background: var(--orange); } .ci-green { background: var(--green); }
.ci-gold { background: #d9a453; } .ci-dark { background: #4e5969; }
.ci-gold svg { fill: #fff; stroke: none; }
.logout-btn { display: block; width: calc(100% - 32px); margin: 12px 16px 0; height: 48px; border-radius: var(--radius); background: #fff; color: var(--red); font-size: 15px; box-shadow: var(--shadow); }

/* ================= 客户详情 ================= */
.cover { position: relative; height: calc(180px + var(--safe-top)); background-size: cover; background-position: center; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 45%); }
.cover-avatar { position: absolute; z-index: 2; left: 50%; bottom: -36px; width: 96px; height: 96px; margin-left: -48px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(31, 56, 88, .18); background: #fff; }
.prep-body { display: grid; gap: 12px; padding: 0 16px 20px; margin-top: -24px; position: relative; z-index: 1; }
.prep-head { padding-top: 48px; text-align: center; }
.ph-top { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ph-top h1 { margin: 0; font-size: 22px; }
.prep-head > p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.tags span { font-size: 12px; color: var(--text-2); background: var(--fill); padding: 1px 8px; border-radius: 4px; }
.difficulty-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.diff-text { color: var(--text-2); }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-switch button {
  display: flex; align-items: center; gap: 10px; padding: 12px; text-align: left;
  border-radius: var(--radius); background: #fff; border: 1.5px solid transparent; box-shadow: var(--shadow);
  transition: border-color .15s, background .15s;
}
.mode-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--fill); color: var(--text-2); }
.mode-icon svg { width: 18px; height: 18px; }
.mode-switch b { display: block; font-size: 14.5px; }
.mode-switch small { display: block; font-size: 11.5px; color: var(--text-3); }
.mode-switch button[aria-checked="true"] { border-color: var(--brand); background: linear-gradient(160deg, #fff, #f3f7ff); }
.mode-switch button[aria-checked="true"] .mode-icon { background: var(--brand); color: #fff; }
.info-card { display: grid; gap: 12px; }
.info-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.info-label svg { width: 15px; height: 15px; }
.info-block p { margin: 4px 0 0; font-size: 14.5px; }
.info-block.goal { padding: 12px; border-radius: 10px; background: var(--brand-light); }
.info-block.goal .info-label { color: var(--brand); }
.info-block.goal p { font-weight: 600; }
.info-block.quote p::before { content: "“"; color: var(--brand); }
.info-block.quote p::after { content: "”"; color: var(--brand); }
.place { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--text-2); background: var(--fill); padding: 1px 8px; border-radius: 4px; }
.product-card summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.product-card summary::-webkit-details-marker { display: none; }
.product-card .chev, .transcript-review .chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s; }
.product-card[open] .chev, .transcript-review[open] .chev { transform: rotate(180deg); }
.product-card p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.my-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 6px 0; background: var(--fill); border-radius: 10px; }
.my-stats b { display: block; font-size: 18px; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.my-stats span { font-size: 11.5px; color: var(--text-3); }
.fail-tip { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; font-size: 12px; color: var(--text-3); }
.fail-tip svg { width: 14px; height: 14px; }
#startBtn .ico-phone, #startBtn .ico-meet { display: contents; }
#startBtn svg { width: 18px; height: 18px; }
.app[data-mode="meeting"] #startBtn .ico-phone, .app:not([data-mode="meeting"]) #startBtn .ico-meet { display: none; }
#hangupBtn .ico-meet, .app[data-mode="meeting"] #hangupBtn .ico-phone { display: none; }
.app[data-mode="meeting"] #hangupBtn .ico-meet { display: block; }

/* ================= 通话 ================= */
.view.dark { color: #fff; background: url("/static/img/call-bg.svg") center / cover no-repeat, var(--night); padding-bottom: calc(18px + var(--safe-bottom)); }
.app[data-mode="meeting"] .view.dark { background: radial-gradient(120% 60% at 50% 0%, rgba(255, 181, 71, .2), transparent 60%), url("/static/img/call-bg.svg") center / cover no-repeat, var(--night); }
.call-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(14px + var(--safe-top)) 16px 0; font-size: 13px; color: rgba(255, 255, 255, .78); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 1.6s infinite; }
.view.dark[data-phase="connecting"] .live-dot { background: rgba(255, 255, 255, .4); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.call-timer { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.call-hero { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-wrap { position: relative; width: 150px; height: 150px; margin: 10px 0 6px; display: grid; place-items: center; }
.avatar { position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .08s linear; background: #fff; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(124, 170, 255, .55); transform: scale(var(--s, .7)); transition: transform .12s linear, opacity .3s; opacity: 0; }
.ring-2 { border-color: rgba(124, 170, 255, .25); }
.view.dark[data-phase="ai"] .ring { opacity: 1; }
.view.dark[data-phase="user"] .ring { opacity: 1; border-color: rgba(74, 222, 128, .5); }
.view.dark[data-phase="user"] .ring-2 { border-color: rgba(74, 222, 128, .22); }
.view.dark[data-phase="thinking"] .avatar { animation: think 1.2s ease-in-out infinite; }
@keyframes think { 50% { transform: scale(.94); } }
.call-name { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.call-role { font-size: 13px; color: rgba(255, 255, 255, .62); }
.mode-chip { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; font-size: 12px; color: #a9c7ff; background: rgba(76, 141, 255, .16); border: 1px solid rgba(76, 141, 255, .32); }
.phase-text { margin-top: 6px; font-size: 13px; color: #a9c7ff; min-height: 20px; }
.goal-pill { flex: none; display: flex; gap: 8px; align-items: center; margin: 12px 16px 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.goal-pill b { flex: none; color: #fff; background: var(--brand); font-size: 11px; padding: 0 7px; border-radius: 4px; font-weight: 500; }
.goal-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitles { flex: 1; min-height: 120px; display: flex; flex-direction: column; margin: 12px 16px 0; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px); overflow: hidden; }
.sub-head { flex: none; display: flex; justify-content: space-between; padding: 10px 14px 4px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.sub-stats { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.transcript { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 12px 14px; scroll-behavior: smooth; scrollbar-width: none; }
.transcript::-webkit-scrollbar { display: none; }
.msg { display: flex; gap: 8px; max-width: 88%; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .who { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; overflow: hidden; }
.msg .who img { width: 100%; height: 100%; }
.msg .bubble { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.ai .bubble { background: rgba(255, 255, 255, .12); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .who { background: var(--brand); color: #fff; }
.msg.me .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.msg.interim .bubble { opacity: .6; }
.msg.typing .bubble::after { content: "▍"; animation: blink 1s steps(1) infinite; margin-left: 1px; opacity: .6; }
@keyframes blink { 50% { opacity: 0; } }
.sys-note { align-self: center; font-size: 11.5px; color: #fff; background: rgba(76, 141, 255, .5); padding: 1px 10px; border-radius: 99px; }
.empty-note { margin: auto; color: rgba(255, 255, 255, .45); font-size: 13px; }
.text-input { flex: none; display: flex; gap: 8px; margin: 10px 16px 0; }
.text-input input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
.text-input input::placeholder { color: rgba(255, 255, 255, .45); }
.text-input input:focus { border-color: var(--brand-2); }
.text-input button { flex: none; width: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.call-controls { flex: none; display: flex; justify-content: center; align-items: flex-end; gap: 36px; margin-top: 16px; }
.round-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); font-size: 12px; }
.round-btn svg { width: 56px; height: 56px; padding: 17px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .15s, transform .15s; }
.round-btn:active svg { transform: scale(.94); }
.round-btn.hangup svg { width: 68px; height: 68px; padding: 21px; background: var(--red); stroke: #fff; box-shadow: 0 10px 24px rgba(245, 63, 63, .4); }
.round-btn .icon-mic-off { display: none; }
.round-btn.active svg { background: #fff; stroke: var(--night); }
.round-btn.muted .icon-mic { display: none; }
.round-btn.muted .icon-mic-off { display: block; }

/* ================= 复盘 ================= */
.review-scroll { padding: 12px 16px 20px; display: grid; gap: 12px; align-content: start; grid-auto-rows: max-content; }
.outcome { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #7b8ba5, #5c6b84); }
.outcome[data-state="deal"] { background: linear-gradient(120deg, #23c343, #00a32a); box-shadow: 0 10px 24px rgba(0, 180, 42, .25); }
.outcome[data-state="no_deal"] { background: linear-gradient(120deg, #ff7a5c, #f53f3f); box-shadow: 0 10px 24px rgba(245, 63, 63, .22); }
.outcome[data-state="loading"] { background: linear-gradient(120deg, var(--brand-2), var(--brand)); }
.oc-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.oc-icon svg { width: 26px; height: 26px; display: none; }
.outcome[data-state="deal"] .oc-deal, .outcome[data-state="no_deal"] .oc-fail, .outcome[data-state="loading"] .oc-loading, .outcome[data-state="none"] .oc-fail { display: block; }
.oc-loading { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.oc-text b { font-size: 17px; }
.oc-text p { margin: 2px 0 0; font-size: 12.5px; opacity: .92; line-height: 1.5; }
.score-card { display: flex; align-items: center; gap: 18px; }
.score-ring { position: relative; width: 112px; height: 112px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { stroke-width: 10; fill: none; }
.score-ring .track { stroke: var(--fill); }
.score-ring .bar { stroke: url(#none); stroke: var(--brand); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); stroke-linecap: round; }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num b { font-size: 34px; line-height: 1; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); font-variant-numeric: tabular-nums; }
.score-num span { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.score-side { flex: 1; min-width: 0; }
.score-level { font-size: 19px; font-weight: 600; letter-spacing: 2px; }
.score-delta { display: inline-block; margin-top: 4px; font-size: 12px; padding: 0 8px; border-radius: 4px; }
.score-delta.up { color: var(--green); background: var(--green-light); }
.score-delta.down { color: var(--orange); background: var(--orange-light); }
.score-delta.same { color: var(--text-3); background: var(--fill); }
.review-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.score-summary { margin: 0; font-size: 14px; color: var(--text-2); }
.dims { display: grid; gap: 12px; }
.dim-row { display: grid; grid-template-columns: 64px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.dim-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dim-bar { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.dim-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.dim-comment { grid-column: 2 / 4; font-size: 12px; color: var(--text-3); margin-top: -8px; }
.dot { width: 8px; height: 8px; border-radius: 2px; }
.dot.good { background: var(--green); }
.dot.better { background: var(--orange); }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bullets li { font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border-radius: 8px; }
.bullets.good li { background: #f0fbf3; }
.bullets.better li { background: #fff7ef; }
.better-say { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(29, 33, 41, .12); color: var(--text); line-height: 1.6; }
.better-say b { display: block; font-size: 12px; font-weight: 600; color: #d25f00; margin-bottom: 2px; }
.transcript-review summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.transcript-review summary::-webkit-details-marker { display: none; }
.transcript.light { max-height: 380px; margin-top: 12px; padding: 0; }
.transcript.light .msg.ai .bubble { background: var(--fill); }
.retry-box { text-align: center; padding: 6px 0 2px; }

/* ================= 积分明细 ================= */
.ledger-head { display: flex; flex-direction: column; align-items: center; padding: 26px 16px 30px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); }
.ledger-head span { font-size: 13px; opacity: .85; }
.ledger-head b { font-size: 40px; line-height: 1.2; margin: 2px 0 12px; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.list-card { margin: -14px 16px 12px; padding: 4px 16px; position: relative; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.tx + .tx { border-top: 1px solid var(--fill); }
.tx-main { flex: 1; min-width: 0; }
.tx-main b { font-size: 14.5px; font-weight: 500; }
.tx-main p { margin: 1px 0 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-delta { font-size: 17px; font-weight: 600; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.tx-delta.plus { color: var(--orange); }
.tx-delta.minus { color: var(--text); }

/* ================= 会员中心 ================= */
.member-hero { margin: 12px 16px 0; padding: 16px; border-radius: 14px; color: #f3d8a8; background: linear-gradient(110deg, #3a3226, #1f1a14); }
.mh-user { display: flex; align-items: center; gap: 10px; }
.mh-user b { font-size: 16px; color: #fff; }
.mh-user p { margin: 0; font-size: 12px; color: rgba(243, 216, 168, .75); }
.mh-points { margin-top: 12px; font-size: 12.5px; color: rgba(243, 216, 168, .75); }
.mh-points b { font-size: 18px; color: #f3d8a8; margin-left: 4px; }
.seg { display: flex; margin: 14px 16px 0; padding: 3px; border-radius: 10px; background: #e8ebf0; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.seg button[aria-selected="true"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(31, 56, 88, .1); }
.plan-list { display: grid; gap: 10px; padding: 12px 16px 0; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left; background: #fff; border-radius: var(--radius); border: 1.5px solid transparent; box-shadow: var(--shadow); }
.plan[aria-checked="true"] { border-color: #e2b26b; background: linear-gradient(160deg, #fffaf1, #fff); }
.plan-main { flex: 1; min-width: 0; }
.plan-main b { font-size: 16px; }
.plan-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.plan-gift { display: inline-flex; margin-top: 6px; font-size: 12px; color: #b3741c; background: #fff4e0; padding: 0 8px; border-radius: 4px; }
.plan-price { text-align: right; }
.plan-price b { font-size: 24px; color: var(--text); font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.plan-price b small { font-size: 14px; }
.plan-price span { display: block; font-size: 11.5px; color: var(--text-3); }
.plan-badge { position: absolute; top: -1px; right: -1px; font-size: 11px; color: #fff; background: linear-gradient(90deg, #ff8a3d, #f53f3f); padding: 1px 8px; border-radius: 0 12px 0 10px; }
.topup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 0; }
.topup { padding: 16px 12px; text-align: center; background: #fff; border-radius: var(--radius); border: 1.5px solid transparent; box-shadow: var(--shadow); }
.topup b { display: block; font-size: 22px; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.topup b small { font-size: 13px; font-weight: 500; margin-left: 2px; }
.topup span { font-size: 13px; color: var(--text-3); }
.topup[aria-checked="true"] { border-color: var(--brand); background: #f5f8ff; }
.topup[aria-checked="true"] span { color: var(--brand); }
.rights { margin: 12px 16px 0; }
.rights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rights li { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); }
.rights i { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; background: var(--brand); margin-top: 1px; }
.pay-note { text-align: center; font-size: 12px; color: var(--orange); margin: 14px 16px 20px; }
.price { color: var(--red) !important; }

/* ================= 弹层 / 对话框 / 提示 ================= */
.mask { position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 82%; overflow-y: auto;
  background: #fff; color: var(--text); border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + var(--safe-bottom));
  transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
}
.sheet.show { transform: none; visibility: visible; transition-delay: 0s; }
.sheet-handle { width: 36px; height: 4px; border-radius: 99px; background: var(--line); margin: 0 auto 8px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 16px; }
.sheet-body .login-form { gap: 12px; }
.sheet-body .btn { margin-top: 4px; }
.pay-sheet { text-align: center; }
.pay-sheet .pay-amt { font-size: 34px; font-weight: 700; margin: 4px 0; font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); }
.pay-sheet p { margin: 0 0 16px; font-size: 13px; color: var(--text-3); }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--fill); text-align: left; margin-bottom: 14px; font-size: 14px; }
.pay-method i { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #07c160; color: #fff; font-style: normal; font-size: 12px; }
.pay-method span { flex: 1; }
.pay-method small { color: var(--orange); }
.dialog {
  position: absolute; z-index: 62; left: 50%; top: 50%; width: 300px; max-width: calc(100% - 48px); transform: translate(-50%, -46%) scale(.96);
  background: #fff; border-radius: 14px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center;
}
.dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.dialog h3 { margin: 22px 20px 6px; font-size: 16px; }
.dialog p { margin: 0 22px 20px; font-size: 14px; color: var(--text-2); white-space: pre-line; }
.dialog-actions { display: flex; border-top: 1px solid var(--line); }
.dialog-actions button { flex: 1; height: 48px; font-size: 15px; color: var(--text-2); }
.dialog-actions button + button { border-left: 1px solid var(--line); color: var(--brand); font-weight: 600; }
.dialog.danger #dialogOk { color: var(--red); }
.toast {
  position: absolute; left: 50%; top: 46%; z-index: 80; transform: translate(-50%, -50%) scale(.96);
  width: max-content; max-width: calc(100% - 64px); text-align: center;
  background: rgba(29, 33, 41, .88); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%); }
.toast.error { background: rgba(245, 63, 63, .94); }

/* 语音验证面板 */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric { background: var(--fill); border-radius: 10px; padding: 10px 12px; }
.metric span { display: block; font-size: 12px; color: var(--text-3); }
.metric b { font-size: 19px; font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.summary-box { margin-top: 14px; background: var(--brand-light); border-radius: 10px; padding: 12px 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.summary-box p { margin: 0; font-size: 13px; white-space: pre-wrap; color: var(--text-2); }
.log { margin-top: 14px; font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); background: var(--fill); border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow-y: auto; }
.log div { border-bottom: 1px dashed var(--line); padding: 2px 0; word-break: break-all; }
.log .err { color: var(--red); }

/* ================= 练习方向 ================= */
.cat-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cat-icon svg { width: 24px; height: 24px; }
#view-category { background: linear-gradient(180deg, #dce8ff 0, var(--bg) 280px); }
#view-category .navbar { background: transparent; border-bottom: 0; }
.cat-hero { padding: 20px 20px 16px; }
.cat-hero.first { padding-top: calc(48px + var(--safe-top)); }
.cat-step { display: inline-block; font-size: 12px; color: var(--brand); background: rgba(255, 255, 255, .8); padding: 1px 10px; border-radius: 10px; }
.cat-hero h2 { margin: 10px 0 6px; font-size: 24px; }
.cat-hero p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cat-list { display: grid; gap: 12px; padding: 4px 16px 24px; }
.cat-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left; background: #fff; border-radius: 14px; border: 1.5px solid transparent; box-shadow: var(--shadow); transition: transform .12s, border-color .15s; }
.cat-card:active { transform: scale(.985); }
.cat-card[aria-checked="true"] { border-color: var(--brand); background: linear-gradient(160deg, #fff, #f3f7ff); }
.cat-main { flex: 1; min-width: 0; }
.cat-main b { font-size: 16px; }
.cat-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
.cat-main small { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--brand); background: var(--brand-light); padding: 0 8px; border-radius: 4px; }
.cat-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--text-4); color: transparent; }
.cat-mark svg { width: 14px; height: 14px; stroke-width: 3; }
.cat-card[aria-checked="true"] .cat-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
