/* ============ 备考督学 设计系统 ============
   风格: Notion / Linear / Apple Health —— 简洁、专业、克制、数据化
   主色: 深蓝 + 黑白灰 + 柔和绿 */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #17202b;
  --sub: #5c6675;
  --muted: #98a1b0;
  --line: #e6e9ee;
  --brand: #1e3a5f;
  --brand-2: #2d5285;
  --brand-soft: #e8eef6;
  --green: #2e9e6b;
  --green-soft: #e3f2ea;
  --yellow: #c08a1e;
  --yellow-soft: #faf0dc;
  --red: #c24545;
  --red-soft: #f9e9e9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 32, 43, .04), 0 4px 16px rgba(23, 32, 43, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
b { font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.ok-text { color: var(--green); }
.warn-text { color: var(--red); }
.link { color: var(--brand-2); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 22px 10px; font-size: 14px; }
.empty-inline { color: var(--muted); padding: 8px 4px; font-size: 13px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  flex: none;
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 26px; }
.brand-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.stat-chip {
  font-size: 12px; color: var(--sub); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.stat-chip b { color: var(--brand); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  font-weight: 600; font-size: 14px; flex: none;
}
.avatar.lg { width: 52px; height: 52px; font-size: 22px; }
.avatar.xl { width: 60px; height: 60px; font-size: 26px; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.coach-name { font-weight: 600; font-size: 14px; }

/* ---------- 布局 ---------- */
.content { max-width: 560px; margin: 0 auto; padding: 16px 14px calc(86px); }
body.coach .content { max-width: 1120px; padding: 20px 22px 48px; }

/* ---------- 卡片 / 区块 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.section { margin-bottom: 14px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.section-head h3 { font-size: 15px; font-weight: 700; }
.page-head { margin: 4px 0 14px; }
.page-head h2 { font-size: 20px; font-weight: 800; }
.page-head p { margin-top: 2px; }
.page-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head.row a { flex: none; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.kv span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kv p { font-size: 14px; }
.kv p.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  animation: toast-in 3.5s forwards;
  max-width: 86vw; text-align: center;
}
@keyframes toast-in { 0% {opacity: 0; transform: translate(-50%, -8px);} 8% {opacity: 1; transform: translate(-50%, 0);} 82% {opacity: 1;} 100% {opacity: 0;} }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  padding: 11px 18px; border-radius: 12px; transition: background .15s;
}
.btn:hover { background: var(--brand-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px; font-size: 15px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--sub); border: 1px solid var(--line);
  cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit;
  padding: 9px 16px; border-radius: 12px; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); background: var(--brand-soft); }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 12px; }
input, select, textarea {
  width: 100%; margin-top: 6px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fbfcfd; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(45, 82, 133, .12);
  background: #fff;
}
textarea { resize: vertical; line-height: 1.6; }
fieldset { border: none; margin: 0 0 12px; }
legend { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 62px; }
.input-suffix span { position: absolute; right: 12px; bottom: 10px; font-size: 13px; color: var(--muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 7px 12px; font-size: 13px; color: var(--ink);
  background: #f7f8fa; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; user-select: none;
}
.check-item input { width: auto; margin: 0; accent-color: var(--brand-2); }
.check-item:has(input:checked) { background: var(--brand-soft); border-color: rgba(45, 82, 133, .35); color: var(--brand); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-err {
  background: var(--red-soft); color: var(--red); font-size: 13px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 12px;
}
.form-hint { margin-top: 8px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ---------- 模块标签 ---------- */
.pill {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  color: var(--mc, #5c6675); background: var(--mbg, #eef0f3); flex: none;
}
[data-m="言语"] { --mc: #3f6f9e; --mbg: #e8eef6; }
[data-m="判断"] { --mc: #8a6bbf; --mbg: #efeaf8; }
[data-m="资料"] { --mc: #2e9e6b; --mbg: #e3f2ea; }
[data-m="数量"] { --mc: #c08a1e; --mbg: #faf0dc; }
[data-m="常识"] { --mc: #4f8a8b; --mbg: #e6f1f1; }
[data-m="申论"] { --mc: #b0608a; --mbg: #f8ebf2; }
[data-m="套题"] { --mc: #5b6472; --mbg: #eef0f3; }
.pill.m-plain { --mc: #5c6675; --mbg: #eef0f3; }
.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.tag-ok { color: var(--green); background: var(--green-soft); }
.tag-good { color: var(--green); background: var(--green-soft); }
.tag-warn { color: var(--red); background: var(--red-soft); }
.tag-cur { color: var(--brand-2); background: var(--brand-soft); }
.tag-auto { color: var(--sub); background: #eef0f3; }
.tag-coach { color: var(--brand-2); background: var(--brand-soft); }

/* ---------- 首页 Hero ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.big-num { font-size: 42px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-num .unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.ring { width: 116px; height: 116px; transform: rotate(-90deg); flex: none; }
.ring-track { fill: none; stroke: #edf0f4; stroke-width: 10; }
.ring-bar {
  fill: none; stroke: var(--brand-2); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 100 100; transition: stroke-dasharray .6s ease;
}
.ring-num { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; font-size: 24px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
.ring-label { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; font-size: 10px; fill: var(--muted); }
.hero-stats { display: flex; gap: 22px; margin-top: 14px; }
.hero-stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11px; color: var(--muted); }
.line-card {
  background: var(--brand-soft); color: var(--brand-2);
  font-size: 13.5px; font-weight: 500; padding: 11px 16px;
  border-radius: 12px; margin-bottom: 14px;
}

/* ---------- 任务卡片 ---------- */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fbfcfd; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; text-align: left; cursor: pointer;
  font-family: inherit; transition: border-color .15s, background .15s;
}
.task-card:hover { border-color: rgba(45, 82, 133, .4); }
.task-card.done { background: #f7faf8; opacity: .82; cursor: default; }
.task-card.static { cursor: default; }
.task-card.static:hover { border-color: var(--line); }
.task-body { flex: 1; min-width: 0; }
.task-title { display: block; font-size: 14px; }
.task-meta { display: block; font-size: 12px; margin-top: 2px; }
.task-result { display: block; font-size: 12px; margin-top: 3px; }
.task-result .tag { margin-left: 6px; }
.task-state svg { width: 24px; height: 24px; fill: none; stroke-width: 2.2; }
.task-state .ok { stroke: var(--green); }
.task-state .todo { stroke: #c9d0da; }
.ok-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- 打卡 ---------- */
.checkin-done { margin-bottom: 14px; }
.checkin-done-head { display: flex; align-items: center; gap: 12px; }
.checkin-done-head b { display: block; }
.checkin-done-head span.muted { display: block; font-size: 12px; }
.note-text { margin-top: 10px; font-size: 13px; color: var(--sub); background: #f7f8fa; padding: 9px 13px; border-radius: 10px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(23, 32, 43, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: 480px; margin: 0 auto;
  border-radius: 20px 20px 0 0; padding: 20px;
  max-height: 88vh; overflow-y: auto;
  animation: sheet-up .22s ease;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.modal-head h3 { font-size: 16px; margin-top: 6px; }
.modal-close { border: none; background: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); padding: 4px 0;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--brand-2); font-weight: 600; }

/* ---------- 登录 ---------- */
.auth-wrap { max-width: 400px; margin: 0 auto; padding: 40px 16px 20px; }
.auth-card { padding: 26px 24px; }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand h1 { font-size: 22px; font-weight: 800; margin-top: 10px; }
.auth-brand p { margin-top: 4px; }
.auth-tabs { display: flex; gap: 4px; background: #f2f4f7; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; border: none; background: transparent; padding: 9px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--sub); border-radius: 9px; font-family: inherit;
}
.auth-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(23, 32, 43, .08); }
.demo-tip { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.demo-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.demo-row code { color: var(--brand-2); font-size: 12px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 12px; }

/* ---------- 阶段计划 ---------- */
.phase-progress { margin-bottom: 14px; }
.phase-progress-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.phase-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #edf0f4; }
.phase-seg { position: relative; background: #dfe4ea; }
.phase-seg.on { background: var(--brand-2); }
.phase-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.phase-labels span.on { color: var(--brand-2); font-weight: 600; }
.phase-list { display: flex; flex-direction: column; gap: 10px; }
.phase-card { padding: 0; overflow: hidden; }
.phase-card.cur { border-color: rgba(45, 82, 133, .45); }
.phase-card summary {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  cursor: pointer; list-style: none;
}
.phase-card summary::-webkit-details-marker { display: none; }
.phase-no {
  font-size: 12px; font-weight: 700; color: var(--brand-2);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; flex: none;
}
.phase-summary { flex: 1; }
.phase-summary b { display: block; font-size: 14px; }
.phase-summary span { font-size: 12px; }
.phase-detail { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.phase-detail .kv { margin-top: 12px; }
.phase-detail .kv p { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tip-card { display: flex; gap: 12px; align-items: flex-start; }
.tip-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

/* ---------- 数据驾驶舱 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { padding: 14px 12px; text-align: center; }
.stat-card.sub { box-shadow: none; }
.stat-num { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mock-goal { display: flex; align-items: center; gap: 14px; }
.mock-score b { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mock-score span { color: var(--muted); font-size: 14px; }
.goal-track { flex: 1; height: 10px; border-radius: 999px; background: #edf0f4; overflow: hidden; }
.goal-bar { height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--green)); border-radius: 999px; }
.goal-nums { display: flex; flex-direction: column; font-size: 11px; color: var(--sub); text-align: right; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.module-card { background: #fbfcfd; border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-num { font-size: 26px; font-weight: 800; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.module-num .unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.module-track { height: 6px; border-radius: 999px; background: #edf0f4; overflow: hidden; }
.module-bar { height: 100%; border-radius: 999px; }
.module-bar.good { background: var(--green); }
.module-bar.ok { background: var(--brand-2); }
.module-bar.warn { background: var(--yellow); }
.module-bar.bad { background: var(--red); }
.module-bar.muted { background: #c9d0da; }
.diag-row { display: flex; align-items: center; gap: 18px; }
.radar-wrap { flex: none; width: 220px; }
.radar-wrap svg { width: 100%; height: auto; }
.diag-legend { flex: 1; }
.diag-item { margin-bottom: 12px; }
.diag-item b { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.diag-item p { font-size: 12px; margin-top: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.good { background: var(--green); }
.dot.ok { background: var(--brand-2); }
.dot.warn { background: var(--yellow); }
.dot.red { background: var(--red); }
.dot.blue { background: var(--brand-2); }
.dot.yellow { background: var(--yellow); }
.chart { width: 100%; margin-top: 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--sub); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- 周报 ---------- */
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-card { display: flex; align-items: center; gap: 14px; padding: 15px; }
.report-card:hover { border-color: rgba(45, 82, 133, .4); }
.report-no {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--brand);
  padding: 8px 12px; border-radius: 12px; flex: none; text-align: center; line-height: 1.3;
}
.report-body { flex: 1; min-width: 0; }
.report-body b { font-size: 14px; display: block; }
.report-meta { font-size: 12px; margin-top: 2px; }
.report-advice { font-size: 12.5px; color: var(--sub); margin-top: 4px; }
.chev { color: var(--muted); font-size: 20px; flex: none; }
.change-list { display: flex; flex-direction: column; gap: 10px; }
.change-row { display: flex; align-items: center; gap: 12px; background: #fbfcfd; border-radius: 12px; padding: 10px 12px; }
.change-nums { flex: 1; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 14px; }
.arrow { color: var(--muted); }
.prob-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.prob-list li { position: relative; padding-left: 16px; font-size: 14px; }
.prob-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); opacity: .5; }
.coach-note { border-color: rgba(45, 82, 133, .25); }
.coach-text { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.back-row { margin-top: 16px; }

/* ---------- 我的 ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-name { font-size: 18px; display: inline-block; margin-right: 8px; }
.profile-head .tag { vertical-align: 2px; }
.profile-head p { margin-top: 4px; }
.coach-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { background: #f7f8fa; border-radius: 12px; padding: 11px 14px; }
.fb-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 3px; }
.fb-item p { font-size: 13.5px; }
.link-list { display: flex; flex-direction: column; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: none; }
.link-row b { display: block; font-size: 14px; color: var(--ink); }
.link-row span { font-size: 12px; }

/* ---------- 诊断表单 ---------- */
.diag-form { padding: 6px 18px 18px; }
.diag-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.diag-block:last-of-type { border-bottom: none; }
.diag-block h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--brand); }
.diag-form .btn { margin-top: 16px; }

/* ---------- 教练端 ---------- */
.coach-nav { display: flex; gap: 4px; }
.coach-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--sub);
  padding: 7px 14px; border-radius: 999px;
}
.coach-nav a.on { color: var(--brand-2); background: var(--brand-soft); }
.coach-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.cstat { padding: 16px; }
.cstat-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cstat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cstat.g .cstat-num { color: var(--green); }
.cstat.y .cstat-num { color: var(--yellow); }
.cstat.r .cstat-num { color: var(--red); }
.coach-group { margin-bottom: 22px; }
.group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.group-head b { font-size: 14px; }
.group-head .muted { margin-left: auto; }
.coach-list { display: flex; flex-direction: column; gap: 8px; }
.student-row { display: flex; align-items: center; gap: 14px; padding: 14px; }
.student-row:hover { border-color: rgba(45, 82, 133, .4); }
.srow-main { flex: 1; min-width: 0; }
.srow-line1 { display: flex; align-items: center; gap: 8px; }
.srow-line1 b { font-size: 15px; }
.srow-meta { font-size: 12px; margin-top: 2px; }
.srow-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.mini-tag {
  font-size: 11px; color: var(--sub); background: #f2f4f7;
  padding: 2px 8px; border-radius: 999px;
}
.srow-right { text-align: right; font-size: 12px; line-height: 1.7; flex: none; }
.srow-right b { font-size: 14px; }
.last-ck { color: var(--muted); font-size: 11px; }
.risk-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
.risk-badge.green { color: var(--green); background: var(--green-soft); }
.risk-badge.yellow { color: var(--yellow); background: var(--yellow-soft); }
.risk-badge.red { color: var(--red); background: var(--red-soft); }

/* ---------- 异常提醒 ---------- */
.alert-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.alert-card { border-left: 4px solid var(--line); }
.alert-card.red { border-left-color: var(--red); }
.alert-card.yellow { border-left-color: var(--yellow); }
.alert-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.alert-head .muted { margin-left: auto; font-size: 12px; }
.alert-body { margin-bottom: 10px; }
.alert-stu { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.alert-msg { font-size: 14.5px; font-weight: 600; }
.rules-card { margin-top: 4px; }
.rule-grid { display: grid; gap: 12px; }
.rule-item { display: flex; gap: 10px; align-items: flex-start; }
.rule-item .dot { margin-top: 5px; }
.rule-item b { font-size: 13.5px; display: block; }
.rule-item p { font-size: 12.5px; margin-top: 1px; }

/* ---------- 学员详情（教练） ---------- */
.stu-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.stu-head-left { display: flex; gap: 14px; align-items: flex-start; }
.stu-name { font-size: 20px; }
.stu-head-left p { margin-top: 3px; font-size: 13px; }
.stu-head-stats { display: flex; gap: 22px; align-items: center; }
.stu-head-stats div { text-align: right; }
.stu-head-stats b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.stu-head-stats span { font-size: 11px; color: var(--muted); }
.alert-strip { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mini-alert {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.mini-alert.red { border-color: rgba(194, 69, 69, .3); background: var(--red-soft); }
.mini-alert.yellow { border-color: rgba(192, 138, 30, .3); background: var(--yellow-soft); }
.stu-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px solid #f1f3f6; font-variant-numeric: tabular-nums; }
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 52px; font-size: 13px; flex: none; }
.bar-track { flex: 1; height: 8px; border-radius: 999px; background: #edf0f4; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.good { background: var(--green); }
.bar-fill.warn { background: var(--yellow); }
.bar-fill.bad { background: var(--red); }
.bar-val { width: 44px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.phase-mini { display: flex; flex-direction: column; gap: 8px; }
.phase-mini-item { background: #fbfcfd; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; }
.phase-mini-item.on { border-color: rgba(45, 82, 133, .45); background: var(--brand-soft); }
.phase-mini-item b { display: block; font-size: 13.5px; }
.phase-mini-item span { font-size: 12px; }
.feedback-form { margin-top: 12px; display: flex; gap: 10px; align-items: flex-end; }
.feedback-form textarea { flex: 1; margin: 0; }
.report-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.report-row:last-child { border-bottom: none; }

/* ---------- 计划调整 / 周报编辑 ---------- */
.plan-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.draft-day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.draft-day:last-child { border-bottom: none; }
.draft-day > b { font-size: 13px; display: block; margin-bottom: 6px; }
.draft-tasks { display: flex; flex-direction: column; gap: 6px; }
.draft-task {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: #fbfcfd; border-radius: 10px; padding: 7px 10px;
}
.draft-task .muted { margin-left: auto; font-size: 12px; }
.week-picker { margin-bottom: 14px; }
.week-picker label { margin: 0; }
.auto-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auto-two b { font-size: 13.5px; display: block; margin-bottom: 8px; }

/* ---------- 占位页 ---------- */
.placeholder-card { text-align: center; padding: 40px 22px; }
.placeholder-icon {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px;
  background: var(--brand-soft); color: var(--brand-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.placeholder-card h3 { font-size: 16px; margin-bottom: 8px; }
.placeholder-card .prob-list { text-align: left; max-width: 340px; margin: 14px auto; }
.ai-note {
  margin: 16px auto 0; max-width: 380px; font-size: 12.5px; color: var(--sub);
  background: #f7f8fa; border-radius: 10px; padding: 9px 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .content { padding: 12px 12px calc(88px); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .plan-edit-grid, .auto-two { grid-template-columns: 1fr; }
  .stu-head { flex-direction: column; }
  .stu-head-stats { width: 100%; justify-content: space-between; }
  .stu-head-stats div { text-align: center; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 0 8px; }
  .coach-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .srow-right { display: none; }
  .radar-wrap { width: 170px; }
  .big-num { font-size: 36px; }
}
