/* 数字校园 · 视觉：安静的纸感，克制的绿。信息优先，装饰靠后。 */

:root {
  --paper: #f3f4ef;
  --paper-2: #e9ebe4;
  --card: #ffffff;
  --ink: #1d2a23;
  --ink-2: #3f4c45;
  --muted: #75817a;
  --line: #e4e7de;
  --green: #2e7d5b;
  --green-strong: #256349;
  --green-soft: #e6f1ea;
  --amber: #b9771f;
  --amber-soft: #faefd9;
  --blue: #3c6ea5;
  --blue-soft: #e8eff8;
  --rose: #b4493f;
  --rose-soft: #f9e9e6;
  --shadow: 0 1px 2px rgba(29, 42, 35, 0.04), 0 10px 28px rgba(29, 42, 35, 0.05);
  --r: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.sheet-open { overflow: hidden; }

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid rgba(46, 125, 91, 0.45); outline-offset: 2px; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: clip;
}

.page {
  padding: calc(22px + env(safe-area-inset-top)) 18px calc(102px + env(safe-area-inset-bottom));
  animation: page-in 0.32s var(--ease);
}
.page.no-anim { animation: none !important; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 顶部 ---------- */

.hero { padding: 8px 3px 0; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-date {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.saved-chip svg { width: 14px; height: 14px; flex: none; }

.hero h1 {
  font-size: 28px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 今日 ---------- */

.focus { margin-top: 26px; }

.focus-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.focus-count {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #1e3a2d;
  color: #f3f7f1;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.focus-text b { display: block; font-size: 14.5px; font-weight: 650; }
.focus-text span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.todo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.14s var(--ease), border-color 0.14s;
}
.todo:last-child { margin-bottom: 0; }
.todo:active { transform: scale(0.988); }
.todo:hover { border-color: #cfd9cd; }

.todo-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: none;
}
.todo-ic svg { width: 21px; height: 21px; }
.todo-ic.amber { background: var(--amber-soft); color: var(--amber); }
.todo-ic.blue { background: var(--blue-soft); color: var(--blue); }
.todo-ic.green { background: var(--green-soft); color: var(--green); }
.todo-ic.rose { background: var(--rose-soft); color: var(--rose); }

.todo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.todo-title { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.todo-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-go {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
}
.todo-go svg { width: 15px; height: 15px; }

/* ---------- 通用 ---------- */

.section { margin-top: 26px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 3px 10px;
}
.section-head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: 0.01em; }
.section-side {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-head h3 { font-size: 14px; font-weight: 650; }
.card-head span { font-size: 11.5px; color: var(--muted); }

.meta { font-size: 11.5px; color: var(--muted); }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.hint {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.ok-text { color: var(--green) !important; }
.warn-text { color: var(--amber) !important; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 3px 0;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.page-head p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.14s var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.ghost { background: transparent; border: 0; box-shadow: none; color: var(--muted); }

.sub-head {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: calc(-22px - env(safe-area-inset-top)) -18px 16px;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 12px;
  background: rgba(243, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 222, 0.7);
}
.sub-head .back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 10px;
  color: var(--ink);
}
.sub-head .back svg { width: 20px; height: 20px; }
.sub-title { font-size: 14px; font-weight: 650; }
.sub-right { width: 36px; }

.section-side .link-btn { margin-left: 2px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}
.link-btn svg { width: 14px; height: 14px; }

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.avatar.lg { width: 46px; height: 46px; font-size: 17px; }
.avatar.xl { width: 60px; height: 60px; border-radius: 20px; font-size: 23px; }
.c0 { background: #e7f0e9; color: #3b7a5b; }
.c1 { background: #f6ebdd; color: #96682b; }
.c2 { background: #e7edf7; color: #456a9b; }
.c3 { background: #f5e7e7; color: #9b4b45; }
.c4 { background: #efe9f6; color: #6e5192; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11.5px;
}
.chip.ok { background: var(--green-soft); color: var(--green-strong); }
.chip.sm { padding: 3px 7px; font-size: 10.5px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.done { background: var(--green-soft); color: var(--green-strong); }

/* ---------- 通知 ---------- */

.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-list.dim .notice { opacity: 0.72; }

.notice {
  padding: 15px 16px 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.notice:hover { border-color: #cfd9cd; }

.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.notice-head h3 { font-size: 14.5px; font-weight: 650; line-height: 1.4; }

.notice-preview {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9a23f, #e8bd6d);
  transition: width 0.45s var(--ease);
}
.bar.full i { background: var(--green); }
.bar.big { height: 8px; margin-top: 4px; }

.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.notice-detail { padding: 19px 18px 21px; }
.notice-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-detail h1 {
  margin-top: 11px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.body-text {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.receipt { margin-top: 12px; }
.receipt .card-head { margin-bottom: 10px; }
.receipt .strong { font-size: 14px; color: var(--ink); }
.receipt-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

details {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #f1f3ed;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "▾"; font-size: 10px; color: var(--muted); margin-left: 6px; }
details[open] summary::after { content: "▴"; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.14s var(--ease), opacity 0.14s;
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 125, 91, 0.22);
}
.btn.primary:active { background: var(--green-strong); }
.btn.danger { border-color: transparent; background: var(--rose); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn.block { width: 100%; }
.btn.small {
  width: auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12.5px;
}

/* ---------- 班级 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px 0;
  margin-bottom: 12px;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.stat-v {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-v small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.stat-l { font-size: 11px; color: var(--muted); }

.att-card .card-head { margin-bottom: 10px; }
.att-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.att-mini .mini-btn { margin-left: auto; }

.mini {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}
.mini.ok { background: var(--green-soft); color: var(--green-strong); }
.mini.warn { background: var(--amber-soft); color: var(--amber); }
.mini.blue { background: var(--blue-soft); color: var(--blue); }
.mini.danger { background: var(--rose-soft); color: var(--rose); }

.hw-list { display: flex; flex-direction: column; gap: 10px; }
.hw { padding: 14px 15px; cursor: pointer; transition: border-color 0.15s; }
.hw:hover { border-color: #cfd9cd; }
.hw-top { display: flex; align-items: center; gap: 8px; }
.hw-top h3 {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subject {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  flex: none;
  background: var(--green-soft);
  color: var(--green-strong);
}
.s-数学 { background: var(--blue-soft); color: var(--blue); }
.s-英语 { background: var(--amber-soft); color: var(--amber); }

.hw-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
}
.hw-names { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.hw-names .muted { font-size: 10.5px; }

.search-wrap { margin-bottom: 10px; }
.search {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
  transition: border-color 0.15s;
}
.search::placeholder { color: #a7afa7; }
.search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.12); }

.student-list { padding: 5px 0; }
.student-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  transition: background 0.12s;
}
.student-row:not(:first-child) { border-top: 1px solid #f2f4ee; }
.student-row:hover { background: #fafbf7; }
.student-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.student-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}
.student-sub { font-size: 10.5px; color: var(--muted); }
.student-row > svg { width: 15px; height: 15px; color: #bdc5bc; flex: none; }
.mini-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
}

/* ---------- 学生档案 ---------- */

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 3px 18px;
}
.profile-main h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.profile-main p { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.contact { margin-bottom: 12px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.contact-row b { font-size: 13.5px; }
.contact-row .mono { font-size: 12px; color: var(--muted); }
.contact-actions { display: flex; gap: 6px; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform 0.14s var(--ease);
}
.mini-btn:active { transform: scale(0.95); }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn.solid { background: var(--green-soft); border-color: transparent; color: var(--green-strong); }

.week-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.week-dots.compact { margin-top: 14px; gap: 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.day .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper-2);
  position: relative;
}
.day.present .dot { background: var(--green); }
.day.present .dot::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4.5px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}
.day.late .dot { background: #d9a23f; }
.day.leave .dot { background: #5b87b8; }
.day.absent .dot { background: var(--rose); }
.day.none .dot { background: #e7e9e3; }
.day b { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.day small { font-size: 10px; color: #a3aba2; }

.grade-list { display: flex; flex-direction: column; }
.grade-row {
  display: grid;
  grid-template-columns: 1fr auto 54px;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
}
.grade-row + .grade-row { border-top: 1px solid #f3f5ef; }
.grade-sub { font-size: 12.5px; color: var(--ink-2); }
.grade-score { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.up { color: var(--green); font-size: 11.5px; font-weight: 600; text-align: right; }
.down { color: var(--rose); font-size: 11.5px; font-weight: 600; text-align: right; }
.flat { color: var(--muted); font-size: 11px; text-align: right; }

.leave-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.leave-line + .leave-line { border-top: 1px solid #f3f5ef; }
.leave-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.leave-main b { font-size: 12.5px; font-weight: 600; }
.leave-main span { font-size: 11px; line-height: 1.5; color: var(--muted); }
.status {
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  background: var(--paper);
  color: var(--muted);
}
.status.approved { background: var(--green-soft); color: var(--green-strong); }
.status.rejected { background: var(--rose-soft); color: var(--rose); }
.status.pending { background: var(--amber-soft); color: var(--amber); }

form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf8;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}
form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.12);
}
form textarea + .btn { margin-top: 10px; }

/* ---------- 我的 ---------- */

.ledger-figure { display: flex; align-items: baseline; gap: 9px; margin: 2px 0 16px; }
.ledger-figure b {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.ledger-figure span { font-size: 11px; color: var(--muted); }

.ledger-bars { display: flex; flex-direction: column; gap: 9px; }
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.ledger-row > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-bar { height: 5px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.ledger-bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.ledger-row b { text-align: right; font-weight: 600; color: var(--muted); }

.ledger-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #f1f3ed;
  font-size: 11px;
  color: var(--muted);
}
.ledger-foot b { color: var(--ink); font-size: 12.5px; }

.group { margin-top: 12px; padding: 4px 0; }
.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
}
.group-row + .group-row { border-top: 1px solid #f2f4ee; }
.group-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink-2);
}
.group-ic svg { width: 17px; height: 17px; }
.group-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.group-main b { font-size: 13.5px; font-weight: 600; }
.group-main span { font-size: 10.5px; color: var(--muted); }
.group-row > svg { width: 15px; height: 15px; color: #bdc5bc; flex: none; }
.group-row.danger .group-main b { color: var(--rose); }

.principles { margin-top: 12px; }
.principles h3 { font-size: 13.5px; font-weight: 650; }
.principles ol { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.principles li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.principles li b { color: var(--ink); }

.app-note {
  margin: 18px 4px 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.app-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 10.5px;
  color: #a3aba2;
  letter-spacing: 0.02em;
}
.home-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  color: #a3aba2;
}

/* ---------- 空状态 / 灵感 ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 24px;
  text-align: center;
}
.empty-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: var(--paper);
  color: var(--muted);
}
.empty-ic svg { width: 23px; height: 23px; }
.empty h3 { font-size: 14px; font-weight: 650; }
.empty p { margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--muted); max-width: 240px; }

.rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 24px 30px;
  margin-top: 24px;
  text-align: center;
  background: linear-gradient(180deg, #f1f7f2, #fff);
}
.rest-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: var(--green-soft);
  color: var(--green);
}
.rest-ic svg { width: 26px; height: 26px; }
.rest h2 { font-size: 16px; font-weight: 650; }
.rest p { margin-top: 6px; font-size: 11.5px; color: var(--muted); }

.people { padding: 4px 0; }
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}
.person-row + .person-row { border-top: 1px solid #f2f4ee; }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-name { font-size: 13.5px; font-weight: 600; }
.person-sub { font-size: 10.5px; color: var(--muted); }

/* ---------- 家长端 ---------- */

.child-card { margin-top: 14px; }
.child-line { display: flex; align-items: center; gap: 12px; }
.child-main { flex: 1; min-width: 0; }
.child-main h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.child-main p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.state-present, .state-late { color: var(--green) !important; font-weight: 600; }
.state-leave { color: #4e79aa !important; font-weight: 600; }
.state-absent { color: var(--rose) !important; font-weight: 600; }

.dot-badge {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  margin-left: 1px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid #f0e2c6;
  border-radius: 16px;
  background: linear-gradient(120deg, #fbf3e3, #fffaf1);
}
.banner-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: #f6e7c6;
  color: var(--amber);
}
.banner-ic svg { width: 18px; height: 18px; }
.banner-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner-main b { font-size: 12.5px; }
.banner-main span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-go { display: flex; align-items: center; gap: 1px; flex: none; font-size: 11.5px; font-weight: 600; color: var(--amber); }
.banner-go svg { width: 14px; height: 14px; }

.leave-btn { margin-top: 12px; }

.parent-hw { display: flex; flex-direction: column; }
.parent-hw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 12px;
}
.parent-hw-row + .parent-hw-row { border-top: 1px solid #f3f5ef; }
.parent-hw-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-state { flex: none; font-size: 10px; font-weight: 600; }
.hw-state.ok { color: var(--green); }
.hw-state.miss { color: var(--rose); }

.ack-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-strong);
}
.ack-done svg { width: 26px; height: 26px; flex: none; }
.ack-done b { display: block; font-size: 13.5px; }
.ack-done span { font-size: 11px; color: #4c7a62; }

/* ---------- 弹层 ---------- */

#sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet-root:empty { display: none; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 24, 0.36);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: fade 0.2s var(--ease);
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(20, 30, 24, 0.18);
  pointer-events: auto;
  animation: rise 0.3s var(--ease);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

@keyframes rise {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 14px;
  background: var(--card);
  border-bottom: 1px solid rgba(241, 243, 237, 0.9);
}
.sheet-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sheet-head p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.sheet-head .icon-btn { width: 34px; height: 34px; margin: -2px -4px 0 0; }
.sheet-head .icon-btn svg { width: 18px; height: 18px; }

.sheet-body { padding: 16px 18px 4px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > span { font-size: 11.5px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf8;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { line-height: 1.65; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); gap: 9px; }
.switch-field {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.switch-field input { width: 18px; height: 18px; accent-color: var(--green); }

.tpl-row { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; margin-bottom: 2px; }
.chip.tpl {
  flex: 1 1 calc(50% - 3px);
  justify-content: center;
  padding: 9px 8px;
  border: 1px solid var(--line);
  background: #fafbf8;
  font-size: 11px;
  white-space: nowrap;
}
.chip.tpl:hover { border-color: var(--green); color: var(--green-strong); }

.mini-list {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
}
.mini-row + .mini-row { border-top: 1px solid #f2f4ee; }
.mini-row > span { min-width: 0; }
.mini-row b { flex: none; font-size: 11.5px; color: var(--amber); }
.mini-row.stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.row-btn { width: 100%; text-align: left; transition: background 0.12s; }
.row-btn:hover { background: #fafbf7; }
.mini-row.stack b { color: var(--ink-2); font-weight: 500; font-size: 11.5px; line-height: 1.5; }
.mini-row .subject { margin-right: 5px; }

.review-card { padding: 13px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; }
.review-top { display: flex; align-items: center; gap: 10px; }
.review-main { display: flex; flex-direction: column; gap: 3px; }
.review-main b { font-size: 13.5px; }
.review-main span { font-size: 10.5px; color: var(--muted); }
.review-reason {
  margin: 10px 0 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}
.review-actions { display: flex; gap: 8px; }

.att-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.att-editor { margin-top: 6px; border-top: 1px solid var(--line); }
.att-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f5ef;
}
.att-name { font-size: 12.5px; }
.seg.small { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--paper); }
.seg-btn {
  min-width: 32px;
  height: 27px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}
.seg-btn.on.present { background: var(--green); color: #fff; }
.seg-btn.on.late { background: #d9a23f; color: #fff; }
.seg-btn.on.leave { background: #5b87b8; color: #fff; }
.seg-btn.on.absent { background: var(--rose); color: #fff; }

.student-toggles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px 0 12px;
}
.chip.toggle {
  justify-content: center;
  padding: 8px 2px;
  border: 1px solid transparent;
  background: var(--paper);
  border-radius: 9px;
  font-size: 11px;
  color: var(--ink-2);
}
.chip.toggle.miss {
  background: var(--rose-soft);
  border-color: #efd2cd;
  color: #9b3f37;
  font-weight: 600;
}
.hw-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.seg-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 13px; }
.seg-choice-item { position: relative; }
.seg-choice-item input { position: absolute; inset: 0; opacity: 0; }
.seg-choice-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbf8;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.seg-choice-item input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-strong);
}

.confirm-text { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; }
.confirm-text + .btn { margin-bottom: 9px; }

.report {
  max-height: 44dvh;
  margin: 0 0 14px;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #f7f8f3;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.install-help .help-block { margin-bottom: 14px; }
.install-help h3 { font-size: 12.5px; font-weight: 650; margin-bottom: 4px; }
.install-help p { font-size: 11.5px; line-height: 1.65; color: var(--muted); }

/* ---------- tab bar ---------- */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  max-width: 480px;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 0;
  color: var(--muted);
}
.tab-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  transition: background 0.2s;
}
.tab-ic svg { width: 21px; height: 21px; }
.tab.is-on { color: var(--green-strong); }
.tab.is-on .tab-ic { background: var(--green-soft); }
.tab-label { font-size: 10px; letter-spacing: 0.02em; }

.badge {
  position: absolute;
  top: -4px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  box-sizing: content-box;
}

/* ---------- toast ---------- */

#toast-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: 84%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(27, 38, 31, 0.95);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.in { opacity: 1; transform: none; }

/* ---------- 桌面 ---------- */

@media (min-width: 620px) {
  body { background: #e8ebe4; }
  .app {
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(29, 42, 35, 0.04), 0 30px 90px rgba(20, 30, 24, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================================================== */
/* 2.0 任务流转递减                                                    */
/* ================================================================== */

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 流转首页 ---------- */

.funnel-card {
  margin-top: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcf8);
}

.funnel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.funnel-head b {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.funnel-count {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.funnel-bar {
  display: flex;
  gap: 2px;
  height: 11px;
  margin: 15px 0 10px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.funnel-bar i {
  display: block;
  height: 100%;
  min-width: 3px;
  transition: flex 0.4s var(--ease);
}

.f-auto { background: #3f946c; }
.f-forward { background: #4f7fb5; }
.f-return { background: #d9a23f; }
.f-merge { background: #7a67b3; }
.f-self { background: #1e3a2d; }

.funnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 10.5px;
  color: var(--muted);
}

.funnel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ldot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.ldot.auto { background: #3f946c; }
.ldot.forward { background: #4f7fb5; }
.ldot.return { background: #d9a23f; }
.ldot.merge { background: #7a67b3; }
.ldot.self { background: #1e3a2d; }

.funnel-btn { margin-top: 15px; }
.funnel-card .hint { margin-top: 9px; }

.disp {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.disp.auto { background: var(--green-soft); color: var(--green-strong); }
.disp.forward { background: var(--blue-soft); color: var(--blue); }
.disp.return { background: var(--amber-soft); color: var(--amber); }
.disp.merge { background: #efe9f6; color: #6e5192; }
.disp.self { background: #e9ede7; color: var(--ink-2); }

.src {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.src-academic { background: var(--blue-soft); color: var(--blue); }
.src-moral { background: var(--amber-soft); color: var(--amber); }
.src-support { background: var(--paper-2); color: var(--muted); }
.src-parent { background: var(--green-soft); color: var(--green-strong); }
.src-research { background: #efe9f6; color: #6e5192; }

.task-list { display: flex; flex-direction: column; gap: 9px; }

.task {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.14s var(--ease), border-color 0.14s;
}
.task:active { transform: scale(0.99); }
.task:hover { border-color: #cfd9cd; }

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.task-due {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.task-title {
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.task-rec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.task-rec > svg { width: 14px; height: 14px; color: #bdc5bc; margin-left: 1px; }
.task-rec.paused { color: var(--amber); }
.task-min {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 教学任务 ---------- */

.teach-list { display: flex; flex-direction: column; gap: 9px; }

.teach-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px;
  border-left: 3px solid var(--green);
  cursor: pointer;
}
.teach-card:hover { border-color: #cfd9cd; border-left-color: var(--green); }
.teach-card.done { opacity: 0.68; border-left-color: #c8d2c7; }

.teach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tag.teach {
  height: 20px;
  padding: 0 7px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 9.5px;
}
.teach-card h3 { font-size: 14.5px; line-height: 1.4; font-weight: 650; }
.teach-card .teach-meta { font-size: 10px; color: var(--muted); }
.teach-card .teach-min { font-size: 10px; color: var(--muted); white-space: nowrap; }
.teach-card .teach-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.teach-card .teach-actions .mini-btn { height: 30px; font-size: 11px; }
.teach-card .teach-rel { font-size: 9.5px; color: var(--muted); }
.done-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}
.done-mark svg { width: 14px; height: 14px; }

/* ---------- 已挡掉 ---------- */

.blocked-list { padding: 4px 0; }

.blocked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  font-size: 11px;
}
.blocked-row + .blocked-row { border-top: 1px solid #f3f5ef; }
.blocked-row:hover { background: #fafbf7; }
.blocked-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blocked-min {
  width: 26px;
  flex: none;
  text-align: right;
  font-size: 9.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.blocked-more {
  display: flex;
  align-items: center;
  gap: 1px;
  width: 100%;
  padding: 10px 14px;
  border-top: 1px solid #f3f5ef;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green);
}
.blocked-more svg { width: 13px; height: 13px; }

/* ---------- 批量分流 ---------- */

.batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 11px;
  color: var(--muted);
}
.batch-toolbar b { font-size: 13px; color: var(--ink); }

.batch-group {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.batch-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid #f3f5ef;
  background: #fafbf8;
}
.batch-group-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.batch-group-head > b { font-size: 9.5px; font-weight: 500; color: var(--muted); }

.batch-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  transition: background 0.12s;
}
.batch-item:hover { background: #fbfcf9; }
.batch-item + .batch-item { border-top: 1px solid #f3f5ef; }

.tick {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1.5px solid #cfd7cd;
  border-radius: 50%;
  color: #fff;
}
.batch-item.on .tick { background: var(--green); border-color: var(--green); }
.tick svg { width: 11px; height: 11px; }

.batch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.batch-main b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.batch-main span { font-size: 9.5px; color: var(--muted); }
.batch-min { flex: none; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 任务详情面板 ---------- */

.meta-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meta-line .muted { font-size: 10px; }

.why-box {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--paper);
}
.why-box b {
  display: block;
  margin-bottom: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.why-box p { font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }

.rec-box {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.rec-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rec-title .warn-text { font-size: 9.5px; }
.rec-box p { font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.impact {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px !important;
  color: var(--green-strong) !important;
}

.more-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f3f5ef; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.act-choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.act-choice:hover { border-color: var(--green); }
.act-choice b { font-size: 11.5px; }
.act-choice span { font-size: 9.5px; line-height: 1.4; color: var(--muted); }

.rule-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f3ed;
}
.rule-note span { display: block; font-size: 9px; color: #a3aba2; }
.rule-note p { margin-top: 3px; font-size: 10.5px; color: var(--ink-2); }

.decided-box {
  margin-top: 14px;
  padding: 13px;
  border-radius: 12px;
  background: var(--green-soft);
}
.decided-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.decided-head b { font-size: 11.5px; color: var(--green-strong); }
.decided-box p { font-size: 10px; color: #5a7a67; }

.output-box {
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  background: #f7f8f3;
  font-size: 11.5px;
  line-height: 1.65;
}
.output-box h3 { margin-bottom: 6px; font-size: 12px; font-weight: 650; }
.output-box ul { padding-left: 16px; list-style: disc; }
.output-box li { margin: 3px 0; }

.return-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 11px;
  background: #fbf7ef;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.return-preview + .btn { margin-top: 10px; }

.reason-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f5ef;
  cursor: pointer;
}
.reason-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--green);
}
.reason-option b { display: block; font-size: 11.5px; }
.reason-option em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 规则 ---------- */

.boundary { margin-bottom: 0; }
.boundary h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.boundary-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f5ef;
}
.boundary-row b { width: 52px; flex: none; font-size: 10.5px; color: var(--green-strong); }
.boundary-row.no b { color: var(--rose); }
.boundary-row p { font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }

.rule-list { padding: 4px 16px; }
.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f3f5ef;
}
.rule-row:last-child { border-bottom: 0; }
.rule-main { flex: 1; min-width: 0; }
.rule-main h3 { font-size: 12.5px; line-height: 1.4; font-weight: 650; }
.rule-main p { margin-top: 3px; font-size: 10px; line-height: 1.55; color: var(--muted); }
.rule-hit { display: inline-block; margin-top: 4px; font-size: 9px; color: #a3aba2; }
.rule-row.off .rule-main h3 { color: var(--muted); }
.rule-row.off .rule-main p { opacity: 0.7; }

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  margin-top: 2px;
  flex: none;
  border-radius: 999px;
  background: #dfe4dd;
  transition: background 0.2s;
}
.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease);
}
.switch.on { background: var(--green); }
.switch.on span { transform: translateX(16px); }

.reason-list { padding: 4px 16px; }
.reason-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f5ef;
}
.reason-row:last-child { border-bottom: 0; }
.reason-row b { font-size: 11.5px; }
.reason-row p { max-width: 250px; margin-top: 2px; font-size: 9.5px; line-height: 1.55; color: var(--muted); }
.reason-row .mini-btn { height: 28px; padding: 0 8px; font-size: 9.5px; }

/* ---------- 递减账本 ---------- */

.ledger-hero {
  padding: 18px;
  background: linear-gradient(180deg, #edf5ef, #ffffff);
}
.ledger-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ledger-big { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 2px; }
.ledger-big b {
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ledger-big span { font-size: 11.5px; color: var(--muted); }
.ledger-sub { font-size: 10.5px; line-height: 1.6; color: var(--muted); }

.ledger-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 42, 35, 0.06);
}
.ledger-mini div { display: flex; flex-direction: column; gap: 2px; }
.ledger-mini b { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.ledger-mini span { font-size: 9.5px; color: var(--muted); }

.daybars { display: flex; align-items: flex-end; gap: 5px; margin-top: 10px; }
.daybar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.daybar em { height: 12px; font-style: normal; font-size: 8.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-col {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 18px;
  height: 82px;
  border-radius: 6px;
  background: var(--paper-2);
  overflow: hidden;
}
.bar-col i { width: 100%; min-height: 0; border-radius: 6px; background: #a9c7b5; transition: height 0.4s var(--ease); }
.daybar.today .bar-col i { background: var(--green); }
.daybar b { font-size: 9px; font-weight: 500; color: var(--muted); }

.dist { display: flex; flex-direction: column; gap: 8px; }
.dist-row {
  display: grid;
  grid-template-columns: 62px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
}
.dist-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.dist-row > b { text-align: right; font-size: 10px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.bar-mini { height: 5px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar-mini i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.bar-mini i.auto { background: #3f946c; }
.bar-mini i.forward { background: #4f7fb5; }
.bar-mini i.return { background: #d9a23f; }
.bar-mini i.merge { background: #7a67b3; }

.reason-stats { display: flex; flex-direction: column; gap: 8px; }
.reason-stat {
  display: grid;
  grid-template-columns: 62px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.reason-stat b { text-align: right; font-size: 10px; color: var(--muted); font-weight: 600; }

.recent-list { padding: 4px 0; }
.recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 10.5px; }
.recent-row + .recent-row { border-top: 1px solid #f3f5ef; }
.recent-date { width: 28px; flex: none; font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 我的 ---------- */

.me-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 0;
  margin-bottom: 12px;
}
.me-summary div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; text-align: center; }
.me-summary div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.me-summary b { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.me-summary span { font-size: 9.5px; line-height: 1.3; color: var(--muted); }

/* ---------- 小屏 ---------- */

@media (max-width: 350px) {
  .funnel-legend { gap: 6px 9px; font-size: 10px; }
  .ledger-big b { font-size: 42px; }
  .me-summary b { font-size: 12.5px; }
  .task-title, .teach-card h3 { font-size: 14px; }
  .actions-grid { grid-template-columns: 1fr; }
}

/* ================================================================== */
/* 2.1 教学主线、课堂资料、创新                                        */
/* ================================================================== */

/* ---------- 页头 / 返回 ---------- */

.back-head {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.back-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink-2);
}
.back-btn svg { width: 18px; height: 18px; }

.funnel-rule-link {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 600;
}

/* ---------- 正在上课 ---------- */

.teach-hero {
  position: relative;
  overflow: hidden;
  margin: 2px 0 14px;
  padding: 18px;
  background: linear-gradient(160deg, #eef6f0 0%, #ffffff 68%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.teach-hero.live { background: linear-gradient(160deg, #e7f3eb 0%, #ffffff 68%); }
.teach-hero.break { background: linear-gradient(160deg, #fbf3e2 0%, #ffffff 68%); }
.teach-hero.before { background: linear-gradient(160deg, #eef1f7 0%, #ffffff 68%); }
.teach-hero.after { background: linear-gradient(160deg, #f0f2ec 0%, #ffffff 68%); }

.clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.clock-chip svg { width: 13px; height: 13px; color: var(--green); }

.live-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8f3df;
  box-shadow: 0 0 0 0 rgba(216, 243, 223, 0.6);
  animation: livePulse 1.8s infinite;
}
.live-pill.calm { background: #b5863e; }
.live-pill.calm i { animation: none; background: #f8ead0; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 243, 223, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(216, 243, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 243, 223, 0); }
}
.live-period { font-size: 10.5px; color: var(--muted); }

.teach-hero h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lesson-name {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-2);
}
.lesson-meta { margin-top: 4px; font-size: 10.5px; color: var(--muted); }

.lesson-progress {
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(29, 42, 35, 0.08);
  overflow: hidden;
}
.lesson-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.6s var(--ease);
}
.lesson-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.break-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- 当堂资料 ---------- */

.lesson-card { margin-bottom: 12px; }
.mat-sub { margin: -6px 0 8px; font-size: 9.5px; color: var(--muted); }
.mat-list { display: flex; flex-direction: column; }
.mat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  border-bottom: 1px solid #f3f5ef;
}
.mat-row:last-child { border-bottom: 0; }
.mat-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-strong);
}
.mat-ic svg { width: 16px; height: 16px; }
.mat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mat-main b {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mat-main span {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mat-go { color: #bdc5bc; flex: none; }
.mat-go svg { width: 14px; height: 14px; }
.mat-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 34px;
  margin-top: 9px;
  border: 1px dashed #cfd9cd;
  border-radius: 10px;
  color: var(--green-strong);
  font-size: 10.5px;
  font-weight: 600;
}
.mat-add svg { width: 14px; height: 14px; }
.mat-empty {
  padding: 14px 10px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

/* ---------- 本课创新 / 课间创新 ---------- */

.inno-mini { margin-bottom: 12px; }
.inno-mini h4 { font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.inno-mini p { margin-top: 4px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.inno-mini.prompt { background: #fbfcf8; }
.inno-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.inno-type {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.itype-class { background: var(--green-soft); color: var(--green-strong); }
.itype-break { background: var(--amber-soft); color: var(--amber); }
.itype-meeting { background: #efe9f6; color: #6e5192; }
.itype-club { background: var(--blue-soft); color: var(--blue); }
.itype-campus { background: var(--rose-soft); color: var(--rose); }
.itype-family { background: var(--paper-2); color: var(--muted); }

.share-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.share-public { background: var(--green-soft); color: var(--green-strong); }
.share-school { background: var(--blue-soft); color: var(--blue); }
.share-private { background: var(--paper-2); color: var(--muted); }

.inno-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--muted);
}
.inno-mini-foot .link-btn { font-size: 10px; }

.break-idea {
  margin-bottom: 12px;
  background: linear-gradient(160deg, #fdf7ea, #fffdf8);
  border-color: #f0e5d0;
}
.break-idea h4 { font-size: 15px; }
.break-idea.lunch { background: linear-gradient(160deg, #f4f6ef, #fff); border-color: var(--line); }

/* ---------- 今日课程 ---------- */

.period-list { padding: 4px 0; overflow: hidden; }
.period {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f3f5ef;
}
.period:last-child { border-bottom: 0; }
.period.past { opacity: 0.5; }
.period.now {
  background: var(--green-soft);
  box-shadow: inset 3px 0 0 var(--green);
}
.period.is-break { background: #fdf9f0; }
.period.is-break.now { background: #fbf1dc; box-shadow: inset 3px 0 0 #d9a23f; }
.period-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 40px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.period-time b { font-size: 11px; font-weight: 650; }
.period-time span { font-size: 9px; color: var(--muted); }
.period-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.period-subject { font-size: 12px; font-weight: 650; }
.period.is-break .period-subject { color: var(--amber); }
.period-lesson {
  font-size: 10px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.period-meta {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.period-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
  max-width: 80px;
}
.period-status { font-size: 9px; font-weight: 700; color: var(--green-strong); }
.period.is-break .period-status { color: var(--amber); }
.period-count { font-size: 8.5px; color: var(--muted); text-align: right; line-height: 1.35; white-space: nowrap; }

/* ---------- 课后教学任务 ---------- */

.teach-tasks { margin-top: 12px; }
.teach-task-names { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.teach-task-names span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 9.5px;
}
.teach-tasks .link-btn { padding-left: 0; }

/* ---------- 创新首页 ---------- */

.inno-now {
  padding: 17px;
  margin-bottom: 12px;
  background: linear-gradient(160deg, #edf5ef, #ffffff 72%);
}
.inno-now h2 { margin-top: 5px; font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.inno-now p { margin-top: 4px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.inno-now .btn { margin-top: 13px; }

.inno-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  padding: 14px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.inno-stats div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.inno-stats div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.inno-stats b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.inno-stats span { font-size: 9.5px; color: var(--muted); }

.share-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 14px;
  text-align: left;
  background: linear-gradient(160deg, #f4f8f4, #fff);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.share-entry-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-strong);
}
.share-entry-ic svg { width: 18px; height: 18px; }
.share-entry-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.share-entry-main b { font-size: 12px; font-weight: 650; }
.share-entry-main span { font-size: 9.5px; color: var(--muted); }
.share-entry > svg { width: 16px; height: 16px; color: #bdc5bc; flex: none; }

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.fchip {
  height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.fchip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.inno-list { display: flex; flex-direction: column; gap: 9px; }
.inno-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.inno-card.external { background: #fbfcf8; }
.inno-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.inno-card-title { font-size: 14px; line-height: 1.4; font-weight: 650; }
.inno-card-summary { font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.inno-card-context { font-size: 9px; color: #a3aba2; }
.inno-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f3f5ef;
  font-size: 9px;
  color: var(--muted);
}
.inno-card-foot span:last-child { display: inline-flex; align-items: center; gap: 1px; color: var(--green-strong); font-weight: 600; }
.inno-card-foot svg { width: 12px; height: 12px; }
.school-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

/* ---------- 共享库 ---------- */

.shared-hero {
  margin-bottom: 12px;
  background: linear-gradient(160deg, #edf5ef, #fff 75%);
}
.shared-hero h2 { margin-top: 5px; font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -0.02em; }
.shared-hero p { margin-top: 5px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.shared-counts { display: flex; align-items: baseline; gap: 16px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.shared-counts span { display: inline-flex; align-items: baseline; gap: 4px; }
.shared-counts b { font-size: 16px; color: var(--ink); }
.empty-share .empty { padding: 14px 0; }

/* ---------- 课程 / 资料 / 分享弹层 ---------- */

.lesson-lead { font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -0.01em; }
.lesson-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
.lesson-subhead h3 { font-size: 12px; font-weight: 650; }
.lesson-subhead span { font-size: 9.5px; color: var(--muted); }
.next-line {
  margin: 10px 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 10px;
  color: var(--ink-2);
}
.inno-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  border-bottom: 1px solid #f3f5ef;
}
.inno-row:last-child { border-bottom: 0; }
.inno-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inno-row-main b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inno-row-main span { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inno-row > svg { width: 14px; height: 14px; color: #bdc5bc; flex: none; }

.clock-now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--paper);
}
.clock-now b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock-options { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.clock-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.clock-option.on { border-color: var(--green); background: var(--green-soft); }
.clock-option > svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.clock-option > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.clock-option b { font-size: 11.5px; font-weight: 650; }
.clock-option span span { font-size: 9.5px; color: var(--muted); }
.clock-time { width: 44px; flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.share-options { display: flex; flex-direction: column; margin: 10px 0 4px; }
.share-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.share-option.on { background: var(--green-soft); border-color: #d8e7dc; }
.share-option input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--green); }
.share-option b { display: block; font-size: 11.5px; }
.share-option em { display: block; margin-top: 1px; font-style: normal; font-size: 9.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 350px) {
  .tab-label { font-size: 9px; }
  .teach-hero h1 { font-size: 30px; }
  .period { gap: 7px; padding: 9px 10px; }
  .period-time { width: 34px; }
  .period-side { max-width: 60px; }
  .period-count { font-size: 8px; }
  .inno-stats b { font-size: 17px; }
  .fchip { padding: 0 9px; font-size: 9.5px; }
}

/* ================================================================== */
/* 本机账号：登录 / 注册                                               */
/* ================================================================== */

body.auth-mode { background: #edf3ed; }

.auth-app {
  background:
    radial-gradient(120% 55% at 50% 0%, #e6f1e8 0%, rgba(243, 244, 239, 0) 58%),
    var(--paper);
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom));
}

.auth-brand { display: flex; align-items: center; gap: 11px; padding: 0 3px; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(46, 125, 91, 0.18);
}
.auth-brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.auth-brand span { display: block; margin-top: 1px; font-size: 10px; color: var(--muted); }

.auth-card {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(31, 48, 38, 0.07);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--paper);
}
.auth-tab {
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.auth-tab.on { background: var(--card); color: var(--green-strong); box-shadow: var(--shadow); }

.auth-head { margin: 19px 2px 15px; }
.auth-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.auth-head p { margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--muted); }

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 10.5px;
  line-height: 1.5;
}
.auth-error svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.auth-field > span:first-child { font-size: 10px; color: var(--muted); }
.auth-field input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.auth-field input::placeholder { color: #aab3aa; }
.auth-field input:focus {
  border-color: #a9c9b7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.08);
}
.auth-pass { position: relative; display: block; }
.auth-pass input { padding-right: 52px; }
.auth-pass button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 37px;
  padding: 0 9px;
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 600;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 12px;
  color: var(--muted);
  font-size: 10.5px;
}
.auth-check input { width: 15px; height: 15px; accent-color: var(--green); }

.auth-submit {
  width: 100%;
  height: 47px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(46, 125, 91, 0.18);
}
.auth-submit:disabled { opacity: 0.55; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.auth-grid .auth-field { margin-bottom: 11px; }

.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #b3bbb3; font-size: 9px; }
.auth-or::before,
.auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 42px;
  border: 1px solid #d8e7dc;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 11.5px;
  font-weight: 600;
}
.auth-demo svg { width: 15px; height: 15px; }
.auth-demo:disabled { opacity: 0.55; }

.auth-switch { margin-top: 14px; text-align: center; color: var(--muted); font-size: 10.5px; }
.auth-switch button { padding: 0 2px; color: var(--green-strong); font-weight: 650; }

.auth-foot { margin-top: 18px; text-align: center; color: #a3aba2; font-size: 9px; }

.profile-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-phone { margin-top: 3px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.demo-pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  margin-left: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 8.5px;
  font-weight: 600;
  vertical-align: middle;
}

@media (max-width: 360px) {
  .auth-wrap { padding-left: 16px; padding-right: 16px; }
  .auth-card { padding: 17px; }
  .auth-grid { grid-template-columns: 1fr; gap: 0; }
}

.profile-setup-wrap .auth-card { margin-top: 22px; }
.profile-setup-wrap .auth-head { margin-top: 14px; }
.setup-phone {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 10px;
  color: var(--muted);
}
.setup-phone b { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.auth-skip {
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 5px 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 12px;
  padding: 11px 12px;
  text-align: left;
  background: var(--amber-soft);
  border: 1px solid #ecdcc0;
  border-radius: 13px;
}
.profile-banner > svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.profile-banner > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.profile-banner b { font-size: 11.5px; font-weight: 650; color: var(--ink); }
.profile-banner span span { font-size: 9.5px; color: var(--muted); }
.profile-banner > svg:last-child { width: 14px; height: 14px; color: #b8a98c; }

/* ---------- 作业在校完成 ---------- */

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 0;
  color: var(--green-strong);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.section-link svg { width: 12px; height: 12px; }

.homework-teach .card-head { margin-bottom: 9px; }
.hwc-focus h4 { margin: 3px 0 3px; font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.hwc-focus p { font-size: 10px; color: var(--muted); }
.hwc-sub { font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.hwc-line { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); }
.hwc-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
}
.hwc-status.done { background: var(--green-soft); color: var(--green-strong); }
.hwc-actions { display: flex; align-items: center; gap: 7px; margin-top: 11px; }
.hwc-actions .mini-btn { flex: 1; justify-content: center; }
.hwc-del {
  flex: none;
  padding: 0 4px;
  color: #a9b0a6;
  font-size: 9.5px;
}

.hwc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 15px 0;
  margin-bottom: 4px;
}
.hwc-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid var(--line); }
.hwc-stats div:last-child { border-right: 0; }
.hwc-stats b { font-size: 21px; letter-spacing: -0.02em; }
.hwc-stats span { font-size: 9.5px; color: var(--muted); }

.hwc-list { display: flex; flex-direction: column; gap: 10px; }
.hwc-item {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hwc-item.done { border-color: #d5e7da; }
.hwc-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.hwc-period { font-size: 9.5px; color: var(--muted); }
.hwc-item h3 { font-size: 14px; font-weight: 650; line-height: 1.45; }
.hwc-meta { margin-top: 3px; font-size: 9.5px; color: var(--muted); }
.hwc-empty {
  padding: 24px 18px;
  text-align: center;
}
.hwc-empty > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-strong); }
.hwc-empty > span svg { width: 19px; height: 19px; }
.hwc-empty h3 { margin: 10px 0 4px; font-size: 14px; }
.hwc-empty p { margin-bottom: 14px; font-size: 11px; color: var(--muted); }

.homework-sheet-item {
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.homework-sheet-item.done { border-color: #d5e7da; }
.homework-sheet-item > b { display: block; margin: 5px 0 7px; font-size: 12.5px; }
.homework-sheet-item .mini-btn { width: 100%; justify-content: center; }

/* ---------- 我的课表 ---------- */

.tt-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 13px;
}
.tt-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px 7px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.tt-day em { font-size: 7.5px; font-style: normal; color: #a9b0a6; }
.tt-day.on { border-color: #b9d6c4; background: var(--green-soft); color: var(--green-strong); }
.tt-day.on em { color: var(--green-strong); }

.tt-card { padding: 15px; }
.tt-list { display: flex; flex-direction: column; }
.tt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid #f0f3ed;
}
.tt-row:last-child { border-bottom: 0; }
.tt-row.is-break { padding-left: 4px; opacity: 0.75; }
.tt-no {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 9.5px;
  font-weight: 700;
}
.tt-time { width: 43px; flex: none; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.tt-time b { font-size: 11px; font-weight: 650; }
.tt-time span { font-size: 8.5px; color: var(--muted); }
.tt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tt-main b { font-size: 12px; font-weight: 650; }
.tt-main > span { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-main .tt-lesson { color: var(--ink-2); font-size: 9.5px; }
.tt-edit { flex: none; color: var(--green-strong); font-size: 9.5px; }
.tt-empty { padding: 22px 10px; text-align: center; font-size: 11px; color: var(--muted); }
.period-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.period-form-grid .field { margin-bottom: 10px; }
.danger-text { color: var(--rose); }

@media (max-width: 350px) {
  .tt-day { font-size: 9.5px; }
  .tt-time { width: 38px; }
  .tt-main .tt-lesson { font-size: 9px; }
  .period-form-grid { grid-template-columns: 1fr; gap: 0; }
}

.tt-head-side { display: flex; align-items: center; gap: 9px; }
.tt-head-side .section-link svg { width: 11px; height: 11px; }

/* ---------- 班级：随机记录 ---------- */

.class-hero {
  padding: 18px;
  background:
    radial-gradient(100% 120% at 100% 0%, #dcefe2 0%, rgba(255, 255, 255, 0) 60%),
    var(--card);
  border-color: #d8e7dc;
}
.class-hero .eyebrow { color: var(--green-strong); }
.class-hero h2 { margin: 5px 0 5px; font-size: 19px; line-height: 1.4; letter-spacing: -0.025em; }
.class-hero p { font-size: 11px; line-height: 1.65; color: var(--muted); }
.class-hero .btn { margin-top: 13px; }
.class-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 13px 0;
}
.class-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid var(--line); }
.class-stats div:last-child { border-right: 0; }
.class-stats b { font-size: 18px; letter-spacing: -0.02em; }
.class-stats span { font-size: 8.5px; color: var(--muted); }
.class-filter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.class-filter::-webkit-scrollbar { display: none; }
.class-chip {
  flex: none;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.class-chip.on { border-color: var(--green); background: var(--green); color: #fff; }
.class-day { margin-bottom: 15px; }
.class-day-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; padding: 0 2px; }
.class-day-head h3 { font-size: 12px; font-weight: 650; }
.class-day-head span { font-size: 9.5px; color: var(--muted); }
.note-card {
  margin-bottom: 8px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.note-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.note-type {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 8.5px;
  font-weight: 700;
}
.note-student .note-type { background: var(--amber-soft); color: var(--amber); }
.note-class .note-type { background: var(--blue-soft); color: var(--blue); }
.note-time { font-size: 9px; color: #a9b0a6; font-variant-numeric: tabular-nums; }
.note-card h3 { font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.note-card p { margin-top: 4px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 9px; color: #a9b0a6; }
.note-del { padding: 3px 0; font-size: 9px; color: #b6bdb3; }
.class-empty { padding: 24px 18px; text-align: center; }
.class-empty > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-strong); }
.class-empty > span svg { width: 19px; height: 19px; }
.class-empty h3 { margin: 10px 0 4px; font-size: 14px; }
.class-empty p { margin-bottom: 14px; font-size: 11px; color: var(--muted); }

/* ---------- 目标 ---------- */

.goal-hero {
  padding: 19px;
  background:
    radial-gradient(100% 130% at 100% 0%, #e2efe6 0%, rgba(255, 255, 255, 0) 62%),
    var(--card);
  border-color: #d8e7dc;
}
.goal-hero .eyebrow { color: var(--green-strong); }
.goal-hero h2 { margin: 6px 0 6px; font-size: 20px; line-height: 1.45; letter-spacing: -0.025em; }
.goal-hero p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.goal-hero .btn { margin-top: 14px; }
.goal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0;
}
.goal-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid var(--line); }
.goal-stats div:last-child { border-right: 0; }
.goal-stats b { font-size: 20px; letter-spacing: -0.02em; }
.goal-stats span { font-size: 9.5px; color: var(--muted); }
.goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal-card {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.goal-card.done { border-color: #d5e7da; background: #fbfdf9; }
.goal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.goal-subject {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 8.5px;
  font-weight: 700;
}
.goal-date { font-size: 9px; color: #a9b0a6; }
.goal-card h3 { font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.goal-card p { margin-top: 4px; font-size: 10.5px; line-height: 1.65; color: var(--muted); }
.goal-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.goal-actions .mini-btn { flex: 1; justify-content: center; }
.goal-del { padding: 3px 2px; font-size: 9px; color: #b6bdb3; }
.goal-inno-list { padding: 4px 14px; }
.goal-inno {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid #f0f3ed;
}
.goal-inno:last-child { border-bottom: 0; }
.goal-inno-type { flex: none; font-size: 9px; font-weight: 700; color: var(--green-strong); }
.goal-inno-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.goal-inno-main b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-inno-main span { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-inno > svg { width: 12px; height: 12px; color: #b6bdb3; }

@media (max-width: 360px) {
  .class-stats b { font-size: 16px; }
  .class-stats span { font-size: 8px; }
  .class-hero h2, .goal-hero h2 { font-size: 18px; }
}

/* ---------- 班级媒体 / 创新素材 ---------- */

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 10px;
}
.media-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 11px;
  background: #eef2eb;
  color: #9aa79b;
  font-size: 9px;
}
.media-slot img,
.media-slot video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-slot.is-video { background: #1d2721; }
.media-slot.is-video::after {
  content: '▶';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  padding-left: 2px;
  pointer-events: none;
}
.media-slot.is-video video { object-fit: contain; background: #1d2721; }
.media-slot.media-missing::after { content: '媒体不可用'; }
.note-media { margin-bottom: 11px; }
.note-media .media-slot { aspect-ratio: 16 / 9; }
.note-actions { display: inline-flex; align-items: center; gap: 10px; }
.note-use { font-size: 9px; color: var(--green-strong); }
.file-hint { margin: -2px 0 12px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.source-note {
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.source-note .media-grid { margin-bottom: 7px; }
.source-note .media-slot { aspect-ratio: 16 / 9; }
.source-note p { display: flex; align-items: baseline; gap: 6px; font-size: 9px; color: var(--muted); }
.source-note p b { flex: none; color: var(--ink-2); font-weight: 600; }
.source-note p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-media { margin-bottom: 9px; }
.inno-media { margin: 9px 0 4px; }
.inno-media .media-slot { aspect-ratio: 16 / 9; }
@media (max-width: 340px) {
  .note-foot { align-items: flex-end; }
  .note-actions { flex-direction: column; align-items: flex-end; gap: 3px; }
}

/* 中间「创建课表」按钮 */
.tab-plus {
  border: 0;
  background: transparent;
  font: inherit;
}
.tab-plus-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -15px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 104, 75, 0.28);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.tab-plus-ic svg { width: 22px; height: 22px; }
.tab-plus:active .tab-plus-ic { transform: scale(0.94); }
.tab-plus .tab-label { color: var(--green-strong); font-weight: 650; }
.tab-plus.is-on .tab-plus-ic { background: var(--green-strong); }

/* 创新表单：从班级选图片/视频 */
.pick-field > span { margin-bottom: 7px; }
.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.pick-item {
  position: relative;
  display: block;
  padding: 5px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
}
.pick-item.on {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(37, 104, 75, 0.1);
}
.pick-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick-thumb { display: block; overflow: hidden; border-radius: 8px; background: #eef2eb; }
.pick-thumb .media-grid { margin: 0; }
.pick-thumb .media-slot { aspect-ratio: 16 / 10; border-radius: 7px; }
.pick-meta { display: block; padding: 5px 2px 2px; }
.pick-meta b { display: block; overflow: hidden; font-size: 9.5px; line-height: 1.35; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pick-meta em { display: block; margin-top: 1px; overflow: hidden; font-size: 8px; font-style: normal; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.pick-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
@media (max-width: 340px) {
  .pick-grid { grid-template-columns: 1fr; }
}

/* Android WebView 66 兼容：不支持 aspect-ratio / inset 时仍有完整布局 */
#sheet-root, .sheet-backdrop { top: 0; right: 0; bottom: 0; left: 0; }
.seg-choice-item input { top: 0; right: 0; bottom: 0; left: 0; }
@supports not (aspect-ratio: 1 / 1) {
  .media-slot { min-height: 180px; }
  .media-slot img, .media-slot video { height: 180px; }
  .note-media .media-slot { min-height: 190px; }
  .pick-thumb .media-slot { min-height: 112px; }
  .pick-thumb .media-slot img, .pick-thumb .media-slot video { height: 112px; }
}

.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px dashed #cbd8cc;
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
}
.file-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-pick-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 650;
}
.file-pick-name { overflow: hidden; font-size: 9.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 我的头像 / 统计入口 ---------- */

.avatar-edit {
  position: relative;
  overflow: visible;
  cursor: pointer;
  flex: none;
}
.avatar-edit input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.avatar-edit img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.avatar-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.avatar-badge svg { width: 11px; height: 11px; }
.me-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 13px 0; }
.me-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  border-right: 1px solid var(--line);
}
.me-stat:last-child { border-right: 0; }
.me-stat:active { opacity: 0.65; }
.me-stat b { font-size: 20px; letter-spacing: -0.02em; }
.me-stat span { font-size: 9px; color: var(--muted); }
.me-stat::after { content: '查看'; font-size: 8px; color: var(--green-strong); opacity: 0.8; }

/* ---------- 通知 / 广告 ---------- */

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.notice-brand { display: flex; align-items: baseline; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.notice-brand em { font-size: 8.5px; font-style: normal; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.notice-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-2);
}
.notice-btn svg { width: 18px; height: 18px; }
.notice-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--card);
  border-radius: 50%;
  background: var(--rose);
}
.notice-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.notice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ea;
  text-align: left;
}
.notice-row:last-child { border-bottom: 0; }
.notice-row-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.notice-row.unread .notice-row-dot { background: var(--rose); }
.notice-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-row-main b { font-size: 12px; font-weight: 650; }
.notice-row-main span { font-size: 10px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-row-main em { font-size: 8.5px; font-style: normal; color: #a9b0a6; }
.notice-row > svg { width: 13px; height: 13px; color: #b6bdb3; flex: none; }
.ad-banner { padding: 10px 13px 12px; background: linear-gradient(135deg, #fbf8ee, #f2f6ef); border-color: #e6e1d2; }
.ad-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ad-label { font-size: 8px; letter-spacing: 0.08em; color: #9a927f; }
.ad-close { color: #a9b0a6; padding: 2px; }
.ad-close svg { width: 12px; height: 12px; }
.ad-main { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; }
.ad-brand { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-size: 9px; font-weight: 700; }
.ad-brand svg { width: 12px; height: 12px; }
.ad-main b { margin-top: 3px; font-size: 13px; font-weight: 650; }
.ad-main > span:not(.ad-brand) { margin-top: 2px; font-size: 10px; line-height: 1.55; color: var(--muted); }
.ad-main em { margin-top: 5px; display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-style: normal; font-weight: 600; color: var(--green-strong); }
.ad-main em svg { width: 10px; height: 10px; }

.media-viewer { display: flex; flex-direction: column; align-items: center; }
.media-viewer img,
.media-viewer video {
  width: 100%;
  max-height: 68vh;
  border-radius: 12px;
  background: #16221b;
  object-fit: contain;
}
.media-viewer .hint { margin-top: 10px; }
.note-media .media-slot,
.inno-media .media-slot,
.source-media .media-slot { cursor: zoom-in; }

/* ---------- 班级：练习生式双列图文 ---------- */

.class-toolbar { display: flex; align-items: center; gap: 8px; padding: 2px 0 12px; }
.class-toolbar .class-filter { flex: 1; min-width: 0; padding: 0; }
.class-layout {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.class-layout-btn {
  min-width: 32px;
  height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}
.class-layout-btn.on { background: var(--green-soft); color: var(--green-strong); }
.class-grid { column-count: 2; column-gap: 8px; }
.note-grid {
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}
.note-grid .note-media { margin: 0; }
.note-grid .note-media .media-slot { aspect-ratio: 4 / 5; border-radius: 0; }
.note-grid .note-media .media-slot img,
.note-grid .note-media .media-slot video { width: 100%; height: 100%; object-fit: cover; }
.note-grid .media-grid { gap: 2px; }
.note-grid-body { padding: 8px 9px 9px; }
.note-grid .note-top { margin-bottom: 4px; }
.note-grid .note-type { height: 18px; padding: 0 6px; font-size: 8px; }
.note-grid .note-time { font-size: 8px; }
.note-grid h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
}
.note-grid p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
}
.note-grid .note-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid #f0f2eb; font-size: 8px; }
.note-grid .note-actions { gap: 7px; }
.note-grid .note-use, .note-grid .note-del { font-size: 8px; }
@supports not (aspect-ratio: 1 / 1) {
  .note-grid .note-media .media-slot { min-height: 170px; }
  .note-grid .note-media .media-slot img, .note-grid .note-media .media-slot video { height: 170px; }
}

/* ---------- 用户协议 / 隐私政策 ---------- */

body.legal-open { overflow: hidden; }
.legal-root { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.legal-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(30, 43, 34, 0.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.legal-wrap { position: relative; width: 100%; max-width: 440px; max-height: 94vh; display: flex; }
.legal-card {
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #dbe6dc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 40, 28, 0.24);
  -webkit-overflow-scrolling: touch;
}
.legal-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.legal-brand > div { display: flex; flex-direction: column; gap: 1px; }
.legal-brand b { font-size: 13px; color: var(--ink); }
.legal-brand small { font-size: 9px; color: var(--muted); }
.legal-card h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.28; letter-spacing: -0.035em; color: var(--ink); }
.legal-lead { margin: 0 0 14px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.legal-points { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.legal-points > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 10px; border: 1px solid #edf1e9; border-radius: 10px; background: #fafbf7; }
.legal-points b { flex: none; min-width: 66px; font-size: 10px; color: var(--green-strong); }
.legal-points span { font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.legal-docs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.legal-doc-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.legal-doc-link > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.legal-doc-link b { font-size: 11px; color: var(--ink); }
.legal-doc-link small { font-size: 9px; line-height: 1.5; color: var(--muted); }
.legal-doc-link svg { flex: none; width: 14px; height: 14px; color: #aeb8ab; }
.legal-check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 10px; font-size: 9.5px; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.legal-check input { flex: none; width: 15px; height: 15px; margin-top: 1px; accent-color: var(--green); }
.legal-error { margin: 7px 0 0; font-size: 9.5px; line-height: 1.6; color: #b5473a; }
.legal-card .btn[disabled] { opacity: 0.45; }
.legal-decline { display: block; width: 100%; padding: 10px 0 2px; border: 0; background: transparent; color: #9aa396; font-size: 9.5px; text-align: center; }
.legal-foot { margin: 8px 0 0; font-size: 8.5px; line-height: 1.6; color: #aab2a5; text-align: center; }
.legal-blocked { padding: 28px 22px; }
.legal-blocked h2 { margin-top: 2px; }
.legal-blocked .btn { margin-top: 8px; }
.legal-card-doc { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 92vh; }
.legal-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.legal-bar-space { width: 40px; }
.legal-back, .legal-close { padding: 4px; border: 0; background: transparent; color: var(--green-strong); font-size: 10px; font-weight: 600; }
.legal-close { color: var(--muted); }
.legal-doc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 8px; -webkit-overflow-scrolling: touch; }
.legal-doc-head .eyebrow { color: var(--green-strong); font-size: 8.5px; letter-spacing: 0.08em; }
.legal-doc-head h2 { margin: 5px 0 4px; font-size: 21px; }
.legal-doc-head > p { margin: 0 0 12px; font-size: 9px; color: var(--muted); }
.legal-doc-intro { margin-bottom: 14px; padding: 10px 11px; border-radius: 10px; background: var(--green-soft); font-size: 10px; line-height: 1.75; color: var(--ink-2); }
.legal-section { margin-bottom: 16px; }
.legal-section h3 { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--ink); }
.legal-section p { margin: 0 0 6px; font-size: 10px; line-height: 1.8; color: #5c675a; }
.legal-section ul { margin: 4px 0 8px; padding-left: 16px; }
.legal-section li { margin-bottom: 3px; font-size: 10px; line-height: 1.75; color: #5c675a; }
.legal-doc-foot { margin: 8px 0 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 8.5px; line-height: 1.6; color: #a3aca0; }
.legal-doc-actions { flex: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.legal-table-wrap { overflow-x: auto; margin: 8px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 9px; line-height: 1.55; color: #5c675a; }
.legal-table th, .legal-table td { padding: 6px 5px; border: 1px solid #e4ebe2; text-align: left; vertical-align: top; }
.legal-table th { background: #f5f8f2; color: var(--ink-2); font-weight: 650; }
@media (max-width: 350px) {
  .legal-root { padding: 8px; }
  .legal-card { padding: 16px; border-radius: 16px; }
  .legal-card-doc { padding: 0; }
  .legal-card h2 { font-size: 21px; }
}
@supports not (backdrop-filter: blur(4px)) {
  .legal-backdrop { background: rgba(30, 43, 34, 0.58); }
}
.legal-brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.auth-legal {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 2px 0 12px;
  font-size: 8.8px;
  line-height: 1.55;
  color: var(--muted);
  white-space: nowrap;
}
.auth-legal-check { display: inline-flex; align-items: center; gap: 4px; margin-right: 0; cursor: pointer; white-space: nowrap; }
.auth-legal-check input { flex: none; width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.auth-legal-links { display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; }
.auth-legal-links button { padding: 0; border: 0; background: transparent; color: var(--green-strong); font-size: 8.8px; font-weight: 600; line-height: inherit; white-space: nowrap; }
.auth-legal-links > span { color: var(--muted); }
.auth-operator { margin: 8px 0 0; text-align: center; font-size: 8px; color: #aab2a5; }
.legal-company {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 14px 0 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f6f9f3;
  border: 1px solid #e4ebe1;
  font-size: 9px;
  line-height: 1.55;
  color: #5c675a;
}
.legal-company b { margin-bottom: 2px; font-size: 9.5px; color: var(--ink); }
.legal-company a { color: var(--green-strong); text-decoration: none; }

.legal-doc-head .legal-operator { margin: 5px 0 12px; padding: 6px 8px; border-radius: 7px; background: #f6f9f3; font-size: 8.5px; line-height: 1.55; color: #6b7669; }

.group-row.danger-row .group-main b { color: #b5473a; }
.group-row.danger-row .group-ic { color: #b5473a; background: #fbefec; }
.delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 11px;
  border: 1px solid #f0d9d5;
  border-radius: 11px;
  background: #fdf4f2;
  color: #9c433b;
}
.delete-warning svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.delete-warning p { margin: 0; font-size: 10px; line-height: 1.7; }
.delete-list { margin: 8px 0 12px; padding-left: 17px; }
.delete-list li { margin-bottom: 4px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.class-swipe-tip { margin: -5px 0 10px; padding: 0 2px; font-size: 8.5px; color: #a3ada0; }
.media-grid.multi { grid-template-columns: repeat(2, 1fr); }
.note-media .media-grid.multi .media-slot,
.note-grid .media-grid.multi .media-slot { aspect-ratio: 1 / 1; }
@media (max-width: 340px) {
  .class-swipe-tip { font-size: 8px; }
}

/* ---------- 班级/创新：全屏图文查看器 ---------- */
body.media-viewer-open { overflow: hidden; }
.mv-root {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 350;
  display: flex;
  flex-direction: column;
  background: #080b09;
  color: #fff;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.mv-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px;
}
.mv-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.mv-title { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; color: rgba(255,255,255,.82); text-overflow: ellipsis; white-space: nowrap; }
.mv-count { flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 10px; color: rgba(255,255,255,.85); }
.mv-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.mv-canvas { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.mv-img {
  max-width: 94vw;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transform-origin: center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.mv-video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 6px; background: #000; }
.mv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}
.mv-nav:disabled { opacity: .25; }
.mv-prev { left: 9px; }
.mv-next { right: 9px; }
.mv-foot {
  flex: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px 8px;
  font-size: 9px;
  color: rgba(255,255,255,.55);
}
.mv-dots { display: flex; align-items: center; gap: 5px; }
.mv-dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.32); }
.mv-dots i.on { width: 15px; background: #fff; }
.mv-save-btn { padding: 6px 11px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: transparent; color: #fff; font-size: 9px; }
.mv-save-hint { font-size: 8px; color: rgba(255,255,255,.38); }
.mv-save {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.62);
}
.mv-save[hidden] { display: none; }
.mv-save-card { width: min(100%, 330px); padding: 19px; border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.mv-save-card h3 { font-size: 15px; }
.mv-save-card p { margin: 6px 0 14px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.mv-save-actions { display: flex; gap: 8px; }
.mv-save-actions .btn { flex: 1; }
@supports not (aspect-ratio: 1 / 1) {
  .mv-img { max-height: 76vh; }
  .mv-video { max-height: 76vh; }
}
.me-summary.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- 开屏广告 ---------- */
body.splash-ad-open { overflow: hidden; }
.splash-ad {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 600;
  overflow: hidden;
  background: #0d1711;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.splash-ad-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-ad-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(5,12,8,.34), rgba(5,12,8,0) 30%, rgba(5,12,8,.52) 100%); pointer-events: none; }
.splash-ad-top { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; left: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.splash-ad-tag { padding: 4px 8px; border-radius: 5px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.72); font-size: 8px; letter-spacing: 1px; }
.splash-ad-skip { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.28); color: #fff; font-size: 10px; }
.splash-ad-bottom { position: absolute; right: 20px; bottom: calc(30px + env(safe-area-inset-bottom)); left: 20px; z-index: 2; max-width: 560px; }
.splash-ad-brand { display: block; margin-bottom: 7px; color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: 1.2px; }
.splash-ad-bottom h2 { margin: 0; color: #fff; font-size: 23px; line-height: 1.35; letter-spacing: -.4px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.splash-ad-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.92); color: #173d28; font-size: 10px; font-weight: 700; }
.splash-ad-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .splash-ad-bottom { left: calc(50% - 270px); right: calc(50% - 270px); max-width: none; }
  .splash-ad-top { right: calc(50% - 260px); left: calc(50% - 260px); }
  .splash-ad-bottom h2 { font-size: 30px; }
}
/* ---------- 可配置标签的补充配色 ---------- */
.class-stats { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
.note-custom1 .note-type { background: #efe9f6; color: #6e5192; }
.note-custom2 .note-type { background: var(--blue-soft); color: var(--blue); }
.note-custom3 .note-type { background: var(--amber-soft); color: var(--amber); }
.note-custom4 .note-type { background: var(--rose-soft); color: var(--rose); }
.itype-custom1 { background: #efe9f6; color: #6e5192; }
.itype-custom2 { background: var(--blue-soft); color: var(--blue); }
.itype-custom3 { background: var(--amber-soft); color: var(--amber); }
.itype-custom4 { background: var(--rose-soft); color: var(--rose); }
.notice-row-go { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--green-strong); font-size: 9px; font-weight: 650; white-space: nowrap; }
.notice-row-go svg { width: 10px; height: 10px; }
.notice-detail-date { margin: 0 0 2px; color: #9aa69c; font-size: 9.5px; }
.export-buy-card { padding: 15px 14px; border: 1px solid #e3eadf; border-radius: 15px; background: linear-gradient(145deg, #fbfcfa, #f2f7ef); margin-bottom: 12px; }
.export-buy-card > b { display: block; margin: 4px 0 8px; font-size: 25px; letter-spacing: -0.03em; color: var(--green-strong); }
.export-buy-card p { margin-top: 6px; font-size: 11px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.export-buy-qr { display: block; width: 180px; height: 180px; object-fit: contain; margin: 12px auto 4px; border-radius: 12px; background: #fff; border: 1px solid #e6ece2; }
.export-gift-card { margin-top: 14px; padding: 14px; border: 1px solid #eee6d9; border-radius: 14px; background: #fffaf0; }
.export-gift-card > b { display: block; font-size: 13px; margin-bottom: 3px; }
.gift-redeem-row { display: flex; gap: 7px; margin-top: 8px; }
.gift-redeem-row input { flex: 1; min-width: 0; height: 38px; border: 1px solid #e5dfd2; border-radius: 10px; background: #fff; padding: 0 10px; font-size: 12px; letter-spacing: 0.04em; }
.gift-redeem-row .btn { flex: none; height: 38px; padding: 0 16px; }
.pay-buttons { display: grid; gap: 8px; margin: 4px 0 8px; }
.pay-btn { background: #1677ff; border-color: #1677ff; color: #fff; }
.pay-btn.wechat { background: #07c160; border-color: #07c160; }
