/* ============ 装销AI 个人版 · 设计系统 ============
   深邃蓝紫科技感 + 赛博金会员色。移动优先，最大宽 480。
   规则：不使用 emoji 当图标；圆角统一 16/20；所有可点区域 ≥ 44px。 */

:root {
  --bg: #070C19;
  --bg-2: #0C1329;
  --bg-3: #101A38;
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #EAF0FF;
  --text-2: #A9B3D4;
  --muted: #6F7A9C;
  --brand: #5F83FF;
  --brand-2: #9A7BFF;
  --gold: #E8C87A;
  --gold-2: #C9A24D;
  --ok: #3DDC97;
  --warn: #FFB45C;
  --danger: #FF6B7A;
  --grad: linear-gradient(135deg, #5F83FF 0%, #9A7BFF 100%);
  --grad-gold: linear-gradient(135deg, #F3DDA4 0%, #D9B25F 55%, #B98C34 100%);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --r: 18px;
  --tabh: 66px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 420px at 12% -8%, rgba(95, 131, 255, 0.22), transparent 62%),
    radial-gradient(640px 380px at 92% 4%, rgba(154, 123, 255, 0.16), transparent 60%),
    radial-gradient(520px 320px at 50% 108%, rgba(232, 200, 122, 0.07), transparent 64%);
}

#app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto; min-height: 100%;
  padding-bottom: calc(var(--tabh) + 34px);
}

.ico { display: inline-block; vertical-align: -3px; flex: none; }

/* ---------- 顶部（对齐 AICRM 紧凑单行小抬头，防挤压变形） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: 10px 14px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: linear-gradient(180deg, rgba(7, 12, 25, 0.96) 68%, rgba(7, 12, 25, 0));
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 7px; min-width: 0; flex-shrink: 1; }
.brand-logo {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px;
  background: transparent; display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.32);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-txt { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; }
.brand-sub { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.sub-topbar {
  position: sticky; top: 0; z-index: 20;
  padding: 9px 14px 7px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(7, 12, 25, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sub-topbar .ttl {
  font-size: 15px; font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 27px; padding: 0 9px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-2);
  white-space: nowrap; flex-shrink: 0;
}
.pill.gold { color: var(--gold); border-color: rgba(232, 200, 122, 0.32); background: rgba(232, 200, 122, 0.1); }

/* ---------- 通用 ---------- */
.section { padding: 0 16px; }
.h2 {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.2px; margin: 18px 2px 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  white-space: nowrap;
}
.h2 .more { color: var(--brand); font-size: 11.5px; display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
  backdrop-filter: blur(10px);
}
.card + .card { margin-top: 12px; }
.card.tight { padding: 12px 14px; }
.card.gold-edge { border-color: rgba(232, 200, 122, 0.28); background: linear-gradient(160deg, rgba(232, 200, 122, 0.09), rgba(255, 255, 255, 0.04)); }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.muted { color: var(--muted); } .text2 { color: var(--text-2); }
.small { font-size: 12px; } .tiny { font-size: 11px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  font-size: 15px; font-weight: 500; cursor: pointer; user-select: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  width: 100%;
}
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--grad); border: none; box-shadow: 0 10px 24px rgba(95, 131, 255, 0.32); }
.btn-gold { background: var(--grad-gold); color: #2A1E05; border: none; font-weight: 700; box-shadow: 0 10px 24px rgba(232, 200, 122, 0.22); }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; width: auto; white-space: nowrap; }
.btn-line { background: transparent; border: 1px solid var(--line-2); }
.nowrap-btn { white-space: nowrap; }

/* ---------- 行业切换 ---------- */
.ind-scroll {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 16px 4px;
  scrollbar-width: none;
}
.ind-scroll::-webkit-scrollbar { display: none; }
.ind-chip {
  flex: none; display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 13px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all 0.16s ease;
}
.ind-chip.active {
  background: linear-gradient(135deg, rgba(95, 131, 255, 0.9), rgba(154, 123, 255, 0.9));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px rgba(95, 131, 255, 0.3);
}
.ind-chip.locked { opacity: 0.55; }
.ind-chip .lockdot { color: var(--gold); }

/* ---------- 上传区 ---------- */
.upload {
  border: 1.5px dashed rgba(95, 131, 255, 0.42);
  border-radius: var(--r); padding: 26px 18px; text-align: center;
  background: linear-gradient(180deg, rgba(95, 131, 255, 0.09), rgba(95, 131, 255, 0.02));
  cursor: pointer; transition: border-color 0.16s;
}
.upload:active { border-color: var(--brand); }
.upload-ico {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px;
  background: rgba(95, 131, 255, 0.14); display: grid; place-items: center; color: var(--brand);
}
.upload b { font-size: 15px; }
.upload p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 报告 ---------- */
.score-wrap { display: flex; align-items: center; gap: 16px; }
.ring {
  --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: conic-gradient(from -90deg, var(--brand) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid; place-items: center; position: relative;
}
.ring::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0B1226;
}
.ring > div { position: relative; z-index: 1; text-align: center; }
.ring .num { font-size: 26px; font-weight: 700; line-height: 1; font-family: ui-monospace, Consolas, monospace; }
.ring .unit { font-size: 10px; color: var(--muted); }

.level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.lv-A { background: rgba(61, 220, 151, 0.16); color: var(--ok); }
.lv-B { background: rgba(95, 131, 255, 0.18); color: var(--brand); }
.lv-C { background: rgba(255, 180, 92, 0.16); color: var(--warn); }
.lv-D { background: rgba(255, 107, 122, 0.16); color: var(--danger); }

.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.kv:last-child { border-bottom: none; }
.kv .k { flex: none; width: 118px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.kv .v { flex: 1; font-size: 13px; color: var(--text); }

.mistake { border-left: 2px solid rgba(255, 107, 122, 0.55); padding: 2px 0 2px 12px; }
.mistake + .mistake { margin-top: 14px; }
.mistake .tag {
  display: inline-block; font-size: 11px; color: var(--danger);
  background: rgba(255, 107, 122, 0.12); padding: 1px 7px; border-radius: 6px; margin-bottom: 5px;
}
.mistake .fix {
  margin-top: 7px; padding: 10px 11px; border-radius: 10px;
  background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.2);
  font-size: 13px; color: #CFF7E4;
}
.mistake .fix b { color: var(--ok); font-weight: 600; display: block; margin-bottom: 3px; font-size: 11px; }

.obj { padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.obj:last-child { border-bottom: none; }
.obj .q { font-size: 13.5px; color: #FFD9A0; margin-bottom: 6px; }
.obj .a { font-size: 12.5px; color: var(--muted); text-decoration: line-through; margin-bottom: 7px; }
.obj .b { font-size: 13.5px; color: #CFF7E4; background: rgba(61, 220, 151, 0.07); padding: 9px 11px; border-radius: 10px; }

.forbid-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
  padding: 4px 9px; border-radius: 8px; margin: 0 6px 6px 0;
  background: rgba(255, 107, 122, 0.12); color: #FFB3BC; border: 1px solid rgba(255, 107, 122, 0.22);
}

.transcript {
  max-height: 220px; overflow: auto; font-size: 12.5px; line-height: 1.85;
  color: var(--text-2); white-space: pre-wrap; word-break: break-word;
  background: rgba(0, 0, 0, 0.24); border-radius: 12px; padding: 12px;
}

/* ---------- 列表 ---------- */
.li {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.li:last-child { border-bottom: none; }
.li .ico-box {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: rgba(95, 131, 255, 0.12); color: var(--brand);
  display: grid; place-items: center;
}
.li .t { font-size: 14px; }
.li .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.field label .cnt { float: right; color: var(--muted); font-size: 11px; }
.input, textarea.input {
  width: 100%; border-radius: 13px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.26); color: var(--text);
  padding: 12px 14px; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.16s;
}
.input:focus { border-color: var(--brand); }
textarea.input { resize: vertical; min-height: 68px; line-height: 1.6; }
.input::placeholder { color: #4E5878; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--tabh); display: flex;
  max-width: 480px; margin: 0 auto;
  background: rgba(9, 14, 30, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 10.5px; cursor: pointer;
  transition: color 0.15s; position: relative;
}
.tabbtn.active { color: var(--brand); }
.tabbtn.active .tab-ico { background: rgba(95, 131, 255, 0.14); }
.tab-ico {
  width: 38px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  transition: background 0.15s;
}

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(2, 5, 14, 0.7);
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
}
.sheet-mask.show { display: flex; }
.sheet {
  width: 100%; max-width: 480px; max-height: 86vh; overflow: auto;
  background: linear-gradient(180deg, #131C38, #0A1022);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2);
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  animation: up 0.22s ease;
}
@keyframes up { from { transform: translateY(26px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.sheet-bar { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 26px 40px; }
.login-logo {
  width: 68px; height: 68px; border-radius: 20px; background: transparent;
  display: grid; place-items: center; margin-bottom: 20px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.42);
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.3px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 6px 0 26px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { width: 116px; height: 46px; flex: none; font-size: 13px; }
.agree { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

/* ---------- 状态 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabh) + 26px); transform: translateX(-50%) translateY(10px);
  z-index: 90; max-width: 86vw; padding: 11px 16px; border-radius: 12px;
  background: rgba(20, 28, 54, 0.98); border: 1px solid var(--line-2);
  color: var(--text); font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; transition: all 0.22s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255, 107, 122, 0.4); color: #FFC5CB; }

.empty { text-align: center; padding: 42px 20px; color: var(--muted); font-size: 13px; }
.empty .ico { color: #2E3A5E; margin-bottom: 10px; }

.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  animation: rot 0.8s linear infinite; display: inline-block;
}
@keyframes rot { to { transform: rotate(360deg); } }

.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan {
  position: relative; border-radius: 16px; padding: 14px 13px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
}
.plan.hot { border-color: rgba(232, 200, 122, 0.5); background: linear-gradient(160deg, rgba(232, 200, 122, 0.12), rgba(255, 255, 255, 0.04)); }
.plan .badge {
  position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 8px; background: var(--grad-gold); color: #2A1E05;
}
.plan .pn { font-size: 13px; color: var(--text-2); }
.plan .pp {
  font-size: 21px; font-weight: 700; margin: 5px 0 2px;
  font-family: ui-monospace, Consolas, monospace; white-space: nowrap;
  display: flex; align-items: baseline; gap: 2px;
}
.plan .pp small { font-size: 10.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.plan .pd { font-size: 11px; color: var(--muted); line-height: 1.5; }

.seg {
  display: flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.seg button {
  flex: 1; height: 36px; border: none; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 12.5px; cursor: pointer; font-family: inherit;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.seg button.on { background: var(--grad); color: #fff; font-weight: 600; }

/* ================= 工作台 ================= */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 10px; text-align: center;
}
.stat .n { font-size: 21px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; line-height: 1.15; }
.stat .l { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.stat.hot .n { color: var(--gold); }
.stat.brand .n { color: var(--brand); }
.stat.ok .n { color: var(--ok); }

.visit-seg { display: flex; gap: 8px; }
.visit-seg .vs {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); cursor: pointer;
}
.visit-seg .vs.on { border-color: rgba(95, 131, 255, 0.55); background: rgba(95, 131, 255, 0.14); }
.visit-seg .vs .n { font-size: 18px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.visit-seg .vs .l { font-size: 10.5px; color: var(--muted); }

.bucket-h { display: flex; align-items: center; gap: 7px; margin: 16px 2px 8px; font-size: 13px; }
.dot { width: 6px; height: 6px; border-radius: 3px; }
.dot.fire { background: #FF6B7A; box-shadow: 0 0 8px rgba(255, 107, 122, 0.7); }
.dot.main { background: #5F83FF; }
.dot.fill { background: #FFB45C; }
.dot.wake { background: #9A7BFF; }

.cust-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 12px 13px; margin-bottom: 9px;
}
.cust-row .top { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, rgba(95, 131, 255, 0.28), rgba(154, 123, 255, 0.2));
  color: #C9D6FF;
}
.guide { margin-top: 9px; padding: 9px 10px; border-radius: 11px; background: rgba(0, 0, 0, 0.24); }
.guide .g { display: flex; gap: 7px; font-size: 12px; line-height: 1.65; }
.guide .g + .g { margin-top: 4px; }
.guide .g b { color: var(--brand); font-weight: 500; flex: none; }
.guide .g span { color: var(--text-2); }

.banner {
  position: relative; overflow: hidden; border-radius: 16px; padding: 14px;
  background: linear-gradient(120deg, rgba(232, 200, 122, 0.16), rgba(95, 131, 255, 0.14));
  border: 1px solid rgba(232, 200, 122, 0.26);
}
.banner .t { font-size: 14px; font-weight: 600; }
.banner .s { font-size: 11.5px; color: var(--text-2); margin-top: 4px; line-height: 1.6; }

/* ================= 拨号（企业版 DialerScreen 华为原生电话交互复刻） ================= */
.dial-wrap { padding: 0 16px; }
.dial-sheet {
  position: fixed; left: 50%; bottom: var(--tabh);
  transform: translateX(-50%) translateY(calc(100% + var(--tabh) + 32px));
  opacity: 0; visibility: hidden; pointer-events: none;
  width: 100%; max-width: 480px; z-index: 35;
  background: linear-gradient(180deg, rgba(19, 28, 54, 0.98) 0%, rgba(10, 15, 31, 0.99) 100%);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(61, 220, 151, 0.28);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px 16px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.2s ease;
}
.dial-sheet.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.dial-sheet-handle {
  width: 38px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.2); margin: 0 auto 8px; cursor: pointer;
}
.dial-t9-bar {
  max-height: 112px; overflow-y: auto; margin-bottom: 6px;
  background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.25);
  border-radius: 12px; padding: 4px 10px;
}
.dial-t9-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); cursor: pointer;
}
.dial-t9-row:last-child { border-bottom: none; }
.dial-t9-hl { color: #3DDC97; font-weight: 700; }
.dial-display-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 2px 6px 6px;
}
.dial-display {
  flex: 1; text-align: center; font-size: 29px; font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1.5px; color: var(--text); word-break: break-all;
}
.dial-display .ph { color: #56638A; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.key {
  height: 54px; border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.09s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.12s, border-color 0.12s;
}
.key:active, .key.pressed {
  background: rgba(61, 220, 151, 0.22);
  border-color: rgba(61, 220, 151, 0.55);
  transform: scale(0.91);
}
.key .d { font-size: 22px; font-weight: 600; font-family: ui-monospace, Consolas, monospace; line-height: 1.05; }
.key .a { font-size: 9px; color: var(--muted); letter-spacing: 1.2px; font-weight: 600; }
.dial-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 2px;
}
.dial-fn-btn {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer;
}
.dial-fn-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.14); }
.dial-call {
  width: 148px; height: 52px; border-radius: 26px; flex: none;
  background: linear-gradient(135deg, #22C55E, #10B981);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #042417; font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.36);
  transition: transform 0.1s;
}
.dial-call:active { transform: scale(0.94); }
.dial-fab {
  position: fixed; right: max(18px, calc(50vw - 222px)); bottom: calc(var(--tabh) + 20px);
  width: 58px; height: 58px; border-radius: 50%; z-index: 34;
  background: linear-gradient(135deg, #22C55E 0%, #10B981 100%);
  color: #042417; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s;
}
.dial-fab:active { transform: scale(0.9); }
.dial-fab.hide { transform: scale(0.5); opacity: 0; pointer-events: none; }
.call-Quick-btn {
  padding: 4px 8px; border-radius: 8px; font-size: 11px;
  background: rgba(95, 131, 255, 0.12); border: 1px solid rgba(95, 131, 255, 0.28);
  color: #9BB4FF; cursor: pointer; flex: none;
}
.badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  margin-left: 3px;
}

/* ================= 客户 ================= */
.lanes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.lanes::-webkit-scrollbar { display: none; }
.lane {
  flex: none; padding: 7px 13px; border-radius: 11px; font-size: 12.5px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
}
.lane.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.lane .c { opacity: 0.75; font-size: 11px; margin-left: 3px; }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; padding: 6px 11px; border-radius: 9px; font-size: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.fchip.on { color: var(--brand); border-color: rgba(95, 131, 255, 0.45); background: rgba(95, 131, 255, 0.12); }

.cust-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 14px; margin-bottom: 10px; cursor: pointer;
}
.cust-card:active { background: var(--card-2); }
.cust-card .name { font-size: 15px; font-weight: 600; }
.cust-card .meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cust-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tagx {
  font-size: 11px; padding: 3px 8px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid var(--line);
}
.tagx.warn { color: var(--warn); border-color: rgba(255, 180, 92, 0.3); background: rgba(255, 180, 92, 0.1); }
.tagx.danger { color: var(--danger); border-color: rgba(255, 107, 122, 0.3); background: rgba(255, 107, 122, 0.1); }
.tagx.ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.1); }

.follow-item { padding: 10px 0 10px 14px; border-left: 2px solid rgba(95, 131, 255, 0.3); position: relative; }
.follow-item::before {
  content: ""; position: absolute; left: -4px; top: 15px; width: 6px; height: 6px;
  border-radius: 3px; background: var(--brand);
}
.follow-item + .follow-item { margin-top: 4px; }
.follow-item .ft { font-size: 12.5px; }
.follow-item .fm { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ================= 全屏二级页 ================= */
.page {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  max-width: 480px; margin: 0 auto; overflow-y: auto;
  padding-bottom: 24px; animation: slidein 0.2s ease;
}
@keyframes slidein { from { transform: translateX(18px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.page-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(7, 12, 25, 0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-head .ttl { font-size: 15px; font-weight: 600; }
.back-btn {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; color: var(--text-2);
  transform: rotate(180deg);
}

.picker-tip {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  background: rgba(95, 131, 255, 0.08); border: 1px solid rgba(95, 131, 255, 0.22);
  border-radius: 11px; padding: 9px 11px; margin-bottom: 12px; line-height: 1.6;
}

.btn-call {
  background: linear-gradient(135deg, #3DDC97 0%, #10B981 100%);
  color: #042417; border: none; font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.ind-wizard-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 8, 20, 0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.ind-wizard {
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #131E3E 0%, #0A1024 100%);
  border: 1px solid rgba(232, 200, 122, 0.35);
  border-radius: 22px; padding: 20px 18px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.ind-warn-box {
  background: rgba(255, 180, 92, 0.12);
  border: 1px solid rgba(255, 180, 92, 0.38);
  color: #FFD8A8; border-radius: 13px; padding: 11px 12px;
  font-size: 12.5px; line-height: 1.6; margin: 12px 0 14px;
}
.ind-grid-wiz {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
}
.ind-wiz-item {
  border-radius: 14px; padding: 11px 6px; text-align: center;
  background: var(--card); border: 1.5px solid var(--line);
  cursor: pointer; transition: all 0.15s;
}
.ind-wiz-item.sel {
  border-color: #3DDC97;
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.18), rgba(95, 131, 255, 0.1));
  box-shadow: 0 6px 18px rgba(61, 220, 151, 0.22);
}

.poster-card {
  background: linear-gradient(155deg, #16244C 0%, #091024 60%, #1F1810 100%);
  border: 1.5px solid rgba(232, 200, 122, 0.45);
  border-radius: 20px; padding: 20px 18px;
  position: relative; overflow: hidden;
}
.poster-code-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.38); border: 1px dashed rgba(232, 200, 122, 0.45);
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- 企业版融合：HeroBanner / 开工目标卡 / 每日早会 / 四段话术 / 小组与双榜 ---------- */
.hero-banner {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(95, 131, 255, 0.18) 55%, rgba(16, 26, 56, 0.92) 100%);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 20px; padding: 16px 16px 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.hero-num {
  font-size: 36px; font-weight: 800; line-height: 1;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: #3DDC97;
}
.hero-lines {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.hero-line-cell {
  background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 7px 6px; text-align: center;
}
.hero-line-cell .n { font-size: 16px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.hero-line-cell .l { font-size: 10px; color: var(--muted); }
.hero-action-row {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.hero-start-btn {
  flex: 1; height: 40px; border-radius: 11px; border: none;
  background: #FFFFFF; color: #059669;
  font-size: 13.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}
.hero-start-btn:active { transform: scale(0.98); }
.hero-all-btn {
  height: 40px; padding: 0 13px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.45);
  color: var(--text); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.hero-all-btn:active { transform: scale(0.98); }

.goal-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 15px; margin-top: 12px;
}
.goal-bar-wrap { margin-top: 8px; }
.goal-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 5px; }
.goal-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--grad); transition: width 0.3s ease; }
.goal-bar.ok > i { background: linear-gradient(90deg, #3DDC97, #10B981); }

.morning-card {
  background: linear-gradient(160deg, rgba(95, 131, 255, 0.11), rgba(154, 123, 255, 0.07));
  border: 1px solid rgba(95, 131, 255, 0.28);
  border-radius: 18px; padding: 14px 15px; margin-top: 12px;
}
.morning-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.24);
}
.morning-main {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 107, 122, 0.08); border: 1px solid rgba(255, 107, 122, 0.22);
}
.morning-fix {
  margin-top: 7px; padding: 9px 11px; border-radius: 10px;
  background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.25);
  color: #CFF7E4; font-size: 12.5px;
}

.open-script-box {
  margin-top: 6px; padding: 8px 10px; border-radius: 9px;
  background: rgba(61, 220, 151, 0.08); border: 1px dashed rgba(61, 220, 151, 0.32);
  font-size: 12px; color: #CFF7E4; cursor: pointer;
}

.group-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 12px 14px; margin-bottom: 10px;
}
.rank-badge {
  width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; font-family: ui-monospace, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2); flex: none;
}
.rank-badge.r1 { background: var(--grad-gold); color: #2A1E05; }
.rank-badge.r2 { background: rgba(95, 131, 255, 0.28); color: #C9D6FF; }
.rank-badge.r3 { background: rgba(61, 220, 151, 0.22); color: #3DDC97; }

/* ================= AI 呼吸灯状态胶囊 ================= */
.ai-breath-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 9px; border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.35);
  color: var(--text); font-size: 11px; font-weight: 600;
  cursor: pointer; user-select: none; white-space: nowrap; flex-shrink: 0;
}
.breath-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #3DDC97;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7);
  animation: breath-ok 2.2s infinite ease-in-out;
}
.ai-breath-pill.analyzing {
  background: rgba(95, 131, 255, 0.16);
  border-color: rgba(95, 131, 255, 0.45);
  color: #9BB4FF;
}
.ai-breath-pill.analyzing .breath-dot {
  background: #5F83FF;
  animation: breath-fast 1s infinite ease-in-out;
}
.ai-breath-pill.capturing {
  background: rgba(255, 180, 92, 0.16);
  border-color: rgba(255, 180, 92, 0.45);
  color: var(--warn);
}
.ai-breath-pill.capturing .breath-dot {
  background: #FFB45C;
  animation: breath-fast 1.2s infinite ease-in-out;
}
.ai-breath-pill.error {
  background: rgba(255, 107, 122, 0.15);
  border-color: rgba(255, 107, 122, 0.42);
  color: var(--danger);
}
.ai-breath-pill.error .breath-dot {
  background: #FF6B7A;
  animation: none;
}
@keyframes breath-ok {
  0%, 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.65); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(61, 220, 151, 0); }
}
@keyframes breath-fast {
  0%, 100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(95, 131, 255, 0.85); opacity: 0.75; }
  50% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(95, 131, 255, 0); opacity: 1; }
}

/* ================= 模型选择卡与感叹号详情按钮 ================= */
.model-card {
  position: relative; border-radius: 14px; padding: 10px 11px;
  border: 1.5px solid var(--line); background: var(--card);
  cursor: pointer; transition: all 0.16s ease; margin-bottom: 8px;
}
.model-card.on, .model-card.sel {
  border-color: #3DDC97;
  background: linear-gradient(155deg, rgba(61, 220, 151, 0.14), rgba(95, 131, 255, 0.08));
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.18);
}
.model-info-btn {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(95, 131, 255, 0.15); border: 1px solid rgba(95, 131, 255, 0.35);
  color: var(--brand); cursor: pointer; flex: none;
}
.model-info-btn:active { transform: scale(0.9); }

/* ================= 原声录音播放器与回访提醒横幅 ================= */
.audio-player-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 14px;
  background: rgba(16, 185, 129, 0.09); border: 1px solid rgba(61, 220, 151, 0.3);
  margin-bottom: 12px;
}
.due-alert-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 14px; margin-top: 8px;
  background: linear-gradient(135deg, rgba(255, 107, 122, 0.18), rgba(255, 180, 92, 0.14));
  border: 1px solid rgba(255, 107, 122, 0.42);
}

/* ================= 昼夜双主题（浅色纯净白底翠绿主题） ================= */
html[data-theme="light"] {
  --bg: #F4F6FB;
  --bg-2: #FFFFFF;
  --bg-3: #EEF2FA;
  --card: #FFFFFF;
  --card-2: #F0F4FC;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.15);
  --text: #111827;
  --text-2: #374151;
  --muted: #6B7280;
  --brand: #3B66F5;
  --brand-2: #7C5CFA;
  --gold: #B47814;
  --gold-2: #925E09;
  --ok: #059669;
  --warn: #D97706;
  --danger: #DC2626;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(680px 380px at 10% -6%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(620px 340px at 90% 2%, rgba(59, 102, 245, 0.08), transparent 60%);
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .sub-topbar,
html[data-theme="light"] .page-head {
  background: rgba(244, 246, 251, 0.94);
}
html[data-theme="light"] .hero-start-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}
html[data-theme="light"] .hero-all-btn {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.38);
  color: #059669;
}
html[data-theme="light"] .tabbar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .sheet,
html[data-theme="light"] .ind-wizard {
  background: #FFFFFF;
  color: #111827;
}
html[data-theme="light"] .dial-sheet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 246, 252, 0.99) 100%);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .dial-sheet-handle { background: rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .key {
  background: #F4F6FB;
  border-color: rgba(15, 23, 42, 0.08);
  color: #111827;
}
html[data-theme="light"] .input,
html[data-theme="light"] textarea.input {
  background: #F7F9FC;
  color: #111827;
}
html[data-theme="light"] .hero-banner {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.13) 0%, rgba(59, 102, 245, 0.1) 60%, #FFFFFF 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.08);
}
html[data-theme="light"] .hero-num { color: #059669; }
html[data-theme="light"] .hero-line-cell,
html[data-theme="light"] .guide,
html[data-theme="light"] .morning-kpis,
html[data-theme="light"] .visit-seg .vs,
html[data-theme="light"] .seg,
html[data-theme="light"] .transcript {
  background: #F3F6FC;
}
html[data-theme="light"] .open-script-box,
html[data-theme="light"] .morning-fix,
html[data-theme="light"] .mistake .fix,
html[data-theme="light"] .obj .b {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
}
html[data-theme="light"] .obj .q { color: #B45309; }
html[data-theme="light"] .ind-warn-box { background: rgba(245, 158, 11, 0.12); color: #92400E; }
html[data-theme="light"] .ring::after { background: #FFFFFF; }
html[data-theme="light"] .toast { background: #1F2937; color: #FFFFFF; }
html[data-theme="light"] .poster-card {
  background: linear-gradient(155deg, #FFFDF7 0%, #F3F7FF 100%);
  color: #111827;
}
html[data-theme="light"] .poster-code-box { background: rgba(180, 120, 20, 0.08); }




