/* 我的待办 · 完整样式表（专注攀岩版） */
:root {
  --accent: #5a6497;
  --accent-soft: #eceefa;
  --track: #e4e6f2;
  --bg: #f7f7fb;
  --ink: #17171c;
  --surface: #ffffff;
  --line: #e6e8f0;
  --muted: #8b8d99;
  --danger: #c0492f;
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; }

/* ---------------- 顶栏 ---------------- */
.bar {
  display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center; height: 56px; padding: 0 6px;
  padding-top: env(safe-area-inset-top);
}
.bar h1 { margin: 0; text-align: center; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.back { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); text-decoration: none; border-radius: 50%; }
.back:active { background: var(--accent-soft); }
.bar-right { width: 44px; }

/* ---------------- 面板 ---------------- */
.panel { display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 6px 18px 20px; }

/* ---------------- 专注：满屏攀岩 ---------------- */
#panel-focus { padding: 0; }
.stage {
  position: relative; height: calc(100dvh - 56px);
  overflow: hidden; display: flex; flex-direction: column; background: var(--bg);
}
.scene { position: absolute; inset: 0; }
.scene-svg { width: 100%; height: 100%; display: block; }

.stage-top { position: relative; z-index: 3; display: flex; align-items: baseline; gap: 8px; padding: 10px 20px 0; }
.stage-mtn { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; opacity: .8; }
.stage-seg { font-size: 11.5px; opacity: .5; font-variant-numeric: tabular-nums; }

.clock {
  position: relative; z-index: 3; margin: auto auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px;
}
.clock b {
  display: flex; align-items: baseline;
  font-size: clamp(52px, 17vw, 84px); font-weight: 300;
  letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
  text-shadow: 0 2px 20px var(--bg), 0 0 34px var(--bg);
}
.clock b i { font-style: normal; margin: 0 .02em; display: inline-block; }
body.running .clock b i { animation: colon 2s steps(1) infinite; }
@keyframes colon { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .3; } }
.clock-sub { font-size: 11.5px; letter-spacing: .1em; opacity: .45; font-variant-numeric: tabular-nums; min-height: 16px; }

.stage-ctrl { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 0 4px; }
.c-main {
  width: 78px; height: 78px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18), 0 0 0 8px rgba(90, 100, 151, .12);
  transition: transform .16s ease;
}
.c-main:active { transform: scale(.95); }
.c-round {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--ink); opacity: .82;
  border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .16s, opacity .2s;
}
.c-round:active { transform: scale(.92); opacity: 1; }

.stage-foot {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 4px 0 calc(84px + env(safe-area-inset-bottom));
}
.bound-line {
  border: 0; background: transparent; padding: 6px 14px;
  color: var(--ink); opacity: .55; font-size: 12.5px; cursor: pointer;
  max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bound-line.has { background: rgba(255, 255, 255, .7); border-radius: 999px; opacity: .9; }
.next-up { margin: 0; font-size: 11.5px; opacity: .42; font-variant-numeric: tabular-nums; }
.next-up b { font-weight: 600; opacity: .85; }

/* 人物动作 */
.hero-inner { transform-origin: 0 30px; animation: bob 4.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
body.running .hero-inner { animation-duration: 2.1s; }
body.running .hero-arm-near { animation: reach 2.1s ease-in-out infinite; transform-origin: 11px 0; }
body.running .hero-arm-far { animation: reach2 2.6s ease-in-out infinite; transform-origin: -13px 4px; }
body.running .hero-leg-near { animation: stepA 2.1s ease-in-out infinite; transform-origin: -3px 42px; }
body.running .hero-leg-far { animation: stepB 2.6s ease-in-out infinite; transform-origin: 3px 42px; }
body.running .hero-rope { animation: ropeSwing 3.4s ease-in-out infinite; transform-origin: -11px 38px; }
@keyframes reach { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-11deg); } }
@keyframes reach2 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
@keyframes stepA { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes stepB { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-5deg); } }
@keyframes ropeSwing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }

.summit-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .7; }

/* ---------------- 底部浮岛 ---------------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 5px; max-width: 94vw;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; box-shadow: 0 12px 34px rgba(0, 0, 0, .10);
  z-index: 45;
}
.dock-item {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 42px; padding: 0 11px; border: 0; border-radius: 21px;
  background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  white-space: nowrap; flex: none;
  transition: background .2s, color .2s;
}
.dock-item.is-active { background: var(--accent); color: #fff; }

/* ---------------- 通用控件 ---------------- */
.quick { display: flex; gap: 8px; margin-bottom: 12px; }
.q-input {
  flex: 1; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 15px; font-family: inherit; color: var(--ink);
}
.q-input::placeholder { color: var(--muted); }
.q-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-add { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 22px; cursor: pointer; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 15px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.is-active { background: var(--accent-soft); color: var(--accent); }
.seg-sm button { padding: 6px 13px; font-size: 12.5px; }
.link-btn { border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; }

/* ---------------- 时间轴 ---------------- */
.next-line {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; margin: 12px 0 14px; border-radius: 14px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.next-line b { font-size: 14.5px; color: var(--ink); }
.next-line span { font-size: 12.5px; color: var(--muted); }
.next-line.done { background: var(--surface); border-left-color: var(--line); }

.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 50px 14px 1fr; gap: 8px; padding-bottom: 10px; position: relative; }
.tl-time { font-size: 11.5px; color: var(--muted); text-align: right; padding-top: 12px; font-variant-numeric: tabular-nums; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 16px; background: var(--line); justify-self: center; z-index: 2; }
.tl-row::before { content: ''; position: absolute; left: 68px; top: 19px; bottom: -4px; width: 1.5px; background: var(--line); }
.tl-row:last-child::before { display: none; }
.tl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 12px; min-width: 0; border-left: 3px solid var(--line);
}
.tl-card b { display: block; font-size: 14px; line-height: 1.4; word-break: break-word; }
.tl-card i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tl-row.current .tl-card { box-shadow: 0 0 0 2px var(--accent-soft); }
.tl-row.current .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-row.past { opacity: .5; }
.tl-todo-line { display: flex; align-items: center; gap: 9px; }
.tl-todo-line b { flex: 1; }
.tl-late {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--danger); border-radius: 13px; padding: 10px 12px; margin-bottom: 12px;
}
.tl-late > b { font-size: 12px; color: var(--danger); }
.tl-late-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); margin-top: 6px; flex-wrap: wrap; }
.tl-late-item span { flex: 1; font-size: 13.5px; }
.tl-late-item em { font-style: normal; font-size: 11px; color: var(--danger); }

/* ---------------- 待办列表 ---------------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.group-title { margin: 16px 2px 6px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.group-title.red { color: var(--danger); }
.task {
  display: flex; align-items: flex-start; gap: 11px; flex-wrap: wrap;
  padding: 13px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.task.is-done { opacity: .55; }
.task.is-late { border-left: 3px solid var(--danger); }
.task-check {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--line); border-radius: 50%; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 13px;
}
.task.is-done .task-check { background: var(--accent); border-color: var(--accent); }
.task-body { flex: 1; min-width: 0; cursor: pointer; }
.task-title { font-size: 15px; line-height: 1.45; word-break: break-word; }
.task.is-done .task-title { text-decoration: line-through; }
.task-meta { margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.task-meta .late { color: var(--danger); font-weight: 600; }
.task-meta .rep { color: var(--accent); }
.task-star { color: #b57a12; }
.task-confirm { display: none; width: 100%; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.task.confirming .task-confirm,
.tl-card.confirming .task-confirm,
.tl-late-item.confirming .task-confirm { display: flex; }
.task-confirm button { flex: 1; height: 36px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.task-confirm .yes { background: var(--accent); color: #fff; }
.task-confirm .no { background: var(--accent-soft); color: var(--accent); }
.task-check.sm { width: 19px; height: 19px; font-size: 11px; }
.empty {
  padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13.5px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------------- 课表 ---------------- */
.adjust-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px;
}
.adjust-banner button { border: 0; background: transparent; color: var(--accent); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.week-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.adjust { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.adjust-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.adjust-row { display: flex; gap: 7px; flex-wrap: wrap; }
.adjust-row button {
  height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 12.5px; cursor: pointer;
}
.adjust-row button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-strip { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 12px; padding: 0 2px; }
.stat-strip span { display: inline-flex; align-items: center; gap: 4px; }
.stat-strip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.week-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.week-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.week-table th, .week-table td { border: 1px solid var(--line); padding: 9px 3px; font-size: 12.5px; line-height: 1.35; text-align: center; word-break: break-all; }
.week-table th { background: var(--accent-soft); font-weight: 600; }
.week-table th:first-child, .week-table td.slot-name { width: 52px; }
.week-table td.slot-name { background: var(--accent-soft); color: var(--muted); font-size: 11px; padding: 6px 2px; }
.week-table td.slot-name small { display: block; font-size: 10px; opacity: .75; }
.week-table td.cell { height: 46px; }
.week-table td.cell .k { display: block; font-size: 12px; font-weight: 700; }
.week-table td.cell small { display: block; font-size: 10px; color: var(--muted); }
.week-table th.is-today { background: var(--accent); color: #fff; }
.week-table th.is-duty i { font-style: normal; font-size: 10px; margin-left: 3px; background: rgba(255, 255, 255, .3); border-radius: 4px; padding: 0 3px; }
.week-table td.cell.mine { background: var(--accent-soft); }
.week-table td.cell.mine.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day-seg { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.day-seg button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; cursor: pointer; }
.day-seg button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hint-line { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }

/* ---------------- 路线册 ---------------- */
.gal-hint { margin: 6px 2px 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.gal { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory; }
.gal::-webkit-scrollbar { display: none; }
.gcard {
  position: relative; flex: 0 0 76%; aspect-ratio: 3 / 4;
  border-radius: 20px; overflow: hidden; scroll-snap-align: center;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 20, 30, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gcard:active { transform: scale(.985); }
.gcard .art { position: absolute; inset: 0; }
.gcard .art svg { width: 100%; height: 100%; display: block;
  transform: scale(1.3) translateY(-9%); transform-origin: 50% 38%; }
.gcard .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 16px;
  background: linear-gradient(transparent, rgba(8, 18, 26, .62)); color: #fff;
}
.gcard .meta b { display: block; font-size: 19px; font-weight: 500; letter-spacing: .16em; }
.gcard .meta span { display: block; margin-top: 4px; font-size: 12px; opacity: .82; }
.gcard .stamp {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 2px solid #c4463c; border-radius: 6px; color: #c4463c;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
  opacity: .85; transform: rotate(-8deg);
}
.gcard.locked .art { filter: grayscale(.55) brightness(.92) blur(1px); }
.gcard.locked .meta b { opacity: .7; }
.gcard.locked::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(247, 250, 252, .72), rgba(247, 250, 252, .30));
}
.gcard.current { box-shadow: 0 0 0 2px var(--accent), 0 12px 30px rgba(10, 20, 30, .16); }


/* 六座山各自的色调 */
.gcard[data-peak="2"] .art svg { filter: hue-rotate(16deg) saturate(1.02) brightness(1.03); }
.gcard[data-peak="3"] .art svg { filter: hue-rotate(-12deg) saturate(1.18) brightness(.94); }
.gcard[data-peak="4"] .art svg { filter: sepia(.32) hue-rotate(-24deg) saturate(1.45) brightness(1.04); }
.gcard[data-peak="5"] .art svg { filter: saturate(.42) brightness(1.10) contrast(.96); }
.gcard[data-peak="6"] .art svg { filter: hue-rotate(-30deg) saturate(1.05) brightness(.88) contrast(1.06); }
.gcard.locked .art svg { filter: inherit; }

/* 主界面跟着当前山变色 */
.land[data-peak="2"] .land-svg { filter: hue-rotate(16deg) saturate(1.02); }
.land[data-peak="3"] .land-svg { filter: hue-rotate(-12deg) saturate(1.18) brightness(.95); }
.land[data-peak="4"] .land-svg { filter: sepia(.32) hue-rotate(-24deg) saturate(1.45); }
.land[data-peak="5"] .land-svg { filter: saturate(.42) brightness(1.10); }
.land[data-peak="6"] .land-svg { filter: hue-rotate(-30deg) saturate(1.05) brightness(.88); }

/* ---------------- 我的 ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 14.5px; }
.card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 46px; height: 46px; border-radius: 14px; border: 2px solid transparent;
  cursor: pointer; display: grid; place-items: center;
}
.swatch.is-active { border-color: var(--ink); }
.swatch i { width: 20px; height: 20px; border-radius: 50%; display: block; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.switch-row input { width: 44px; height: 26px; accent-color: var(--accent); }
.link-row { display: flex; gap: 8px; }
.feed-url {
  flex: 1; min-width: 0; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace;
}
.btn-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.btn { height: 40px; padding: 0 16px; border: 0; border-radius: 11px; cursor: pointer; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.ghost.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 12.5px; }
.foot-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 18px 0 4px; }

/* ---------------- 弹层 ---------------- */
.mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(10, 12, 18, .42); }
.sheet {
  width: 100%; max-width: 720px; margin: 0 auto; max-height: 88vh; overflow: auto;
  background: var(--surface); color: var(--ink);
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 16px; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 15px; cursor: pointer; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-size: 15px; font-family: inherit;
}
textarea.input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 6px; }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.ghost { flex: 0 0 96px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }
.pick-item {
  text-align: left; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px;
}
.pick-item em { font-style: normal; font-size: 11.5px; color: var(--muted); flex: none; }

/* 登山详情 */
.jhead { display: flex; flex-direction: column; gap: 2px; }
.jhead h3 { font-size: 17px; }
.jscene { border-radius: 14px; overflow: hidden; background: var(--accent-soft); }
.jscene .mt-svg, .jscene svg { height: 190px; width: 100%; }
.jline { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.jxp { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em; }
.jcap { margin: 18px 0 8px; font-size: 11.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.jgear { display: flex; flex-direction: column; gap: 8px; }
.grow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow > span { width: 22px; font-size: 12px; color: var(--muted); }
.gitem {
  height: 32px; padding: 0 11px; border-radius: 999px; white-space: nowrap; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 12.5px; cursor: pointer;
}
.gitem.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gitem.locked { opacity: .42; }
.jroad { display: flex; flex-direction: column; gap: 8px; }
.jrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.jrow b { font-weight: 500; color: var(--ink); opacity: .7; }
.jrow.cur b { opacity: 1; font-weight: 600; }
.jrow .marks { display: flex; gap: 3px; }
.jrow .marks i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: block; }
.jrow .marks i.on { background: var(--accent); }

/* ---------------- 离线 / 提示 ---------------- */
.offline { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.offline-card { width: 100%; max-width: 330px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.offline-card h2 { margin: 0 0 6px; font-size: 19px; }
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  max-width: min(86vw, 420px); padding: 10px 16px; border-radius: 12px;
  background: rgba(20, 24, 32, .92); color: #fff; font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 主界面（风景） ---------------- */
#panel-menu { position: fixed; inset: 0; padding: 0; overflow: hidden; z-index: 30; }
.land { position: absolute; inset: 0; }
.land-svg { width: 100%; height: 100%; display: block; transform-origin: 62% 78%; transition: transform 1.3s cubic-bezier(.22,.75,.28,1), filter 1.3s ease; }
#panel-menu.zooming .land-svg { transform: scale(1.75); filter: brightness(1.06); }
#panel-menu.zooming .brand-wrap,
#panel-menu.zooming .menu,
#panel-menu.zooming .menu-foot { opacity: 0; transform: translateY(10px); transition: .5s ease; }

.cl-a { animation: driftA 46s linear infinite; }
.cl-b { animation: driftB 34s linear infinite; }
@keyframes driftA { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
@keyframes driftB { from { transform: translateX(14px); } to { transform: translateX(-20px); } }

.mistband ellipse:nth-child(1) { animation: mband1 34s ease-in-out infinite alternate; }
.mistband ellipse:nth-child(2) { animation: mband2 26s ease-in-out infinite alternate; }
.mistband ellipse:nth-child(3) { animation: mband1 41s ease-in-out infinite alternate-reverse; }
.mistband ellipse:nth-child(4) { animation: mband2 30s ease-in-out infinite alternate-reverse; }
@keyframes mband1 { from { transform: translateX(-26px); } to { transform: translateX(24px); } }
@keyframes mband2 { from { transform: translateX(18px); } to { transform: translateX(-20px); } }
.godray { animation: rayBreath 11s ease-in-out infinite; }
@keyframes rayBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.brand-wrap { position: absolute; left: 34px; top: 64px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand {
  margin: 0; writing-mode: vertical-rl; text-orientation: upright;
  font-size: 30px; font-weight: 300; letter-spacing: .28em;
  color: #16303f; text-shadow: 0 1px 12px rgba(255, 255, 255, .55);
}
.brand-rule { width: 1px; height: 34px; background: currentColor; color: #16303f; opacity: .38; }
.menu {
  position: absolute; left: 22px; bottom: 88px; z-index: 3;
  padding: 12px 20px 10px 12px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .16));
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 8px 26px rgba(20, 40, 60, .10);
}
.menu button {
  display: block; border: 0; background: transparent; padding: 9px 0 9px 12px;
  font-size: 16px; letter-spacing: .12em; text-align: left; cursor: pointer;
  color: #16303f; opacity: .82; position: relative;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .6);
  transition: opacity .2s, letter-spacing .3s;
}
.menu button::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 0; background: #16303f; opacity: .7; transition: height .25s;
}
.menu button:active::before, .menu button.on::before { height: 16px; }
.menu-foot { position: absolute; left: 38px; bottom: 62px; z-index: 3; margin: 0; font-size: 11px; letter-spacing: .1em; color: #16303f; opacity: .5; }

html[data-mode="dark"] .land-svg { filter: brightness(.5) saturate(1.15) hue-rotate(-16deg) contrast(1.06); }
.stars { opacity: 0; transition: opacity .6s ease; }
html[data-mode="dark"] .stars { opacity: .85; }
html[data-mode="dark"] .menu {
  background: linear-gradient(135deg, rgba(18, 26, 34, .5), rgba(18, 26, 34, .2));
  border-color: rgba(255, 255, 255, .12);
}
html[data-mode="dark"] .brand,
html[data-mode="dark"] .menu button,
html[data-mode="dark"] .menu-foot { color: #e8eef2; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
html[data-mode="dark"] .brand-rule { color: #e8eef2; }

body[data-tab="menu"] .dock { display: none; }
body[data-tab="menu"] .bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent; color: #123043; text-shadow: 0 1px 10px rgba(255, 255, 255, .5);
}
body[data-tab="menu"] .bar h1 { opacity: 0; }

.land-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.land.is-3d .land-svg { display: none; }

@media (max-width: 380px) {
  .dock-item { padding: 0 9px; font-size: 11.5px; }
  .week-table th, .week-table td { font-size: 11.5px; padding: 8px 2px; }
  .gcard { flex: 0 0 84%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 主页星球（iframe 嵌入） */
.planet-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: transparent;
}
.land.is-3d .land-svg { display: none; }

/* 星球背景下的浅色文字 */
.land.is-3d .brand,
.land.is-3d .menu button,
.land.is-3d .menu-foot { color: #eaf4ff; text-shadow: 0 1px 14px rgba(0, 12, 24, .85); }
.land.is-3d .brand-rule { color: #eaf4ff; opacity: .5; }
.land.is-3d .menu {
  background: linear-gradient(135deg, rgba(8, 20, 34, .42), rgba(8, 20, 34, .12));
  border-color: rgba(150, 210, 255, .22);
}
.land.is-3d .bar { color: #eaf4ff; }
.land.is-3d .bar .back { color: #eaf4ff; }

/* 主界面不再显示「孤峰」品牌字 */
.brand-wrap { display: none !important; }

/* 攀爬页在星球背景上的浅色文字 */
#panel-focus.is-3d .clock b {
  color: #f4faff;
  text-shadow: 0 2px 26px rgba(0, 10, 22, .92), 0 0 60px rgba(0, 20, 40, .7);
}
#panel-focus.is-3d .clock-sub,
#panel-focus.is-3d .stage-mtn,
#panel-focus.is-3d .stage-seg,
#panel-focus.is-3d .next-up,
#panel-focus.is-3d .bound-line {
  color: #d8e9f7; opacity: .82;
  text-shadow: 0 1px 12px rgba(0, 10, 22, .85);
}
#panel-focus.is-3d .bound-line.has {
  background: rgba(10, 24, 38, .55);
  border: 1px solid rgba(150, 210, 255, .22);
}
#panel-focus.is-3d .c-round {
  background: rgba(10, 24, 38, .55);
  color: #eaf4ff;
  border-color: rgba(150, 210, 255, .28);
}
#panel-focus.is-3d .stage-top { text-shadow: 0 1px 10px rgba(0, 10, 22, .9); }

/* 主界面背景视频 */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none; z-index: 1;
}
.hero-video.ready { opacity: 1; }
/* 视频压暗一点，保证菜单可读 */
.land.has-video .land-svg { opacity: 0; }

/* 没有主界面了：浮岛常驻显示，去掉主界面相关规则 */
body[data-tab="menu"] .dock { display: flex !important; }
body[data-tab="menu"] .bar { position: static; background: transparent; }
.land, .brand-wrap, .menu, .menu-foot, .hero-video, #panel-menu { display: none !important; }

/* 当前课程倒计时条 */
.now-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 4px 2px 12px; padding: 11px 14px; border-radius: 13px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 13px; letter-spacing: .02em;
}
.now-bar b { font-weight: 600; font-size: 14px; }
.now-bar .nb-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  flex: none; opacity: .55;
}
.now-bar.is-live { background: var(--accent); color: #fff; }
.now-bar.is-live .nb-dot { opacity: 1; animation: nbPulse 1.6s ease-in-out infinite; }
@keyframes nbPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.now-bar .nb-time { margin-left: auto; font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.now-bar .nb-next { font-size: 12px; opacity: .7; }
.now-bar.is-done { background: var(--surface); color: var(--ink-3); }

/* 点名弹层 */
.rc-sheet { text-align: center; }
.rc-sub { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }
.rc-num {
  font-size: 84px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--accent);
  padding: 6px 0 14px; transition: transform .18s ease;
}
.rc-num.is-done { transform: scale(1.14); }

/* 课表格子里的点名按钮 */
td.cell.mine { position: relative; padding-bottom: 16px; }
.rc-btn {
  position: absolute; right: 3px; bottom: 3px;
  height: 15px; padding: 0 5px; border-radius: 5px;
  border: 0; background: var(--accent); color: #fff;
  font-size: 9px; line-height: 15px; letter-spacing: .02em;
  opacity: .55; cursor: pointer;
}
.rc-btn:active { opacity: 1; }
@media (hover: hover) { .rc-btn { opacity: .45; } td.cell.mine:hover .rc-btn { opacity: 1; } }

/* 教材树 */
.book-stats { margin: 4px 2px 12px; font-size: 12.5px; color: var(--muted); }
.unit { margin-bottom: 8px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.unit-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 14px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left;
}
.unit-head .u-count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.unit-head .u-arrow { transition: transform .2s ease; color: var(--muted); }
.unit.open .u-arrow { transform: rotate(90deg); }
.unit-body { display: none; border-top: 1px solid var(--line); }
.unit.open .unit-body { display: block; }
.lesson-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 18px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:active { background: var(--accent-bg); }
.lesson-row .l-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-row .l-pages { font-size: 11.5px; color: var(--muted); flex: none; }
.stage-bar { display: flex; gap: 2px; margin-top: 4px; }
.stage-bar i { height: 3px; border-radius: 2px; display: block; opacity: .8; }

/* 课时详情 */
.lesson-sheet { max-height: 86vh; }
.pg-head { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.pg-list { display: flex; flex-direction: column; gap: 6px; }
.pg-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pg-no { flex: none; width: 34px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pg-tag { flex: none; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; }
.pg-txt { flex: 1; min-width: 0; color: var(--ink); line-height: 1.5; }

/* 学科切换 */
.subj-switch { position: relative; padding: 4px 18px 0; }
.subj-btn {
  border: 0; background: transparent; color: var(--accent);
  font-size: 15px; font-weight: 600; padding: 6px 0; cursor: pointer;
}
.subj-menu { display: none; position: absolute; left: 16px; top: 42px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 170px; overflow: hidden; }
.subj-switch.open .subj-menu { display: block; }
.subj-menu button { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px; border: 0; background: transparent; text-align: left;
  font-size: 14px; color: var(--ink); cursor: pointer; }
.subj-menu button.on { color: var(--accent); background: var(--accent-bg); }
.subj-menu button.dim { color: var(--muted); }
.subj-menu button em { font-style: normal; font-size: 11px; color: var(--muted); }

/* 教案表格 */
.plan-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 12px; }
.plan-table th, .plan-table td { border: 1px solid var(--line); padding: 6px 7px; text-align: left; vertical-align: top; line-height: 1.55; }
.plan-table th { background: var(--accent-bg); font-weight: 600; color: var(--accent); white-space: nowrap; }
.plan-table td:first-child { white-space: nowrap; font-weight: 500; }
@media print {
  .plan-table { page-break-inside: avoid; }
  .plan-table th, .plan-table td { border: 1px solid #000; }
}

/* 合班标记 */
.combo-tag {
  display: inline-block; margin-top: 2px; padding: 0 4px;
  font-style: normal; font-size: 9px; line-height: 13px; border-radius: 3px;
  background: var(--accent-bg); color: var(--accent); opacity: .9;
}

/* 教材顶部区 */
.book-top { padding: 6px 18px 10px; }
.book-top-row { display: flex; align-items: center; gap: 10px; }
.book-progress { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.book-search { flex: 1; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; }
.book-search:focus { outline: none; border-color: var(--accent); }
.book-filter { display: flex; gap: 6px; margin-top: 8px; }
.book-filter button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 12.5px; cursor: pointer; }
.book-filter button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 列表重排 */
.unit { margin-bottom: 12px; border: 0; background: transparent; border-radius: 0; overflow: visible; }
.unit-head { padding: 0 2px; height: 52px; gap: 8px; }
.unit-head .u-name { font-size: 15px; font-weight: 600; }
.unit-head .u-count { font-size: 12px; color: var(--muted); margin-left: auto; }
.unit.part .u-name, .unit.done .u-name { color: var(--ink-2); }
.unit-body { border: 0; background: transparent; }
.lesson-row { padding: 0 2px; height: 52px; border-bottom: 0; gap: 10px; }
.lesson-row + .lesson-row { border-top: 1px solid var(--line); }
.lesson-row .l-seq { width: 38px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-row .l-title { font-size: 14px; }
.lesson-row .l-pages { font-size: 12px; }
.lesson-row .st { font-style: normal; font-size: 11.5px; color: var(--muted); flex: none; width: 62px; text-align: right; }
.lesson-row .st.done { color: #2E8B57; }

/* 六学分布条形 */
.stage-list { margin: 10px 0 16px; }
.stage-line { display: flex; align-items: center; gap: 8px; height: 22px; }
.stage-line span { width: 34px; font-size: 11.5px; color: var(--muted); flex: none; }
.stage-line i { height: 8px; border-radius: 4px; display: block; flex: none; }
.stage-line b { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.stage-line .track { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.stage-line .track > i { height: 100%; }

/* 桌面：课时详情变右侧抽屉 */
@media (min-width: 900px) {
  .mask.right-drawer { justify-content: flex-end; align-items: stretch; background: rgba(10,12,18,.28); }
  .mask.right-drawer .lesson-sheet {
    width: 430px; max-width: 46vw; height: 100vh; max-height: 100vh;
    border-radius: 0; padding-bottom: 20px;
    box-shadow: -8px 0 30px rgba(0,0,0,.16);
    animation: slideIn .22s ease;
  }
  @keyframes slideIn { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* 本周备课台 */
.prep-head { padding: 6px 18px 10px; display: flex; align-items: baseline; gap: 10px; }
.prep-week { font-size: 15px; font-weight: 600; color: var(--ink); }
.prep-stat { font-size: 12px; color: var(--muted); margin-left: auto; }
.prep-body { padding: 0 16px; }
.prep-day { margin-bottom: 12px; }
.pd-name { font-size: 12px; color: var(--muted); padding: 4px 2px 6px; }
.prep-item { display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 10px; margin-bottom: 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; }
.prep-item.on { border-color: var(--accent); background: var(--accent-bg); }
.pi-time { font-size: 12px; color: var(--muted); width: 42px; flex: none; }
.pi-sub { flex: 1; }
.pi-klass { font-size: 12px; color: var(--muted); }
.pi-dots { display: flex; gap: 3px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.dot.on { background: #2E8B57; }
.prep-detail { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.qd-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.qd-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.qd-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.qi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.qi b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.qi span { font-size: 13px; color: var(--ink-2); }
.qi.on { border-color: #2E8B57; }
.qi.on span { color: #2E8B57; }
.qd-actions { display: flex; gap: 8px; }
.qd-actions .btn { flex: 1; }

/* ===== 教案 Markdown 渲染（查看/打印/下载共用） ===== */
.plan-body { margin: 2px 0 10px; font-size: 13px; color: var(--ink); line-height: 1.7; }
.plan-h1 { font-size: 16px; margin: 4px 0 10px; text-align: center; }
.plan-h2 { font-size: 14.5px; margin: 14px 0 8px; padding-left: 8px; border-left: 3px solid var(--accent); color: var(--ink); }
.plan-h3 { font-size: 13.5px; margin: 12px 0 6px; }
.plan-p { margin: 6px 0; word-break: break-word; }
.plan-ul, .plan-ol { margin: 6px 0 6px 20px; padding: 0; }
.plan-ul li, .plan-ol li { margin: 3px 0; word-break: break-word; }
.plan-code { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  font-size: 12px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, Consolas, monospace; }
.plan-body hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.plan-body code { background: var(--bg); border-radius: 4px; padding: 1px 4px; font-size: 12px; }

/* ===== 课时抽屉：本题库 ===== */
.bank-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 12px; height: 42px; padding: 0 14px; border: 1px dashed var(--accent);
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bank-toggle i { font-style: normal; transition: transform .2s ease; }
.bank-toggle.on i { transform: rotate(180deg); }
.bank-toggle[disabled] { opacity: .6; cursor: default; border-style: solid;
  border-color: var(--line); color: var(--muted); background: var(--surface); }
.bank-wrap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.bank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.bank-tip { font-size: 11.5px; color: var(--muted); }
.bank-acts { display: flex; flex: none; }
.bank-acts .link-btn { padding: 4px 6px; font-size: 12px; }
.bank-list { display: flex; flex-direction: column; }
.bank-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6;
  color: var(--ink); cursor: pointer; }
.bank-chk { flex: none; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.bank-main { flex: 1; min-width: 0; }
.bank-no { margin-right: 3px; color: var(--muted); font-weight: 600; }
.bank-stem { display: block; word-break: break-word; }
.bank-opts { display: block; margin-top: 3px; }
.bank-opt { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; word-break: break-word; }
.bank-ans { margin-top: 5px; }
.bank-ans summary { font-size: 12px; color: var(--accent); cursor: pointer; display: inline-block; }
.bank-ans summary::-webkit-details-marker { display: none; }
.bank-ans summary::before { content: '\25b8  '; }
.bank-ans[open] summary::before { content: '\25be  '; }
.bank-ans div { margin-top: 4px; padding: 6px 8px; border-radius: 6px;
  background: rgba(46, 139, 87, .08); color: var(--ink); font-size: 12.5px; line-height: 1.65; word-break: break-word; }
.bank-print { display: flex; gap: 8px; margin: 12px 0 4px; }
.bank-print .btn { flex: 1; }.plan-li { margin: 4px 0 4px 2px; word-break: break-word; }
.plan-li b { color: var(--muted); margin-right: 5px; }
.plan-note { margin: 10px 0; padding: 9px 11px; border-radius: 8px; font-size: 12.5px;
  color: #8a5a00; background: #fff7e6; border: 1px solid #ffe1a8; }.bank-tag { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px;
  font-style: normal; font-size: 10.5px; line-height: 16px; vertical-align: 1px;
  color: var(--accent); background: var(--accent-soft); }/* ===== 学案（学生版学习单） ===== */
.plan-xuean { display: block; width: 100%; margin: 4px 0 12px; padding: 10px 12px;
  border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.plan-xuean:active { opacity: .75; }
.xuean-preview { margin: 2px 0 10px; font-size: 13px; }
.xuean-preview .paper-title { font-size: 16px; text-align: center; margin: 2px 0 6px; }
.xuean-preview .paper-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.xuean-preview .paper-sec { font-size: 14px; margin: 14px 0 8px; padding-left: 8px;
  border-left: 3px solid var(--accent); }
.xuean-preview .paper-q { margin: 6px 0; line-height: 1.8; }
.xuean-preview .xu-act { margin: 8px 0 14px; }
.xuean-preview .xu-task { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.xuean-preview .xu-line { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.xuean-preview .xu-write { border-bottom: 1px dashed var(--line); height: 2em; margin: 4px 0 8px; }/* ===== 本周备课台：四件套与备课检查 ===== */
.qd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qd-actions .btn { flex: 1 1 40%; }
.prep-check { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); }
.prep-check b { color: var(--ink); font-size: 12.5px; }
.prep-check b.ok { color: #2E8B57; }
.prep-check ul { margin: 6px 0 0; padding-left: 18px; }
.prep-check li { margin: 3px 0; line-height: 1.6; }
/* 访问密码 / 设备解锁 */
#lockMask {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
#lockMask .lock-card {
  width: 100%; max-width: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
}
#lockMask h2 { margin: 0 0 6px; font-size: 17px; }
#lockMask .lock-sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
#lockMask input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 17px; letter-spacing: .08em;
  padding: 0 14px; margin-bottom: 6px;
}
#lockMask input:focus { outline: none; border-color: var(--accent); }
#lockMask .lock-err { color: #d9534f; font-size: 12.5px; height: 18px; }
#lockMask .btn { width: 100%; margin-top: 4px; }
#lockMask .lock-tip { margin: 16px 0 0; font-size: 11px; color: var(--muted); line-height: 1.7; word-break: break-all; }
#lockMask .lock-tip code { font-size: 10px; background: var(--bg); padding: 2px 4px; border-radius: 4px; }
