/* 视图层样式：卡片、倒计时、思维导图、页面浏览器、题目、热力图、表单、二维码。
 * 约定：移动优先单列；所有可点元素 >= 44px；只用 :active/:focus-visible，不依赖 :hover。 */

/* hidden 属性必须压过组件自身的 display（例如 .pill 的 inline-flex） */
[hidden] { display: none !important; }

/* 路由会把焦点交给 #view（tabindex=-1），去掉容器默认焦点框（不是可交互元素） */
#view:focus, #view:focus-visible { outline: none; }

/* 主/次按钮统一至少 44px 可点高度 */
.btn { min-height: 44px; }
.btn.mini { min-height: 40px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.active { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.linkbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  border: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer;
}
.linkbtn:active { opacity: .7; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ---------------- 通用块 ---------------- */
.stack-sm { display: block; }
.stack-sm > * + * { margin-top: 8px; }
.stack-sm .card + .card { margin-top: 8px; }
.section { padding: 14px; }
.section-head { margin-bottom: 10px; gap: 8px; align-items: flex-start; }
.section-head h3 { font-size: 15.5px; }
.section-body > * + * { margin-top: 10px; }
.tipslist { padding-left: 1.15em; font-size: 14px; color: var(--ink-2); }
.tipslist li { margin: 4px 0; }
.inline-error {
  background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 12px; padding: 10px 12px;
}
.inline-error p { margin-bottom: 6px; }
.inline-error p:last-child { margin-bottom: 0; }

/* ---------------- 错误卡 / 空状态 ---------------- */
.errorcard { text-align: center; padding: 22px 16px; }
.errorcard-ic {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  background: #fef2f2; color: var(--bad); font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.errorcard-msg { margin-top: 6px; word-break: break-word; }
.errorcard-hint { margin-top: 6px; }
.errorcard-actions { margin-top: 14px; justify-content: center; }
.emptystate-ic { font-size: 30px; color: var(--ink-3); margin-bottom: 6px; }
.emptystate .btn { margin-top: 10px; }
.skeletonbox { padding: 16px; }
.skline { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #eef1f6, #e2e8f0, #eef1f6); margin: 10px 0; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------------- 环形进度 ---------------- */
.ringwrap { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ring { transform: rotate(0deg); }
.ring-fg { transition: stroke-dashoffset .4s ease; }
.ring-text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.ring-text b { font-size: 15px; font-weight: 800; }
.ring-text i { font-size: 9px; font-style: normal; color: var(--ink-3); }
.ring-label { position: absolute; font-size: 11px; color: var(--ink-3); }

/* ---------------- 进度行 ---------------- */
.pline + .pline { margin-top: 8px; }
.pline-top { margin-bottom: 4px; }

/* ---------------- 星星 / 徽标 / 文件类型 ---------------- */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.stars i { font-style: normal; color: #e2e8f0; font-size: 13px; }
.stars i.on { color: #f59e0b; }
.kindicon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.02em;
  background: #eef2ff; color: #3730a3;
}
.kindicon.kind-pptx { background: #fff1f2; color: #be123c; }
.kindicon.kind-pdf { background: #fef2f2; color: #b91c1c; }
.kindicon.kind-docx { background: #eff6ff; color: #1d4ed8; }
.kindicon.kind-other { background: #f1f5f9; color: #475569; }

/* ---------------- 大按钮 / 列表行 ---------------- */
.bigbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; text-align: left; cursor: pointer; color: var(--ink);
}
.bigbtn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.bigbtn:active { transform: scale(.99); }
.bigbtn-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #eef2ff; color: #3730a3; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.bigbtn.primary .bigbtn-ic { background: rgba(255,255,255,.18); color: #fff; }
.bigbtn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bigbtn-label { font-weight: 700; font-size: 15px; }
.bigbtn-hint { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.bigbtn.primary .bigbtn-hint { color: rgba(255,255,255,.8); }
.bigbtn-badge { font-size: 12px; font-weight: 700; color: var(--brand); background: #eef2ff; border-radius: 999px; padding: 2px 8px; }
.bigbtn-arrow { color: var(--ink-3); font-size: 18px; }
.bigbtn.primary .bigbtn-arrow { color: rgba(255,255,255,.9); }

.listrow {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 8px 2px; border: 0; background: transparent; text-align: left;
  border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.listrow:last-child { border-bottom: 0; }
.listrow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.listrow-ic { flex: none; font-size: 16px; color: var(--ink-3); width: 22px; text-align: center; }
.listrow-title { display: block; font-weight: 600; font-size: 14.5px; }
.listrow-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.listrow-right { flex: none; }
.listrow-arrow { color: var(--ink-3); font-size: 17px; }
.listrow:active { background: #f8fafc; }

/* ---------------- 折叠 ---------------- */
.collapse { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.collapse + .collapse { margin-top: 8px; }
.collapse-head {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px;
  padding: 10px 12px; border: 0; background: #fff; text-align: left; cursor: pointer;
}
.collapse-title { display: block; font-weight: 700; font-size: 14.5px; }
.collapse-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.collapse-chevron { transition: transform .18s ease; color: var(--ink-3); font-size: 15px; }
.collapse.open .collapse-chevron { transform: rotate(180deg); }
.collapse-body { padding: 2px 12px 12px; }
.collapse-head:active { background: #f8fafc; }

/* ---------------- 表单 ---------------- */
.field + .field { margin-top: 10px; }
.field .label { margin-top: 0; }
.field-hint { margin-top: 4px; }
.switchbox { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.switchrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.switchrow:last-child { border-bottom: 0; }
.switchrow-label { display: block; font-size: 14px; font-weight: 600; }
.switchrow-hint { display: block; margin-top: 1px; }
.switchinput { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 999px; background: #e2e8f0; position: relative; transition: background .18s ease; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: transform .18s ease; }
.switchinput:checked + .switch { background: var(--brand); }
.switchinput:checked + .switch i { transform: translateX(20px); }

/* ---------------- 热力图 ---------------- */
.heatsection { margin-top: 4px; }
.heatgrid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9px, 1fr);
  gap: 4px; overflow-x: auto; padding-bottom: 4px;
}
.heatcell { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 3px; background: #eef1f6; }
.heatcell.l1 { background: #dbeafe; }
.heatcell.l2 { background: #93c5fd; }
.heatcell.l3 { background: #3b82f6; }
.heatcell.l4 { background: #1d4ed8; }
.heatcell.future { opacity: .3; }
.heatcell.today { box-shadow: 0 0 0 1.5px var(--ink-3); }
.heatfoot { margin-top: 6px; align-items: center; }
.heatlegend { display: inline-flex; align-items: center; gap: 3px; }
.heatlegend .heatcell { width: 11px; height: 11px; aspect-ratio: auto; }

/* ---------------- 统计小块 ---------------- */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stattile {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px; text-align: center; flex: none;
}
.stattile b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.stattile b i { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 2px; font-weight: 600; }
.stattile span { display: block; margin-top: 2px; }
.stattile.mini { padding: 6px 10px; text-align: center; }
.stattile.mini b { font-size: 18px; }
.stattile.bad b { color: var(--bad); }

/* ---------------- 倒计时 ---------------- */
.countdown-block { display: block; }
.hero {
  display: block; position: relative; overflow: hidden;
  padding: 18px 18px 16px calc(18px + 3px);
  border-radius: 20px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, .35), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .22);
  border-left: 4px solid var(--tint, var(--brand-2));
}
.hero:active { transform: scale(.995); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-label { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.72); text-transform: uppercase; }
.hero-credit { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); }
.hero-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.hero-count { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hero-count b { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.hero-count span { font-size: 14px; color: rgba(255,255,255,.78); }
.hero-count.done b { font-size: 30px; }
.hero-date { margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.hero-cta { margin-top: 14px; font-size: 14px; font-weight: 700; color: #fff; }
.hero-plan { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.82); }
.subjecthero .hero-count b { font-size: 40px; }
.examchips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scroll-snap-type: x proximity; }
.examchip {
  flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px;
  min-width: 86px; min-height: 52px; padding: 8px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.examchip:active { background: #f8fafc; }
.examchip-name { font-size: 13px; font-weight: 700; }
.examchip-days { font-size: 12px; color: var(--ink-3); }
.examchip.warn .examchip-days { color: var(--warn); font-weight: 700; }

/* ---------------- 今天 ---------------- */
.todayview > * + * { margin-top: 12px; }
.taskcard { padding-bottom: 12px; }
.tasklist { margin-top: 2px; }
.taskrow {
  display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 2px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.taskrow:last-child { border-bottom: 0; }
.taskrow:active { background: #f8fafc; }
.taskrow-ic {
  flex: none; width: 36px; height: 36px; border-radius: 11px; background: #eef2ff; color: #3730a3;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.taskrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.taskrow-title { font-weight: 700; font-size: 15px; }
.taskrow-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.taskrow-count {
  font-size: 13px; font-weight: 800; color: var(--brand); background: #eef2ff;
  border-radius: 999px; padding: 2px 9px;
}
.taskrow-start { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.weekbox { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.weekbox .bar { margin-top: 4px; }
.streakpill { font-size: 12px; }
.continuecard { display: block; color: var(--ink); border-left: 4px solid var(--brand); }
.continuetitle { font-size: 16px; margin-top: 2px; }
.continuetogo { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.streakgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.newlist .listrow { padding-left: 0; padding-right: 0; }
.jobhint { display: flex; align-items: center; gap: 10px; }
.jobhint-ic { font-size: 18px; color: var(--warn); }
.jobhint-arrow { color: var(--ink-3); font-size: 18px; }
.todayfoot { text-align: center; margin-top: 10px; }

/* ---------------- 科目列表 ---------------- */
.subjectgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.subjectcard { display: block; color: var(--ink); border-left: 4px solid var(--tint, var(--brand)); padding: 12px 14px; }
.subjectcard:active { background: #f8fafc; }
.subjectcard + .subjectcard { margin-top: 0; }
.subjectcard-main { display: flex; align-items: center; gap: 12px; }
.subjectcard-titlebox { min-width: 0; }
.subjectcard-name { font-size: 16.5px; }
.subjectcard-meta { margin-top: 3px; }
.subjectcard-pills { margin-top: 7px; gap: 6px; }
.subjectcard-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.subjectcard-bars .pline { margin: 0; }
.subjectcard-bars .pline + .pline { margin-top: 0; }
.subjectcard-empty { background: #f8fafc; border-left-color: var(--line); box-shadow: none; }
.subjectcard-empty .subjectcard-name { color: var(--ink-2); }
.subjectcard-empty:active { background: #f1f5f9; }
.emptybadge { font-size: 22px; opacity: .5; }
.subjectcard-go { margin-top: 6px; color: var(--brand); }
.subjectssummary { padding: 14px; }
.subjectssummary h3 { font-size: 17px; }
.subject-actions { display: flex; gap: 8px; }
.subject-actions .btn { min-height: 48px; }
.planbox { border-left: 4px solid var(--ok); }
.plantitle { font-size: 16px; margin-top: 2px; }
.planstats { display: flex; gap: 8px; }
.preplist .prepitem + .prepitem { margin-top: 10px; }
.prepitem-title { font-size: 13.5px; }
.prepitem-text { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.preptext { font-size: 14px; color: var(--ink-2); }

/* ---------------- 章节卡 ---------------- */
.chapterlist { display: block; }
.chapterwrap + .chapterwrap { margin-top: 10px; }
.chaptercard { display: block; color: var(--ink); padding: 12px 14px; }
.chaptercard:active { background: #f8fafc; }
.chaptercard-head { display: flex; align-items: flex-start; gap: 10px; }
.chaptercard-title { font-size: 15.5px; line-height: 1.35; }
.chaptercard-bars { margin-top: 10px; }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tribar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.tribar-label { font-size: 11.5px; color: var(--ink-3); }
.tribar-val { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.tribar.empty .tribar-val { color: var(--ink-3); }
.tribar.empty .bar { background: #f1f5f9; }
.chaptercard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.chaptercard-tags { gap: 5px; flex: 1; min-width: 0; }
.chaptercard-go { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.duplist { display: block; }
.dupitem { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.dupitem:last-child { border-bottom: 0; }
.dupitem-title { font-size: 13.5px; }
.dupitem-arrow { color: var(--ink-3); }

/* ---------------- 思维导图 ---------------- */
.mindmapwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mm-root, .mm-children { list-style: none; margin: 0; padding: 0; }
.mm-children { margin-left: 12px; padding-left: 12px; border-left: 1px dashed #dbe1ea; }
.mm-node { position: relative; padding: 1px 0; }
.mm-children > .mm-node::before {
  content: ""; position: absolute; left: -12px; top: 22px; width: 10px; height: 1px;
  background: #dbe1ea;
}
.mm-row {
  display: flex; align-items: flex-start; gap: 6px; padding: 8px 8px;
  border-radius: 10px; min-height: 44px;
}
.mm-row:active { background: #f5f7fb; }
.mm-toggle {
  flex: none; width: 28px; height: 28px; margin-top: 0; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.mm-dot { flex: none; width: 28px; display: inline-flex; justify-content: center; color: #94a3b8; font-size: 8px; margin-top: 6px; }
.mm-dot::before { content: "●"; }
.mm-text { min-width: 0; display: block; }
.mm-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.mm-note { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 1px; word-break: break-word; }
.mm-node.depth-0 > .mm-row { background: #eef2ff; }
.mm-node.depth-0 > .mm-row .mm-title { font-size: 15px; font-weight: 800; color: #1e3a8a; }
.mm-node.depth-1 > .mm-row .mm-title { font-weight: 700; }
.mm-node.depth-2 > .mm-row .mm-title, .mm-node.depth-3 > .mm-row .mm-title { font-weight: 500; color: var(--ink-2); }
.mm-tools .btn.mini { min-height: 40px; }

/* ---------------- 章节页头 / 三入口 ---------------- */
.chapterhead { padding: 12px 14px; }
.chapterhead-top { gap: 10px; align-items: flex-start; }
.chapterhead-title { font-size: 17px; line-height: 1.35; }
.chapterhead-status { flex: none; }
.chapterhead-progress { margin-top: 10px; }
.chapterhead-progress .bar { margin-top: 4px; }
.chapterhead-job { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chapterhead-actions { margin-top: 10px; gap: 8px; }
.chapterhead.is-manualdone { border-left: 4px solid var(--ok); }
.chaptertabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chaptertab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 82px; padding: 10px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left;
  color: var(--ink-2);
}
.chaptertab:active { transform: scale(.985); }
.chaptertab-ic { font-size: 16px; line-height: 1; margin-bottom: 2px; color: var(--ink-3); }
.chaptertab-label { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.chaptertab-hint { font-size: 11px; color: var(--ink-3); }
.chaptertab[aria-selected="true"] {
  border-color: var(--brand); background: #eef2ff;
  box-shadow: 0 2px 10px rgba(29, 78, 216, .14);
}
.chaptertab[aria-selected="true"] .chaptertab-label { color: #1e3a8a; }
.chaptertab[aria-selected="true"] .chaptertab-ic { color: var(--brand); }
.chaptercontent > * + * { margin-top: 12px; }
.genprompt { text-align: center; padding: 20px 16px; }
.genprompt h3 { font-size: 16px; }
.genprompt p { margin: 8px 0 14px; }
.genprompt-actions { justify-content: center; gap: 8px; }

/* ---------------- 回忆卡 ---------------- */
.recallsummary { background: #f0f7ff; border: 1px solid #dbeafe; }
.recallsummary-text { margin-top: 4px; font-size: 15px; line-height: 1.7; color: #1e3a8a; }
.pointgroup + .pointgroup { margin-top: 12px; }
.pointgroup-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pointlist { display: block; }
.pointcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.pointcard + .pointcard { margin-top: 8px; }
.pointcard-head { align-items: flex-start; gap: 8px; }
.pointcard-title { font-size: 14.5px; line-height: 1.45; }
.pointcard-detail { margin-top: 5px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.pointcard-foot { margin-top: 7px; gap: 6px; }
.pointcard-page { font-weight: 600; }
.conceptgrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.conceptcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.conceptcard-term { font-size: 14.5px; color: #1e3a8a; }
.conceptcard-def { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.conceptcard-mini { margin-top: 3px; }
.conceptcard-page { display: inline-block; margin-top: 6px; font-weight: 600; }
.qabody { padding: 2px 0; }
.qaanswer { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.casestem { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.caseqs { margin: 8px 0; font-size: 13.5px; color: var(--ink-2); }
.caseanalysis { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.recall-actions { gap: 8px; }

/* ---------------- 逐页精讲 ---------------- */
.pageview { display: block; padding-bottom: 96px; /* 给底部翻页条留出空间，避免盖住比喻/易错提醒 */ }
.pageview > * + * { margin-top: 10px; }
.pageview-top { padding: 12px 14px; }
.pageview-counter { font-size: 16px; }
.pageview-tools { flex: none; }
.pageview-title { min-height: 0; }
.downloadlink { flex: none; }
.pagecard { padding: 12px; }
.pagefigwrap { margin: -2px 0 10px; }
.pageimg-holder { position: relative; border-radius: 12px; background: #f1f5f9; overflow: hidden; }
.pageimg-sk {
  position: absolute; inset: 0; background: linear-gradient(90deg, #eef1f6, #e2e8f0, #eef1f6);
  animation: sk 1.4s ease-in-out infinite;
}
.pageimg { display: block; width: 100%; height: auto; position: relative; z-index: 1; opacity: 0; transition: opacity .2s ease; }
.pageimg.loaded { opacity: 1; }
.pageimg.failed { display: none; }
.pageimg-fallback { text-align: center; padding: 18px 10px; background: #f8fafc; border-radius: 12px; }
.pageimg-fallback p:first-child { font-weight: 700; color: var(--ink-2); }
.pagecap { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.pagesec { margin-top: 12px; }
.pagesec-title { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.pagetext-pre {
  margin: 0; font-family: inherit; font-size: 14px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow-y: auto;
  background: #f8fafc; border-radius: 10px; padding: 10px 12px;
}
.notesbox { margin-top: 8px; }
.notesbox summary { min-height: 40px; display: flex; align-items: center; font-size: 13px; color: var(--brand); font-weight: 600; cursor: pointer; }
.notesbox p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.pagesec-ai .pageexplain { font-size: 14px; line-height: 1.75; color: var(--ink); }
.metaphor {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.6; color: #92400e;
}
.metaphor-ic { flex: none; }
.pageactions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pageknow { flex: 1; }
.pageknow.done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pageread-badge { flex: none; }
.pagesentinel { height: 1px; margin-top: 6px; }
.pagenavbar {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 25;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  padding: 8px; border-radius: 16px; background: rgba(255,255,255,.97);
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15,23,42,.14);
  backdrop-filter: blur(8px);
}
.pagenav-btn { min-height: 46px; padding: 0 10px; font-size: 14px; }
.pagenav-jumpwrap { display: flex; align-items: center; gap: 4px; }
.pageinput { width: 62px; min-height: 46px; text-align: center; padding: 6px; }
.pagenav-jump { min-height: 46px; padding: 0 10px; font-size: 13px; }
.pageview-endjump { display: block; width: 100%; text-align: center; }

/* 章末 */
.chapterend { padding: 14px; border-left: 4px solid var(--vr, var(--brand)); }
.chapterend-head h3 { font-size: 17px; }
.chapterend-summary {
  margin-top: 8px; background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; line-height: 1.7; color: #1e3a8a;
}
.chapterend-block { margin-top: 12px; }
.chapterend-block h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.conceptlist { display: block; }
.caselist { display: block; }
.casecard { border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px; }
.casecard + .casecard { margin-top: 8px; }
.casecard summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.casecard-stem { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.casecard-qs { margin: 8px 0; font-size: 13.5px; color: var(--ink-2); }
.casecard-analysis { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 8px; margin: 8px 0; }
.chapterend-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chapterend .downloadlink { margin-top: 10px; }

/* ---------------- 刷题 ---------------- */
.quizcard { padding: 14px; }
.quizhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.quizhead-meta { gap: 6px; flex: 1; min-width: 0; }
.quizstem { font-size: 16.5px; line-height: 1.6; }
.quizopts { margin-top: 12px; display: block; }
.quizopt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 52px;
  padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; text-align: left; cursor: pointer; font-size: 14.5px; line-height: 1.5;
  color: var(--ink);
}
.quizopt:active { background: #f8fafc; }
.quizopt-key {
  flex: none; width: 24px; height: 24px; border-radius: 7px; background: #f1f5f9;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--ink-2); margin-top: 1px;
}
.quizopt-text { flex: 1; min-width: 0; }
.quizopt.locked { cursor: default; }
.quizopt.picked { border-color: var(--brand); background: #eef2ff; }
.quizopt.correct { border-color: var(--ok); background: #ecfdf5; }
.quizopt.correct .quizopt-key { background: var(--ok); color: #fff; }
.quizopt.wrong { border-color: var(--bad); background: #fef2f2; }
.quizopt.wrong .quizopt-key { background: var(--bad); color: #fff; }
.quizfeedback { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.quizresult-head { display: flex; gap: 10px; align-items: flex-start; }
.quizresult-mark {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
  background: #ecfdf5; color: var(--ok);
}
.quizfeedback.is-wrong .quizresult-mark { background: #fef2f2; color: var(--bad); }
.quizexplain { margin-top: 10px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.quizexplain-label { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.quizexplain p { font-size: 13.5px; line-height: 1.72; color: var(--ink-2); }
.quizresult-foot { margin-top: 12px; gap: 10px; }
.pagelink { font-weight: 600; }
.quizfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.quiztypetabs { margin-bottom: 10px; }
.quiztypetabs button { min-height: 44px; }
.quizpane .quizcard { margin-top: 10px; }

/* 自评 */
.selfanswer { margin-top: 12px; }
.selfanswer-text { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.keypoints { margin-top: 8px; }
.keypoints-list { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; padding-left: 1.1em; }
.selfgrade-tip { margin: 14px 0 6px; text-align: center; }
.graderow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gradebtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 62px; padding: 8px 4px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer;
}
.gradebtn b { font-size: 15px; font-weight: 800; }
.gradebtn span { font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 1.3; }
.gradebtn:active { transform: scale(.97); }
.gradebtn:disabled { opacity: .55; }
.gradebtn.grade-1 { border-color: #fecaca; background: #fff5f5; }
.gradebtn.grade-1 b { color: var(--bad); }
.gradebtn.grade-2 { border-color: #fde68a; background: #fffbeb; }
.gradebtn.grade-2 b { color: var(--warn); }
.gradebtn.grade-3 { border-color: #bfdbfe; background: #eff6ff; }
.gradebtn.grade-3 b { color: var(--brand); }
.gradebtn.grade-4 { border-color: #a7f3d0; background: #ecfdf5; }
.gradebtn.grade-4 b { color: var(--ok); }
.selfgraded { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.quizsummary { padding: 14px; }
.quizsummary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.quizsummary-actions { gap: 8px; }

/* ---------------- 复习 ---------------- */
.reviewview > * + * { margin-top: 12px; }
.reviewhead { padding: 12px 14px; }
.reviewprogress { margin-bottom: 12px; }
.reviewprogress .bar { margin-top: 6px; }
.cardhost { display: block; }
.flipcard { padding: 16px; }
.flipcard-body { min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.reviewmeta { gap: 6px; margin-bottom: 10px; }
.flipfront-text { font-size: 22px; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.flipback { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; animation: fadeUp .2s ease; }
.flipback-label { font-size: 12px; color: var(--brand); margin-bottom: 4px; }
.flipback-text { font-size: 15px; line-height: 1.75; color: var(--ink); }
.reviewflip { margin-top: 16px; }
.reviewgrade { margin-top: 16px; }
.reviewfoot { margin-top: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reviewdone { padding: 18px 16px; text-align: center; }
.reviewdone h3 { font-size: 18px; }
.reviewdone p { margin-top: 4px; }
.gradestats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.gradestat { border-radius: 12px; padding: 10px 4px; border: 1.5px solid var(--line); }
.gradestat b { display: block; font-size: 20px; font-weight: 800; }
.gradestat span { font-size: 11px; color: var(--ink-3); }
.gradestat.grade-1 b { color: var(--bad); }
.gradestat.grade-2 b { color: var(--warn); }
.gradestat.grade-3 b { color: var(--brand); }
.gradestat.grade-4 b { color: var(--ok); }
.reviewdone-actions { justify-content: center; gap: 8px; }

/* ---------------- 错题 ---------------- */
.mistakesview > * + * { margin-top: 12px; }
.mistakeshead { padding: 12px 14px; }
.filterchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 2px; }
.filterchip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
}
.filterchip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.mistakegroup { padding: 12px 14px; }
.mistakegroup-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.mistakegroup-head h3 { font-size: 16px; }
.mistakechapter + .mistakechapter { margin-top: 14px; }
.mistakechapter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mistakechapter-head h4 { font-size: 14px; }
.mistakeitem { padding: 12px; box-shadow: none; border: 1px solid var(--line); }
.mistakeitem.resolved { opacity: .62; background: #f8fafc; }
.mistakehead { align-items: flex-start; gap: 8px; }
.mistakehead-meta { gap: 6px; }
.mistakestem { margin-top: 8px; font-size: 14.5px; line-height: 1.6; font-weight: 600; }
.mistakeopts { list-style: none; margin: 10px 0 0; padding: 0; }
.mistakeopt { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.mistakeopt-key { flex: none; width: 20px; color: var(--ink-3); font-weight: 700; }
.mistakeopt.correct { color: var(--ok); font-weight: 700; }
.mistakeopt.correct .mistakeopt-key { color: var(--ok); }
.answers { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.answers-row { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.6; margin: 3px 0; }
.answers-label { flex: none; color: var(--ink-3); font-size: 12px; padding-top: 2px; }
.answers-mine { color: var(--bad); }
.answers-right { color: var(--ok); font-weight: 600; }
.mistakeexplain { margin-top: 8px; }
.mistakeexplain summary { min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--brand); cursor: pointer; }
.mistakeexplain p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.mistakeactions { margin-top: 10px; gap: 8px; }
.retrybox { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.retryopt { margin-bottom: 6px; }
.retryresult { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; }
.retryresult b { font-size: 14px; }
.retryresult.is-right { background: #ecfdf5; }
.retryresult.is-right b { color: var(--ok); }
.retryresult.is-wrong { background: #fef2f2; }
.retryresult.is-wrong b { color: var(--bad); }
.reasonpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reasonbtn { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.reasonbtn.active { border-color: var(--brand); background: #eef2ff; color: #1e3a8a; }

/* ---------------- 我的 ---------------- */
.meview > * + * { margin-top: 12px; }
.quickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quickcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 84px; padding: 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}
.quickcard:active { background: #f8fafc; }
.quickcard-ic { font-size: 20px; }
.quickcard b { font-size: 14px; }
.statbars { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.statbar + .statbar { margin-top: 12px; }
.statbar-name { font-size: 14px; font-weight: 700; }
.statbar .pline { margin-top: 6px; }
.weaklist { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.weakitem { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.weakitem:last-child { border-bottom: 0; }
.weakitem-arrow { color: var(--ink-3); }
.metarow { display: flex; gap: 10px; font-size: 13.5px; padding: 4px 0; }
.metarow-label { flex: none; width: 68px; color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
.metarow-value { flex: 1; min-width: 0; word-break: break-all; }
.materials-actions { gap: 8px; margin-top: 4px; }
.joblist .jobrow + .jobrow { border-top: 1px solid var(--line); }
.jobrow { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.jobrow-main { flex: 1; min-width: 0; }
.jobrow-title { font-size: 13.5px; }
.jobrow-sub { margin-top: 2px; gap: 8px; }
.jobrow-sub .muted:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobrow .bar { margin-top: 6px; }
.jobbar-indet { width: 40% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: 0; } 50% { margin-left: 55%; } 100% { margin-left: 0; } }
.jobrow-cancel { flex: none; }
.switchbox { margin-top: 10px; }
.settings-actions { gap: 8px; margin-top: 12px; }
.testout { margin-top: 8px; }
.genrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.genrow .field + .field { margin-top: 0; }
.genrow .label { font-size: 11.5px; }
.usageline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mefoot { text-align: center; margin-top: 6px; }

/* ---------------- 手机连接 ---------------- */
.connectview > * + * { margin-top: 12px; }
.addrcard { padding: 14px; }
.addressrow { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.addressrow:last-child { border-bottom: 0; }
.addressrow-label { flex: none; width: 62px; color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.addressrow-value { flex: 1; min-width: 0; font-size: 13.5px; word-break: break-all; }
.warnbox { margin-top: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; }
.warnbox p { color: #92400e; }
.qrcard { display: grid; grid-template-columns: 138px 1fr; gap: 14px; align-items: center; padding: 14px; }
.qrbox {
  width: 138px; height: 138px; padding: 6px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qrbox svg { width: 100%; height: auto; display: block; }
.qrloading, .qrfail { font-size: 12px; color: var(--ink-3); text-align: center; }
.qrurl { margin-top: 4px; font-size: 13.5px; word-break: break-all; color: var(--ink); font-weight: 600; }
.qrmanualhost { margin-top: 4px; }
.urlrowcard { padding: 12px 14px; }
.installcard { padding: 12px 14px; }
.qrfallback { padding: 14px; }
.stepitem { display: flex; gap: 10px; align-items: flex-start; }
.stepitem + .stepitem { margin-top: 12px; }
.stepnum {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: #1e3a8a;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.stepitem b { font-size: 14px; }
.stepitem .tipslist { margin-top: 6px; }

/* ---------------- 桌面/平板（仍单列为主，宽屏两列） ---------------- */
@media (min-width: 720px) {
  .subjectgrid { grid-template-columns: 1fr 1fr; }
  .conceptgrid { grid-template-columns: 1fr 1fr; }
  .statgrid { grid-template-columns: repeat(6, 1fr); }
  .quizsummary-grid { grid-template-columns: repeat(4, 1fr); }
  .pagecard { padding: 16px; }
  .pageimg-holder { max-width: 760px; margin: 0 auto; }
  .pagenavbar { max-width: 620px; margin: 0 auto; }
  .qrcard { grid-template-columns: 160px 1fr; }
  .qrbox { width: 160px; height: 160px; }
  .hero-count b { font-size: 56px; }
  .subjecthero .hero-count b { font-size: 48px; }
}
@media (min-width: 980px) {
  .todayview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .todayview > * { margin-top: 0 !important; }
  .todayview .countdown-block { grid-column: 1 / -1; }
  .todayview .todayfoot { grid-column: 1 / -1; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ================= v2：催促条 / 今日考点 / 打印导出 / 提醒设置 ================= */

/* ---------------- 催促条 ---------------- */
.nudgebanner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e;
  box-shadow: var(--shadow);
}
.nudgebanner.nudge-todo { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.nudgebanner.nudge-done { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.nudgebanner.nudge-suggest { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.nudgebanner.nudge-nudge { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.nudge-ic { flex: none; font-size: 18px; line-height: 1.3; }
.nudge-main { flex: 1; min-width: 0; }
.nudge-text { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.nudge-cta {
  display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px;
  font-size: 13px; font-weight: 800; color: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}
.nudge-close {
  flex: none; width: 40px; height: 40px; margin: -6px -4px -6px 0;
  border: 0; border-radius: 10px; background: transparent; color: inherit;
  font-size: 15px; line-height: 1; cursor: pointer; opacity: .7;
}
.nudge-close:active { opacity: 1; transform: scale(.94); }

/* ---------------- 今日考点卡 ---------------- */
.dailycard { padding: 12px 14px; border-left: 4px solid var(--brand-2); }
.dailyhead { display: flex; align-items: center; gap: 6px; }
.dailyhead .daily-pill { flex: none; }
.daily-pill { background: #e0f2fe; color: #075985; }
.daily-meta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.daily-subject { font-size: 13px; font-weight: 800; }
.daily-chapter { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-date { flex: none; }
.daily-prompt {
  margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.55;
  color: var(--ink); word-break: break-word;
}
.daily-answer {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  animation: fadeUp .18s ease;
}
.daily-actions { gap: 8px; margin-top: 10px; }
.daily-btn { min-height: 40px; }
.daily-btn.open { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.daily-empty { margin-top: 8px; }

/* ---------------- 打印导出页 ---------------- */
.exportview > * + * { margin-top: 12px; }
.exportintro { padding: 14px; }
.exportintro h3 { font-size: 17px; }
.exportintro p { margin-top: 4px; }
.exporttabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exporttab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 70px; padding: 10px 12px; border-radius: 14px; text-align: left;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
}
.exporttab:active { transform: scale(.985); }
.exporttab-ic { font-size: 16px; color: var(--ink-3); margin-bottom: 2px; }
.exporttab-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.exporttab-hint { font-size: 11px; color: var(--ink-3); }
.exporttab[aria-selected="true"] {
  border-color: var(--brand); background: #eef2ff;
  box-shadow: 0 2px 10px rgba(29, 78, 216, .14);
}
.exporttab[aria-selected="true"] .exporttab-label { color: #1e3a8a; }
.exporttab[aria-selected="true"] .exporttab-ic { color: var(--brand); }
.exporthost > * + * { margin-top: 10px; }
.exportform { padding: 14px; }
.exportform .field + .field { margin-top: 10px; }
.exportparts { padding: 14px; }
.exportparts-title { font-size: 15px; margin-bottom: 8px; }
.partchecks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.partcheck {
  display: flex; align-items: flex-start; gap: 8px; min-height: 52px;
  padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer;
}
.partcheck:active { background: #f8fafc; }
.partcheck-wide { grid-column: 1 / -1; }
.partcheck-input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand);
}
.partcheck-text { display: block; min-width: 0; }
.partcheck-text b { display: block; font-size: 14px; }
.partcheck-input:checked + .partcheck-text b { color: #1e3a8a; }
.exportactions { padding: 14px; }
.exportactions .btn.wide + p { margin: 4px 0 12px; }
.exportpreview { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); word-break: break-word; }
.exporturl { margin-top: 6px; word-break: break-all; }
.exportview .tipslist { font-size: 13.5px; }

/* ---------------- 我的：打印/提醒/小组件 ---------------- */
.extralinks { border: 1px solid var(--line); border-radius: 14px; padding: 2px 12px; background: #fff; }
.extralinks .listrow { border-bottom: 1px solid var(--line); }
.extralinks .listrow:last-child { border-bottom: 0; }
.notifybox { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.notifyactions { margin-top: 8px; }
.remindgrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.remindquiet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.remindquiet .field + .field { margin-top: 0; }
.remindactions { gap: 8px; margin-top: 4px; }
@media (min-width: 720px) {
  .remindgrid { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .partchecks { grid-template-columns: repeat(4, 1fr); }
  .partcheck-wide { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .todayview .nudgebanner,
  .todayview .dailycard { grid-column: 1 / -1; }
  .exporttabs { grid-template-columns: repeat(4, 1fr); }
}

/* ================= v4：富内容展示（导图长注释 / 页面 core·例子·易错 / 考点分块） ================= */

/* ---------------- 思维导图 v4 ---------------- */
.mindmapwrap {
  max-height: 68vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.mm-children {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 2px solid #dbe3ef;
}
.mm-children > .mm-node::before {
  left: -14px;
  width: 12px;
  height: 2px;
  background: #dbe3ef;
}
.mm-title { font-weight: 800; }
.mm-note {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.mm-node.depth-0 > .mm-row { padding: 9px 10px; }
.mm-node.depth-0 .mm-note { color: var(--ink-2); }
.mm-node.depth-3 > .mm-row .mm-title { font-weight: 600; color: var(--ink); }
.mm-node.open > .mm-row { background: rgba(238, 242, 255, .45); }

/* ---------------- 页面精讲 v4：core / 例子 / 比喻 / 易错 ---------------- */
.pagecore {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 10px;
  background: #eff6ff; border-left: 4px solid var(--brand);
}
.pagecore-label {
  flex: none; font-size: 11px; font-weight: 800; color: #1e3a8a;
  background: #dbeafe; border-radius: 6px; padding: 2px 6px; line-height: 1.6;
}
.pagecore-text { font-size: 14.5px; line-height: 1.7; color: #1e3a8a; font-weight: 600; }
.examplelist { display: block; margin-top: 10px; }
.examplecard {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: #f8fafc; margin-top: 8px;
}
.examplecard:first-child { margin-top: 0; }
.examplecard.clinic { background: #fef7f7; border-color: #fecaca; }
.examplecard.life { background: #f6fdf9; border-color: #bbf7d0; }
.examplecard-kind {
  display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px;
  padding: 1px 7px; margin-bottom: 5px; background: #e2e8f0; color: #334155;
}
.examplecard.clinic .examplecard-kind { background: #fee2e2; color: #b91c1c; }
.examplecard.life .examplecard-kind { background: #dcfce7; color: #15803d; }
.examplecard-text { font-size: 13.5px; line-height: 1.72; color: var(--ink-2); white-space: pre-wrap; }
.metaphorlist { margin-top: 10px; }
.metaphorlist .metaphor + .metaphor { margin-top: 8px; }
.pitfallbox {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.pitfall-label { display: inline-block; font-size: 11.5px; font-weight: 800; color: #c2410c; margin-bottom: 4px; }
.pitfall-text { font-size: 13.5px; line-height: 1.7; color: #9a3412; white-space: pre-wrap; }

/* ---------------- 考点分块（essence/mechanism/clinical/pitfall/memory） ---------------- */
.pointblocks { margin-top: 8px; }
.pointblock { border-top: 1px dashed var(--line); }
.pointblock:first-child { border-top: 0; }
.pointblock-label {
  display: flex; align-items: center; min-height: 40px;
  font-size: 13px; font-weight: 800; color: var(--ink-2);
  cursor: pointer; list-style: none;
}
.pointblock-label::-webkit-details-marker { display: none; }
.pointblock-label::before {
  content: "▸"; display: inline-block; width: 16px; font-size: 11px; color: var(--ink-3);
  transition: transform .15s ease;
}
.pointblock[open] > .pointblock-label::before { transform: rotate(90deg); }
.pointblock-text {
  font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
  padding: 0 4px 10px 16px; white-space: pre-wrap; word-break: break-word;
}
.pointblock-essence .pointblock-label { color: #1e3a8a; }
.pointblock-mechanism .pointblock-label { color: #3730a3; }
.pointblock-clinical .pointblock-label { color: #0e7490; }
.pointblock-pitfall .pointblock-label { color: #c2410c; }
.pointblock-memory .pointblock-label { color: #047857; }
.conceptcard-clinical {
  margin-top: 5px; font-size: 13px; line-height: 1.65; color: #0e7490;
  background: #ecfeff; border-radius: 8px; padding: 6px 9px;
}
.conceptcard-clinical-label {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: #0e7490; margin-right: 4px;
}
.chapterhead-status { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* ---------------- 刷题：未作答兜底 + 底部常驻操作栏 ---------------- */
.quiz-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.quiz-actions .btn { flex: 1; min-width: 120px; min-height: 44px; }
.quizresult-mark.reveal { background: #eff6ff; color: var(--brand); }
.quizbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
.quizbar-skip { flex: none; min-height: 44px; }
.quizbar-next { flex: 1; min-height: 44px; }
.quizbar-link { flex: none; min-height: 44px; }
.quizfoot-left { gap: 10px; align-items: center; min-height: 44px; }
.quizprev { min-height: 40px; }
.quizfoot-index { flex: none; }
@media (max-width: 420px) {
  .quizbar-skip { order: 2; flex: 0 0 auto; }
  .quizbar-next { order: 1; flex: 1 1 60%; }
  .quizbar-link { order: 3; }
}

/* ================= 可读性改造：速览优先 / 抓重点 / 字体设置 ================= */

/* ---------------- 全局阅读排版 ---------------- */
#view {
  --read-size: 16.5px;
  --read-ink: #1f2937;
  --read-ink-2: #475569;
}
#view .card { padding: 16px; }
#view .card + .card { margin-top: 14px; }
#view .stack > * + * { margin-top: 14px; }
.chaptercontent,
.pageview,
.recallpane { max-width: 760px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 12px; }
.section-head h3 {
  position: relative;
  padding-left: 11px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--read-ink);
}
.section-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.section-head p { font-size: 12.5px; }

/* 阅读正文统一字色/字号（字号跟随「阅读设置 → 字号」） */
.explain-lead,
.explain-para,
.explain-list li,
.exampoints-list li,
.recall-hero-text,
.pointcard-essence,
.pointblock-text,
.examplecard-text,
.metaphor,
.pitfall-text,
.pagecore-text,
.selfanswer-text,
.qaanswer,
.casestem,
.caseanalysis,
.conceptcard-def,
.conceptcard-clinical,
.pagetext-pre {
  font-size: var(--read-size);
  line-height: 1.75;
  color: var(--read-ink-2);
}
.explain-list li { margin: 8px 0; }
.explain-lead { color: var(--read-ink); }
.recall-hero-text {
  font-size: calc(var(--read-size) + 0.5px);
  line-height: 1.8;
  color: var(--read-ink);
}

/* ---------------- 速览 / 精读切换 ---------------- */
.readmodebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.readmode-seg {
  display: inline-flex; padding: 3px; border-radius: 999px; background: #eef1f6; gap: 2px;
  flex: none;
}
.readmode-btn {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.readmode-btn[aria-selected="true"] {
  background: #fff; color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .15);
}
.readmode-hint { flex: 1; min-width: 140px; font-size: 12px; }

/* ---------------- 本章速览卡 ---------------- */
.recall-hero {
  border-left: 4px solid var(--brand);
  background: linear-gradient(180deg, #f8fbff, #ffffff 60%);
}
.recall-hero-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.recall-hero-label {
  font-size: 13px; font-weight: 800; color: #1e3a8a;
  background: #dbeafe; border-radius: 6px; padding: 2px 8px;
}
.recall-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.recall-stat {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: #f1f5f9; border-radius: 999px; padding: 3px 10px;
}
.recall-stat.hot { background: #fffbeb; color: #b45309; }
.recall-must { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.recall-must-label { display: block; font-size: 12px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.recall-must-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mustchip {
  min-height: 40px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid #c7d2fe; background: #eef2ff; color: #1e3a8a;
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
  max-width: 100%;
}
.mustchip:active { transform: scale(.98); }

/* ---------------- 思维导图 v2：一级分支卡片 ---------------- */
.mmindmap, .mindmapwrap { max-height: 74vh; }
.mmbranchlist { display: block; }
.mmbranch {
  position: relative;
  border: 1px solid var(--line); border-left: 4px solid var(--branch-color, var(--brand));
  border-radius: 14px; padding: 12px 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.mmbranch + .mmbranch { margin-top: 12px; }
.mmbranch-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mmbranch-title { font-size: 16px; font-weight: 800; color: var(--read-ink); }
.mmbranch-count { font-size: 11.5px; color: var(--ink-3); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.mmindmap .mm-note, .mmbranch .mm-note { margin-top: 6px; }
.mmrootnote {
  padding: 10px 12px; margin-bottom: 12px; border-radius: 12px;
  background: #f8fafc; border: 1px dashed #cbd5e1;
}
.mmrootnote-label {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--brand);
  background: #eef2ff; border-radius: 5px; padding: 1px 6px; margin-bottom: 4px;
}
.mmrootnote-text { font-size: 14px; line-height: 1.65; color: var(--read-ink-2); }
.mmitems { list-style: none; margin: 10px 0 0; padding: 0; }
.mmitem { border-top: 1px dashed var(--line); padding: 10px 0 4px; }
.mmitem:first-child { border-top: 0; padding-top: 4px; }
.mmitem-head { display: flex; align-items: baseline; gap: 7px; }
.mmitem-index {
  flex: none; width: 18px; height: 18px; border-radius: 5px; background: #eef2ff;
  color: #4338ca; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(-1px);
}
.mmitem-title { font-size: 15px; font-weight: 700; color: var(--read-ink); line-height: 1.5; }
.mm-note {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--read-ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.mm-note-long { cursor: pointer; }
.mm-note.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.mm-note-more { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--brand); }
.mmleaves-toggle {
  margin-top: 6px; min-height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #f8fafc; color: var(--ink-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.mmleaves { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; }
.mmleaf {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 0 6px 8px; border-left: 2px solid #e2e8f0;
}
.mmleaf-dot {
  flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%;
  background: var(--brand-2);
}
.mmleaf-title { font-size: 14px; font-weight: 700; color: var(--read-ink); line-height: 1.5; }
.mmleaf .mm-note { font-size: 13.5px; }

/* ---------------- 考点：默认速览 + 筛选 ---------------- */
.point-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding-bottom: 4px;
}
.point-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.point-filter {
  min-height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.point-filter[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.point-count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pointlist-flat .pointcard + .pointcard { margin-top: 10px; }
.pointcard {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: #fff; transition: box-shadow .15s ease;
}
.pointcard.open { box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.pointcard-flash { animation: pointflash 1.3s ease; }
@keyframes pointflash {
  0% { box-shadow: 0 0 0 3px rgba(29, 78, 216, .35); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}
.pointcard-head { cursor: pointer; }
.pointcard-headrow { align-items: baseline; gap: 8px; }
.pointcard-title { font-size: 16px; font-weight: 800; color: var(--read-ink); line-height: 1.45; }
.pointcard-essence {
  margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px; line-height: 1.65; color: var(--read-ink-2);
}
.pointcard.open .pointcard-essence { display: block; -webkit-line-clamp: unset; overflow: visible; }
.pointcard-foot { margin-top: 8px; gap: 6px; align-items: center; }
.pointcard-more { font-size: 12px; font-weight: 800; color: var(--brand); }
.pointbody {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.pointblock { margin-top: 10px; }
.pointblock:first-child { margin-top: 0; }
.pointblock-label {
  font-size: 13px; font-weight: 800; margin-bottom: 4px;
  color: var(--ink-2); letter-spacing: .02em;
}
.pointblock-label::before { content: "▪ "; color: var(--brand); }
.pointblock-essence .pointblock-label { color: #1e3a8a; }
.pointblock-mechanism .pointblock-label { color: #3730a3; }
.pointblock-clinical .pointblock-label { color: #0e7490; }
.pointblock-pitfall .pointblock-label { color: #c2410c; }
.pointblock-memory .pointblock-label { color: #047857; }
.pointblock-text {
  font-size: var(--read-size); line-height: 1.75; color: var(--read-ink-2);
  padding-left: 4px; white-space: pre-wrap; word-break: break-word;
}
.pointcard-detail { font-size: var(--read-size); line-height: 1.75; color: var(--read-ink-2); }
.conceptcard-def { color: var(--read-ink-2); }

/* ---------------- 逐页精讲：core / 分段 / 例子 / 比喻 / 易错 ---------------- */
.pagefigwrap { margin-bottom: 16px; }
.pagecap { margin-top: 8px; }
.pagecore {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 12px;
  background: #eef6ff; border-left: 5px solid var(--brand);
}
.pagecore-label {
  align-self: flex-start; font-size: 11px; font-weight: 800; color: #1e3a8a;
  background: #dbeafe; border-radius: 6px; padding: 1px 8px;
}
.pagecore-text {
  font-size: calc(var(--read-size) + 0.5px) !important;
  font-weight: 700 !important; line-height: 1.7 !important;
  color: #172554 !important;
}
.explain-lead { margin-bottom: 8px; }
.explain-list { padding-left: 1.35em; margin: 6px 0; }
.explain-list li { margin: 8px 0; }
.explain-paras .explain-para + .explain-para { margin-top: 8px; }
.exampoints {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.exampoints-label {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: #c2410c;
  background: #ffedd5; border-radius: 6px; padding: 1px 8px; margin-bottom: 6px;
}
.exampoints-list { margin: 0; padding-left: 1.2em; }
.exampoints-list li { margin: 6px 0; color: #9a3412; }
.ai-expand {
  margin-top: 12px; width: 100%; min-height: 44px;
  border: 1px dashed #c7d2fe; background: #f8faff; color: #1e3a8a;
  font-weight: 700;
}
.ai-rest { margin-top: 4px; }
.examplelist { margin-top: 12px; display: grid; gap: 10px; }
.examplecard { margin-top: 0; padding: 12px 14px; border-radius: 12px; }
.examplecard-kind {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px;
}
.examplecard-ic { font-size: 12px; }
.examplecard-text { font-size: calc(var(--read-size) - 1.5px) !important; line-height: 1.7 !important; }
.metaphorlist { display: grid; gap: 8px; margin-top: 12px; }
.metaphor {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.metaphor-ic { flex: none; }
.pitfallbox {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff7ed; border-left: 5px solid #ea580c; border-top: 1px solid #fed7aa;
  border-right: 1px solid #fed7aa; border-bottom: 1px solid #fed7aa;
}
.pitfall-label {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: #c2410c;
  background: #ffedd5; border-radius: 6px; padding: 1px 8px; margin-bottom: 5px;
}
.pitfall-text { color: #7c2d12 !important; }
.pagesec-title { font-size: 14px; font-weight: 800; color: var(--read-ink); margin-bottom: 8px; }
.pagetext-pre { font-size: calc(var(--read-size) - 1px); line-height: 1.8; }

/* ---------------- 我的：阅读设置卡 ---------------- */
.reading-head { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.reading-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reading-row-label { flex: none; width: 64px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.reading-seg { background: #eef1f6; }
.reading-sample {
  padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px dashed var(--line);
}
.reading-sample-label { display: block; margin-bottom: 4px; }
.reading-preview { font-size: var(--read-size); line-height: 1.75; color: var(--read-ink); }

@media (min-width: 720px) {
  .explain-list li { margin: 10px 0; }
  .mmbranch { padding: 14px 16px; }
  .pointcard { padding: 14px 16px; }
}
@media (max-width: 420px) {
  .readmode-btn { padding: 0 13px; font-size: 13.5px; }
  .point-count { margin-left: 0; }
  .mmbranch-title { font-size: 15.5px; }
}

/* ================= P11b 微调：摘要 4 行 clamp / 原文折叠卡 / 原图看大图 ================= */

/* ---------------- 本章速览 summary ---------------- */
.recall-hero-summary { position: relative; }
.recall-hero-text {
  font-size: calc(var(--read-size) - 0.5px) !important;   /* 标准字号 16px */
  line-height: 1.7 !important;
  color: var(--read-ink) !important;
}
.recall-hero-text.clamp4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recall-hero-text.clamp4.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.recall-summary-toggle {
  margin: 2px 0 -4px;
  padding: 0;
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------------- 本页原文：muted 折叠卡 ---------------- */
.pagesec-text {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.pagesec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}
.pagesec-summary::-webkit-details-marker { display: none; }
.pagesec-summary-label { flex: 1; min-width: 0; }
.pagesec-chevron {
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  transition: transform .15s ease;
}
.pagesec-text[open] .pagesec-chevron { transform: rotate(180deg); }
.pagesec-text[open] .pagesec-summary { border-bottom: 1px dashed var(--line); }
.pagetext-scroll {
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px 12px;
}
.pagetext-scroll .pagetext-pre {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.6;
  color: var(--read-ink-2);
}
.pagetext-scroll .notesbox { margin-top: 8px; }
.pagesec-text:not([open]) .pagetext-scroll { display: none; }

/* ---------------- 原图：点击看完整大图 ---------------- */
.pageimg-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.pageimg-link:active { opacity: .92; }
.pagecap-hint { color: var(--brand); }

/* ---------------- 我的 · 使用说明底部：界面版本 ---------------- */
.appbuild { margin: 10px 2px 2px; font-size: 12.5px; line-height: 1.6; }

