/* 诺诺学习中台 · 暮色星空皮肤（对齐 诺诺学习平台 hfai8217.cn/nono）
   字号规范：正文 15 / 辅助 13.5 / 说明 12.5 / 徽标 12 / 小标题 15.5 / 页标题 22 / 大数 28 */
:root {
  --bg: #131936;
  --panel: #252E54;
  --panel2: #10152E;
  --panel3: #2C3763;
  --text: #F0F2FF;
  --muted: rgba(240,242,255,.62);
  --faint: rgba(240,242,255,.4);
  --line: rgba(140,170,255,.22);
  --line-strong: rgba(140,170,255,.45);
  --brand: #4FC3F7;
  --brand-soft: rgba(79,195,247,.14);
  --ok: #81C784; --ok-bg: rgba(129,199,132,.16);
  --warn: #FFD98A; --warn-bg: rgba(255,217,138,.15);
  --bad: #E57373; --bad-bg: rgba(229,115,115,.16);
  --info: #4FC3F7; --info-bg: rgba(79,195,247,.14);
  --hw: #B39DDB; --hw-bg: rgba(179,157,219,.18);
  --grad-main: linear-gradient(135deg,#4FC3F7 0%,#B39DDB 55%,#F48FB1 100%);
  --border-grad: linear-gradient(160deg,rgba(79,195,247,.55),rgba(179,157,219,.18) 45%,rgba(244,143,177,.42));
  --border-grad-soft: linear-gradient(160deg,rgba(79,195,247,.32),rgba(179,157,219,.12) 50%,rgba(244,143,177,.24));
  --shadow-card: 0 8px 28px rgba(19,25,54,.48);
  --radius: 14px;
}
body[data-theme="light"] {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel2: #e9edf6;
  --panel3: #eef2fb;
  --text: #1e2433;
  --muted: #5d6579;
  --faint: #8b93a5;
  --line: #dde3ee;
  --line-strong: #c2cbde;
  --brand: #4a7dd6;
  --brand-soft: #eef2fb;
  --ok: #2e8b62; --ok-bg: #e4f3ec;
  --warn: #a06a10; --warn-bg: #faf1dc;
  --bad: #c74f4f; --bad-bg: #fbe9e9;
  --info: #4a7dd6; --info-bg: #eef2fb;
  --hw: #7c6fd0; --hw-bg: #eeedfa;
  --grad-main: linear-gradient(135deg,#4a7dd6 0%,#7a8fe0 55%,#b48ae0 100%);
  --border-grad: linear-gradient(160deg,rgba(74,125,214,.45),rgba(122,143,224,.18) 45%,rgba(180,138,224,.35));
  --border-grad-soft: linear-gradient(160deg,rgba(74,125,214,.32),rgba(122,143,224,.14) 50%,rgba(180,138,224,.24));
  --shadow-card: 0 1px 2px rgba(30,40,80,.06), 0 2px 10px rgba(30,40,80,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #10142E;
  background-image:
    radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 55%, rgba(8,11,32,.58) 100%),
    radial-gradient(1100px 620px at 88% -8%, rgba(139,105,232,.5) 0%, rgba(139,105,232,0) 62%),
    radial-gradient(1000px 580px at -6% 104%, rgba(74,190,232,.4) 0%, rgba(74,190,232,0) 60%),
    radial-gradient(820px 460px at 50% 42%, rgba(96,130,224,.2) 0%, rgba(96,130,224,0) 68%),
    radial-gradient(700px 420px at 12% 8%, rgba(244,143,177,.22) 0%, rgba(244,143,177,0) 58%),
    linear-gradient(178deg, #131936 0%, #1B2445 52%, #262E5B 100%),
    url(space_bg.jpg);
  background-size: auto, auto, auto, auto, auto, auto, cover;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: inset 0 0 180px 70px rgba(8,11,32,.6);
}
#star-layer, #star-layer::before, #star-layer::after {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat;
}
#star-layer {
  background-image:
    radial-gradient(2.6px 2.6px at 9% 21%, rgba(255,255,255,.9) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 17% 62%, rgba(142,214,248,.9) 45%, transparent 51%),
    radial-gradient(2.5px 2.5px at 28% 38%, rgba(255,255,255,.75) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 41% 14%, rgba(255,217,138,.85) 45%, transparent 51%),
    radial-gradient(2.8px 2.8px at 55% 73%, rgba(255,255,255,.8) 45%, transparent 51%),
    radial-gradient(2.4px 2.4px at 66% 30%, rgba(179,157,219,.9) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 74% 88%, rgba(255,255,255,.7) 45%, transparent 51%),
    radial-gradient(2.6px 2.6px at 83% 48%, rgba(142,214,248,.85) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 91% 16%, rgba(255,255,255,.8) 45%, transparent 51%),
    radial-gradient(2.5px 2.5px at 96% 66%, rgba(255,217,138,.8) 45%, transparent 51%);
}
#star-layer::before {
  content: ""; animation: starTwinkleA 3.6s ease-in-out infinite;
  background-image:
    radial-gradient(2.4px 2.4px at 5% 44%, rgba(255,255,255,.9) 45%, transparent 51%),
    radial-gradient(2.6px 2.6px at 14% 83%, rgba(142,214,248,.85) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 23% 9%, rgba(255,255,255,.8) 45%, transparent 51%),
    radial-gradient(2.8px 2.8px at 36% 55%, rgba(255,217,138,.9) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 47% 27%, rgba(255,255,255,.75) 45%, transparent 51%),
    radial-gradient(2.5px 2.5px at 60% 91%, rgba(179,157,219,.85) 45%, transparent 51%),
    radial-gradient(2.4px 2.4px at 72% 5%, rgba(255,255,255,.85) 45%, transparent 51%),
    radial-gradient(2.6px 2.6px at 87% 76%, rgba(142,214,248,.8) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 94% 33%, rgba(255,255,255,.75) 45%, transparent 51%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.9 6.6 5.4 11.1 12 12-6.6.9-11.1 5.4-12 12-.9-6.6-5.4-11.1-12-12C6.6 11.1 11.1 6.6 12 0z' fill='%23FFD98A'/></svg>");
  background-size: 100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,16px 16px;
  background-position: 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,30% 24%;
}
#star-layer::after {
  content: ""; animation: starTwinkleB 4.2s ease-in-out 1.7s infinite;
  background-image:
    radial-gradient(2.5px 2.5px at 12% 76%, rgba(255,255,255,.8) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 33% 87%, rgba(255,217,138,.8) 45%, transparent 51%),
    radial-gradient(2.6px 2.6px at 49% 9%, rgba(142,214,248,.85) 45%, transparent 51%),
    radial-gradient(2.2px 2.2px at 63% 47%, rgba(255,255,255,.75) 45%, transparent 51%),
    radial-gradient(2.5px 2.5px at 78% 21%, rgba(179,157,219,.85) 45%, transparent 51%),
    radial-gradient(2.4px 2.4px at 90% 88%, rgba(255,255,255,.7) 45%, transparent 51%),
    radial-gradient(2.6px 2.6px at 98% 40%, rgba(255,255,255,.8) 45%, transparent 51%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.9 6.6 5.4 11.1 12 12-6.6.9-11.1 5.4-12 12-.9-6.6-5.4-11.1-12-12C6.6 11.1 11.1 6.6 12 0z' fill='%238ED6F8'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.9 6.6 5.4 11.1 12 12-6.6.9-11.1 5.4-12 12-.9-6.6-5.4-11.1-12-12C6.6 11.1 11.1 6.6 12 0z' fill='%23FFFFFF'/></svg>");
  background-size: 100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,18px 18px,12px 12px;
  background-position: 0 0,0 0,0 0,0 0,0 0,0 0,0 0,68% 66%,21% 34%;
}
@keyframes starTwinkleA { 0%,100% { opacity:.4 } 50% { opacity:.95 } }
@keyframes starTwinkleB { 0%,100% { opacity:.9 } 50% { opacity:.3 } }
.app { display: flex; height: 100vh; position: relative; z-index: 1; }
body[data-theme="light"] {
  background-color: var(--bg);
  background-image: none;
  box-shadow: none;
}
body[data-theme="light"] #star-layer { display: none; }

/* 交互基准（与侧栏导航一致）：悬停提亮 + 按下缩放 + 选中青色 */
.nav-item, .bn-item, .btn-ghost, .theme-btn, .ph-a, .img-a, .star-link, .switch {
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease, opacity .15s ease;
}
.nav-item:active, .bn-item:active, .btn-ghost:active, .theme-btn:active, .ph-a:active { transform: scale(.96); }
:focus-visible { outline: 2px solid rgba(79,195,247,.55); outline-offset: 2px; border-radius: 10px; }

.side {
  width: 236px; flex: none; background: var(--panel2);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; padding: 2.5px;
  background: var(--grad-main); flex: none; object-fit: cover;
  box-shadow: 0 0 14px rgba(79,195,247,.35), 0 0 28px rgba(179,157,219,.22);
}
.brand-name-row { display: flex; align-items: center; gap: 6px; }
.brand-name { font-size: 16.5px; font-weight: 650; letter-spacing: .5px; }
.brand-star { color: #FFD98A; font-size: 12px; filter: drop-shadow(0 0 6px rgba(255,217,138,.8)); animation: starTwinkle 2.4s ease-in-out infinite; }
.star-r { color: #c4b5fd; filter: drop-shadow(0 0 6px rgba(179,157,219,.8)); animation-delay: 1.2s; }
@keyframes starTwinkle { 0%,100% { opacity:.35; transform:scale(.9) } 50% { opacity:1; transform:scale(1.15) } }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--muted);
  font-size: 14.5px; margin: 2px 0;
}
.nav-item:hover { background: var(--panel3); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(79,195,247,.25); }
.nav-item .p { font-size: 12px; color: var(--faint); background: var(--panel); border: 1px solid var(--line); padding: 0 7px; border-radius: 6px; }
.side-foot { margin-top: auto; padding-top: 12px; }
.btn-ghost {
  width: 100%; font-size: 13.5px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer;
}
.btn-ghost:hover { color: var(--text); background: var(--panel3); border-color: var(--line-strong); }

.main { flex: 1; overflow: auto; }
.main-inner { width: 100%; padding: 28px 42px 64px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
h1 { font-size: 22px; font-weight: 650; margin: 0 0 4px; letter-spacing: .3px; }
.sub { font-size: 14px; color: var(--muted); margin: 0; }
.theme-btn {
  width: 38px; height: 38px; padding: 0; flex: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 50%;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .icon-moon { display: none; }
body[data-theme="light"] .theme-btn .icon-sun { display: none; }
body[data-theme="light"] .theme-btn .icon-moon { display: block; }
.theme-btn:hover { color: var(--text); background: var(--panel3); border-color: var(--line-strong); }
body[data-theme="light"] .tl-item.past { opacity: 1; }
body[data-theme="light"] .tag.subj { color: #ffffff; }

.hero {
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px;
}
.hero .t { font-size: 16px; font-weight: 600; color: var(--brand); }
.hero .d { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.card, .panel {
  border: 1px solid transparent; border-radius: var(--radius);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--border-grad-soft) border-box;
  box-shadow: var(--shadow-card);
}
.card { padding: 18px 20px; }
.card .k { font-size: 13.5px; color: var(--muted); }
.card .v { font-size: 28px; font-weight: 650; margin-top: 4px; letter-spacing: .3px; }
.card .v small { font-size: 14px; font-weight: 400; color: var(--muted); }

/* 可点击统计卡片 */
.click-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border: 1px solid transparent; border-radius: 14px; }
.click-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); border-color: rgba(79,195,247,.3); }
.click-card:active { transform: translateY(0); }
.card-active { border-color: #4fc3f7 !important; box-shadow: 0 0 0 2px rgba(79,195,247,.25), 0 6px 20px rgba(0,0,0,.12) !important; background: rgba(79,195,247,.06) !important; }

/* 筛选栏 */
#praiseFilterBar { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; padding: 8px 16px; background: var(--panel2); border-radius: 10px; border: 1px solid var(--line); }
#praiseFilterLabel { font-size: 13px; color: var(--muted); }

/* 表扬行展开/收起 */
.praise-row { cursor: pointer; }
.praise-row:hover { background: rgba(79,195,247,.06); }
.praise-body { position: relative; }
.praise-sum { line-height: 1.5; color: var(--text1); }
.praise-full { line-height: 1.65; }
.praise-full .msg-img { max-height: 200px; max-width: 100%; border-radius: 8px; cursor: pointer; transition: max-height .2s ease; }
.praise-full .msg-img:hover { max-height: 400px; }
.praise-full .img-wrap { gap: 6px; }
.praise-row .praise-full mark { background: linear-gradient(120deg, rgba(255,213,79,.35) 0%, rgba(255,213,79,.18) 100%); padding: 0 2px; border-radius: 2px; }
.row-expanded { background: rgba(79,195,247,.04); }
.row-expanded .row-top::after { content: '收起'; font-size: 11px; color: var(--muted); margin-left: auto; flex: none; }

/* 补充记录块（合并到原文展开区） */
.sup-badge { margin-left: 4px; font-size: 11px; cursor: default; }
.sup-block { margin-top: 10px; padding: 12px 14px; background: rgba(79,195,247,.06); border-radius: 10px; border-left: 3px solid #4fc3f7; }
.sup-head { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sup-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sup-item:last-child { border-bottom: none; }

.section-title {
  font-size: 15.5px; font-weight: 600; margin: 26px 0 12px;
  display: flex; align-items: center; gap: 9px;
}
.section-title .n { font-size: 12px; color: var(--muted); background: var(--panel3); padding: 2px 10px; border-radius: 8px; }
.panel { overflow: hidden; }
.row { padding: 15px 20px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(79,195,247,.05); }
.row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.when { font-size: 12.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; flex: none; font-weight: 500; }
.tag.subj { color: #10152E; }
.tag.name { background: rgba(150,105,20,.30); color: #e9b84e; }
body[data-theme="light"] .tag.name { background: #f6e7c0; color: #8a6500; }

.tag.who { background: var(--panel3); color: var(--muted); }
.tag.praise { background: var(--ok-bg); color: var(--ok); }
.tag.remind { background: var(--warn-bg); color: var(--warn); }
.tag.notice { background: var(--info-bg); color: var(--info); }
.tag.hw { background: var(--hw-bg); color: var(--hw); }
.body { margin-top: 8px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.75; }
mark { background: var(--warn-bg); color: var(--warn); padding: 0 2px; border-radius: 3px; font-weight: 600; }

.img-a { display: block; margin: 10px 0; width: max-content; }
.msg-img {
  display: block; max-width: 260px; max-height: 320px; border-radius: 10px;
  border: 1px solid var(--line-strong); object-fit: cover; cursor: zoom-in;
}
.file-chip {
  display: inline-block; font-size: 12.5px; color: var(--info); background: var(--info-bg);
  padding: 2px 10px; border-radius: 7px; margin: 2px 4px 2px 0;
}
.file-chip.miss { color: var(--muted); background: var(--panel3); }

.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  font-size: 14.5px; font-weight: 600; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; cursor: pointer;
  transition: all .15s ease;
}
.tab small { font-size: 12px; opacity: .75; margin-left: 4px; }
.tab:hover { color: var(--text); background: var(--panel3); border-color: var(--line-strong); transform: translateY(-1px); }
.tab:active { transform: scale(.96); }
.tab.active {
  color: var(--brand); border-color: var(--brand);
  background: linear-gradient(135deg, rgba(79,195,247,.12), rgba(149,117,205,.10));
  box-shadow: 0 0 0 1px rgba(79,195,247,.25), 0 2px 10px rgba(79,195,247,.12);
}
.img-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
/* 行内操作与备注 */
.row-act { margin-left: auto; display: flex; gap: 6px; opacity: 0; transition: opacity .15s ease; }
.row:hover .row-act, .row-act.always { opacity: 1; }
.mini {
  font-size: 12px; padding: 3px 9px; border-radius: 8px; cursor: pointer;
  color: var(--muted); background: var(--panel3); border: 1px solid var(--line); transition: all .15s ease;
}
.mini:hover { color: var(--brand); border-color: var(--brand); }
.mini:active { transform: scale(.94); }
.mini.danger:hover { color: var(--bad); border-color: var(--bad); }
.note-tag {
  font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 8px;
  padding: 6px 10px; margin-top: 8px; line-height: 1.7;
}
/* 弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(8,12,30,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal {
  width: min(520px, 92vw); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.modal-head { font-size: 16px; font-weight: 650; margin-bottom: 14px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.modal input, .modal select, .modal textarea {
  width: 100%; margin-top: 5px; font-size: 14px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel3); color: var(--text); outline: none; font-family: inherit;
}
.modal textarea { resize: vertical; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.btn-main {
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 10px; cursor: pointer;
  color: #08111f; background: var(--brand); border: none; transition: all .15s ease;
}
.btn-main:hover { filter: brightness(1.08); }
.btn-main:active { transform: scale(.96); }
.btn-ghost {
  font-size: 14px; padding: 9px 16px; border-radius: 10px; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid var(--line); transition: all .15s ease;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:active { transform: scale(.96); }
.msg-video { max-width: 420px; width: 100%; border-radius: 10px; display: block; background: #000; }
.voice-box { display: flex; flex-direction: column; gap: 6px; }
.voice-box audio { max-width: 360px; width: 100%; height: 36px; }
.voice-tr { font-size: 13px; color: var(--text); background: var(--panel3); border-left: 3px solid var(--brand); border-radius: 6px; padding: 6px 10px; line-height: 1.7; }
.toolbar input[type="text"], .toolbar select {
  font-size: 14px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); outline: none; transition: border-color .15s ease;
}
.toolbar input[type="text"] { width: 240px; }
.toolbar input[type="text"]::placeholder { color: var(--faint); }
.toolbar select:focus, .toolbar input[type="text"]:focus { border-color: var(--brand); }
.switch { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); cursor: pointer; border-radius: 8px; padding: 4px 8px; }
.switch:hover { color: var(--text); background: var(--panel3); }
.switch input { accent-color: var(--brand); }
.empty { color: var(--muted); padding: 34px; text-align: center; font-size: 14px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.count { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.ph-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
.ph-a { display: block; border-radius: 10px; }
.ph {
  width: 148px; height: 148px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: zoom-in; transition: transform .12s ease, box-shadow .15s ease;
}
.ph-a:hover .ph { transform: scale(1.03); box-shadow: 0 0 16px rgba(79,195,247,.25); }
.lightbox {
  position: fixed; inset: 0; background: rgba(8,10,24,.86); display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  padding: 30px; z-index: 60; cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; }
.lightbox .cap { color: #F0F2FF; font-size: 13.5px; }

/* 总览 */
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 18px; align-items: stretch; }
.day-card .tt { margin: 10px 0 12px; }
.tt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.tt-cap { font-size: 12.5px; color: var(--muted); width: 34px; flex: none; }
.tt-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
  background: var(--panel3); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
}
.tt-chip i { font-style: normal; font-size: 11px; color: var(--muted); }
.tl { margin-top: 6px; }
.tl-item { display: flex; gap: 12px; font-size: 14px; padding: 3px 0; color: var(--text); }
.tl-item.past { color: var(--muted); opacity: .55; }
.tl-item.course { background: var(--panel3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; margin: 3px 0; }
.tl-item.course .tl-t { width: auto; }
.tl-item.course .tl-l { line-height: 1.7; }
.tl-t { width: 46px; flex: none; font-variant-numeric: tabular-nums; color: var(--brand); }
.tip { font-size: 13.5px; color: var(--muted); background: var(--panel3); border-radius: 10px; padding: 10px 12px; margin-top: 10px; line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 13px; background: var(--panel3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--muted); }
.chip.on { background: var(--brand-soft); border-color: rgba(79,195,247,.35); color: var(--brand); font-weight: 600; }
.plain-list { margin: 10px 0 0; padding-left: 20px; font-size: 14px; }
.plain-list li { margin-bottom: 9px; line-height: 1.75; }
.warn-list li::marker { color: var(--warn); }
.star-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.star-grid .k { font-size: 13.5px; }
.star-grid .v { font-size: 24px; font-weight: 650; margin-top: 3px; }
.star-grid .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.star-body { min-height: 64px; }
.star-body { margin-top: 8px; min-height: 60px; }
.star-link { font-size: 13px; color: var(--brand); text-decoration: none; margin-left: 6px; }
.star-link:hover { text-decoration: underline; opacity: .85; }
.star-link:active { transform: scale(.96); }

/* 班级档案 / 课表 / 课后安排 / 待办 */
.roster-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.t-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
  background: var(--panel3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px;
}
.t-chip b { font-weight: 600; color: var(--text); background: var(--panel); border-radius: 999px; padding: 2px 10px; }
.t-chip i { font-style: normal; color: var(--brand); }
.t-chip em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.stu {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
  background: var(--panel3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px 4px 4px;
}
.stu .no {
  width: 25px; height: 25px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 650;
}
.stu.nonum .no { background: var(--panel); color: var(--muted); border: 1px dashed var(--line-strong); }
.stu.child { background: rgba(150,105,20,.30); border-color: rgba(216,164,65,.60); box-shadow: 0 0 12px rgba(216,164,65,.20); }
.stu.child .no { background: rgba(216,164,65,.28); color: #f4c964; }
body[data-theme="light"] .stu.child { background: #faf0d2; border-color: #d9a83f; box-shadow: 0 0 8px rgba(217,168,63,.25); }
body[data-theme="light"] .stu.child .no { background: #f0daa2; color: #7a5a00; }
.stu .pc { font-size: 11px; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; }
.wk-grid { display: grid; grid-template-columns: 56px repeat(5, 1fr); gap: 6px; }
.wk-head { font-size: 13.5px; color: var(--muted); text-align: center; padding: 5px 0; font-weight: 600; }
.wk-head.on { color: var(--brand); }
.wk-cap { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.wk-cell {
  background: var(--panel3); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 4px; text-align: center; font-size: 13px;
}
.wk-cell.today { border-color: rgba(79,195,247,.45); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.kv { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 56px; flex: none; color: var(--muted); font-size: 13px; padding-top: 1px; }
.kv .v { flex: 1; line-height: 1.75; }
.todo-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.todo-item:last-child { border-bottom: none; }
.todo-item input { accent-color: var(--brand); width: 16px; height: 16px; margin-top: 5px; flex: none; cursor: pointer; }
.todo-item span { line-height: 1.75; }
.todo-item.done span { color: var(--muted); text-decoration: line-through; }

/* 手机底部导航 */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .side { display: none; }
  .bottom-nav {
    display: flex; flex-wrap: wrap; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(16,21,46,.97); border-top: 1px solid var(--line);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  }
  body[data-theme="light"] .bottom-nav { background: rgba(255,255,255,.97); }
  .bn-item { flex: 1 1 60px; text-align: center; font-size: 13px; color: var(--muted); padding: 12px 0; cursor: pointer; border-radius: 10px; white-space: nowrap; }
  .bn-item.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
  .main-inner { padding: 14px 14px 168px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .duo { grid-template-columns: 1fr; }
  .star-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ph { width: calc((100vw - 56px) / 3); height: calc((100vw - 56px) / 3); }
  .toolbar input[type="text"] { flex: 1 1 140px; width: auto; }
  .toolbar select { flex: 1 1 100px; }
  h1 { font-size: 20px; }
  .card .v { font-size: 24px; }
}
@media (max-width: 430px) {
  .ph { width: calc((100vw - 48px) / 2); height: calc((100vw - 48px) / 2); }
}

/* 更新历史块 */
.upd-hist { padding: 14px 18px; margin-bottom: 14px; font-size: 13.5px; }
.upd-latest { color: var(--text); }
.upd-clock { display: none; }
.upd-row { padding: 8px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.upd-more .upd-row:first-of-type { border-top: none; }
.upd-time { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; margin-bottom: 6px; }
.upd-line { display: flex; align-items: baseline; gap: 12px; padding: 3px 0 3px 16px; line-height: 1.7; }
.upd-label { flex: none; width: 64px; color: var(--muted); }
.upd-delta { color: var(--text); font-variant-numeric: tabular-nums; }
.upd-hist .up { color: var(--ok); font-weight: 600; margin-left: 2px; }
.upd-hist .down { color: var(--bad); font-weight: 600; margin-left: 2px; }
.upd-hist .same { color: var(--faint); margin-left: 2px; }
.upd-fail { color: var(--warn); margin-left: 8px; }
.upd-skip { color: var(--warn); padding-left: 16px; }
.upd-more { margin-top: 10px; }
.upd-more summary { cursor: pointer; color: var(--brand); font-size: 12.5px; user-select: none; padding: 4px 0; }
.upd-more .upd-row { padding: 10px 0; }
.upd-more .upd-line { padding: 2px 0 2px 16px; line-height: 1.6; font-size: 13px; }
.upd-none { color: var(--muted); line-height: 1.7; }

/* 一周课表折叠块 */
.wk-fold { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; }
.wk-fold summary { cursor: pointer; user-select: none; padding: 13px 18px; font-size: 14px; font-weight: 600; color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px; }
.wk-fold summary::-webkit-details-marker { display: none; }
.wk-fold summary::after { content: '展开 ▾'; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--brand); }
.wk-fold[open] summary::after { content: '收起 ▴'; }
.wk-fold[open] summary { border-bottom: 1px dashed var(--line); }
.wk-fold .wk-scroll { padding: 14px 18px 6px; }
.wk-fold .note { padding: 0 18px 12px; margin: 0; }
.wk-scroll { overflow-x: auto; }
.wk-scroll .wk-grid { min-width: 560px; }

/* 星能卡片彩色渐变数字（参考诺诺学习平台样式） */
.star-grid .stat {
  background: var(--panel3, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 12px 14px;
}
.star-grid .stat .k { font-size: 13px; color: var(--muted); }
.star-grid .v {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.15;
}
.star-grid .v small { font-size: 16px; font-weight: 500; }
.star-grid .grad-pink   { background: linear-gradient(120deg,#ff7ad9 0%,#ff4d88 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-grid .grad-orange { background: linear-gradient(120deg,#ffc24d 0%,#ff8a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-grid .grad-blue   { background: linear-gradient(120deg,#5ac8ff 0%,#3d7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-grid .grad-teal   { background: linear-gradient(120deg,#4dffc3 0%,#2dd4bf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-grid .v small { background: none; -webkit-text-fill-color: var(--muted); color: var(--muted); }

/* 返回总台：小圆 logo + 小字 */
.home-logo { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding: 4px 6px; border-radius: 999px; transition: background .15s ease; }
.home-logo:hover { background: rgba(255,255,255,.06); }
.home-logo img { width: 22px; height: 22px; border-radius: 50%; display: block; }
.home-logo span { font-size: 12px; color: var(--muted); }
.home-logo:hover span { color: var(--text); }
