/* 才梓 · 教学工作台 —— 视觉底座 */
:root {
  /* 样式版本号：app.js 会用这个值判断"浏览器是不是拿了旧 CSS"，别乱删 */
  --cz-css: 21;
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --line: #E8E5DC;
  --line-strong: #D6D2C6;
  --ink: #1A1B17;
  --ink-2: #5B5D53;
  --ink-3: #8E9086;
  --brand: #14584A;
  --brand-deep: #0C3D33;
  --brand-soft: #E8F1ED;
  --brand-line: #BFD8D0;
  --amber: #A26A11;
  --amber-soft: #FAEFD9;
  --red: #AE3F38;
  --red-soft: #FBEAE7;
  --ok: #2C6B44;
  --ok-soft: #E7F0E8;
  --lime: #6E8B3D;
  --lime-soft: #EFF3E2;
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --shadow-1: 0 1px 2px rgba(26, 27, 23, .05);
  --shadow-2: 0 2px 4px rgba(26, 27, 23, .04), 0 12px 28px -16px rgba(26, 27, 23, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #D9D5C9; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* 布局 */
#app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: none; position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 14px 16px;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--brand); color: #EAF3EF;
  display: grid; place-items: center; font-size: 17px; font-weight: 500; letter-spacing: 1px;
}
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: .5px; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .4px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; color: var(--ink-3); letter-spacing: 1.4px; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; color: var(--ink-2); font-size: 13.5px;
  transition: background .16s ease, color .16s ease; position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.nav-item .ico { flex: none; opacity: .85; }
.nav-item.active .ico { opacity: 1; }
.nav-item .count {
  margin-left: auto; font-size: 11px; color: var(--ink-3);
  background: var(--surface-2); border-radius: 20px; padding: 0 7px; line-height: 18px;
}
.nav-item.active .count { background: #fff; color: var(--brand); }

.side-foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.streak {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px;
  background: var(--surface-2); border-radius: 10px; margin-bottom: 8px;
}
.streak-num { font-family: var(--mono); font-size: 19px; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.streak-txt { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.linkbtn { background: none; border: 0; padding: 4px 10px; color: var(--ink-3); font-size: 11.5px; cursor: pointer; border-radius: 6px; }
.linkbtn:hover { background: var(--surface-2); color: var(--ink-2); }

.topbar {
  padding: 22px 34px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 244, 240, .9); backdrop-filter: saturate(140%) blur(10px);
}
.page-title { font-size: 22px; font-weight: 500; letter-spacing: -.2px; }
.page-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.date-chip {
  font-size: 12px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px;
  font-variant-numeric: tabular-nums;
}
#view { padding: 20px 34px 64px; flex: 1; }
.view-entry { animation: rise .34s cubic-bezier(.22, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view-entry { animation: none; } }

/* 板块 */
.grid-today { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px 20px;
}
.card.flush { padding: 0; overflow: hidden; }
.card.tight { padding: 14px 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card-title { font-size: 14.5px; font-weight: 500; letter-spacing: -.1px; }
.card-note { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.muted { color: var(--ink-3); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.sec-title { font-size: 15px; font-weight: 500; }
.sec-sub { font-size: 12px; color: var(--ink-3); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { border-color: #C4BFB1; color: var(--ink); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #F4FAF7; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.soft { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
.btn.soft:hover { background: #DDEDE6; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 徽标 */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); line-height: 18px; white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.danger { background: var(--red-soft); color: var(--red); }
.chip.brand { background: var(--brand-soft); color: var(--brand-deep); }
.chip.line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-3); }
.chip.subj { border: 1px solid transparent; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 老师标识 */
.tch {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 10px;
  color: var(--ink-2); vertical-align: -2px; flex: none;
}
.tch.big { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.tchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.settle-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.settle-row:first-of-type { border-top: 0; }

/* 指标 */
.metric { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.metric-label { font-size: 11.5px; color: var(--ink-3); }
.metric-value { font-size: 21px; font-weight: 500; letter-spacing: -.4px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }

/* 今日课程 */
.lesson-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 2px;
  border-top: 1px solid var(--line);
}
.lesson-row:first-child { border-top: 0; }
.lesson-time { font-family: var(--mono); font-size: 13px; color: var(--ink-2); width: 52px; flex: none; font-variant-numeric: tabular-nums; }
.lesson-main { flex: 1; min-width: 0; }
.lesson-name { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lesson-topic { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-actions { display: flex; gap: 6px; flex: none; }
.lesson-row.done { opacity: .62; }
.lesson-row.done .lesson-name { text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* 待办 */
.todo {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px;
  border-top: 1px solid var(--line); cursor: pointer;
}
.todo:first-child { border-top: 0; }
.box {
  width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong);
  flex: none; margin-top: 2px; display: grid; place-items: center;
  background: #fff; transition: background .15s ease, border-color .15s ease;
}
.todo:hover .box { border-color: var(--brand-line); }
.todo.on .box { background: var(--brand); border-color: var(--brand); }
.todo.on .box svg { opacity: 1; }
.box svg { opacity: 0; transition: opacity .15s ease; }
.todo-text { font-size: 13px; line-height: 1.5; }
.todo.on .todo-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.todo-kind { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.progress { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s cubic-bezier(.3, .8, .3, 1); }
.progress.amber > i { background: var(--amber); }
.progress.red > i { background: var(--red); }

/* 学员卡 */
.stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.stu-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; cursor: pointer; position: relative;
  min-height: 140px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.stu-top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 500;
  background: var(--brand-soft); color: var(--brand-deep);
}
.avatar.small { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.avatar.large { width: 52px; height: 52px; border-radius: 14px; font-size: 19px; }
.stu-name { font-size: 14.5px; font-weight: 500; }
.stu-meta { font-size: 11.5px; color: var(--ink-3); }
.stu-stats { display: flex; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.stu-stat { flex: 1; min-width: 0; }
.stu-stat-label { font-size: 11px; color: var(--ink-3); }
.stu-stat-val { font-size: 14px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.stu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stu-flag { position: absolute; top: 14px; right: 14px; }

/* 学情 */
.kp-block { margin-bottom: 18px; }
.kp-block:last-child { margin-bottom: 0; }
.kp-subject { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.kp-subject + .kp-block { margin-top: 0; }
.kp-chapter { font-size: 11.5px; color: var(--ink-3); letter-spacing: .6px; margin-bottom: 8px; }
.kp-cells { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-cell { width: 112px; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; }
.kp-name { font-size: 11.5px; line-height: 1.35; }
.kp-val { font-family: var(--mono); font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lv-1 { background: var(--red-soft); color: var(--red); }
.lv-2 { background: var(--amber-soft); color: var(--amber); }
.lv-3 { background: var(--lime-soft); color: var(--lime); }
.lv-4 { background: var(--ok-soft); color: var(--ok); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.heat { overflow-x: auto; padding-bottom: 4px; }
.heat-grid { display: grid; gap: 4px 5px; min-width: max-content; align-items: center; }
.heat-chap {
  height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--ink-3); background: var(--surface-2);
  border-radius: 5px; letter-spacing: .3px;
}
.heat-cell { height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.heat-row-label { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; height: 32px; padding-right: 8px; white-space: nowrap; }
.heat-col-label {
  font-size: 10.5px; color: var(--ink-3); height: 38px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 1px 5px; line-height: 1.2; text-align: center;
}

/* 时间轴 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -19px; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--surface); border: 1.5px solid var(--brand-line);
}
.tl-date { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 13.5px; margin-top: 1px; }
.tl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* 错题 */
.mistake { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mistake:first-child { border-top: 0; padding-top: 4px; }
.mistake-body { flex: 1; min-width: 0; }
.mistake-stem { font-size: 13px; }
.mistake-cause { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mistake.done { opacity: .5; }
.mistake.done .mistake-stem { text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* 周历 */
.week-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.week-label { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-height: 240px; display: flex; flex-direction: column; }
.day-col.today { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(20, 88, 74, .05); }
.day-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.day-name { font-size: 12px; color: var(--ink-3); }
.day-num { font-size: 15px; font-variant-numeric: tabular-nums; }
.day-col.today .day-num, .day-col.today .day-name { color: var(--brand); font-weight: 500; }
.day-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.day-empty { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 18px 0; opacity: .75; }

/* 时间段分组：同一时刻的多节课并排 */
.sgroup { display: flex; gap: 6px; }
.sgroup-t {
  width: 33px; flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  padding-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.sgroup-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sgroup-list.multi { gap: 4px; }
.sgroup-list.multi .slot { padding: 6px 8px; }
.sgroup-list.multi .slot .k { font-size: 10px; }
.sgroup.multi .sgroup-t { color: var(--brand); }
.sgroup.multi .sgroup-t i { display: block; font-style: normal; font-size: 9.5px; color: var(--brand); opacity: .75; line-height: 1.3; }
.sgroup.multi .sgroup-list { padding-left: 4px; border-left: 1px solid var(--brand-line); }

.slot {
  border-radius: 8px; padding: 7px 9px; cursor: pointer; background: var(--brand-soft);
  border-left: 2px solid var(--brand-line); transition: transform .15s ease, box-shadow .15s ease;
}
.slot:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.slot .n { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.slot .n .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .k { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.slot.done { opacity: .62; }

.add-slot {
  border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-3);
  border-radius: 8px; padding: 6px; font-size: 12px; cursor: pointer; text-align: center;
  transition: border-color .15s ease, color .15s ease;
}
.add-slot:hover { border-color: var(--brand-line); color: var(--brand); }

/* 周报 */
.report { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.report-area {
  width: 100%; min-height: 132px; resize: vertical; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2); padding: 12px 14px;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2); outline: none;
}
.report-area:focus { border-color: var(--brand-line); background: #fff; }
.report-foot { display: flex; gap: 8px; margin-top: 10px; align-items: center; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 400; color: var(--ink-3);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
.table .s-name { display: flex; align-items: center; gap: 9px; }

/* 本周节奏 */
.week-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wm { text-align: center; padding: 7px 0 5px; border-radius: 9px; transition: background .15s ease; }
.wm.today { background: var(--brand-soft); }
.wm-d { display: block; font-size: 11px; color: var(--ink-3); }
.wm.today .wm-d { color: var(--brand); font-weight: 500; }
.wm-bar { display: flex; align-items: flex-end; justify-content: center; height: 36px; margin: 5px 0 3px; }
.wm-bar i { display: block; width: 22px; border-radius: 4px; background: #A6CBBE; }
.wm-bar i.full { background: var(--brand); }
.wm-c { display: block; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wm.today .wm-c { color: var(--brand); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 88, 74, .08); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 费用预览 */
.fee-preview {
  display: flex; gap: 8px; margin-top: 2px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
}
.fee-item { flex: 1; font-size: 11.5px; color: var(--ink-3); }
.fee-item b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* 弹层 */
.overlay {
  position: fixed; inset: 0; background: rgba(26, 27, 23, .34);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  backdrop-filter: blur(2px);
}
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto;
  background: var(--surface); border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 24px 60px -20px rgba(20, 30, 26, .4);
  animation: pop .24s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes pop { from { transform: translateY(10px) scale(.985); } to { transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 16px; font-weight: 500; }
.modal-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.x-btn { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px; border-radius: 6px; line-height: 0; }
.x-btn:hover { background: var(--surface-2); color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.drawer-wrap { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; background: rgba(26, 27, 23, .3); backdrop-filter: blur(2px); }
.drawer {
  width: min(460px, 100vw); height: 100%; background: var(--surface);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
  animation: slideIn .28s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes slideIn { from { transform: translateX(24px); } to { transform: none; } }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 22px 24px; overflow: auto; flex: 1; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--surface-2); }

.tag-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.tag-row:first-of-type { border-top: 0; }
.tag-name { font-size: 12.5px; flex: 1; min-width: 0; }
.tag-group { display: flex; gap: 5px; flex: none; }
.tag-btn {
  height: 27px; min-width: 42px; padding: 0 9px; border-radius: 7px; font-size: 11.5px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-3); cursor: pointer;
  transition: all .15s ease;
}
.tag-btn:hover { border-color: var(--brand-line); color: var(--brand); }
.tag-btn.on[data-lv="会"] { background: var(--ok-soft); border-color: #B7D3BE; color: var(--ok); font-weight: 500; }
.tag-btn.on[data-lv="半懂"] { background: var(--amber-soft); border-color: #E8D3A8; color: var(--amber); font-weight: 500; }
.tag-btn.on[data-lv="不会"] { background: var(--red-soft); border-color: #E9C4BF; color: var(--red); font-weight: 500; }

.empty { text-align: center; padding: 34px 10px; color: var(--ink-3); font-size: 12.5px; }
.toast-root { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #22241F; color: #F3F2EC; font-size: 12.5px; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); animation: toastIn .26s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

.ring-wrap { position: relative; display: grid; place-items: center; flex: none; }
.ring-label { position: absolute; text-align: center; line-height: 1.15; }
.ring-num { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ring-cap { font-size: 10px; color: var(--ink-3); }

.hint {
  display: flex; gap: 9px; padding: 11px 13px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; line-height: 1.6;
}
.hint.warm { background: var(--amber-soft); color: #7A4E0C; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-8 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 1120px) {
  .grid-today { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .sidebar { width: 68px; padding: 18px 10px 12px; }
  .brand-text, .nav-item span, .nav-label, .side-foot .streak-txt { display: none; }
  .brand { justify-content: center; padding: 0 0 16px; }
  .nav-item { justify-content: center; padding: 10px 0; }
  .nav-item .count { display: none; }
  .streak { justify-content: center; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar, #view { padding-left: 18px; padding-right: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* 设置 */
.tabs {
  display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content;
}
.tab {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 9px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.tab:hover { background: var(--surface-2); }
.tab.on { background: var(--brand); color: #F4FAF7; font-weight: 500; }

.cfg-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.cfg-row:first-of-type { border-top: 0; }
.swatch { width: 14px; height: 14px; border-radius: 5px; border: 1px solid; flex: none; }
.cfg-name { font-size: 13.5px; }
.cfg-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.cfg-add { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.cfg-add .input { flex: 1; min-width: 120px; }
.cfg-add select.input { flex: 0 0 116px; }
.cfg-add .btn { flex: none; }

.kp-admin { margin-bottom: 18px; }
.kp-admin-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kp-admin-ch { font-size: 12px; color: var(--ink-3); letter-spacing: .4px; }
.kp-admin-list { display: flex; flex-wrap: wrap; gap: 7px; }
.kp-pill {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 5px 4px 10px;
  border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px;
}
.kp-pill button {
  border: 0; background: transparent; color: var(--ink-3); font-size: 11px; cursor: pointer;
  padding: 1px 4px; border-radius: 4px; line-height: 1.4;
}
.kp-pill button:hover { background: #fff; color: var(--red); }
.chip-x { border: 0; background: transparent; color: currentColor; opacity: .45; cursor: pointer; font-size: 12px; padding: 0 0 0 5px; line-height: 1; }
.chip-x:hover { opacity: 1; }
.chip[data-act] { cursor: pointer; }

/* 结算凭证 */
.settle-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 14px; background: var(--surface-2); border-radius: 10px; margin-bottom: 16px;
}
.settle-amount span { font-size: 12px; color: var(--ink-3); }
.settle-amount b { font-size: 22px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.seg button:hover { border-color: var(--brand-line); color: var(--brand); }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #F4FAF7; font-weight: 500; }
.req { color: var(--red); font-size: 10.5px; margin-left: 6px; background: var(--red-soft); padding: 1px 6px; border-radius: 4px; letter-spacing: .3px; }
.field label.proof-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-weight: 400; margin-bottom: 0;
  padding: 24px 12px; border: 1px dashed var(--line-strong); border-radius: 12px;
  cursor: pointer; color: var(--ink-3); font-size: 12.5px; background: var(--surface-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.field label.proof-drop:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.btn.primary:disabled { background: #C3D2CC; border-color: #C3D2CC; color: #FFFFFF; opacity: 1; }
.btn:disabled { opacity: .5; }
.proof-prev { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.proof-prev img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.proof-view { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.proof-view img { max-width: 100%; max-height: 56vh; border-radius: 8px; }
.proof-info { display: grid; gap: 7px; margin-top: 14px; font-size: 12.5px; }
.proof-info div { display: flex; justify-content: space-between; gap: 12px; }
.proof-info span { color: var(--ink-3); flex: none; }

/* 自习室 */
.dstrip-wrap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.dstrip {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px;
  padding: 6px 0 4px; cursor: pointer; text-align: center; position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.dstrip:hover { border-color: var(--brand-line); }
.dstrip span { display: block; font-size: 10.5px; color: var(--ink-3); }
.dstrip b { display: block; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 1px; }
.dstrip i { display: block; font-style: normal; font-size: 10px; color: var(--brand); height: 12px; line-height: 12px; }
.dstrip.today { border-color: var(--line-strong); }
.dstrip.on { border-color: var(--brand); background: var(--brand-soft); }
.dstrip.on span, .dstrip.on b { color: var(--brand-deep); }

.att-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 2px;
  border-top: 1px solid var(--line);
}
.att-row:first-of-type { border-top: 0; }
.att-row.off { opacity: .55; }
.att-check {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: #fff; flex: none;
  transition: background .15s ease, border-color .15s ease;
}
.att-check:hover { border-color: var(--brand-line); }
.att-row.on .att-check { background: var(--brand); border-color: var(--brand); }
.att-time { display: flex; align-items: center; gap: 5px; flex: none; }
.tinput {
  width: 76px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-size: 11.5px; padding: 0 4px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tinput:focus { outline: none; border-color: var(--brand-line); }
.att-dur {
  width: 44px; text-align: right; font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; flex: none;
}
.att-dur span { font-size: 10px; margin-left: 1px; }

.wk-grid { display: grid; gap: 6px; align-items: center; min-width: max-content; }
.wk-h { font-size: 11px; color: var(--ink-3); text-align: center; }
.wk-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.wk-cell {
  height: 28px; border-radius: 6px; background: var(--surface-2);
  display: grid; place-items: center;
}
.wk-cell.on { background: var(--brand-soft); }
.wk-cell i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: block; }
.wk-sum { font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

.cfg-inline {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; flex: none;
}
.cfg-inline span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.cfg-inline input {
  border: 0; outline: none; background: transparent; width: 68px;
  font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cfg-inline:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 88, 74, .08); }

/* 待办维护 */
.todo-tools { display: flex; gap: 1px; flex: none; opacity: .35; transition: opacity .15s ease; }
.todo:hover .todo-tools { opacity: 1; }
.mini {
  border: 0; background: transparent; color: var(--ink-3); font-size: 11px;
  width: 20px; height: 20px; border-radius: 5px; cursor: pointer; line-height: 1;
  padding: 0;
}
.mini:hover { background: var(--surface-2); color: var(--ink); }
.todo-add {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  display: grid; gap: 8px;
}
.todo-add .input { height: 34px; }
.todo-add-row { display: flex; gap: 8px; }
.todo-add-row select.input { flex: 1; height: 34px; }
.todo-add-row .btn { flex: none; }

/* 需要盯一下 */
.watch-row {
  display: flex; align-items: flex-start; gap: 6px; padding: 9px 2px;
  border-top: 1px solid var(--line);
}
.watch-row:first-of-type { border-top: 0; }
.watch-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; }
.watch-main:hover .todo-text { color: var(--brand); }

/* 财务报表 */
.kpi { padding: 16px 18px; }
.kpi-label { font-size: 12px; color: var(--ink-3); }
.kpi-val { font-size: 26px; font-weight: 500; letter-spacing: -.6px; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 11.5px; display: inline-block; }
.kpi-delta em { font-style: normal; color: var(--ink-3); margin-left: 2px; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.flat { color: var(--ink-3); }
.kpi-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; flex: none; display: grid; place-items: center; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-num { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.donut-cap { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lg-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.lg-name { color: var(--ink-2); }
.lg-val { margin-left: auto; font-variant-numeric: tabular-nums; }
.lg-pct { width: 34px; text-align: right; color: var(--ink-3); font-size: 11.5px; }

.hbar { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.hbar-name { width: 96px; flex: none; font-size: 12.5px; color: var(--ink-2); }
.hbar-name span { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.hbar-track { flex: 1; min-width: 0; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; position: relative; }
.hbar-track i { position: absolute; left: 0; top: 0; bottom: 0; background: #CFE0D9; border-radius: 99px; }
.hbar-track b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; opacity: .85; }
.hbar-val { width: 62px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }

.due-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.due-row:first-of-type { border-top: 0; }
.due-row b { font-weight: 400; font-variant-numeric: tabular-nums; }
.due-row b.amber { color: var(--amber); }
.due-row b.red { color: var(--red); }

.eff { background: var(--surface-2); border-radius: 10px; padding: 12px 13px; }
.eff-label { font-size: 11.5px; color: var(--ink-3); }
.eff-val { font-size: 19px; font-weight: 500; margin: 3px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.eff-note { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.kpi-val.neg { color: var(--red); }

/* 登录与云同步 */
.auth-screen {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px 26px; box-shadow: 0 24px 60px -32px rgba(20,30,26,.35);
  animation: pop .3s cubic-bezier(.22,.8,.3,1) both;
}
.auth-card.auth-loading { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 44px 28px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-title { font-size: 20px; font-weight: 500; letter-spacing: -.3px; }
.auth-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; margin-top: 6px; }
.auth-seg { margin: 18px 0 16px; }
.auth-code { display: flex; gap: 8px; }
.auth-code .input { flex: 1; min-width: 0; }
.auth-code .btn { flex: none; height: 36px; min-width: 104px; }
.auth-err { font-size: 12px; color: var(--red); min-height: 18px; margin: 2px 0 10px; }
.auth-foot { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.7; }
.spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  background: var(--surface-2); border-radius: 10px; margin-bottom: 8px;
}
.user-name { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sync { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sync.warn { color: var(--amber); }
.user-sync.bad { color: var(--red); }

.sync-banner {
  margin: 0 34px 4px; padding: 12px 16px; border-radius: 12px;
  background: var(--amber-soft); border: 1px solid #E8D3A8;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sync-banner-txt { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #7A4E0C; }
.sync-banner-txt b { font-weight: 500; font-size: 13px; }
.sync-banner-txt span { color: #8A6218; font-size: 11.5px; line-height: 1.55; }

.auth-err.on {
  background: var(--red-soft); color: var(--red); border-radius: 7px;
  padding: 7px 10px; font-size: 12px; line-height: 1.5; min-height: 0;
}

.btn.danger { background: var(--red-soft); border-color: #E3B7B2; color: var(--red); }
.btn.danger:hover { background: #F6DEDA; }

/* 知识点选择器 */
.kp-picker {
  max-height: 170px; overflow-y: auto; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 8px 10px; background: #fff;
}
.kp-group { font-size: 10.5px; color: var(--ink-3); letter-spacing: .3px; margin: 6px 0 3px; }
.kp-group:first-child { margin-top: 0; }
.kp-opt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 3px 0; cursor: pointer; color: var(--ink-2); }
.kp-opt input { margin: 0; }
.kp-opt:hover { color: var(--ink); }

/* ================= 上手入门 ================= */
.count.soft { color: var(--brand); background: var(--brand-soft); }
.nav-item.active .count.soft { background: #fff; }

/* 今日顶部那条引导 */
.onb-tip {
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(100deg, var(--brand-soft), #F7F5EC);
  border: 1px solid var(--brand-line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px;
  box-shadow: var(--shadow-1);
}
.onb-ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.onb-txt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.onb-txt b { color: var(--brand-deep); font-weight: 600; }
.onb-prog {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 20px;
  background: #fff; border: 1px solid var(--brand-line); color: var(--brand);
  font-size: 11px; font-weight: 600;
}
.onb-go { font-size: 12.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.onb-go:hover { text-decoration: underline; }

/* 页头 */
.g-wrap { max-width: 1080px; }

.g-hero {
  display: grid; grid-template-columns: 1fr 210px; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.g-hero::after {
  content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(20,88,74,.07), transparent 68%);
  pointer-events: none;
}
.g-eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 1.2px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 20px; padding: 3px 11px; margin-bottom: 12px;
}
.g-hero-t { font-size: 23px; line-height: 1.35; font-weight: 650; letter-spacing: -.3px; color: var(--ink); }
.g-hero-p { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.g-hero-btns { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.g-hero-r { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.g-ring { position: relative; width: 96px; height: 96px; }
.g-ring svg { display: block; }
.g-ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.g-ring-txt b { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; }
.g-ring-txt b small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.g-ring-txt span { font-size: 10px; color: var(--ink-3); }
.g-hero-bar { width: 100%; height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.g-hero-bar-in {
  height: 100%; border-radius: 4px; background: var(--brand);
  transition: width .5s cubic-bezier(.22,.7,.3,1);
}
.g-hero-note { font-size: 11px; color: var(--ink-3); }

/* 快捷三件事 */
.g-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow-1);
}
.g-card-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.g-card-t { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.g-card-s { font-size: 11.5px; color: var(--ink-3); }
.g-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-qi {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
  transition: border-color .18s, background .18s, transform .18s;
}
.g-qi:hover { border-color: var(--brand-line); background: var(--brand-soft); transform: translateY(-1px); }
.g-qi b {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 11px; display: grid; place-items: center; margin-top: 1px;
}
.g-quick-note { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }

/* 阶段 */
.g-stage { margin-top: 30px; }
.g-stage-hd { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.g-stage-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 8px; padding: 5px 9px; flex: none;
}
.g-stage-tt { flex: none; }
.g-stage-t { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.2px; }
.g-stage-s { font-size: 11px; color: var(--ink-3); }
.g-stage-lead {
  font-size: 12px; color: var(--ink-3); line-height: 1.65;
  border-left: 2px solid var(--line-strong); padding-left: 12px; margin-left: 4px;
}

.g-steps { display: flex; flex-direction: column; gap: 10px; }

.g-step {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .2s, box-shadow .2s;
}
.g-step:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.g-step.is-done { background: linear-gradient(180deg, #FCFDFB, var(--surface)); border-color: var(--brand-line); }
.g-step.is-done .g-step-t { color: var(--ink-2); }

.g-step-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.g-dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 1.5px solid var(--line-strong); color: var(--ink-2);
  font-family: var(--mono);
}
.g-step.is-done .g-dot { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 13px; }
.g-step-t { flex: 1; font-size: 14.5px; font-weight: 620; color: var(--ink); letter-spacing: -.1px; }
.g-check {
  flex: none; height: 25px; padding: 0 11px; border-radius: 20px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-strong); transition: all .16s;
}
.g-check:hover { border-color: var(--brand); color: var(--brand); }
.g-check.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.g-where {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  font-size: 11.5px; color: var(--ink-2); background: var(--surface-2);
  border: 1px dashed var(--line-strong); border-radius: 8px;
  padding: 6px 10px; margin-bottom: 11px;
}
.g-where .ico { color: var(--brand); opacity: .8; flex: none; }
.g-where-t { font-size: 10.5px; color: var(--ink-3); margin-right: 3px; letter-spacing: .3px; }
.g-crumb { color: var(--brand-deep); font-weight: 550; }
.g-sep { color: var(--ink-3); }

.g-todo { margin: 0; padding-left: 19px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.g-todo li { margin: 0; }
.g-todo li::marker { color: var(--brand-line); font-weight: 700; }

.g-see {
  margin-top: 11px; font-size: 12px; line-height: 1.7; color: var(--ink-2);
  background: var(--brand-soft); border-radius: 9px; padding: 9px 12px;
}
.g-see b {
  display: block; font-size: 10.5px; letter-spacing: .5px; color: var(--brand);
  font-weight: 700; margin-bottom: 2px;
}

/* 迷你界面示意 */
.g-step-shot { align-self: center; }
.shot {
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 6px 16px -12px rgba(26,27,23,.5);
}
.shot-top {
  height: 17px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
}
.shot-top i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot-in { display: grid; grid-template-columns: 72px 1fr; min-height: 128px; }
.shot-side { background: #FCFBF8; border-right: 1px solid var(--line); padding: 9px 7px; }
.shot-side .sn {
  font-size: 9.5px; line-height: 1.1; color: var(--ink-3); border-radius: 5px;
  padding: 6px 7px; margin-bottom: 3px; white-space: nowrap; overflow: hidden;
}
.shot-side .sn.act { color: var(--brand-deep); background: var(--brand-soft); font-weight: 600; }
.shot-side .sn.hl {
  color: #fff; background: var(--brand); font-weight: 700;
  box-shadow: 0 0 0 2px rgba(20,88,74,.18);
  animation: shotPulse 2.2s ease-in-out infinite;
}
.shot-main { padding: 10px 11px; min-width: 0; display: flex; flex-direction: column; }
.shot-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.shot-hd b { font-size: 10px; color: var(--ink); font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbtn {
  font-size: 8.5px; line-height: 1; padding: 5px 7px; border-radius: 5px; white-space: nowrap;
  background: var(--brand); color: #fff; font-weight: 600;
}
.sbtn.hl, .srb.hl {
  box-shadow: 0 0 0 2px rgba(20,88,74,.22);
  animation: shotPulse 2.2s ease-in-out infinite;
}
.stabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; overflow: hidden; flex: none; }
.st { font-size: 8.5px; color: var(--ink-3); padding: 3px 6px; border-radius: 4px; white-space: nowrap; flex: none; }
.st.dim { color: var(--line-strong); padding-left: 1px; padding-right: 1px; letter-spacing: 0; }
.st.act { color: var(--brand-deep); background: var(--brand-soft); font-weight: 700; }
.srow { height: 15px; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.srow i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.srb {
  font-size: 8.5px; line-height: 1; padding: 5px 7px; border-radius: 5px; white-space: nowrap;
  background: var(--brand); color: #fff; font-weight: 600; margin-left: auto;
}

@keyframes shotPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(20,88,74,.18); }
  50% { box-shadow: 0 0 0 4px rgba(20,88,74,.08); }
}
@media (prefers-reduced-motion: reduce) {
  .shot-side .sn.hl, .sbtn.hl, .srb.hl { animation: none; }
}

/* 坑 */
.g-traps { border-color: #EFE2C8; background: linear-gradient(180deg, #FEFCF6, var(--surface)); }
.g-trap { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid #F0E8D6; }
.g-trap:first-of-type { border-top: none; padding-top: 2px; }
.g-trap-no {
  flex: none; width: 19px; height: 19px; border-radius: 6px; background: var(--amber-soft);
  color: var(--amber); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  margin-top: 1px;
}
.g-trap-t { font-size: 13px; font-weight: 620; color: var(--ink); }
.g-trap-d { font-size: 12px; line-height: 1.72; color: var(--ink-2); margin-top: 2px; }

@media (max-width: 1080px) {
  .g-step { grid-template-columns: 1fr; gap: 14px; }
  .g-step-shot { max-width: 300px; }
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-r { flex-direction: row; align-items: center; gap: 16px; }
  .g-hero-bar { flex: 1; }
  .g-quick-grid { grid-template-columns: 1fr; }
  .g-stage-hd { flex-wrap: wrap; row-gap: 6px; }
  .g-stage-lead {
    flex: 1 1 100%; border-left: none; padding-left: 0; margin-left: 0;
    font-size: 11.5px;
  }
}

.g-outro {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
  padding: 22px 24px;
}
.g-outro-l { min-width: 0; }
.g-outro-t { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.g-outro-d { margin-top: 5px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.72); }
.g-outro .btn {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff;
}
.g-outro .btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.g-outro .btn.primary { background: #fff; border-color: #fff; color: var(--brand-deep); font-weight: 600; }
.g-outro .btn.primary:hover { background: #F3F7F5; }

@media (max-width: 720px) {
  .g-outro { flex-direction: column; align-items: flex-start; }
}

.g-shot-cap {
  margin-top: 7px; font-size: 10.5px; line-height: 1.5; color: var(--ink-3);
  text-align: center; letter-spacing: .2px;
}

/* ================= 手机端（≤620px）=================
   手机不是主战场，但别人点链接多半是在手机上打开，
   至少要做到：不横向溢出、能看清今日和排课、能正常登录。 */
@media (max-width: 620px) {
  html, body { overflow-x: hidden; }

  /* 侧栏改成顶部横向导航条 */
  #app { display: block; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 60;
    flex-direction: row; align-items: center; gap: 8px;
    padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(140%) blur(10px);
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .brand { padding: 0; flex: none; gap: 0; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .brand-text { display: none; }

  .nav { flex-direction: row; gap: 2px; flex: 1; }
  .nav-item {
    flex: none; flex-direction: column; gap: 2px;
    padding: 6px 9px; border-radius: 9px; font-size: 10px; line-height: 1.2;
  }
  .nav-item .ico { width: 17px; height: 17px; }
  .nav-item span { display: block; font-size: 10px; }
  .nav-item .count { display: none; }

  .side-foot { display: none; }

  /* 主区 */
  .main { width: 100%; }
  .topbar {
    position: static; padding: 14px 14px 10px;
    align-items: flex-start; flex-wrap: wrap; gap: 10px;
  }
  .page-title { font-size: 20px; }
  .page-sub { font-size: 11.5px; }
  .top-actions { display: flex; gap: 6px; flex-wrap: wrap; }
  #view { padding: 12px 14px 60px; }

  /* 卡片与栅格 */
  .card { padding: 14px; border-radius: 12px; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .grid-today, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .stu-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-mini { grid-template-columns: repeat(7, minmax(0, 1fr)); }

  /* 表格允许横向滑动，别把卡片撑破 */
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; }

  /* 设置页的 tab 条 */
  .tabs { width: 100%; overflow-x: auto; }
  .tab { padding: 7px 12px; font-size: 12.5px; }

  /* 入门页 */
  .g-hero { padding: 18px; }
  .g-hero-t { font-size: 19px; }
  .g-step { padding: 14px; }
  .g-step-shot { max-width: 100%; }
  .g-stage-lead { display: none; }

  /* 弹窗：贴底全宽，单手也好操作 */
  .overlay { padding: 0; align-items: flex-end; }
  .modal {
    width: 100%; max-width: 100%; max-height: 92vh; overflow-y: auto;
    border-radius: 18px 18px 0 0;
  }
}

/* ================= 排课筛选 ================= */
.sched-filter { display: flex; align-items: center; gap: 7px; }
.sched-filter > .ico { color: var(--ink-3); flex: none; }

select.input.sel-sm {
  width: auto; min-width: 116px; max-width: 170px; height: 32px;
  font-size: 12.5px; color: var(--ink-2); border-radius: 9px;
  padding: 0 26px 0 10px; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238E9086' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
}
select.input.sel-sm:hover { border-color: var(--ink-3); }
select.input.sel-sm:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,88,74,.08); }

/* 老师标签变成可点的快捷筛选 */
.chip.pick { border: 0; font-family: inherit; }
.chip.pick.line { border: 1px solid var(--line-strong); }
.chip.pick.brand { border: 1px solid var(--brand-line); font-weight: 600; }
.chip.pick.faint { background: transparent; color: var(--ink-3); opacity: .55; }
.chip.pick:hover { opacity: 1; border-color: var(--brand-line); color: var(--brand); }
.chip.pick.brand:hover { color: var(--brand-deep); }

@media (max-width: 900px) {
  .sched-filter { flex-wrap: wrap; }
  select.input.sel-sm { min-width: 104px; max-width: 140px; height: 30px; }
}

.week-chips { margin-left: auto; }

/* 窄屏：周导航与标签分两行，标签横向滑动，别竖着堆一列 */
@media (max-width: 900px) {
  .week-bar { flex-wrap: wrap; row-gap: 8px; }
  .week-label { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; }
  .week-chips {
    margin-left: 0; width: 100%; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .week-chips::-webkit-scrollbar { display: none; }
  .week-chips .chip { flex: none; }
}
