/* ==========================================================================
 * 升学合规评估 · 用户端（biz）设计系统 v2
 *
 * 主色遵循 V5 UI 规范：#1E40AF（深蓝），此处只做呈现层升级，不改品牌色。
 * 两套呈现：
 *   ≥1024px   PC ：左侧固定导航 232px + 顶栏 + 宽屏表格 / 多列网格
 *   <1024px   H5 ：顶栏 + 底部毛玻璃 Tab + 单列卡片流
 * ========================================================================== */

/* ---------------- 设计变量 ---------------- */
:root {
  /* 品牌（V5 规范，禁止自行发挥） */
  --el-color-primary: #1E40AF;
  --el-color-primary-light-3: #3B62C4;
  --el-color-primary-light-5: #5B82D6;
  --el-color-primary-light-7: #8AA6E4;
  --el-color-primary-light-8: #A9BEEC;
  --el-color-primary-light-9: #DBEAFE;
  --el-color-primary-dark-2: #1E3A8A;

  /* 自有 token */
  --brand: #1E40AF;
  --brand-2: #1E3A8A;
  --brand-soft: #EFF4FF;
  --ink-1: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --line: #E7ECF4;
  --line-soft: #F1F4F9;
  --ok: #16A34A;
  --warn: #E08A00;
  --danger: #DC2626;
  --info: #2563EB;

  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --sp: 16px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-2: 0 6px 22px rgba(15, 23, 42, .09);
  --shadow-brand: 0 6px 18px rgba(30, 64, 175, .28);

  /* 交还给 Element Plus 的中性色，避免灰扑扑的默认灰 */
  --el-border-color: #E7ECF4;
  --el-border-color-light: #EFF2F7;
  --el-bg-color-page: #F4F6FB;
  --el-text-color-primary: #0F172A;
  --el-text-color-regular: #334155;
  --el-text-color-secondary: #64748B;
  --el-border-radius-base: 8px;
  --el-font-size-base: 14px;
}

/* ---------------- 基础 ---------------- */
* { -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-1); margin: 0; font-weight: 600; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.boot-loading { padding: 80px 0; text-align: center; color: var(--ink-4); }

/* ==========================================================================
 * 一、布局骨架
 * ========================================================================== */
.biz-shell { min-height: 100vh; }

/* ---- H5 外壳 ---- */
.biz-shell.is-mobile { display: flex; flex-direction: column; }

.biz-header {
  position: sticky; top: 0; z-index: 100;
  height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(120deg, #0F172A 0%, #1E3A8A 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.biz-header .biz-header-title { font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.biz-user-chip { display: flex; align-items: center; cursor: pointer; outline: none; }
.biz-user-chip .el-avatar { background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; }

/* ---- PC 外壳 ---- */
.biz-shell.is-pc { display: grid; grid-template-columns: 232px 1fr; }

.biz-side {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0F172A 0%, #16255A 55%, #1E3A8A 100%);
  color: #fff;
  overflow: hidden;
}
.biz-side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.biz-side-logo {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3B62C4, #1E40AF);
  font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 64, 175, .45);
}
.biz-side-name { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.biz-side-sub { font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 1px; }

.biz-side-scroll { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.biz-side-group { margin-bottom: 6px; }
.biz-side-group-title {
  font-size: 11px; color: rgba(255, 255, 255, .42);
  padding: 12px 10px 6px; letter-spacing: 1px;
}
.biz-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 2px;
  border-radius: var(--r-sm);
  font-size: 14px; color: rgba(255, 255, 255, .78);
  cursor: pointer; user-select: none;
  transition: background .16s, color .16s;
}
.biz-side-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.biz-side-item.active {
  background: linear-gradient(90deg, rgba(59, 98, 196, .95), rgba(30, 64, 175, .85));
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px rgba(30, 64, 175, .35);
}
.biz-side-item .el-icon { font-size: 17px; }
.biz-side-foot {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  font-size: 11px; color: rgba(255, 255, 255, .38);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.biz-main { display: flex; flex-direction: column; min-width: 0; }

.biz-topbar {
  position: sticky; top: 0; z-index: 90;
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.biz-topbar-title { font-size: 17px; font-weight: 600; color: var(--ink-1); }
.biz-topbar-crumb { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
.biz-topbar-right { display: flex; align-items: center; gap: 14px; }
.biz-topbar-user {
  display: flex; align-items: center; gap: 8px; cursor: pointer; outline: none;
}
.biz-topbar-user .uname { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.biz-topbar-user .urole {
  font-size: 11px; color: #fff; background: var(--brand-soft); color: var(--brand);
  padding: 1px 7px; border-radius: 20px;
}
.biz-topbar-user .el-avatar { background: var(--brand); color: #fff; font-size: 13px; }

.biz-content { flex: 1; min-width: 0; box-sizing: border-box; }
.is-pc .biz-content { padding: 22px 24px 32px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* PC 双列（个人中心这类「信息 + 设置」页面避免右侧大片留白） */
.pc-cols { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-cols .ui-card { margin-bottom: 14px; }
.is-mobile .biz-content {
  padding: 12px 12px calc(62px + env(safe-area-inset-bottom));
  max-width: 720px; width: 100%; margin: 0 auto;
}

/* ---- H5 底部 Tab ---- */
.biz-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, .05);
}
.biz-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 6px;
  font-size: 11px; color: var(--ink-4);
  cursor: pointer; user-select: none;
  transition: color .16s;
}
.biz-tab.active { color: var(--brand); font-weight: 600; }
.biz-tab.active .el-icon { transform: translateY(-1px); }
.biz-tab .el-icon { transition: transform .16s; }

/* ==========================================================================
 * 二、通用块
 * ========================================================================== */
.ui-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.ui-card.tight { padding: 12px 14px; }
.ui-card.flat { box-shadow: none; }
.ui-card-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.ui-card-title h3 { font-size: 15px; font-weight: 600; color: var(--ink-1); }
.ui-card-title .sub { font-size: 12px; color: var(--ink-4); font-weight: 400; }
.ui-card-title::before { content: none; }

.ui-section { margin-bottom: 18px; }
.ui-divider { height: 1px; background: var(--line-soft); margin: 12px 0; }

.muted { color: var(--ink-3); font-size: 12px; }
.hint { color: var(--ink-4); font-size: 12px; }

/* 页面头（仅 PC；H5 有顶栏标题，不重复） */
.page-head { margin-bottom: 16px; }
.page-head h2 { font-size: 20px; font-weight: 600; }
.page-head .desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.is-mobile .page-head { display: none; }

/* 工具条：搜索 / 筛选 / 操作 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .spacer { flex: 1; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-chip {
  flex-shrink: 0; padding: 4px 14px; border-radius: 20px; cursor: pointer;
  font-size: 13px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line);
  transition: all .16s;
}
.filter-chip:hover { border-color: var(--el-color-primary-light-7); color: var(--brand); }
.filter-chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500;
}

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.stat-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--el-color-primary-light-8); }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .sc-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 18px;
}
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--ink-1); line-height: 1.2; margin-top: 8px; }
.stat-card .lbl { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat-card .num.red { color: var(--danger); }
.stat-card .num.green { color: var(--ok); }
.stat-card .num.orange { color: var(--warn); }
@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- 快捷入口 ---------------- */
.quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; font-size: 12px; color: var(--ink-2);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.quick-item:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-2);
  border-color: var(--el-color-primary-light-8);
}
.quick-item .qi-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 20px;
}
.quick-item .qi-icon.green { background: #E8F8EF; color: var(--ok); }
.quick-item .qi-icon.orange { background: #FEF4E6; color: var(--warn); }
.quick-item .qi-icon.purple { background: #F3EEFB; color: #7C3AED; }
.quick-item .qi-icon.blue { background: var(--brand-soft); color: var(--brand); }
.quick-item .qi-icon.slate { background: #EEF2F7; color: var(--ink-3); }
@media (min-width: 1024px) { .quick-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------------- 空状态 ---------------- */
.ui-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 16px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
  color: var(--ink-4); font-size: 13px;
}
.ui-empty .ue-icon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--el-color-primary-light-5); font-size: 26px;
}
.ui-empty .ue-title { color: var(--ink-2); font-size: 14px; font-weight: 500; margin-bottom: 4px; }

/* ---------------- 记录卡片（H5 列表 / PC 也可作卡片视图） ---------------- */
.rec-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px 15px; margin-bottom: 10px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.rec-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--el-color-primary-light-8); }
.rec-card .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rec-card .rc-title { font-size: 15px; font-weight: 600; color: var(--ink-1); }
.rec-card .rc-row { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.rec-card .rc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft);
}
.rec-card .rc-meta { font-size: 12px; color: var(--ink-4); }

/* PC 下卡片列表转两列，提高信息密度 */
@media (min-width: 1024px) {
  .rec-list.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rec-list.cols-2 .rec-card { margin-bottom: 0; }
}

/* ---------------- 表格（PC）微调 ---------------- */
.ui-table .el-table { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.ui-table .el-table th.el-table__cell { background: #F7F9FC !important; color: var(--ink-2); font-weight: 600; }
.ui-table .el-table td.el-table__cell { padding: 11px 0; }
.ui-table .el-table__row { cursor: pointer; }

/* ---------------- 标签 ---------------- */
.ui-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 9px; border-radius: 20px; font-size: 12px; line-height: 20px;
}
.ui-tag.ok { background: #E8F8EF; color: var(--ok); }
.ui-tag.warn { background: #FEF4E6; color: var(--warn); }
.ui-tag.danger { background: #FDECEC; color: var(--danger); }
.ui-tag.info { background: var(--brand-soft); color: var(--brand); }
.ui-tag.plain { background: #F1F4F9; color: var(--ink-3); }

/* ---------------- 表单 / 弹层 ---------------- */
.el-dialog { border-radius: 16px !important; overflow: hidden; }
.el-dialog__header { padding: 18px 20px 10px; }
.el-dialog__title { font-size: 16px; font-weight: 600; color: var(--ink-1); }
.el-dialog__body { padding: 10px 20px 18px; }
.el-drawer__title { font-weight: 600; color: var(--ink-1); }
.is-mobile .el-dialog { width: 92% !important; }

/* ---------------- 悬浮按钮（H5） ---------------- */
.fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(74px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #3B62C4, #1E40AF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  cursor: pointer; z-index: 90;
  transition: transform .16s;
}
.fab:active { transform: scale(.94); }
.is-pc .fab { display: none; }

/* ---------------- 个人中心菜单行 ---------------- */
.menu-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft); cursor: pointer; background: transparent;
}
.menu-row:last-child { border-bottom: none; }
.menu-row:hover { color: var(--brand); }

/* ==========================================================================
 * 三、登录页
 * ========================================================================== */
.login-wrap {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(59, 98, 196, .55), transparent 60%),
    linear-gradient(160deg, #0B1224 0%, #16255A 45%, #1E3A8A 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.login-panel {
  width: 100%; max-width: 400px;
  background: rgba(255, 255, 255, .97);
  border-radius: 20px; padding: 30px 26px 26px;
  box-shadow: 0 24px 60px rgba(8, 15, 40, .35);
}
.login-brand { text-align: center; color: #fff; margin-bottom: 26px; }
.login-brand .logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 28px; font-weight: 700; margin-bottom: 14px;
}
.login-brand h1 { font-size: 21px; color: #fff; margin: 0 0 6px; letter-spacing: 1px; }
.login-brand p { font-size: 13px; color: rgba(255, 255, 255, .72); margin: 0; }
.login-panel h2 { font-size: 18px; margin-bottom: 4px; }
.login-panel .lp-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.login-panel .el-button { width: 100%; height: 42px; font-size: 15px; margin-top: 6px; }
.login-tip { text-align: center; color: rgba(255, 255, 255, .6); font-size: 12px; margin-top: 20px; }
.login-feats { display: flex; gap: 18px; justify-content: center; margin-top: 18px; }
.login-feats span { color: rgba(255, 255, 255, .7); font-size: 12px; }
@media (min-width: 1024px) {
  .login-wrap { flex-direction: row; gap: 72px; }
  .login-brand { text-align: left; margin-bottom: 0; max-width: 420px; }
  .login-brand .logo-mark { margin-left: 0; }
  .login-brand h1 { font-size: 30px; }
  .login-brand p { font-size: 15px; line-height: 1.8; }
  .login-tip { display: none; }
}

/* ==========================================================================
 * 四、AI 问答
 * ========================================================================== */
.chat-page { display: flex; flex-direction: column; }
.chat-body { flex: 1; padding: 4px 0 8px; }
.chat-msg { display: flex; margin-bottom: 14px; }
.chat-msg.me { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%; padding: 11px 14px;
  border-radius: 14px; font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  box-shadow: var(--shadow-1);
}
.chat-msg.ai .chat-bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.chat-msg.me .chat-bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.chat-msg.ai .chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-right: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.chat-input-bar { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; background: transparent; }
.chat-input-bar .el-textarea { flex: 1; }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-quick span {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3);
}
.chat-quick span:hover { border-color: var(--el-color-primary-light-7); color: var(--brand); }

/* 报告预览（V7 业务端，纸张观感） */
.report-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 10px);
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
  overflow-y: auto;
}
.report-preview h2 { font-size: 17px; color: var(--brand); margin: 16px 0 8px; }
.report-preview h3 { font-size: 15px; color: var(--ink-2); margin: 12px 0 6px; }
.report-preview table { border-collapse: collapse; width: 100%; font-size: 13px; }
.report-preview th, .report-preview td { border: 1px solid var(--line); padding: 7px 10px; }
.report-preview th { background: var(--brand-soft); }

/* AI 回答底部的政策来源引用卡片（V5 七.2） */
.chat-sources {
  margin-top: 10px; padding: 8px 10px;
  background: var(--bg-page, #f7f9fc); border-radius: 8px;
  border: 1px dashed var(--line);
}
.chat-sources-title { font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.chat-source-item { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.chat-source-item + .chat-source-item { margin-top: 4px; }
.chat-source-name { font-weight: 600; color: var(--ink-2); }
.chat-source-snippet { word-break: break-all; }
.chat-msg.me .chat-sources { display: none; }
@media (min-width: 1024px) {
  .chat-page { height: calc(100vh - 190px); min-height: 420px; }
  .chat-body { overflow-y: auto; }
}

/* ==========================================================================
 * 五、报告
 * ========================================================================== */
.report-content {
  font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word;
  color: var(--ink-2);
}

/* ==========================================================================
 * 六、异地高考 · 资格测算（新增）
 * ========================================================================== */
.calc-form .el-form-item { margin-bottom: 14px; }
.calc-form .el-form-item__label { font-size: 13px; color: var(--ink-2); padding-bottom: 4px; }

.verdict-card {
  border-radius: var(--r-lg); padding: 18px 20px; color: #fff;
  background: linear-gradient(135deg, #2563EB, #1E3A8A);
  box-shadow: var(--shadow-2);
}
.verdict-card.ok { background: linear-gradient(135deg, #16A34A, #0F7A38); }
.verdict-card.warn { background: linear-gradient(135deg, #E08A00, #B36B00); }
.verdict-card.bad { background: linear-gradient(135deg, #DC2626, #991B1B); }
.verdict-card .vc-top { display: flex; align-items: center; gap: 12px; }
.verdict-card .vc-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.verdict-card .vc-title { font-size: 19px; font-weight: 700; }
.verdict-card .vc-sub { font-size: 12px; opacity: .82; margin-top: 2px; }
.verdict-card .vc-sum { margin-top: 12px; font-size: 13px; line-height: 1.7; opacity: .95; }

.gap-list { display: flex; flex-direction: column; gap: 10px; }
.gap-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--warn);
}
.gap-item.hard { border-left-color: var(--danger); }
.gap-item.soft { border-left-color: var(--warn); }
.gap-item.done { border-left-color: var(--ok); background: #FAFFFB; }
.gap-item .gi-body { flex: 1; min-width: 0; }
.gap-item .gi-title { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.gap-item .gi-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.gap-item .gi-act { font-size: 12.5px; color: var(--brand); margin-top: 5px; }

.score-ring { display: flex; align-items: center; gap: 14px; }
.score-ring .sr-num { font-size: 30px; font-weight: 700; color: var(--brand); }

.disclaimer {
  font-size: 12px; color: var(--ink-4); line-height: 1.7;
  background: #F8FAFC; border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: 10px 12px; margin-top: 12px;
}

/* ==========================================================================
 * 七、升学时间轴 + 材料清单（新增）
 * ========================================================================== */
.tl-wrap { position: relative; padding-left: 22px; }
.tl-wrap::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--el-color-primary-light-7), #E7ECF4);
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--el-color-primary-light-7);
}
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 64, 175, .16); }
.tl-item.urgent::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.tl-item .tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-item .tl-title { font-size: 14.5px; font-weight: 600; color: var(--ink-1); }
.tl-item .tl-date { font-size: 12px; color: var(--ink-4); }
.tl-item .tl-desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.7; }
.tl-item .tl-left { font-size: 12px; color: var(--brand); margin-top: 4px; }

.ck-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); margin-bottom: 8px;
  cursor: pointer; transition: border-color .16s, background .16s;
}
.ck-item:hover { border-color: var(--el-color-primary-light-8); }
.ck-item.done { background: #FAFFFB; border-color: #CDEBD9; }
.ck-item .ck-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid #C7D2E0; background: #fff;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
}
.ck-item.done .ck-box { background: var(--ok); border-color: var(--ok); }
.ck-item .ck-title { font-size: 14px; color: var(--ink-1); }
.ck-item.done .ck-title { color: var(--ink-3); text-decoration: line-through; }
.ck-item .ck-desc { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

@media (min-width: 1024px) {
  .tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
}

/* ==========================================================================
 * 八、工具类
 * ========================================================================== */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.strong { font-weight: 600; color: var(--ink-1); }

/* 兼容旧类名（历史页面未改造完时也不至于裸奔） */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-1);
}
.card-title {
  font-size: 15px; font-weight: 600; margin: 0 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.list-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-1);
}
.list-item .li-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.list-item .li-name { font-size: 15px; font-weight: 600; }
.list-item .li-row { font-size: 13px; color: var(--ink-3); margin: 3px 0; }
.list-item .li-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
}
.stat-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow-1); cursor: pointer;
}
.stat-item .num { font-size: 24px; font-weight: 700; color: var(--ink-1); }
.stat-item .lbl { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat-item .num.red { color: var(--danger); }
