/* ================================================================
   五育并举成长平台 · 商用级设计系统 v2
   令牌驱动 / 组件完备 / 三形态自适应：
   移动 H5 (<768) · 平板 (768–1024) · 桌面/控制台 (>1024)
   ================================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌 */
  --brand-50:#EEF3FE; --brand-100:#DCE7FD; --brand-200:#BCD2FB;
  --brand-400:#6B97F8; --brand-500:#2E62E8; --brand-600:#1E4FD8;
  --brand-700:#173CA8; --brand-900:#0D245E;
  --grad-brand: linear-gradient(135deg,#0D245E 0%,#1E4FD8 55%,#4C8DF6 100%);
  /* 五育 */
  --de:#E25C55; --zhi:#3B7CF0; --ti:#2FA65A; --mei:#9B59B6; --lao:#EE9B2E; --heart:#18A5B0;
  /* 语义 */
  --ink:#1B2233; --ink-2:#4A5268; --mut:#8A91A6; --line:#E6EAF2; --line-2:#EFF2F8;
  --bg:#F3F5FA; --card:#FFFFFF; --ok:#2FA65A; --warn:#EE9B2E; --bad:#D9534F;
  --ok-bg:#E9F7EF; --warn-bg:#FDF3E3; --bad-bg:#FDEEEE;
  /* 层级 */
  --sh-1:0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --sh-2:0 4px 10px -2px rgba(16,24,40,.08), 0 12px 28px -6px rgba(16,24,40,.10);
  --sh-3:0 18px 44px -10px rgba(16,24,40,.22);
  --r-lg:16px; --r-md:12px; --r-sm:8px;
  --side-w:232px; --head-h:60px;
  --ease:cubic-bezier(.33,1,.68,1);
}
* { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC",
    "Microsoft YaHei UI","Microsoft YaHei","Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--ink); font-size:14px; line-height:1.6;
  -webkit-font-smoothing:antialiased; overscroll-behavior-y:none;
}
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:#CBD3E4; border-radius:8px; }
::-webkit-scrollbar-track { background:transparent; }

/* ---------- 基础组件 ---------- */
button { cursor:pointer; font-family:inherit; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  background:var(--brand-600); border:none; color:#fff;
  padding:9px 18px; border-radius:var(--r-sm); font-size:14px; font-weight:500;
  transition:transform .12s var(--ease), box-shadow .12s, background .12s;
  box-shadow:0 1px 2px rgba(30,79,216,.35);
}
.btn:hover { background:var(--brand-500); box-shadow:0 4px 12px rgba(30,79,216,.35); }
.btn:active { transform:translateY(1px); }
.btn:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.btn.ghost { background:#fff; color:var(--ink-2); border:1px solid var(--line); box-shadow:var(--sh-1); }
.btn.ghost:hover { background:var(--line-2); }
.btn.danger { background:var(--bad); box-shadow:0 1px 2px rgba(217,83,79,.4); }
.btn.danger:hover { background:#C74743; }
.btn.warn { background:var(--warn); }
.btn.sm { padding:5px 12px; font-size:13px; border-radius:7px; }
.btn.block { width:100%; }
input,select,textarea {
  font-family:inherit; font-size:14px; color:var(--ink);
  padding:9px 12px; border:1.5px solid var(--line); border-radius:var(--r-sm);
  width:100%; background:#fff; transition:border .15s, box-shadow .15s;
}
textarea { resize:vertical; min-height:96px; line-height:1.7; }
input:focus,textarea:focus,select:focus {
  outline:none; border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(46,98,232,.14);
}
.field { margin-bottom:14px; }
.field > label { display:block; font-size:13px; font-weight:500; color:var(--ink-2); margin-bottom:6px; }
.hint { font-size:12.5px; color:var(--mut); }

/* ---------- 卡片与排版 ---------- */
.card {
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:20px; margin-bottom:16px; box-shadow:var(--sh-1);
}
.panel-title { display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700; margin-bottom:14px; }
.panel-title::before { content:""; width:4px; height:18px; border-radius:4px; background:var(--grad-brand); }
.h1 { font-size:18px; font-weight:700; }
.small { font-size:12.5px; } .mut { color:var(--mut); } .strong { font-weight:600; }
.right { margin-left:auto; }
.flex { display:flex; gap:10px; align-items:center; }
.wrap { flex-wrap:wrap; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
@media (max-width:1150px){ .grid4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.divider { border:none; border-top:1px solid var(--line-2); margin:14px 0; }
@media (max-width:900px){ .grid2,.grid3 { grid-template-columns:1fr; } .grid4 { grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .grid2 { grid-template-columns:1fr; } .grid4 { gap:12px; } }

/* ---------- 徽标 / 色签 ---------- */
.badge {
  display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:3px 10px;
  border-radius:999px; background:var(--brand-50); color:var(--brand-600); white-space:nowrap;
}
.badge.gray { background:var(--line-2); color:var(--mut); }
.badge.ok { background:var(--ok-bg); color:var(--ok); }
.badge.warn { background:var(--warn-bg); color:#B97A1C; }
.badge.bad { background:var(--bad-bg); color:#C0392B; }
.chip { display:inline-block; font-size:12px; padding:2.5px 10px; border-radius:999px; color:#fff; margin-right:5px; }
.c-de{background:var(--de)} .c-zhi{background:var(--zhi)} .c-ti{background:var(--ti)}
.c-mei{background:var(--mei)} .c-lao{background:var(--lao)} .c-heart{background:var(--heart)}
.lvl { display:inline-block; padding:3px 12px; border-radius:8px; color:#fff; font-weight:600; }
.lv-good{background:var(--ok)} .lv-watch{background:var(--warn)} .lv-refer{background:var(--bad)}

/* ================================================================
   登录页
   ================================================================ */
.login-wrap { display:flex; min-height:100vh; }
.login-hero {
  flex:1.15; background:var(--grad-brand); color:#fff; position:relative; overflow:hidden;
  padding:9vh 6vw; display:flex; flex-direction:column; justify-content:center;
}
.login-hero::before, .login-hero::after {
  content:""; position:absolute; border-radius:50%; filter:blur(10px); opacity:.16; background:#fff;
}
.login-hero::before { width:420px; height:420px; right:-120px; top:-140px; }
.login-hero::after { width:260px; height:260px; left:-80px; bottom:-100px; }
.hero-logo { display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.hero-logo img { width:52px; height:52px; border-radius:13px; box-shadow:var(--sh-2); }
.hero-logo span { font-size:15px; opacity:.9; letter-spacing:2px; }
.login-hero h1 { font-size:32px; line-height:1.35; letter-spacing:1px; margin-bottom:14px; position:relative; }
.login-hero .sub { opacity:.88; line-height:2; max-width:520px; position:relative; }
.hero-points { margin-top:34px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; max-width:600px; position:relative; }
.hero-points div { background:rgba(255,255,255,.13); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.18); border-radius:14px; padding:14px 12px; font-size:13px; text-align:center; }
.hero-points b { display:block; font-size:15px; margin-bottom:3px; }
.hero-foot { position:relative; margin-top:34px; font-size:12.5px; opacity:.62; line-height:1.9; }
.login-side { flex:1; display:flex; align-items:center; justify-content:center; padding:44px 20px; }
.login-card { width:430px; background:#fff; border-radius:20px; padding:30px; box-shadow:var(--sh-3); }
.login-card .h1 { margin-bottom:16px; font-size:20px; }
.seg { display:flex; background:var(--line-2); border-radius:11px; padding:4px; margin-bottom:18px; }
.seg button {
  flex:1; border:none; background:transparent; padding:8px 4px; border-radius:8px;
  font-size:13px; color:var(--mut); transition:all .18s var(--ease); white-space:nowrap;
}
.seg button.on { background:#fff; color:var(--brand-600); font-weight:700; box-shadow:var(--sh-1); }
.demo-chips { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 18px; }
.demo-chips button {
  border:1px dashed var(--line); background:#FAFBFE; border-radius:8px;
  padding:5px 10px; font-size:12.5px; color:var(--ink-2); transition:all .15s;
}
.demo-chips button:hover { border-color:var(--brand-500); color:var(--brand-600); background:var(--brand-50); }
.err-msg { font-size:13px; color:#C0392B; margin:6px 0 10px; min-height:18px; }
@media (max-width:900px){ .login-hero{display:none} .login-card{box-shadow:var(--sh-2)} }

/* ================================================================
   应用壳（学生/家长/教师/社会/主管）
   ================================================================ */
.head {
  position:sticky; top:0; z-index:20; height:var(--head-h);
  background:rgba(255,255,255,.86); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:20px; padding:0 26px;
}
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:16.5px; color:var(--brand-700); white-space:nowrap; }
.brand img { width:34px; height:34px; border-radius:9px; }
.brand em { font-style:normal; color:var(--mut); font-weight:400; font-size:12px; margin-left:6px; }
.nav { display:flex; gap:4px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
/* 顶部导航弹性收缩：防止 11 项撑破头部引发整页横向滚动 */
html { overflow-x: clip; }
.nav::-webkit-scrollbar{display:none}
.nav button {
  border:none; background:none; padding:8px 15px; border-radius:9px;
  color:var(--ink-2); font-size:14px; white-space:nowrap; transition:all .15s;
}
@media (max-width:1500px){ .nav { gap:2px; } .nav button { padding:8px 11px; } }
@media (max-width:1440px){ .brand em { display:none; } }
@media (max-width:1330px){ .nav button { font-size:13.2px; padding:8px 9px; } }
.nav button:hover { background:var(--line-2); }
.nav button.on { background:var(--brand-50); color:var(--brand-600); font-weight:700; }
.userchip { display:flex; align-items:center; gap:10px; }
.avatar {
  width:34px; height:34px; border-radius:50%; background:var(--grad-brand); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:700;
  overflow:hidden; flex:none;
}
.avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.bell { position:relative; cursor:pointer; font-size:17px; line-height:1; padding:6px; border-radius:8px; }
.bell:hover { background:var(--line-2); }
.bell .dot {
  position:absolute; top:-3px; right:-4px; min-width:15px; height:15px; padding:0 4px;
  background:var(--bad); color:#fff; font-size:10px; font-weight:700;
  border-radius:999px; display:flex; align-items: center; justify-content:center;
  border:2px solid #fff;
}
.main { max-width:1120px; margin:22px auto 80px; padding:0 24px; }

/* —— 移动端底部导航（阈值 900：与侧栏收起边界一致） —— */
.mobnav { display:none; }
@media (max-width:900px) {
  .main { margin:14px auto 86px; padding:0 14px; }
  .mobnav {
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:30;
    background:rgba(255,255,255,.92); backdrop-filter:blur(16px);
    border-top:1px solid var(--line); padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobnav button {
    flex:1; border:none; background:none; display:flex; flex-direction:column;
    align-items:center; gap:2px; font-size:11px; color:var(--mut); padding:4px 0;
  }
  .mobnav button .ico { font-size:19px; line-height:1.2; }
  .mobnav button.on { color:var(--brand-600); font-weight:700; }
  /* 快捷搜索入口窄幅收缩：只留放大镜 */
  .top-k { padding:0 9px; }
  .top-k .top-k-t, .top-k kbd { display:none; }
}

/* ================================================================
   控制台壳（校管）：侧边栏布局
   ================================================================ */
.console { display:grid; grid-template-columns:var(--side-w) 1fr; min-height:100vh; }
.side {
  background:linear-gradient(180deg,#0D245E,#132F7A); color:#fff;
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.side-brand { display:flex; align-items:center; gap:10px; padding:20px 18px 16px; border-bottom:1px solid rgba(255,255,255,.12); }
.side-brand img { width:36px; height:36px; border-radius:9px; }
.side-brand b { font-size:14.5px; line-height:1.4; }
.side-nav { flex:1; overflow-y:auto; padding:12px 10px; }
.side-item {
  display:flex; align-items:center; gap:10px; width:100%;
  padding:10px 12px; margin-bottom:3px; border:none; border-radius:10px;
  background:none; color:#C6D4F5; font-size:14px; text-align:left; transition:all .15s;
}
.side-item:hover { background:rgba(255,255,255,.09); color:#fff; }
.side-item.on { background:rgba(255,255,255,.16); color:#fff; font-weight:700; box-shadow:inset 3px 0 0 #6B97F8; }
.side-item .ico { font-size:16px; width:20px; text-align:center; }
.side-foot { padding:14px 16px; border-top:1px solid rgba(255,255,255,.12); font-size:12.5px; color:#AFC2EE; }
.side-foot .avatar { width:30px; height:30px; font-size:12px; }
.console-main { min-width:0; }
.console-head {
  height:var(--head-h); background:#fff; border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:14px; padding:0 26px; position:sticky; top:0; z-index:20;
}
.console-body { padding:22px 26px 80px; max-width:1240px; }
@media (max-width:900px){
  .console { grid-template-columns:1fr; }
  .side { position:static; height:auto; flex-direction:row; align-items:center; overflow-x:auto; }
  .side-brand { border-bottom:none; padding:12px 14px; }
  .side-brand b { display:none; }
  .side-nav { display:flex; padding:8px; }
  .side-item { width:auto; white-space:nowrap; padding:8px 12px; }
  .side-foot { display:none; }
}

/* ================================================================
   数据展示组件
   ================================================================ */
.stat {
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:18px; box-shadow:var(--sh-1); display:flex; gap:14px; align-items:center;
}
.stat .ico-ring {
  width:46px; height:46px; border-radius:13px; display:flex; align-items:center;
  justify-content:center; font-size:21px; flex:none;
}
.stat .num { font-size:26px; font-weight:800; line-height:1.15; letter-spacing:.5px; }
.stat .cap { font-size:12.5px; color:var(--mut); }
.hbar-row { display:flex; align-items:center; gap:12px; margin:9px 0; }
.hbar-label { width:44px; text-align:right; color:var(--ink-2); font-size:13px; flex:none; }
.hbar-track { flex:1; height:12px; background:var(--line-2); border-radius:999px; overflow:hidden; }
.hbar-fill { height:100%; border-radius:999px; transition:width .7s var(--ease); }
.hbar-num { width:30px; font-size:12.5px; color:var(--mut); text-align:right; }

/* 雷达图 / 圆环 */
.radar-wrap { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.radar-wrap svg { flex:none; }
.legend { font-size:12.5px; color:var(--ink-2); display:grid; gap:6px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; }
.donut {
  width:130px; height:130px; border-radius:50%; position:relative; flex:none;
  background:conic-gradient(var(--ok) 0, var(--ok) 0);
}
.donut::after {
  content:""; position:absolute; inset:16px; background:#fff; border-radius:50%;
  box-shadow:inset 0 1px 3px rgba(16,24,40,.06);
}
.donut .center {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; z-index:1; font-size:12px; color:var(--mut);
}
.donut .center b { font-size:22px; color:var(--ink); }

/* ---------- 时光轴（轨道式） ---------- */
.tl { position:relative; padding-left:26px; }
.tl::before { content:""; position:absolute; left:8px; top:6px; bottom:6px; width:2px; background:var(--line); border-radius:2px; }
.tl-year { position:relative; font-size:16px; font-weight:800; color:var(--brand-700); margin:16px 0 10px; }
.tl-year::before {
  content:""; position:absolute; left:-25px; top:6px; width:12px; height:12px;
  border-radius:50%; background:var(--brand-600); border:3px solid #fff; box-shadow:var(--sh-1);
}
.tl-month { margin:12px 0 8px; color:var(--mut); font-size:13px; font-weight:600; }
.rec-card {
  border-left:none; position:relative;
}
.rec-card::before {
  content:""; position:absolute; left:-22.5px; top:26px; width:9px; height:9px;
  border-radius:50%; background:#fff; border:2.5px solid var(--brand-400);
}
.rec-card.ms::before { border-color:var(--warn); }
.rec-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.rec-text { line-height:1.8; }
.rec-meta { font-size:12px; color:var(--mut); margin-top:8px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.star { color:var(--warn); font-size:12.5px; font-weight:600; }
.tag { display:inline-block; font-size:11.5px; padding:2px 8px; border-radius:6px; background:var(--line-2); color:var(--ink-2); margin-right:5px; }

/* —— 轻量记录行：轨道内的“去卡化”行（消灭卡中卡叠加感）—— */
.rec-card.light {
  background:transparent; border:none; border-radius:0; box-shadow:none;
  padding:10px 0 14px; margin:0;
}
.rec-card.light .rec-meta { margin-top:5px; gap:10px; }

/* —— iOS 风分段器（卡片头部右置）—— */
.segs { display:flex; gap:2px; background:var(--line-2); border-radius:11px; padding:3px; }
.segs button {
  border:none; background:transparent; color:var(--ink-2); cursor:pointer;
  font-size:13px; font-weight:600; padding:5px 14px; border-radius:8px;
  transition:background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.segs button:hover:not(.on) { color:var(--ink); }
.segs button.on { background:#fff; color:var(--brand-600); box-shadow:var(--sh-1); }

/* —— 里程碑步进器（图标骑轨，替代卡中卡）—— */
.steps { position:relative; padding-left:44px; }
.steps::before { content:""; position:absolute; left:15px; top:10px; bottom:12px; width:2px; border-radius:2px;
  background:linear-gradient(var(--brand-200), var(--line)); }
.step { position:relative; padding:0 0 18px; }
.step:last-child { padding-bottom:2px; }
.step .st-ico {
  position:absolute; left:-44px; top:-2px; width:32px; height:32px; border-radius:11px;
  background:#EEF2FF; color:var(--brand-600); display:flex; align-items:center; justify-content:center;
  border:2px solid #fff; box-shadow:var(--sh-1); box-sizing:border-box;
}
.step .st-ico.warn { background:var(--warn-bg); color:var(--warn); }
.step .st-ico.ok { background:var(--ok-bg); color:var(--ok); }
.step b { font-size:14.5px; }
.step .st-meta { font-size:12px; color:var(--mut); margin-top:2px; }

/* —— 顶栏快捷搜索入口 + ⌘K 命令面板 —— */
.top-k {
  display:flex; align-items:center; gap:8px; height:36px; padding:0 12px;
  border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--mut);
  font-size:13px; cursor:pointer; transition:border-color .15s, box-shadow .15s;
}
.top-k:hover { border-color:var(--brand-400); box-shadow:var(--sh-1); color:var(--ink-2); }
.top-k kbd {
  font:600 11px/1 ui-monospace,monospace; color:var(--ink-2);
  background:var(--line-2); border-radius:5px; padding:3px 5px; border:1px solid var(--line);
}
.cmd-mask { position:fixed; inset:0; z-index:210; background:rgba(13,26,54,.36); backdrop-filter:blur(3px);
  animation:fadein .16s ease both; display:flex; justify-content:center; align-items:flex-start; padding:12vh 16px 0; }
.cmd {
  width:min(620px,100%); background:#fff; border-radius:18px; box-shadow:var(--sh-3);
  overflow:hidden; animation:cmdin .2s var(--ease) both;
}
@keyframes cmdin { from { opacity:0; transform:translateY(-10px) scale(.985); } to { opacity:1; transform:none; } }
.cmd-in { display:flex; align-items:center; gap:10px; padding:15px 18px; border-bottom:1px solid var(--line-2); }
.cmd-in .ic { width:19px; height:19px; color:var(--brand-500); flex:none; }
.cmd-in input { flex:1; border:none; outline:none; font-size:16px; color:var(--ink); background:transparent; }
.cmd-in .esc { font-size:11.5px; color:var(--mut); border:1px solid var(--line); border-radius:6px; padding:2px 7px; }
.cmd-body { max-height:56vh; overflow:auto; padding:8px; }
.cmd-g { font-size:11.5px; font-weight:700; color:var(--mut); padding:10px 10px 4px; letter-spacing:.4px; }
.cmd-it {
  display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:11px; cursor:pointer;
}
.cmd-it .ci { width:32px; height:32px; border-radius:10px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--brand-50); color:var(--brand-600); }
.cmd-it .ci .ic { width:17px; height:17px; }
.cmd-it .ct { flex:1; min-width:0; }
.cmd-it .ct b { display:block; font-size:13.8px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmd-it .ct span { font-size:11.8px; color:var(--mut); }
.cmd-it .go { font-size:11px; color:var(--brand-500); opacity:0; }
.cmd-it.act { background:var(--brand-50); }
.cmd-it.act .go { opacity:1; }
.cmd-empty { text-align:center; color:var(--mut); font-size:13px; padding:34px 0 30px; }
.cmd-foot { display:flex; gap:14px; padding:9px 16px; border-top:1px solid var(--line-2); font-size:11.5px; color:var(--mut); background:#FAFBFE; }
.cmd-foot kbd { font:600 11px/1 ui-monospace,monospace; background:var(--line-2); border:1px solid var(--line); border-radius:4px; padding:2px 5px; margin-right:3px; }

/* —— 微交互：按钮按压、卡片悬浮 —— */
.btn:active, .segs button:active { transform:scale(.97); }
.clickable { cursor:pointer; transition:transform .16s var(--ease), box-shadow .16s var(--ease); }
.clickable:hover { transform:translateY(-2px); box-shadow:var(--sh-2); }

/* ---------- 表格 ---------- */
.table-wrap { overflow:auto; border-radius:var(--r-md); border:1px solid var(--line); }
table { width:100%; border-collapse:collapse; background:#fff; min-width:560px; }
th, td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line-2); font-size:13.5px; vertical-align:middle; }
th { color:var(--mut); font-weight:600; font-size:12.5px; background:#FAFBFE; white-space:nowrap; }
tbody tr { transition:background .12s; }
tbody tr:hover { background:#F8FAFF; }
tbody tr:last-child td { border-bottom:none; }

/* ---------- 通知 / 特殊卡片 ---------- */
.notice-heart { border-left:4px solid var(--heart); background:#F4FBFC; }
.empty {
  text-align:center; padding:44px 20px; color:var(--mut);
}
.empty .art { font-size:42px; margin-bottom:10px; }

/* ---------- 骨架屏 ---------- */
.sk { position:relative; overflow:hidden; background:var(--line-2); border-radius:8px; }
.sk::after {
  content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation:shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform:translateX(100%); } }

/* ---------- 弹窗 ---------- */
.overlay {
  position:fixed; inset:0; z-index:60; background:rgba(13,20,40,.45);
  backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:20px;
  animation:fade .18s var(--ease);
}
@keyframes fade { from { opacity:0; } }
.modal {
  width:440px; max-width:100%; background:#fff; border-radius:18px; padding:24px;
  box-shadow:var(--sh-3); animation:pop .2s var(--ease);
}
@keyframes pop { from { transform:scale(.94) translateY(8px); opacity:0; } }
.modal h3 { font-size:16.5px; margin-bottom:12px; }
.modal .m-body { font-size:14px; color:var(--ink-2); line-height:1.8; }
.modal .m-acts { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.code-box {
  font-family:Consolas,monospace; font-size:20px; letter-spacing:4px; text-align:center;
  background:var(--brand-50); border:1px dashed var(--brand-200); color:var(--brand-700);
  padding:14px; border-radius:10px; margin:10px 0; user-select:all;
}

/* ---------- 移动端「更多」抽屉 ---------- */
.more-sheet {
  position:absolute; left:0; right:0; bottom:0; background:#fff;
  border-radius:22px 22px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom));
  animation:sheetUp .26s var(--ease);
}
@keyframes sheetUp { from { transform:translateY(40px); opacity:0; } }
.more-title { font-size:13px; color:var(--mut); text-align:center; margin-bottom:10px; }
.more-item {
  display:flex; align-items:center; gap:14px; width:100%; padding:13px 10px;
  border:0; background:none; border-radius:12px; font-size:15.5px; color:var(--ink);
  cursor:pointer;
}
.more-item .ico { font-size:19px; width:26px; text-align:center; }
.more-item:active, .more-item:hover { background:var(--brand-50); }
.more-item.on { color:var(--brand-700); font-weight:700; }
.overlay:has(.more-sheet) { align-items:flex-end; }

/* ---------- Toast ---------- */
.toast {
  position:fixed; bottom:92px; left:50%; transform:translateX(-50%) translateY(8px);
  background:rgba(27,34,51,.94); color:#fff; padding:11px 22px; border-radius:12px;
  font-size:14px; opacity:0; transition:all .25s var(--ease); z-index:99;
  box-shadow:var(--sh-2); max-width:86vw; text-align:center;
}
.toast.show { opacity:1; transform:translateX(-50%); }
@media (min-width:769px){ .toast { bottom:34px; } }

/* ---------- 页面动画 ---------- */
.fade-in { animation:fadeUp .3s var(--ease); }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } }

/* ================================================================
   商用质感增强层 V3 —— 极光底纹 / 辉光层级 / 渐变数字 / 微交互
   （在其后定义，同名选择器自然覆盖 v2 基础层）
   ================================================================ */
:root {
  --grad-hero: linear-gradient(118deg,#123B9E 0%,#1E4FD8 42%,#5A8BF5 78%,#7FA8FF 100%);
  --grad-aurora: radial-gradient(900px 480px at 85% -10%, rgba(96,165,250,.35), transparent 60%),
                 radial-gradient(760px 420px at -10% 8%, rgba(129,140,248,.28), transparent 55%),
                 radial-gradient(640px 520px at 55% 118%, rgba(56,189,248,.16), transparent 60%);
  --grad-gold: linear-gradient(135deg,#F6C34C,#EE9B2E);
  --glow-brand: 0 8px 28px -6px rgba(30,79,216,.45);
  --card-border: 1px solid rgba(255,255,255,.65);
}
body { background:#EDF1F9; }
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:var(--grad-aurora); filter:blur(2px);
}

/* —— 卡片：白玉质感 + 悬浮升起 —— */
.card {
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.86));
  backdrop-filter:blur(8px);
  border:var(--card-border);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, var(--sh-2);
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { box-shadow:0 2px 0 rgba(255,255,255,.8) inset, 0 18px 40px -12px rgba(29,66,166,.22); }

/* —— 主按钮：渐变 + 辉光 —— */
.btn { border-radius:10px; letter-spacing:.5px; }
.btn:not(.ghost):not(.danger):not(.warn) {
  background:linear-gradient(135deg,#1E4FD8,#3B7CF0 60%,#5A8BF5);
  box-shadow:var(--glow-brand);
}
.btn:not(.ghost):not(.danger):not(.warn):hover { filter:brightness(1.08); transform:translateY(-1px); }
.btn:active { transform:translateY(0) scale(.985); }

/* —— 顶栏：玻璃白 —— */
.head {
  background:rgba(255,255,255,.78) !important; backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid rgba(255,255,255,.6);
  box-shadow:0 4px 24px -8px rgba(29,66,166,.18);
}
.brand em { background:linear-gradient(90deg,#2E62E8,#18A5B0); -webkit-background-clip:text; background-clip:text; color:transparent; font-style:normal; }
.nav button { position:relative; border-radius:10px; overflow:hidden; }
.nav button.on { background:linear-gradient(135deg,var(--brand-500),var(--brand-400)); color:#fff !important; box-shadow:var(--glow-brand); }
.mobnav { backdrop-filter:blur(16px) saturate(1.5); background:rgba(255,255,255,.86); }
.mobnav button.on .ico { transform:translateY(-2px) scale(1.12); transition:transform .25s var(--ease); }
.mobnav button.on { color:var(--brand-600); }

/* —— 侧边栏控制台：深海宝石 —— */
.side { background:linear-gradient(196deg,#0E2152 0%,#123B9E 55%,#1B4FC0 100%) !important; }
.side::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(420px 240px at -20% 0%, rgba(96,165,250,.35), transparent 60%),
             radial-gradient(300px 220px at 120% 100%, rgba(56,189,248,.22), transparent 55%);
}
.side-nav .side-item { position:relative; z-index:1; }
.side-nav .side-item.on {
  background:linear-gradient(90deg,rgba(90,139,245,.35),rgba(90,139,245,.08));
  box-shadow:inset 3px 0 0 #7FB0FF;
}

/* —— 英雄横幅：流光宝石卡 —— */
.hero-band {
  position:relative; overflow:hidden; border-radius:20px; color:#fff; padding:26px 28px;
  min-width:0;
}
.hero-band > div { flex-wrap:wrap; }
.hero-band {
  background:var(--grad-hero);
  box-shadow:0 20px 44px -14px rgba(18,59,158,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
.hero-band::before, .hero-band::after {
  content:""; position:absolute; border-radius:50%; filter:blur(2px); opacity:.5;
}
.hero-band::before { width:220px; height:220px; right:-60px; top:-90px;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.hero-band::after { width:150px; height:150px; right:120px; bottom:-80px;
  background:radial-gradient(circle at 40% 40%, rgba(126,231,255,.5), rgba(126,231,255,0) 70%); }
.hero-band .hb-num { font-size:34px; font-weight:800; letter-spacing:.5px;
  text-shadow:0 2px 10px rgba(13,36,94,.4); }
.hero-band .hb-cap { opacity:.85; font-size:12.5px; letter-spacing:1px; }

/* —— 统计卡：渐变大数字 + 图标光环 —— */
.stat .ico-ring { width:46px; height:46px; border-radius:14px; font-size:21px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), 0 6px 16px -6px rgba(29,66,166,.25); }
.stat .num {
  font-size:26px; font-weight:800; letter-spacing:.5px; line-height:1.15;
  background:linear-gradient(120deg,#132E75,#2E62E8 55%,#3B7CF0);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-variant-numeric:tabular-nums;
}

/* —— 面板标题：双色渐变导轨 —— */
.panel-title::before {
  width:4.5px; border-radius:3px;
  background:linear-gradient(180deg,#2E62E8,#18A5B0);
  box-shadow:0 0 8px rgba(46,98,232,.5);
}

/* —— 打卡热力图 —— */
.heat { display:grid; grid-auto-flow:column; grid-template-rows:repeat(7,12px); gap:3.5px; }
.heat i { width:12px; height:12px; border-radius:3.5px; background:#E3E9F5; transition:transform .15s var(--ease); }
.heat i:hover { transform:scale(1.28); }
.heat i.l1 { background:#BBE3FC; } .heat i.l2 { background:#6FA8F5; }
.heat i.l3 { background:#2E62E8; } .heat i.l4 { background:#123B9E; box-shadow:0 0 6px rgba(46,98,232,.55); }
.heat-kind { display:flex; gap:14px; margin-top:10px; }
.heat-kind .hk { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2); }
.heat-kind .sw { width:11px; height:11px; border-radius:3px; }

/* —— 打卡大按钮 —— */
.punch {
  flex:1; min-width:150px; padding:20px 16px; border-radius:18px; border:1.5px solid var(--line);
  background:#fff; text-align:center; transition:all .2s var(--ease);
}
.punch .p-ico { font-size:30px; }
.punch .p-name { font-weight:700; margin-top:6px; }
.punch .p-sub { font-size:12px; color:var(--mut); margin-top:2px; }
.punch:not(.done):hover { border-color:var(--brand-400); transform:translateY(-2px);
  box-shadow:0 14px 30px -12px rgba(29,66,166,.35); }
.punch.done { background:linear-gradient(135deg,#E9F7EF,#F3FBF6); border-color:#BFE6CF; }
.punch.done .p-name::after { content:" ✓"; color:var(--ok); font-weight:800; }
.punch-done-flash { animation:flash .5s var(--ease); }
@keyframes flash { 0%{transform:scale(.96)} 55%{transform:scale(1.04)} 100%{transform:scale(1)} }

/* —— 勋章墙 —— */
.badge-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:14px; }
.medal {
  position:relative; border-radius:18px; padding:20px 14px 16px; text-align:center;
  background:linear-gradient(180deg,#fff,#F6F8FE); border:1.5px solid var(--line);
  overflow:hidden; transition:all .22s var(--ease);
}
.medal:not(.locked):hover { transform:translateY(-3px); box-shadow:0 16px 34px -12px rgba(29,66,166,.3); }
.medal.locked { filter:grayscale(1); opacity:.55; }
.medal .m-ico {
  width:58px; height:58px; margin:0 auto 8px; border-radius:50%; font-size:28px;
  display:flex; align-items:center; justify-content:center; position:relative;
}
.medal.gold .m-ico { background:var(--grad-gold); box-shadow:0 0 0 4px #FBEED3, 0 8px 18px -6px rgba(238,155,46,.65); }
.medal.silver .m-ico { background:linear-gradient(135deg,#C7D2E4,#94A8C8); box-shadow:0 0 0 4px #EAEFF7, 0 8px 18px -6px rgba(100,120,155,.55); }
.medal.bronze .m-ico { background:linear-gradient(135deg,#E4A577,#B9764C); box-shadow:0 0 0 4px #F5E5D8, 0 8px 18px -6px rgba(185,118,76,.55); }
.medal.locked .m-ico { background:#DDE3F0; box-shadow:0 0 0 4px #EEF1F8; }
.medal .m-name { font-weight:700; font-size:14px; }
.medal .m-desc { font-size:11.5px; color:var(--mut); margin-top:3px; line-height:1.5; }
.medal .m-tier { position:absolute; top:10px; right:12px; font-size:10.5px; padding:2px 8px; border-radius:99px; }
.medal.gold .m-tier { background:#FBEED3; color:#B07A14; }
.medal.silver .m-tier { background:#EAEFF7; color:#5B7099; }
.medal.bronze .m-tier { background:#F5E5D8; color:#96602F; }
.medal.locked .m-tier { background:#EEF1F8; color:#8A91A6; }

/* —— AI 报告 —— */
.report-sheet {
  background:#fff; border-radius:20px; padding:30px 34px; position:relative; overflow:hidden;
  box-shadow:var(--sh-3); border:1px solid rgba(255,255,255,.7);
}
.report-sheet::before { content:""; position:absolute; top:0; left:0; right:0; height:7px;
  background:linear-gradient(90deg,#1E4FD8,#5A8BF5,#18A5B0,#EE9B2E); }
.rs-head { display:flex; align-items:center; gap:14px; margin-bottom:6px; }
.rs-head img { width:44px; height:44px; }
.rs-grade {
  width:64px; height:64px; border-radius:50%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:#fff; font-weight:800; flex:none;
  background:conic-gradient(from 0deg, #1E4FD8, #18A5B0, #1E4FD8);
  box-shadow:0 10px 24px -8px rgba(30,79,216,.6);
}
.rs-grade b { font-size:26px; line-height:1; }
.rs-grade span { font-size:10px; opacity:.85; }
.rs-ai-chip {
  display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#7C4DD8;
  background:linear-gradient(90deg,#F3EDFF,#EAF0FF); border:1px solid #DDD2FA;
  padding:4px 12px; border-radius:99px; margin:8px 0;
}
.rs-narr p { margin:10px 0; line-height:2.05; color:var(--ink-2); text-indent:2em; }
.rs-score-row { display:flex; align-items:center; gap:10px; margin:8px 0; }
.rs-score-row .nm { width:44px; font-size:13px; flex:none; }
.rs-score-row .bar { flex:1; height:10px; border-radius:6px; background:#EFF2F8; overflow:hidden; }
.rs-score-row .bar i { display:block; height:100%; border-radius:6px; width:0;
  transition:width 1s var(--ease); }
.rs-score-row .v { width:34px; text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

/* —— 课程超市卡片 —— */
.course-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.course-card {
  border-radius:18px; overflow:hidden; background:#fff; border:1px solid var(--line);
  display:flex; flex-direction:column; transition:all .22s var(--ease);
}
.course-card:hover { transform:translateY(-3px); box-shadow:0 18px 38px -12px rgba(29,66,166,.28); }
.cc-head { padding:18px 18px 12px; color:#fff; position:relative; }
.cc-head .cc-ico { font-size:26px; }
.cc-head h4 { margin-top:8px; font-size:15.5px; }
.cc-cat { position:absolute; top:14px; right:14px; font-size:11px; padding:3px 10px;
  border-radius:99px; background:rgba(255,255,255,.22); }
.cc-body { padding:12px 18px 6px; flex:1; }
.cc-meta { font-size:12.5px; color:var(--ink-2); line-height:2; }
.cc-cap-row { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--mut); }
.cc-cap-row .bar { flex:1; height:7px; background:#EFF2F8; border-radius:5px; overflow:hidden; }
.cc-cap-row .bar i { display:block; height:100%; border-radius:5px;
  background:linear-gradient(90deg,#2E62E8,#5A8BF5); }
.cc-foot { padding:10px 14px 14px; display:flex; justify-content:flex-end; gap:8px; }
.cc-full .cc-cap-row .bar i { background:linear-gradient(90deg,#EE9B2E,#F6C34C); }

/* —— 体质趋势卡 —— */
.vital-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
@media (max-width:1100px){ .vital-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.vital { border-radius:14px; padding:14px; background:linear-gradient(160deg,#F6F8FE,#EEF3FE);
  border:1px solid var(--line); text-align:center; }
.vital .vt-val { font-size:21px; font-weight:800; font-variant-numeric:tabular-nums; }
.vital .vt-unit { font-size:11px; color:var(--mut); margin-left:2px; }
.vital .vt-cap { font-size:12px; color:var(--ink-2); margin-top:2px; }

/* —— 家校任务卡 —— */
.task-card { position:relative; padding-left:22px; }
.task-card::before { content:""; position:absolute; left:6px; top:0; bottom:0; width:3px;
  border-radius:2px; background:linear-gradient(180deg,var(--brand-400),transparent); }
.task-done-chip { display:inline-flex; align-items:center; gap:5px; font-size:12px;
  color:var(--ok); background:var(--ok-bg); padding:3px 10px; border-radius:99px; }

/* —— 骨架屏流光 —— */
.sk {
  background:linear-gradient(100deg,#E9EDF6 40%,#F6F8FE 50%,#E9EDF6 60%);
  background-size:200% 100%; animation:shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position:-200% 0; } }

/* —— 登录页:星光 —— */
.login-hero {
  position:relative; overflow:hidden;
  background:
    radial-gradient(720px 420px at 80% 0%, rgba(127,168,255,.5), transparent 60%),
    radial-gradient(560px 380px at 8% 90%, rgba(56,189,248,.35), transparent 55%),
    linear-gradient(132deg,#0A1E52 0%,#123B9E 45%,#1E4FD8 100%);
}
.login-hero::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.7;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 12%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 82% 55%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 68%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52% 38%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,.7) 50%, transparent 51%);
  animation:twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity:.45; } to { opacity:.9; } }
.seg button.on {
  background:linear-gradient(135deg,#1E4FD8,#3B7CF0); color:#fff; box-shadow:var(--glow-brand);
}

/* —— 大屏辉光增强 —— */
.kpi .ic { box-shadow:0 0 22px -6px rgba(76,141,246,.55), inset 0 0 12px rgba(76,141,246,.2); }

/* —— 打印样式:A4 成长报告 —— */
@media print {
  body { background:#fff; }
  body::before, .head, .mobnav, .nav, .bell, #crumb, .userchip, .side, .console-head { display:none !important; }
  .console, .console-main, .main, #main { display:block !important; padding:0 !important; margin:0 !important; }
  .report-sheet { box-shadow:none; border:none; padding:10px 4px; }
  .report-sheet .no-print { display:none !important; }
  .rs-narr p { color:#333; }
  @page { margin:16mm; }
}

/* —— 移动端微调 —— */
@media (max-width:768px){
  .hero-band { padding:20px; border-radius:16px; }
  .vital-cards { grid-template-columns:repeat(2,1fr); }
  .course-grid { grid-template-columns:1fr; }
  .badge-grid { grid-template-columns:repeat(2,1fr); }
  .report-sheet { padding:20px 16px; }
}

/* ================================================================
   V4 商用质感精修层 —— 矢量图标系统 + 交互细节
   ================================================================ */

/* —— 图标基元：随文字颜色、垂直光学对齐 —— */
.ic {
  width: 1.15em; height: 1.15em; flex: none;
  vertical-align: -0.22em; display: inline-block;
  transition: transform .18s ease;
}
.top-ico .ic { width: 16px; height: 16px; vertical-align: -0.28em; opacity: .85; }
.side-item .ico .ic { width: 17px; height: 17px; }
.side-item.on .ico .ic { transform: scale(1.08); }

/* 面板标题：图标 + 文本 统一节奏 */
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel-title .ic { width: 18px; height: 18px; color: var(--brand-500); opacity: .92; }
.panel-title .mut { font-weight: 500; color: var(--mut); font-size: 12.5px; }
.rs-tip-title .ic { color: #B58A2B; }
.gov-title .ic { color: #fff; opacity: .9; }
.hero-points .ic { width: 20px; height: 20px; color: #9FE7CE; margin-right: 7px; vertical-align: -0.3em; }

/* 按钮语言：主/幽灵/次级，焦点环 + 按压反馈 */
.btn { position: relative; }
.btn:focus-visible, .side-item:focus-visible, .head nav button:focus-visible,
.seg button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #2E62E8; outline-offset: 2px; border-radius: 8px;
}
.btn:not(.ghost):active { transform: translateY(1px) scale(.985); }
.btn.ghost:active { transform: translateY(1px); }
.btn .ic { width: 15px; height: 15px; vertical-align: -0.24em; margin-right: 2px; }

/* 统计卡图环：图标替代 emoji 后的光学修正 */
.stat .ico-ring { display: flex; align-items: center; justify-content: center; }
.stat .ico-ring .ic { width: 20px; height: 20px; }

/* 英雄区连击火焰 + 勋章墙奖杯徽牌 */
.hb-flame { display: flex; align-items: center; gap: 4px; justify-content: center; }
.hb-flame .ic { width: 30px; height: 30px; color: #FF9F43; filter: drop-shadow(0 2px 6px rgba(255,159,67,.45)); }
.hb-flame b { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.hb-plate {
  width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  border: 1.5px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.hb-plate .ic { width: 30px; height: 30px; color: #FFE9A8; }

/* 打卡按钮：图标座 + 悬停抬升 */
.punch .p-ico { display: flex; align-items: center; justify-content: center; }
.punch .p-ico .ic { width: 34px; height: 34px; }
.punch:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(46,98,232,.35); }
.punch.done:hover { transform: none; box-shadow: none; }

/* 课程卡：头部图标章 + 元信息行 */
.cc-ico { display: flex; align-items: center; justify-content: center; }
.cc-ico .ic { width: 30px; height: 30px; color: #fff; opacity: .95; }
/* 机会卡：白衬座上的品牌色图标（覆盖 .cc-ico .ic 白色） */
.oppc-ico { width: 46px; height: 46px; border-radius: 14px; }
.oppc-ico .ic { width: 26px; height: 26px; color: inherit !important; opacity: 1; }
.cc-meta { display: flex; flex-direction: column; gap: 3px; }
.cc-meta > span { display: flex; align-items: center; gap: 6px; font-size: 12.8px; color: var(--ink-2); }
.cc-meta .ic { width: 14.5px; height: 14.5px; color: var(--mut); }
.cc-meta .mut { color: var(--mut); line-height: 1.6; display: block; margin-top: 3px; }

/* 勋章墙：三阶配色衬座 */
.medal .m-ico { display: flex; align-items: center; justify-content: center; }
.medal .m-ico .ic { width: 34px; height: 34px; }
.medal.gold .m-ico .ic { color: #D9A441; }
.medal.silver .m-ico .ic { color: #8E9BAB; }
.medal.bronze .m-ico .ic { color: #B0764A; }
.medal.locked .m-ico .ic { color: #B9C2CF; }

/* 任务完成小徽 / 星标：内嵌图标对齐 */
.task-done-chip { display: inline-flex; align-items: center; gap: 5px; }
.task-done-chip .ic, .star .ic { width: 13px; height: 13px; }
.star { display: inline-flex; align-items: center; gap: 4px; }
.star .ic { color: #EE9B2E; }

/* 空状态：图标圆座居中 */
.empty .art {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EDF3FF, #E4F5EF); color: #7C93BE;
}
.empty .art .ic { width: 26px; height: 26px; }

/* 铃铛 */
.bell { display: inline-flex; align-items: center; justify-content: center; }
.bell .ic { width: 19px; height: 19px; }

/* AI 归类提示行内图标 */
.small .ic { margin-right: 3px; }

/* 侧栏导航激活态左侧亮条 */
.side-item.on { position: relative; }
.side-item.on::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3.5px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, #6FB7FF, #2E62E8); box-shadow: 0 0 10px rgba(111,183,255,.8);
}

@media print { .ic { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* —— 荣誉申报：列表行 / 级别徽 / 状态徽 —— */
.honor-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #FBFCFF, #F5F8FE); margin-bottom: 8px;
}
.honor-row:last-of-type { margin-bottom: 0; }
.h-level {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px; margin-top: 2px;
  background: #EDF3FF; color: var(--brand-600); border: 1px solid #CBDDFB;
}
.h-level.lv-省级 { background: #FFF3D6; color: #9A6A00; border-color: #EAD08C; }
.h-level.lv-市级 { background: #E8F8EE; color: #1F7A46; border-color: #BCE5CC; }
.h-level.lv-县级 { background: #F0EDFF; color: #5B4BC4; border-color: #D4CDF4; }
.h-status {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid; white-space: nowrap; margin-top: 2px;
}
.h-status .ic { width: 12.5px; height: 12.5px; }
.h-form { display: flex; flex-direction: column; gap: 2px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-form .btn { align-self: flex-end; margin-top: 8px; }
/* 班级画像表格：提示徽不换行挤爆 */
.table-wrap .badge.warn { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }

/* —— 记一笔：草稿恢复提示条 —— */
.draft-note {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #8A5A00; margin: 4px 0 10px; padding: 7px 12px;
  border-radius: 10px; border: 1px solid #EBD9A8; background: #FFF8E8;
}
.draft-note > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.draft-note .ic { width: 14px; height: 14px; flex: none; }

/* ================================================================
   R9 · Apple 风格壳层：分节毛玻璃侧栏 + 大标题顶栏 + 卡片质感
   结构：.app-shell > .sidebar + .app-col(.topbar + .main) + .mobnav
   ================================================================ */
.app-shell { display:grid; grid-template-columns:252px minmax(0,1fr); min-height:100vh; }

/* —— 侧栏：半透明材质，自身的纵向滚动天然容纳任意数量的菜单 —— */
.sidebar {
  position:sticky; top:0; height:100vh; display:flex; flex-direction:column;
  background:rgba(249,250,253,.8); backdrop-filter:blur(28px) saturate(1.7);
  border-right:1px solid rgba(15,32,68,.08);
}
.sb-brand { display:flex; align-items:center; gap:10px; padding:18px 16px 12px; }
.sb-brand img { width:34px; height:34px; border-radius:9px; box-shadow:0 4px 12px -4px rgba(29,66,166,.4); }
.sb-brand-txt { display:flex; flex-direction:column; line-height:1.3; min-width:0; }
.sb-brand-txt b { font-size:14.5px; font-weight:800; color:var(--ink); letter-spacing:-.1px; white-space:nowrap; }
.sb-role { font-size:11.5px; color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-nav { flex:1; overflow-y:auto; padding:2px 10px 12px; scrollbar-width:none; }
.sb-nav::-webkit-scrollbar { display:none; }
.snav-sec-t {
  font-size:11px; font-weight:600; color:#8792A6; letter-spacing:.4px;
  padding:16px 10px 5px; user-select:none;
}
.snav-item {
  display:flex; align-items:center; gap:10px; width:100%;
  border:none; background:none; cursor:pointer; text-align:left;
  padding:7px 10px; margin:1px 0; border-radius:9px;
  font-size:13.5px; font-weight:500; color:var(--ink-2);
  transition:background .15s ease, color .15s ease, box-shadow .15s ease;
}
.snav-item:hover { background:rgba(15,32,68,.055); }
.snav-item.on {
  background:linear-gradient(135deg,#2E62E8,#4A82F5); color:#fff; font-weight:600;
  box-shadow:0 6px 16px -6px rgba(46,98,232,.55);
}
/* iOS 设置风格的彩色圆角图标块；选中时反白 */
.chip-ico {
  width:26px; height:26px; border-radius:8px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
}
.chip-ico .ic { width:15px; height:15px; }
.snav-item.on .chip-ico { background:rgba(255,255,255,.24) !important; color:#fff !important; }
.sb-foot {
  display:flex; align-items:center; gap:9px;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid rgba(15,32,68,.06);
}
.sb-foot .avatar { width:30px; height:30px; font-size:12px; flex:none; }
.sb-foot-txt { display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.sb-foot-txt b { font-size:12.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-foot-txt span { font-size:11px; color:var(--mut); }
.sb-exit {
  margin-left:auto; width:28px; height:28px; border:none; cursor:pointer;
  border-radius:8px; background:none; color:#98A2B3; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  transition:all .15s ease;
}
.sb-exit .ic { width:14px; height:14px; }
.sb-exit:hover { background:#FF375F14; color:#E5484D; }

/* —— 顶栏：大标题 + 毛玻璃，远离拥挤的旧横向导航 —— */
.topbar {
  position:sticky; top:0; z-index:40; height:58px;
  display:flex; align-items:center; gap:12px; padding:0 24px;
  background:rgba(255,255,255,.72); backdrop-filter:blur(24px) saturate(1.6);
  border-bottom:1px solid rgba(15,32,68,.06);
}
.tb-title { font-size:19px; font-weight:800; letter-spacing:-.2px; color:var(--ink); margin:0; }
.tb-actions { margin-left:auto; display:flex; align-items:center; }
.bell .ic { width:19px; height:19px; display:block; }

.app-col { min-width:0; }
.main { max-width:1180px; margin:24px auto 90px; padding:0 26px; }
/* 统一垂直节奏：主列相邻顶级块之间恒定 16px。
   .card 自带的 margin-bottom 会与新 margin-top 折叠取大，不会叠加；
   但英雄横幅 .hero-band、统计行 .grid4 等非卡片块原本没有任何外边距，
   导致首页「横幅/统计/时光轴」三段 0 间距死贴（视觉如同硬叠）。 */
.main > * + * { margin-top:16px; }

/* —— 手机/窄屏：侧栏让位给底部标签栏 —— */
@media (max-width:900px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .topbar { padding:0 14px; }
}

/* —— 更多面板：分隔线 + 退出登录行 —— */
.sheet-sep { height:1px; background:rgba(15,32,68,.08); margin:6px 14px; }
.more-item.danger { color:#E5484D; font-weight:600; }
.chip-ico.danger { background:#FF375F1F !important; color:#FF375F !important; }

/* —— 卡片与控件的整体质感：更深的圆角、分层阴影、发丝线 —— */
.card {
  border-radius:16px; border-color:rgba(15,32,68,.07);
  box-shadow:0 1px 2px rgba(16,42,100,.05), 0 12px 32px -16px rgba(16,42,100,.12);
}
@media (max-width:900px) { .card { box-shadow:none; } }

/* —— 第15轮：入户状态点 / 门户画像 / AI 督导驻留底栏 —— */
.portal-btn { display:inline-flex; align-items:center; gap:6px; }
.portal-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.portal-dot.on { background:#30D158; box-shadow:0 0 0 3px rgba(48,209,88,.22); }
.portal-dot.off { background:#C7CEDB; }
.sel-chip { border:1.5px solid var(--line); background:#fff; border-radius:999px;
  padding:6px 14px; font-size:13px; cursor:pointer; transition:all .15s var(--ease);
  color:#3D4A63; margin-right:0; }
.sel-chip:hover { border-color:var(--brand-400); }
.sel-chip.on { background:var(--brand-500); border-color:var(--brand-500); color:#fff; font-weight:600; }
.star-btn { background:none; border:none; font-size:24px; line-height:1; color:#D8DEE9;
  cursor:pointer; padding:2px; transition:color .12s var(--ease), transform .12s var(--ease); }
.star-btn.on { color:#EE9B2E; }
.star-btn:hover { transform:scale(1.15); }
.pv-row { display:flex; align-items:center; gap:10px; padding:6px 0; }
.pv-name { width:76px; font-size:13px; font-weight:600; color:var(--ink); flex:none; }
.pv-bar { flex:1; height:9px; border-radius:99px; background:#EFF2F8; overflow:hidden; }
.pv-bar i { display:block; height:100%; border-radius:99px;
  background:linear-gradient(90deg,var(--brand-400),var(--brand-600)); }
.pv-val { width:30px; text-align:right; font-weight:700; font-size:13px; }
.sup-dock { position:fixed; left:252px; right:0; bottom:0; z-index:70;
  display:flex; align-items:center; gap:10px;
  padding:9px 18px calc(9px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.86); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-top:1px solid rgba(15,32,68,.09); }
.sup-ico { width:34px; height:34px; border-radius:11px; flex:none; display:flex;
  align-items:center; justify-content:center; background:var(--brand-500); color:#fff; }
.sup-ico .ic { width:19px; height:19px; }
.sup-input { flex:1; min-width:0; border:1.5px solid var(--line); border-radius:999px;
  padding:9px 15px; font-size:13.5px; background:#fff; outline:none; }
.sup-input:focus { border-color:var(--brand-400); box-shadow:0 0 0 3px rgba(46,98,232,.14); }
.sup-btn { border:none; background:var(--brand-500); color:#fff; border-radius:999px;
  padding:8px 16px; font-weight:600; font-size:13.5px; cursor:pointer; flex:none;
  display:flex; align-items:center; }
.sup-btn .ic { width:17px; height:17px; }
.sup-btn:hover { filter:brightness(1.08); }
.sup-btn.ghost { background:#EEF2FA; color:var(--brand-600); }
.sup-btn.on { background:var(--brand-500); color:#fff; }
.sup-panel { position:fixed; left:252px; right:0; bottom:56px; z-index:70; max-height:48vh;
  overflow:auto; background:rgba(255,255,255,.98); border-top:1px solid var(--line);
  box-shadow:0 -20px 48px -20px rgba(16,42,100,.3);
  border-radius:18px 18px 0 0; padding:14px 20px 12px; }
.sup-head { font-weight:700; font-size:13.5px; margin-bottom:10px; color:var(--ink); }
.sup-entry { padding:8px 0; border-top:1px dashed #E6EAF2; }
.sup-entry:first-child { border-top:none; }
.sup-q { font-weight:600; font-size:13px; }
.sup-a { font-size:13.2px; line-height:1.8; margin-top:2px; color:var(--ink); }
.sup-card { background:#F6F8FD; border-radius:12px; padding:9px 12px; margin-top:7px; }
.sup-card-t { font-size:12px; font-weight:700; color:#4A5268; margin-bottom:4px; }
.sup-row { display:flex; justify-content:space-between; gap:12px; font-size:12.8px;
  padding:2.5px 0; color:#3B4356; }
.sup-src { font-size:11px; color:#8A91A6; margin-top:4px; }
@media (max-width:900px) {
  .sup-dock { left:0; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .sup-panel { left:0; bottom:52px; }
}
