/* ============================================================
   AgentScopeDoc — content.css
   内容区组件（迁移自旧 style.css，类名不变，主题换为
   「黑曜石 × 熔金」：--text/--muted/--border/--accent 等新变量）
   ============================================================ */

/* ---------- 频度 / 类型标签 ---------- */
.freq {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 1px 10px;
  vertical-align: middle; white-space: nowrap;
}
.freq.hi { color: var(--red); background: var(--red-soft); }
.freq.mid { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.freq.lo { color: var(--muted); background: var(--surface-2); }
.tag-jdk21 {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--blue, #35608f); background: color-mix(in srgb, var(--blue, #35608f) 14%, var(--surface));
  border-radius: 999px; padding: 1px 10px; white-space: nowrap;
}
.tag-kind {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 10px; white-space: nowrap;
}
.vtag {
  display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1;
  border-radius: 4px; padding: 2.5px 5px; margin-left: 5px; vertical-align: 1.5px;
  color: var(--blue, #35608f); background: color-mix(in srgb, var(--blue, #35608f) 14%, var(--surface));
  border: 1px solid var(--border); white-space: nowrap;
}
.mtag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.mtag.hi { color: var(--red); background: var(--red-soft); }
.mtag.mid { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.mtag.lo { color: var(--muted); background: var(--surface-2); }
.mtag.j21 { color: var(--blue, #35608f); background: color-mix(in srgb, var(--blue, #35608f) 14%, var(--surface)); }

/* ---------- 页头 ---------- */
.page-head { padding: 20px 0 6px; }
.page-head h1 {
  margin: 0 0 4px; font-size: 27px; font-weight: 750; letter-spacing: .2px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.page-head .sub { font-size: 13.5px; color: var(--muted); }
.page-head .sub code { overflow-wrap: anywhere; word-break: break-all; }
.page-head .sub a { color: var(--accent-text); }
.essence {
  margin: 14px 0 0;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 15px; line-height: 1.75; color: var(--text);
}
.essence .lbl {
  font-size: 12px; font-weight: 800; color: var(--accent-text);
  display: block; margin-bottom: 2px; letter-spacing: 2px;
}
.essence b { color: var(--accent-text); }

/* ---------- 分区 Tab（内容页 sectabs） ---------- */
.tp-panel, .modpanel { display: none; }
.tp-panel.active, .modpanel.active { display: block; }
.sectabs > .tp-panel { padding-top: 16px; }
.sectab-bar {
  display: flex; gap: 2px; align-items: stretch;
  border-bottom: 2px solid var(--border);
  margin: 18px 0 0;
  overflow-x: auto; scrollbar-width: none;
  position: sticky; top: var(--topbar-h); z-index: 50;
  background: var(--bg);
  padding-top: 8px;
}
.sectab-bar::-webkit-scrollbar { display: none; }
.sectab {
  appearance: none; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sectab:hover { color: var(--text); }
.sectab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.sectab .tab-cnt {
  font-size: 11px; font-weight: 700; line-height: 1;
  background: var(--surface-2); border-radius: 10px; padding: 3px 7px;
}
.sectab.active .tab-cnt { background: var(--accent); color: var(--on-accent); }
.modtabs { display: flex; gap: 10px; margin: 24px 0 6px; flex-wrap: wrap; }
.modtab {
  appearance: none; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 11px 18px;
  font-size: 15px; font-weight: 700; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
}
.modtab .mod-sub { font-size: 12px; font-weight: 500; color: var(--amber); }
.modtab:hover { border-color: var(--accent); color: var(--text); }
.modtab.active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.modtab.active .mod-sub { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }

/* ---------- 小节 / 表格 ---------- */
.section-block { margin: 26px 0; }
.section-block h2 {
  margin: 0 0 10px; font-size: 17px; font-weight: 750;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.section-block h2 .cnt {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 0 9px;
}
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
table.ref-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-size: 13.5px;
}
table.ref-table col.blank { width: 6px; }
table.ref-table th, table.ref-table td {
  padding: 9px 10px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}
table.ref-table th {
  background: var(--surface-2);
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
table.ref-table tr:last-child td { border-bottom: none; }
table.ref-table tr:hover td { background: var(--surface-2); }
table.ref-table td .sig {
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--accent-text);
  word-break: break-all;
}
table.ref-table td .sig b { color: var(--text); font-weight: 600; }
table.ref-table .pit { color: var(--red); }
table.ref-table td code.inline { font-size: 12px; }
table.ref-table td .mtag { float: right; margin: 1px 0 4px 6px; vertical-align: baseline; }
.ctor-list { margin: 0; padding-left: 18px; }
.ctor-list li { margin: 4px 0; }
.ctor-list .sig { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text); }

/* ---------- 代码块 ---------- */
pre.code-block {
  position: relative;
  background: var(--metal);
  color: #dce5ef;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.8px; line-height: 1.65;
  margin: 10px 0;
}
pre.code-block::before {
  content: attr(data-title);
  display: block; font-size: 11.5px; color: #8fa3bd;
  font-family: var(--font-mono);
  margin-bottom: 8px; letter-spacing: .3px;
}
pre.code-block code { font-family: var(--font-mono); background: transparent; color: #dce5ef; }
pre.code-block .hljs-comment, pre.code-block .hljs-quote { color: #6b7a8d; font-style: italic; }
pre.code-block .hljs-keyword, pre.code-block .hljs-selector-tag, pre.code-block .hljs-literal { color: #c792ea; }
pre.code-block .hljs-string, pre.code-block .hljs-attr { color: #a5d6a7; }
pre.code-block .hljs-number { color: #f78c6c; }
pre.code-block .hljs-title, pre.code-block .hljs-function .hljs-title { color: #82aaff; }
pre.code-block .hljs-type, pre.code-block .hljs-built_in { color: #f2c568; }
pre.code-block .hljs-meta { color: #89ddff; }
pre.code-block .hljs-symbol, pre.code-block .hljs-name { color: #c3e88d; }
pre.code-block .hljs-params { color: #dce5ef; }
.code-copy {
  position: absolute; top: 8px; right: 8px;
  font-size: 11.5px; color: #8fa3bd;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 2px 9px; cursor: pointer;
  font-family: inherit; opacity: 0; transition: opacity .15s;
}
pre.code-block:hover .code-copy { opacity: 1; }
.code-copy:hover { color: #fff; border-color: var(--accent); }
.code-copy.copied { color: var(--green); border-color: var(--green); }
code.inline {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 5px; font-size: 12.8px;
  color: var(--accent-text);
}
code.sig { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text); }

/* ---------- Mermaid ---------- */
.diagram-block { margin: 18px 0 4px; }
.diagram-block .db-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.diagram-block h2 { margin: 0; font-size: 17px; font-weight: 750; }
.diagram-block .db-hint { font-size: 12px; color: var(--muted); }
.diagram-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
}
.diagram-wrap .mermaid { display: flex; justify-content: center; }
.diagram-wrap .mermaid svg { max-width: 100%; height: auto; }
.mermaid-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- meta 信息卡 ---------- */
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
}
.meta-card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.meta-card h3 svg { width: 15px; height: 15px; color: var(--accent); }
.meta-card ul { margin: 0; padding-left: 18px; }
.meta-card li { font-size: 13.5px; margin: 3px 0; }
.meta-card li b { color: var(--accent-text); }
.meta-card .revisit-line { font-size: 13.5px; }
.meta-card .revisit-line .one { display: block; }
.meta-card .revisit-line .scene { display: block; color: var(--muted); margin-top: 4px; }
.meta-card .revisit-line .scene b { color: var(--amber); }
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 5px 0; font-size: 13.5px; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; }
.nav-links .nl-arrow { color: var(--accent); font-weight: 700; }

/* ---------- 自测（胸有成竹） ---------- */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin: 12px 0;
}
.quiz-card .q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.quiz-card .q-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.quiz-card .q-type { font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 0 7px; }
.quiz-card .q-type.simple { color: var(--muted); background: var(--surface-2); }
.quiz-card .q-type.apply { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.quiz-card .q-type.pit { color: var(--red); background: var(--red-soft); }
.quiz-card .q-text { font-size: 14.5px; font-weight: 600; margin: 4px 0 10px; }
.quiz-card .q-code {
  margin: 6px 0 10px; padding: 10px 12px;
  background: var(--metal); color: #dce5ef;
  border-radius: 6px; font-size: 12.5px; font-family: var(--font-mono);
  overflow-x: auto;
}
.quiz-opts { display: grid; gap: 7px; }
.quiz-opt {
  text-align: left; font: inherit; font-size: 13.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.correct { background: var(--green); color: #fff; border-color: var(--green); }
.quiz-opt.wrong { background: var(--red); color: #fff; border-color: var(--red); }
.quiz-opt:disabled { cursor: default; opacity: .92; }
.quiz-fb { margin-top: 10px; font-size: 13.5px; }
.quiz-fb .ok-msg { color: var(--green); font-weight: 700; }
.quiz-fb .no-msg { color: var(--red); font-weight: 700; }
.quiz-fb .why { margin-top: 4px; color: var(--muted); }
.quiz-jump { margin-top: 6px; font-size: 13px; color: var(--amber); font-weight: 600; }
.quiz-jump a { color: var(--accent-text); }

/* ---------- 深钻页 ---------- */
.step-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.step-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px; color: var(--muted);
}
.step-chip .n {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-chip.cur, .step-chip:hover { border-color: var(--accent); color: var(--accent-text); }
.step-chip.cur .n, .step-chip:hover .n { background: var(--accent); color: var(--on-accent); }
.step-chip:hover { text-decoration: none; }
.card-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin: 14px 0;
  scroll-margin-top: calc(var(--topbar-h) + 14px);
}
.card-point .cp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-point .cp-num {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.card-point h3 { margin: 0; font-size: 16px; font-weight: 750; }
.card-point .cp-tag { font-size: 11.5px; font-weight: 700; color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); border-radius: 4px; padding: 0 7px; }
.cp-guess {
  margin: 10px 0 0;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}
.cp-guess .g-lbl { font-size: 12px; font-weight: 800; color: var(--amber); letter-spacing: 1px; display: block; margin-bottom: 3px; }
.cp-reveal-btn {
  margin: 10px 0 0;
  font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--on-accent); background: var(--accent);
  border: none; border-radius: 999px; padding: 6px 18px; cursor: pointer;
}
.cp-reveal-btn:hover { background: var(--accent-hover); }
.cp-reveal-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-answer { margin-top: 12px; display: none; }
.cp-answer.show { display: block; animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cp-answer .a-lbl { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: 1px; display: block; margin-bottom: 4px; }
.cp-answer .pit-lbl { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: 1px; display: block; margin: 10px 0 4px; }
.verify-box { margin: 22px 0; }
.verify-box .vb-intro { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.verify-box .vb-intro b { color: var(--text); }
.mastery-btn {
  appearance: none; cursor: pointer; font-family: inherit;
  margin: 8px 0 0; padding: 6px 14px; font-size: 13px; font-weight: 700;
  border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); transition: all .18s;
}
.mastery-btn:hover { border-color: var(--accent); color: var(--text); }
.mastery-btn.done { border-color: var(--green); color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.principle-box {
  margin: 4px 0 18px; border: 1.5px dashed var(--border); border-radius: 10px;
  background: var(--surface); padding: 0 16px 16px;
}
.principle-box summary {
  cursor: pointer; padding: 14px 0 10px; font-weight: 700; font-size: 15px;
  color: var(--accent-text); user-select: none;
}
.principle-box summary::before { content: "› "; font-weight: 800; }
.principle-box[open] summary::before { content: "⌄ "; }
.pb-essence { margin: 2px 0 10px; font-size: 14px; color: var(--text); }
.pb-table { margin: 0 0 12px; }
.pb-table td { font-size: 12.8px; }

/* ---------- 路线 / 掌握度 ---------- */
.road-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.road-chip {
  font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 1px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.road-chip.done { color: var(--green); border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.road-chip.pending { color: var(--amber); border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.mastery-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.mb-track { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.mb-fill {
  height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .4s ease;
}
.mb-text { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- 首页旧组件（迁移内容里残留时兜底） ---------- */
.hero { padding: 34px 0 8px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; }
.hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; }
.hero h1 .hl { color: var(--accent-text); }
.hero .lead { font-size: 15px; color: var(--muted); max-width: 560px; margin: 0 0 18px; line-height: 1.8; }
.hero .lead b { color: var(--text); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 700;
  border-radius: 999px; padding: 9px 22px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hstat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.hstat .n { font-size: 22px; font-weight: 800; color: var(--accent-text); line-height: 1.2; }
.hstat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.home-sec { margin: 34px 0; }
.home-sec > h2 { font-size: 19px; font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.home-sec > h2 .sec-no { font-size: 12px; font-weight: 800; color: var(--accent-text); letter-spacing: 2px; background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.home-sec > .sec-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; box-shadow: var(--shadow-sm); color: var(--text);
}
.topic-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.topic-card .tc-name { font-size: 16px; font-weight: 750; display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.topic-card .tc-desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.topic-card .tc-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; display: block; }
.topic-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.topic-card.active .tc-name::after { content: "本期"; font-size: 11px; font-weight: 750; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 0 8px; }
.topic-card.future { opacity: .82; }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.index-col { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.index-col h3 { margin: 0 0 10px; font-size: 15px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.index-col h3 .cnt { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 8px; }
.index-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.index-links a { font-size: 13.5px; padding: 3px 6px; border-radius: 6px; }
.index-links a:hover { background: var(--surface-2); text-decoration: none; }
.index-links a .freq { font-size: 10.5px; padding: 0 6px; margin-left: 3px; }
.index-links a .j21 { font-size: 10.5px; padding: 0 6px; margin-left: 3px; }
.timeline { display: grid; grid-template-columns: 110px 34px 1fr; gap: 0; margin-top: 12px; }
.tl-item { display: contents; }
.tl-stage { padding: 14px 0 14px 4px; text-align: left; }
.tl-stage .s-name { font-size: 14.5px; font-weight: 750; }
.tl-stage .s-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.tl-axis { display: flex; justify-content: center; }
.tl-axis .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
  margin-top: 19px; justify-self: center; align-self: start;
}
.tl-item.future .tl-axis .dot { border-color: var(--border-strong); }
.tl-item.done .tl-axis .dot { background: var(--accent); }
.tl-body { padding: 14px 0 14px 2px; }
.tl-body .tl-line { border-left: 2px solid var(--border-strong); padding-left: 16px; font-size: 13.5px; color: var(--muted); }
.tl-body .tl-line ul { margin: 4px 0 0; padding-left: 18px; }
.tl-body .tl-line li { margin: 3px 0; }
.tl-body .tl-line li b { color: var(--text); }
.revisit-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.revisit-banner .rb-t { font-size: 15px; font-weight: 750; }
.revisit-banner .rb-d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan-panel {
  margin-top: 16px; padding: 26px;
  border: 1.5px dashed var(--border); border-radius: 10px;
  background: var(--surface);
}
.plan-panel h3 { margin: 0 0 6px; font-size: 17px; }
.plan-panel p { margin: 4px 0; color: var(--muted); font-size: 14px; }

/* ---------- 响应式（内容区） ---------- */
@media (max-width: 900px) {
  .meta-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .topic-grid { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .index-links { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 92px 30px 1fr; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 22px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 84px 26px 1fr; }
  table.ref-table { font-size: 12.8px; min-width: 620px; }
  .section-block { overflow-x: auto; }
  code.inline { word-break: break-all; overflow-wrap: anywhere; }
  .sectab { padding: 9px 12px; font-size: 13.5px; min-height: 44px; }
  .modtab { padding: 10px 14px; font-size: 14px; }
  .modtabs { gap: 8px; }
}
@media (max-width: 480px) {
  .sectab-bar { flex-wrap: wrap; overflow-x: visible; }
  .sectab { flex: 1 1 calc(50% - 2px); justify-content: center; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .breadcrumb, .theme-toggle, .step-strip, .quiz-card, .code-copy, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
  .diagram-wrap, table.ref-table { border-color: #999; box-shadow: none; }
  pre.code-block { background: #f5f5f5; color: #222; border-color: #999; }
}
