/* 学习 / 练习 / 学情 —— 新增界面样式（配合 style.css） */

.main.wide { width: min(1380px, 100% - 40px); }

.eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-d); background: var(--brand-soft); border-radius: 6px;
  padding: 4px 10px; margin-bottom: 10px; font-weight: 700;
}
.lead { font-size: 15.5px; color: var(--ink-2); }
.sub { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin: 4px 0 8px; }
.mt-s { margin-top: 10px; }

/* ---------------- 学习首页 ---------------- */
.learn-hero {
  position: relative; overflow: hidden; align-items: center; gap: 34px; padding: 30px 32px;
  background:
    radial-gradient(440px 260px at 88% 20%, rgba(126, 160, 255, .19), transparent 70%),
    linear-gradient(135deg, #fff 0%, #f7f9ff 64%, #f2f7ff 100%);
}
.learn-hero::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: 8%; bottom: -185px;
  border-radius: 50%; border: 40px solid rgba(49, 87, 213, .045); pointer-events: none;
}
.lh-text { flex: 1; }
.lh-text h1 { max-width: 820px; font-size: clamp(28px, 3vw, 38px); margin: 4px 0 10px; letter-spacing: -.035em; }
.lh-text > .muted { max-width: 760px; font-size: 15.5px; }
.lh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lh-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }

.search-card { padding: 15px 18px; background: rgba(255, 255, 255, .9); }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; }

.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ch-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.ch-card:hover {
  transform: translateY(-3px); border-color: #c5d2ea; color: var(--ink);
  box-shadow: var(--shadow-hover);
}
.ch-card:hover .ch-cover { transform: scale(1.025); }
.ch-cover {
  width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; object-position: center 30%;
  display: block; background: #eef2ff; transition: transform .35s var(--ease);
}
.ch-cover-ph { background: linear-gradient(135deg, #dbe4ff, #eef2ff); }
.ch-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ch-no { font-size: 12px; font-weight: 700; color: var(--brand-d); background: var(--brand-soft);
  border-radius: 7px; padding: 2px 8px; letter-spacing: .04em; }
.ch-body h3 { font-size: 16px; margin: 3px 0 0; line-height: 1.4; }
.ch-deck {
  margin: 0; font-size: 12.5px; color: var(--muted); min-height: 36px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ch-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 5px; }
.ch-bar { flex: 1; height: 6px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.ch-bar i { display: block; height: 100%; background: linear-gradient(90deg, #74a5ff, #4c6ef5); }
.ch-bar.big { height: 8px; margin-top: 10px; }

.ap-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ap-chip {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 8px 24px -24px rgba(23, 34, 56, .35);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ap-chip:hover { transform: translateY(-2px); border-color: #c7d2e8; color: var(--brand-d); box-shadow: var(--shadow); }
.ap-chip .icon-tile { width: 34px; height: 34px; border-radius: 10px; transition: transform .18s var(--ease); }
.ap-chip:hover .icon-tile { transform: rotate(-3deg) scale(1.04); }
.ap-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-chip b { font-size: 14px; }
.ap-copy span { font-size: 12.5px; color: var(--muted); }
.ap-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fbfcff; }
.ap-card h3 { font-size: 14px; margin-bottom: 6px; color: var(--brand-d); }
.ap-card pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 13.5px;
  color: var(--ink-2); line-height: 1.7; }
.ap-table td { font-size: 13.5px; vertical-align: top; }

/* ---------------- 章节页 ---------------- */
.ch-hero {
  display: flex; gap: 22px; align-items: center; padding: 0; overflow: hidden;
  background: linear-gradient(135deg, #fff, #f8faff);
}
.ch-hero-cover { width: 300px; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
.ch-hero-body { padding: 22px 22px 22px 0; flex: 1; }
.ch-hero-body h1 { font-size: 24px; margin: 2px 0 6px; }
.goal-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.goal-list li { display: flex; gap: 9px; align-items: flex-start; background: #f8faff;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.goal-i { font-size: 10px; font-weight: 700; color: var(--brand-d); background: var(--brand-soft);
  border-radius: 5px; padding: 2px 5px; flex: none; margin-top: 2px; letter-spacing: .06em; }
.note-line { color: var(--muted); font-size: 13px; border-left: 3px solid var(--line); padding-left: 10px; }

.step-list { padding: 8px 10px; }
.step-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); border-bottom: 1px solid #f4f6fb;
}
.step-row:last-child { border-bottom: none; }
.step-row:hover { background: #f8faff; color: var(--ink); }
.step-row.is-done { background: #f7fdfa; }
.sr-no { width: 30px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--brand-d);
  background: var(--brand-soft); border-radius: 8px; text-align: center; padding: 3px 0; }
.step-row.is-done .sr-no { background: var(--ok-soft); color: var(--ok); }
.sr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sr-main b { font-size: 14px; font-weight: 600; }
.sr-main i { font-style: normal; font-size: 12.5px; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.sr-state { font-size: 12px; color: var(--muted); flex: none; }
.step-row.is-done .sr-state { color: var(--ok); font-weight: 600; }

.hw-card { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff;
  color: var(--ink); }
.hw-card:hover { border-color: #c7d2e8; color: var(--ink); }
.hw-card h3 { font-size: 15px; margin: 2px 0 4px; }
.hw-card p { margin: 0; }
.hw-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.practice-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.practice-cta p { margin: 2px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 7px; font-size: 13.5px; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.faq { border-top: 1px dashed var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.faq p { margin: 8px 0 0 0; font-size: 13px; color: var(--muted); }

.pn-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 8px 0 32px; padding: 10px; background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow);
}

/* ---------------- 步骤页 ---------------- */
.step-head {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  margin: 8px 0 20px; padding: 20px 22px; background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(224, 231, 240, .9); border-radius: 16px;
}
.step-head h1 { font-size: clamp(23px, 2.4vw, 30px); margin: 2px 0 7px; letter-spacing: -.025em; }
.step-card { padding: 22px; }
.shot { margin: 0 0 18px; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block;
  cursor: zoom-in; background: #f6f8fd; box-shadow: 0 18px 44px -34px rgba(23, 34, 56, .55); }
.shot figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; }
.fig-no { color: var(--brand-d); font-weight: 700; }
.prompt-card { background: #f8faff; border: 1px dashed #c7d2e8; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 18px; }
.pc-label { font-size: 11.5px; color: var(--brand-d); font-weight: 700; letter-spacing: .06em; }
.prompt-card pre { margin: 8px 0 0; white-space: pre-wrap; font-family: var(--font);
  font-size: 14px; color: var(--ink-2); line-height: 1.75; }

.step-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px; }
.ops-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ops-head h2 { margin: 0; }
.acts { list-style: none; counter-reset: a; margin: 0; padding: 0; }
.act { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
  color: var(--ink); align-items: flex-start; }
.act:last-child { border-bottom: none; }
.act-i { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--brand-soft);
  color: var(--brand-d); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.tip { margin-top: 14px; background: var(--warn-soft); border-radius: 12px; padding: 12px 14px;
  border-left: 3px solid #ffc078; }
.tip b { font-size: 12px; color: var(--warn); letter-spacing: .06em; }
.tip p { margin: 4px 0 0; font-size: 13.5px; color: #8a5a1e; }
.ops.is-hidden .acts, .ops.is-hidden .tip { display: none; }

.side { display: flex; flex-direction: column; gap: 14px; }
.quote { margin: 0; padding: 14px 16px; background: #f8faff; border-left: 3px solid #a5b4fc;
  border-radius: 0 10px 10px 0; }
.quote p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); font-style: italic; line-height: 1.75; }
.quote cite { font-size: 12px; color: var(--muted); font-style: normal; }
.selfcheck-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.selfcheck-box b { font-size: 12px; color: var(--muted); letter-spacing: .06em; display: block; margin-bottom: 8px; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2);
  padding: 5px 0; cursor: pointer; }
.chk input { margin-top: 3px; accent-color: var(--brand); }

.note-card h2 { font-size: 15px; }
.note-box { margin-top: 6px; }
.note-form { display: flex; gap: 10px; align-items: flex-end; }
.note-form textarea { flex: 1; min-height: 46px; }
.note-list { list-style: none; margin: 12px 0 0; padding: 0; }
.note-list li { border-bottom: 1px dashed var(--line); padding: 9px 0; font-size: 13.5px; }
.note-list li:last-child { border-bottom: none; }
.note-body { color: var(--ink-2); white-space: pre-wrap; }
.note-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px;
  font-size: 11.5px; color: var(--muted); }
.note-list.wide li { padding: 12px 0; }
.note-item .ni-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.note-item .ni-body { color: var(--ink-2); font-size: 13.5px; }

/* 图片放大 */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .88);
  display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox .lb-close { position: absolute; top: 16px; right: 22px; color: #fff; font-size: 30px;
  line-height: 1; background: none; border: none; cursor: pointer; opacity: .8; }

/* 检索 */
.hits { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.hit { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ink); background: #fff; }
.hit:hover { border-color: #c7d2e8; background: #fafbff; color: var(--ink); }
.hit b { font-size: 14px; }
.hit span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 练习 ---------------- */
.quiz-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.qz-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: .16s; }
.qz-card:hover { transform: translateY(-2px); border-color: #cdd8f0; color: var(--ink); }
.qz-card.is-good { border-top: 3px solid var(--ok); }
.qz-card.is-mid { border-top: 3px solid #f59f00; }
.qz-card.is-low { border-top: 3px solid var(--bad); }
.qz-top { display: flex; align-items: center; justify-content: space-between; }
.qz-no { font-size: 12px; font-weight: 700; color: var(--brand-d); background: var(--brand-soft);
  border-radius: 7px; padding: 2px 8px; }
.qz-card h3 { font-size: 15px; margin: 2px 0 0; }
.qz-card p { margin: 0; }
.qz-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.qz-foot span:last-child { color: var(--brand-d); font-weight: 600; }

.quiz-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-intro h1 { font-size: 22px; margin: 4px 0 6px; }
.quiz-timer { font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 700;
  color: var(--brand-d); background: var(--brand-soft); border-radius: 10px; padding: 8px 14px; }

.q-list { list-style: none; margin: 0 0 20px; padding: 0 0 70px; display: flex; flex-direction: column; gap: 14px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); }
.q-stem { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
.q-no { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--brand-soft);
  color: var(--brand-d); font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.q-type { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; margin-right: 8px; vertical-align: middle; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: .12s; background: #fff; }
.opt:hover { border-color: #c7d2e8; background: #fafbff; }
.opt input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-d);
  font-weight: 500; }
.opt-k { font-weight: 700; color: var(--muted); font-size: 13px; flex: none; }
.opt:has(input:checked) .opt-k { color: var(--brand-d); }
.opts-inline { grid-auto-flow: column; justify-content: start; }
.opts-inline .opt { min-width: 120px; }
.hint { color: var(--muted); margin: 8px 0 0; }
.q-fill { max-width: 420px; }
.q-ref { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.ord-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ord { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink-2); cursor: grab; }
.ord.dragging { opacity: .45; }
.ord-grip { color: #c3ccdd; font-size: 14px; letter-spacing: -2px; flex: none; }
.ord-t { flex: 1; }
.ord-btns { display: flex; gap: 4px; flex: none; }
.ord-btns button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer; font-size: 13px; line-height: 1; }
.ord-btns button:hover { background: var(--brand-soft); border-color: #c7d2e8; color: var(--brand-d); }

.quiz-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: sticky; bottom: 12px; }
.quiz-submit-btns { display: flex; gap: 10px; }

.result-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-left: 4px solid var(--brand); }
.result-hero.is-good { border-left-color: var(--ok); }
.result-hero.is-mid { border-left-color: #f59f00; }
.result-hero.is-low { border-left-color: var(--bad); }
.result-hero h1 { font-size: 40px; letter-spacing: -.03em; margin: 2px 0 4px; }
.result-hero h1 i { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 4px; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.q-list.result .q-result { background: #fff; border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.q-result.ok { border-left-color: var(--ok); }
.q-result.bad { border-left-color: var(--bad); }
.qr-head { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.qr-flag { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none; }
.q-result.ok .qr-flag { background: var(--ok-soft); color: var(--ok); }
.q-result.bad .qr-flag { background: var(--bad-soft); color: var(--bad); }
.qr-row { display: flex; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.qr-row span { color: var(--muted); min-width: 64px; flex: none; }
.qr-row b.ok, b.ok { color: var(--ok); }
.qr-row b.bad, b.bad { color: var(--bad); }
.qr-exp { font-size: 13px; color: var(--ink-2); background: #f8faff; border-radius: 9px;
  padding: 9px 12px; margin-top: 8px; line-height: 1.7; }

.todo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* ---------------- 学情 ---------------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chart { display: block; max-width: 100%; overflow: visible; }
.spark { vertical-align: middle; }
.report { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.report h2 { font-size: 16px; color: var(--ink); margin: 18px 0 6px; }
.report h3 { font-size: 15px; color: var(--ink); margin: 14px 0 5px; }
.report p { margin: 0 0 .6em; }
.report ul, .report ol { margin: .3em 0 .9em 1.2em; padding: 0; }
.report li { margin-bottom: .25em; }
.report blockquote { margin: .6em 0; padding: 8px 14px; background: #f8faff;
  border-left: 3px solid #c9d4ea; border-radius: 0 8px 8px 0; font-size: 13.5px; }
.report code { background: #f1f4fa; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.notes-mini { list-style: none; margin: 0; padding: 0; }
.notes-mini li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); font-size: 13px; }
.notes-mini li:last-child { border-bottom: none; }
.notes-mini b { color: var(--brand-d); font-size: 11.5px; letter-spacing: .04em; }
.notes-mini span { color: var(--ink-2); }
.ai-form { display: flex; gap: 8px; align-items: center; }
.ai-form select { width: auto; }
.ai-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.ai-actions form { margin: 0; }
.ai-actions > .muted { flex: 1 1 260px; margin-left: 4px; line-height: 1.55; }

/* ---------------- 讨论区 ---------------- */
.post-form textarea { min-height: 76px; }
.post-form .up-actions { justify-content: space-between; margin-top: 10px; }
.board { display: flex; flex-direction: column; gap: 14px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); }
.post.is-pinned { border-color: #ffe0b2; background: #fffdf8; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand-d); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.post-head b { font-size: 14px; }
.post-head i { display: block; font-style: normal; }
.post-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.post-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.replies { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.reply { padding: 7px 0 7px 14px; border-left: 2px solid #eef1f8; margin-bottom: 8px; }
.rp-head { display: flex; align-items: center; gap: 8px; }
.rp-head b { font-size: 13px; }
.rp-body { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.no-reply { padding: 4px 0; }
.reply-form { display: flex; gap: 8px; margin-top: 10px; }
.reply-form input { flex: 1; }
.link-btn { border: none; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer;
  padding: 0; font-family: inherit; }
.link-btn:hover { color: var(--brand-d); }
.link-danger { border: none; background: none; color: #c9a2a2; font-size: 12.5px; cursor: pointer;
  padding: 0; font-family: inherit; }
.link-danger:hover { color: var(--bad); }

/* ---------------- 打印版 ---------------- */
.print-body { background: #fff; color: #111; }
.p-step { border-top: 2px solid #4c6ef5; margin: 26px 0; padding-top: 12px; break-inside: avoid; }
.p-step h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.p-step h3 span { background: #4c6ef5; color: #fff; width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; font-size: 13px; }
.p-lead { color: #444; font-size: 14px; }
.p-shot img { width: 100%; border: 1px solid #ddd; border-radius: 6px; }
.p-shot figcaption { font-size: 12px; color: #666; margin-top: 4px; }
.p-card { background: #f7f8fb; border: 1px dashed #ccc; border-radius: 6px; padding: 10px;
  white-space: pre-wrap; font-size: 13px; }
.p-acts { font-size: 13.5px; line-height: 1.8; padding-left: 22px; }
.p-tip { font-size: 13px; color: #7a4b00; background: #fff8ec; border-radius: 6px; padding: 8px 10px; }
.p-quote { font-size: 13px; color: #555; font-style: italic; border-left: 3px solid #ccc; padding-left: 10px; }

/* ---------------- 登录页 ---------------- */
.pick-field select {
  border-color: #a5b4fc; background: #f8faff; font-weight: 600; color: var(--brand-d);
  cursor: pointer;
}
.pick-hint { margin: 2px 0 0; }
.auth-card .pick-field + .field { margin-top: 4px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-cols { grid-template-columns: 1fr; }
  .quiz-cols, .two-col { grid-template-columns: 1fr; }
  .ch-hero { flex-direction: column; align-items: stretch; }
  .ch-hero-cover { width: 100%; }
  .ch-hero-body { padding: 0 20px 20px; }
}
@media (max-width: 760px) {
  .main.wide { width: calc(100% - 24px); }
  .ch-grid { grid-template-columns: 1fr; }
  .lh-text h1 { font-size: 26px; }
  .learn-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .lh-right { align-self: flex-end; }
  .step-head { flex-direction: column; align-items: flex-start; padding: 18px; }
  .step-head .btn { width: 100%; }
  .quiz-submit { position: static; flex-direction: column; align-items: stretch; }
  .quiz-submit-btns { justify-content: stretch; }
  .quiz-submit-btns .btn { flex: 1; }
  .search-form { flex-wrap: wrap; }
  .search-form .btn { width: 100%; }
  .pn-row { flex-wrap: wrap; }
  .pn-row .btn { flex: 1 1 40%; }
  .pn-row > span { display: none; }
  .post-tools { flex-direction: column; align-items: flex-end; gap: 4px; }
  .ai-actions { align-items: stretch; }
  .ai-actions > .btn, .ai-actions form, .ai-actions form .btn { width: 100%; }
  .ai-actions > .muted { flex-basis: 100%; margin-left: 0; }
  .opts-inline { grid-auto-flow: row; }
  .q-stem { font-size: 15px; }
}

/* ---------- 本章素材包 ---------- */
.pack-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pack-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid #e6eaf2; border-radius: 10px; background: #fff; }
.pack-row:hover { border-color: #cdd8f0; }
.pack-ico { color: #2b57d5; display: flex; }
.pack-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pack-main b { font-size: 14px; word-break: break-all; }
.pack-main i { font-style: normal; font-size: 12px; color: #6b7280; }
.pack-size { white-space: nowrap; }
.pack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pack-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid #e6eaf2; border-radius: 999px; font-size: 12.5px; color: #1f2937;
  background: #fff; text-decoration: none; }
.pack-chip i { font-style: normal; color: #9ca3af; font-size: 11px; }
.pack-chip:hover { border-color: #cdd8f0; background: #f7f9ff; }
