/* ═══════════════════════════════════════════════════════════════
   LynseeAI 翎析 · 数据分析系统 — 全局设计系统
   暗底 #0A0A0B / 卡面 #151518 / 品牌青 #48E0C0 / Inter + Noto Sans SC
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #0A0A0B; --bg2: #0F0F12; --surface: #151518; --surface2: #1B1B20;
  --line: #26262C; --line2: #30303A;
  --txt: #F4F6F5; --txt2: #A8B0AE; --txt3: #6B7472;
  --cyan: #48E0C0; --cyan-d: #0D9488; --cyan-t: #14B8A6;
  --cyan-08: rgba(72,224,192,.08); --cyan-15: rgba(72,224,192,.15); --cyan-30: rgba(72,224,192,.30);
  --amber: #F5B94A; --red: #F26D6D; --blue: #5B9CF6; --violet: #9D8CFF;
  --grad-cyan: linear-gradient(135deg, #48E0C0, #14B8A6);
  --grad-btn: linear-gradient(90deg, #48E0C0, #14B8A6);
  --radius: 14px; --radius-s: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --sidebar-w: 236px; --header-h: 60px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--txt);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body::before { /* 品牌氛围光 */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 340px at 85% -10%, rgba(72,224,192,.065), transparent 60%),
    radial-gradient(600px 300px at -10% 110%, rgba(20,184,166,.05), transparent 60%);
}
a { color: var(--cyan); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.mono, .num { font-variant-numeric: tabular-nums; }

/* ───────── 通用组件 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-s); font-weight: 600; font-size: 14px;
  transition: all .18s ease; white-space: nowrap; user-select: none;
}
.btn-primary { background: var(--grad-btn); color: #05231D; box-shadow: 0 4px 18px rgba(72,224,192,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(72,224,192,.4); }
.btn-outline { border: 1px solid var(--line2); color: var(--txt); background: transparent; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-08); }
.btn-ghost { color: var(--txt2); }
.btn-ghost:hover { color: var(--cyan); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.card-pad { padding: 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.badge-cyan { background: var(--cyan-15); color: var(--cyan); }
.badge-amber { background: rgba(245,185,74,.14); color: var(--amber); }
.badge-red { background: rgba(242,109,109,.13); color: var(--red); }
.badge-blue { background: rgba(91,156,246,.13); color: var(--blue); }
.badge-violet { background: rgba(157,140,255,.13); color: var(--violet); }
.badge-gray { background: var(--surface2); color: var(--txt2); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--txt2); font-weight: 500; }
.input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--txt);
  padding: 11px 14px; border-radius: var(--radius-s); outline: none; transition: border .15s;
  width: 100%;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-15); }
.input::placeholder { color: var(--txt3); }

.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--surface2); border: 1px solid var(--line2); color: var(--txt);
  padding: 11px 20px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px;
  display: flex; align-items: center; gap: 9px; animation: toastIn .3s ease; max-width: 90vw;
}
.toast.ok { border-color: rgba(72,224,192,.5); } .toast.ok::before { content: '✓'; color: var(--cyan); font-weight: 700; }
.toast.err { border-color: rgba(242,109,109,.5); } .toast.err::before { content: '✕'; color: var(--red); font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

.modal-mask { position: fixed; inset: 0; background: rgba(5,6,8,.72); backdrop-filter: blur(6px); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--surface); border: 1px solid var(--line2); border-radius: 16px;
  width: min(520px, 96vw); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
  animation: popIn .22s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal-head { padding: 18px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 16px 22px 22px; }
.modal-x { color: var(--txt3); font-size: 20px; line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--txt); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 11px 14px; color: var(--txt3); font-weight: 600; font-size: 12px; letter-spacing: .3px; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }

/* ───────── 应用布局（登录后） ───────── */
#app { display: none; min-height: 100vh; }
#app.on { display: block; }
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--line);
  position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.brand { min-height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.brand img { height: 30px; }
.brand .bn { font-size: 16.5px; font-weight: 800; letter-spacing: .3px; }
.brand .bn em { font-style: normal; color: var(--cyan); }
.brand-sub { font-size: 10.5px; color: var(--txt3); letter-spacing: 1.5px; margin-top: -2px; }
/* 横版 logo 品牌区：logo 上、文字下，两行 */
.brand-h { flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px 18px; }
.brand-h .brand-logo-row { width: 100%; }
.brand-h .brand-logo-row img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }
.brand-h .brand-sub2 { font-size: 10.5px; color: var(--txt3); letter-spacing: 1.5px; line-height: 1.4; }

.nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-group { margin-bottom: 18px; }
.nav-group-title { font-size: 10.5px; color: var(--txt3); letter-spacing: 1.5px; padding: 0 10px 7px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 11px; border-radius: 9px;
  color: var(--txt2); font-size: 13.5px; font-weight: 500; cursor: pointer; margin-bottom: 2px;
  transition: all .13s; position: relative; width: 100%; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.nav-item:hover { color: var(--txt); background: rgba(255,255,255,.04); }
.nav-item.on { color: var(--cyan); background: var(--cyan-08); font-weight: 600; }
.nav-item.on::before { content: ''; position: absolute; left: -12px; top: 20%; bottom: 20%; width: 3px; border-radius: 2px; background: var(--cyan); }
.nav-item .cnt { margin-left: auto; font-size: 10.5px; background: var(--surface2); padding: 1px 7px; border-radius: 99px; color: var(--txt3); }
.nav-item .cnt.hot { background: var(--cyan-15); color: var(--cyan); }

.plan-card { margin: 12px; padding: 14px; border-radius: 12px; background: linear-gradient(150deg, rgba(72,224,192,.12), rgba(72,224,192,.03)); border: 1px solid rgba(72,224,192,.25); }
.plan-card .pv { font-size: 12px; color: var(--txt2); display: flex; justify-content: space-between; align-items: center; }
.plan-card .pv b { color: var(--cyan); font-size: 13px; }
.plan-card .quota { margin-top: 10px; }
.quota-bar { height: 5px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 5px; }
.quota-bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad-btn); }
.quota-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt3); margin-top: 5px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 14px; padding: 0 26px; position: sticky; top: 0; background: rgba(10,10,11,.85); backdrop-filter: blur(12px); z-index: 40;
}
.crumb { font-size: 14px; color: var(--txt2); display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumb b { color: var(--txt); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--txt2); border: 1px solid var(--line); background: transparent; transition: all .15s; position: relative; }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-cyan); color: #052018; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.user-menu { position: absolute; top: 50px; right: 26px; width: 230px; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 60; display: none; }
.user-menu.on { display: block; animation: popIn .18s ease; }
.user-menu .um-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .um-head .ue { font-size: 12.5px; color: var(--txt3); }
.um-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--txt2); font-size: 13px; cursor: pointer; width: 100%; text-align: left; }
.um-item:hover { background: var(--surface2); color: var(--txt); }
.um-item svg { width: 15px; height: 15px; }

.content { padding: 26px; max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.page-head .sub { color: var(--txt2); font-size: 13.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* KPI 卡 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 17px 18px; }
.kpi .kv { font-size: 25px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .kv small { font-size: 13px; color: var(--txt3); font-weight: 500; margin-left: 3px; }
.kpi .kl { font-size: 12px; color: var(--txt2); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.kpi .kd { font-size: 11px; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.kpi .kd.up { color: var(--cyan); } .kpi .kd.down { color: var(--red); }

/* 图表容器 */
.chart-grid { display: grid; gap: 16px; }
.cg-2 { grid-template-columns: repeat(2, 1fr); }
.cg-3 { grid-template-columns: repeat(3, 1fr); }
.chart-card { padding: 18px 18px 12px; }
.chart-card .cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.chart-card .cc-title { font-size: 14.5px; font-weight: 700; }
.chart-card .cc-sub { font-size: 11.5px; color: var(--txt3); margin-top: 2px; }
.chart { width: 100%; height: 300px; }
.chart.tall { height: 360px; } .chart.short { height: 240px; }
.ai-note {
  margin: 8px 0 10px; padding: 11px 14px; border-radius: 10px; font-size: 12.8px; line-height: 1.75;
  background: linear-gradient(120deg, rgba(72,224,192,.07), rgba(20,184,166,.03));
  border-left: 3px solid var(--cyan); color: #C9D6D2;
}
.ai-note b { color: var(--cyan); }
.ai-note .an-tag { font-size: 10.5px; color: var(--cyan); font-weight: 700; letter-spacing: 1px; margin-right: 6px; }

/* 锁定/升级 */
.locked { position: relative; }
.locked .chart, .locked .lock-body { filter: blur(7px) saturate(.4); pointer-events: none; user-select: none; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; z-index: 5; background: rgba(21,21,24,.25);
}
.lock-overlay .lk-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--cyan-15); display: flex; align-items: center; justify-content: center; }
.lock-overlay .lk-ico svg { width: 22px; height: 22px; stroke: var(--cyan); }
.lock-overlay .lk-t { font-size: 14px; font-weight: 700; }
.lock-overlay .lk-d { font-size: 12px; color: var(--txt2); max-width: 300px; text-align: center; }

/* ───────── 登录/注册页 ───────── */
#auth { min-height: 100vh; display: flex; position: relative; z-index: 1; }
.auth-left { flex: 1.15; display: flex; flex-direction: column; justify-content: center; padding: 60px 7vw; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(72,224,192,.14); right: -220px; top: -220px; }
.auth-left::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; border: 1px dashed rgba(72,224,192,.18); right: -100px; bottom: -100px; }
.auth-hero { max-width: 460px; position: relative; }
.auth-hero .hb { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.auth-hero .hb img { height: 38px; }
.auth-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.28; letter-spacing: -.5px; }
.auth-hero h1 em { font-style: normal; background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-hero p { color: var(--txt2); margin: 18px 0 30px; font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 430px; }
.hero-stat { padding: 14px; text-align: center; }
.hero-stat .v { font-size: 21px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.hero-stat .l { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.auth-right { width: min(460px, 92vw); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding: 44px 44px 32px; }
.auth-card h2 { font-size: 22px; font-weight: 800; }
.auth-card .ac-sub { color: var(--txt2); font-size: 13px; margin: 6px 0 24px; }
.auth-tabs { display: flex; background: var(--bg2); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--txt3); transition: all .15s; }
.auth-tabs button.on { background: var(--surface2); color: var(--txt); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--txt3); font-size: 13px; }
.auth-demo { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--line2); font-size: 12.5px; color: var(--txt2); }
.auth-demo b { color: var(--cyan); }
.auth-demo .fill { float: right; color: var(--cyan); font-size: 12px; cursor: pointer; font-weight: 600; }
.auth-foot { margin-top: auto; padding-top: 26px; font-size: 11.5px; color: var(--txt3); text-align: center; }
.lang-pill { position: fixed; top: 18px; right: 20px; z-index: 20; display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-pill button { padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--txt3); }
.lang-pill button.on { background: var(--cyan-15); color: var(--cyan); }

/* ───────── 兑换码页 ───────── */
.redeem-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }
.redeem-card { width: min(560px, 94vw); text-align: center; padding: 44px 40px; }
.redeem-card img { height: 44px; margin-bottom: 18px; }
.redeem-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.redeem-card .rc-sub { color: var(--txt2); font-size: 13.5px; margin-bottom: 28px; }
.code-input { display: flex; gap: 10px; max-width: 400px; margin: 0 auto 14px; }
.code-input input { flex: 1; text-align: center; font-family: var(--mono); letter-spacing: 3px; font-size: 16px; text-transform: uppercase; }
.redeem-steps { display: flex; justify-content: center; gap: 0; margin: 26px 0 6px; }
.rstep { display: flex; align-items: center; font-size: 11.5px; color: var(--txt3); }
.rstep .rs-n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 11px; margin-right: 7px; color: var(--txt2); }
.rstep.done .rs-n { background: var(--cyan-15); color: var(--cyan); }
.rstep::after { content: '→'; margin: 0 12px; color: var(--line2); }
.rstep:last-child::after { content: ''; }
.success-burst { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--cyan-15); display: flex; align-items: center; justify-content: center; animation: popIn .4s ease; }
.success-burst svg { width: 34px; height: 34px; stroke: var(--cyan); stroke-width: 2.5; }
.plan-unlocked { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.pu-item { padding: 12px; font-size: 12px; color: var(--txt2); }
.pu-item b { display: block; color: var(--cyan); font-size: 13px; margin-bottom: 2px; }

/* ───────── 比赛卡片 ───────── */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; }
.match-card { overflow: hidden; cursor: pointer; transition: all .18s ease; }
.match-card:hover { transform: translateY(-3px); border-color: rgba(72,224,192,.4); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.mc-thumb { height: 118px; position: relative; background: linear-gradient(140deg, #16211E, #101614); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mc-thumb .court-ico { font-size: 40px; opacity: .16; filter: grayscale(.4); }
.mc-score { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: rgba(10,10,11,.75); backdrop-filter: blur(4px); }
.mc-score.win { color: var(--cyan); border: 1px solid rgba(72,224,192,.35); }
.mc-score.lose { color: var(--red); border: 1px solid rgba(242,109,109,.3); }
.mc-body { padding: 13px 15px 14px; }
.mc-opp { font-size: 14.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.mc-meta { font-size: 11.5px; color: var(--txt3); margin-top: 5px; display: flex; gap: 10px; flex-wrap: wrap; }
.mc-rating { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.mc-rating .rv { font-size: 20px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.rating-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.rate-s { background: rgba(245,185,74,.13); color: var(--amber); }
.rate-a { background: var(--cyan-15); color: var(--cyan); }
.rate-b { background: rgba(91,156,246,.12); color: var(--blue); }

/* ───────── 报告页 ───────── */
.report-hero { padding: 22px 24px; margin-bottom: 18px; overflow: hidden; }
.rh-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.rh-avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-cyan); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #052018; }
.rh-info { flex: 1; min-width: 200px; }
.rh-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-meta { font-size: 12.5px; color: var(--txt2); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.rh-score-box { text-align: center; padding: 8px 26px; border-radius: 14px; background: linear-gradient(160deg, rgba(72,224,192,.14), rgba(72,224,192,.04)); border: 1px solid rgba(72,224,192,.3); }
.rh-score { font-size: 46px; font-weight: 800; color: var(--cyan); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rh-grade { font-size: 12px; color: var(--txt2); }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mkpi { text-align: center; }
.mkpi .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mkpi .v small { font-size: 11px; color: var(--txt3); }
.mkpi .l { font-size: 10.5px; color: var(--txt3); margin-top: 1px; }

/* 击球序列 */
.seq-strip { display: flex; gap: 5px; overflow-x: auto; padding: 12px 4px; }
.seq-chip { flex-shrink: 0; min-width: 64px; text-align: center; padding: 8px 6px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.seq-chip .sc-v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seq-chip .sc-t { font-size: 10px; color: var(--txt3); margin-top: 1px; }
.seq-chip .sc-g { font-size: 9.5px; color: var(--txt3); border-top: 1px dashed var(--line2); margin-top: 4px; padding-top: 3px; }

/* AI 评估面板 */
.ai-panel { padding: 22px; background: linear-gradient(165deg, rgba(72,224,192,.07), transparent 55%), var(--surface); border: 1px solid rgba(72,224,192,.2); margin-bottom: 18px; }
.ai-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ai-ava { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-cyan); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ai-panel-head h3 { font-size: 16px; font-weight: 800; }
.ai-panel-head .badge { margin-left: auto; }
.ai-sec { margin-bottom: 14px; }
.ai-sec:last-child { margin-bottom: 0; }
.ai-sec h4 { font-size: 13px; color: var(--cyan); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.ai-sec p { font-size: 13.5px; line-height: 1.85; color: #CBD5D2; }
.suggest-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 9px; }
.suggest-item .si-n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--cyan-15); color: var(--cyan); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.suggest-item .si-b b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.suggest-item .si-b span { font-size: 12.5px; color: var(--txt2); line-height: 1.7; }

/* ───────── 对比页 ───────── */
.vs-select { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.vs-select select { flex: 1; min-width: 180px; }
.vs-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--txt2); flex-shrink: 0; }

/* ───────── AI 教练页 ───────── */
.coach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.coach-chip { padding: 13px; text-align: center; cursor: pointer; transition: all .15s; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.coach-chip:hover { border-color: var(--cyan); }
.coach-chip.on { border-color: var(--cyan); background: var(--cyan-08); }
.coach-ava { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.coach-chip .cn { font-size: 13px; font-weight: 700; }
.coach-chip .cr { font-size: 10.5px; color: var(--txt3); margin-top: 2px; }
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 300px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 11px; max-width: 82%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .m-ava { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.msg .m-bubble { padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.8; }
.msg.ai .m-bubble { background: var(--bg2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.me .m-bubble { background: linear-gradient(135deg, rgba(72,224,192,.25), rgba(20,184,166,.15)); border: 1px solid rgba(72,224,192,.35); border-top-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--txt3); animation: tp 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input-bar { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.quick-qs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.qq { font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--txt2); background: var(--bg2); transition: all .13s; }
.qq:hover { border-color: var(--cyan); color: var(--cyan); }

/* ───────── 进步追踪 ───────── */
.pb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pb-item { padding: 16px 18px; }
.pb-item .pb-l { font-size: 12px; color: var(--txt2); }
.pb-item .pb-v { font-size: 24px; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pb-item .pb-v small { font-size: 12px; color: var(--txt3); font-weight: 500; }
.pb-item .pb-d { font-size: 11.5px; color: var(--cyan); }
.cal-heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 4px; }
.cal-cell { aspect-ratio: 1; border-radius: 3.5px; background: var(--surface2); position: relative; cursor: default; }
.cal-cell:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--line2); padding: 4px 9px; border-radius: 6px; font-size: 11px; white-space: nowrap; z-index: 10; }

/* ───────── 上传向导 ───────── */
.upload-zone { border: 2px dashed var(--line2); border-radius: 16px; padding: 52px 24px; text-align: center; transition: all .2s; cursor: pointer; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--cyan); background: var(--cyan-08); }
.upload-zone .uz-ico { font-size: 42px; margin-bottom: 12px; }
.upload-zone h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.upload-zone p { color: var(--txt2); font-size: 12.5px; }
.proc-steps { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.proc-step { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.proc-step:last-child { border-bottom: none; }
.ps-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.ps-ico svg { width: 17px; height: 17px; stroke: var(--txt2); }
.proc-step.done .ps-ico { background: rgba(72,224,192,.15); }
.proc-step.done .ps-ico svg { stroke: var(--cyan); }
.proc-step.run .ps-ico::after { content: ''; position: absolute; inset: -3px; border-radius: 14px; border: 2px solid var(--cyan); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ps-body { flex: 1; }
.ps-body .pn { font-size: 14px; font-weight: 600; }
.ps-body .pd { font-size: 12px; color: var(--txt3); margin-top: 2px; }
.ps-pct { font-size: 12px; color: var(--cyan); font-variant-numeric: tabular-nums; width: 40px; text-align: right; }

/* ───────── 剪辑页 ───────── */
.clip-player { aspect-ratio: 16/9; background: #0D1110 center/cover; border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.clip-player::before { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(72,224,192,.1), transparent); }
.cp-court { position: relative; width: 58%; aspect-ratio: 0.95; border: 2px solid rgba(72,224,192,.35); border-radius: 4px; }
.cp-court::before, .cp-court::after { content: ''; position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(72,224,192,.3); }
.cp-court::before { top: 50%; } .cp-court::after { top: 25%; }
.cp-court .cp-lines { position: absolute; top: 75%; left: 0; right: 0; border-top: 1.5px dashed rgba(72,224,192,.3); }
.cp-net { position: absolute; top: 47%; left: -8%; right: -8%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 12px var(--cyan); }
.cp-shuttle { position: absolute; font-size: 18px; filter: drop-shadow(0 0 6px rgba(72,224,192,.8)); z-index: 3; }
.cp-shuttle.animate { animation: shuttleFly 2.6s ease-in-out infinite alternate; }
@keyframes shuttleFly { 0% { left: 12%; top: 12%; } 25% { left: 45%; top: 40%; } 50% { left: 78%; top: 65%; } 75% { left: 50%; top: 30%; } 100% { left: 20%; top: 70%; } }
.timeline-bar { position: relative; height: 64px; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.tl-seg { position: absolute; top: 0; bottom: 0; background: var(--cyan-15); border-left: 1px solid var(--cyan-30); }
.tl-seg.play { background: rgba(245,185,74,.2); border-color: rgba(245,185,74,.4); }
.tl-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--txt); z-index: 4; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.tl-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.tl-time { font-family: var(--mono); font-size: 12px; color: var(--txt2); }

/* ───────── 设置页 ───────── */
.settings-nav { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.settings-nav button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--txt2); font-size: 13px; font-weight: 500; background: var(--surface); }
.settings-nav button.on { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-08); }
.sub-box { padding: 22px; background: linear-gradient(150deg, rgba(72,224,192,.1), rgba(72,224,192,.02)); border: 1px solid rgba(72,224,192,.25); border-radius: var(--radius); margin-bottom: 18px; }
.sub-box .sb-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13.5px; flex-wrap: wrap; gap: 8px; }
.sub-box .sb-row span { color: var(--txt2); }
.sub-box .sb-row b { font-weight: 700; }

/* ───────── 管理端 ───────── */
.admin-sidebar .nav-item svg { width: 16px; height: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }
.st-ok { background: var(--cyan); box-shadow: 0 0 6px rgba(72,224,192,.6); }
.st-warn { background: var(--amber); box-shadow: 0 0 6px rgba(245,185,74,.6); }
.st-err { background: var(--red); } .st-run { background: var(--blue); animation: pulse 1.4s infinite; }
.st-idle { background: var(--txt3); }
@keyframes pulse { 50% { opacity: .35; } }
.drawer-mask { position: fixed; inset: 0; background: rgba(5,6,8,.6); z-index: 850; animation: fadeIn .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); background: var(--surface); border-left: 1px solid var(--line2); z-index: 860; overflow-y: auto; box-shadow: var(--shadow); animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); z-index: 5; }
.drawer-body { padding: 18px 22px; }
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.kv-row span { color: var(--txt3); }
.kv-row b { text-align: right; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; min-height: 42px; align-items: center; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--txt3); }
.empty .em-ico { font-size: 44px; margin-bottom: 12px; opacity: .5; }
.empty h4 { font-size: 15px; color: var(--txt2); margin-bottom: 6px; }
.empty p { font-size: 12.5px; }

/* 移动端抽屉导航 */
.hamb { display: none; }
.mob-mask { display: none; position: fixed; inset: 0; background: rgba(5,6,8,.65); z-index: 55; }

/* ───────── 响应式 ───────── */
@media (max-width: 1080px) {
  .cg-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { max-width: 100%; }
}
@media (max-width: 900px) {
  .cg-2, .cg-3 { grid-template-columns: 1fr; }
  .chart { height: 260px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mob-mask.on { display: block; }
  .main { margin-left: 0; }
  .hamb { display: flex; }
  .content { padding: 16px 14px 90px; }
  .topbar { padding: 0 14px; }
  .auth-left { display: none; }
  .auth-right { width: 100%; border-left: none; padding: 36px 22px; }
  .crumb .crumb-sep, .crumb .crumb-pre { display: none; }
  .page-head h2 { font-size: 19px; }
  .chart { height: 240px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi .kv { font-size: 20px; }
  .plan-unlocked { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .chat-wrap { height: calc(100vh - 260px); }
  .vs-select select { min-width: 130px; }
}
/* 移动端吸底操作栏 */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: rgba(10,10,11,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-cta .btn { flex: 1; padding: 11px 8px; font-size: 13px; }
  .hide-m { display: none !important; }
  .tbl-wrap { overflow-x: auto; }
  .tbl { min-width: 560px; }
  .seq-chip { min-width: 54px; }
  .rh-avatar { width: 52px; height: 52px; font-size: 21px; }
  .rh-score { font-size: 38px; }
  .coach-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat .v { font-size: 17px; }
  .modal { width: 96vw; }
}
