/* ==========================================================================
   韩漫屋漫画免费app · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg-page: #f6f8f7;
  --bg-card: #ffffff;
  --bg-mint: #e8f4f0;
  --ink: #20302e;
  --ink-soft: #4c5f5b;
  --ink-mute: #6d807b;
  --brand: #157f6b;
  --brand-soft: #2aa889;
  --line: #d7e3df;
  --line-soft: #e6eeeb;
  --warm: #e08b4c;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(32, 48, 46, 0.04), 0 6px 18px rgba(32, 48, 46, 0.05);
  --shell: 1160px;
  --gap: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
  line-height: 1.5;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-soft);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

dl,
dt,
dd {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

/* 视觉隐藏但可被辅助技术读取 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-page);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand-soft);
}

/* 汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-mute);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

/* 内页两栏：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
}

.page-layout > .page-head,
.page-layout > .filter-strip,
.page-layout > .genre-overview,
.page-layout > .series-genres,
.page-layout > .short-genres,
.page-layout > .genre-compare,
.page-layout > .page-aside {
  min-width: 0;
}

/* genres 页把多个 section 与 aside 放在同一 grid 中：aside 独占右列 */
.page-layout > .page-aside {
  grid-column: 2;
}

.page-layout > section {
  grid-column: 1;
}

.page-shell {
  width: 100%;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-group h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--brand);
}

.footer-note {
  margin: 20px 0 4px;
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-copy {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-back {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer-back a {
  color: var(--ink-soft);
}

.footer-back a:hover,
.footer-back a:focus-visible {
  color: var(--brand);
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* 通用区块标题组 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
}

.section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.section-lead,
.section-intro {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #116b5a;
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand-soft);
  color: var(--brand);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 999px;
  white-space: nowrap;
}

.tag-type {
  color: var(--ink-soft);
  background: #eef2f1;
}

/* 位次数字（首页与榜单页共用，作用域限定在各自列表内） */
.cover-wall .rank-no,
.panel-rankings .rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.text-link::after {
  content: "→";
  font-size: 13px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--brand-soft);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.inline-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

/* 通用卡片容器 */
.panel,
.help-card,
.task-column,
.scope-column,
.short-card,
.mark-card,
.reason-card,
.group-card,
.step-card,
.step-item,
.usage-card,
.triage-card,
.prep-card,
.suggestion-card,
.boundary-card,
.related-card,
.next-card,
.next-col,
.overview-col,
.device-col,
.night-col,
.side-card,
.aside-item,
.catalog-item,
.overview-item,
.batch-item,
.checklist-item,
.note-item {
  min-width: 0;
}

/* 三列说明网格（多处复用，父级作用域限定） */
.mark-grid,
.reason-grid,
.group-grid,
.usage-grid,
.triage-grid,
.prep-grid,
.suggestion-grid,
.boundary-grid,
.device-cols,
.night-cols,
.overview-cols,
.next-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mark-card,
.reason-card,
.group-card,
.usage-card,
.triage-card,
.prep-card,
.suggestion-card,
.boundary-card,
.next-col,
.overview-col,
.device-col,
.night-col {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mark-card h3,
.reason-card h3,
.group-card h3,
.usage-card h3,
.triage-card h3,
.prep-card h3,
.suggestion-card h3,
.boundary-card h3,
.next-col h3,
.overview-col h3,
.device-col h3,
.night-col h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.mark-card p,
.reason-card p,
.group-card p,
.usage-card p,
.triage-card p,
.prep-card p,
.suggestion-card p,
.boundary-card p,
.next-col p,
.overview-col p,
.device-col p,
.night-col p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 步骤条：首页、更新页、榜单页、开始使用页共用编号样式 */
.step-list,
.step-row,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.step-no,
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

/* 侧栏通用 */
.page-aside,
.content-aside,
.side-column {
  min-width: 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-aside h2,
.content-aside h2,
.side-column h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.aside-list,
.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list li,
.side-list li {
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-list li::before,
.side-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brand-soft);
  border-radius: 50%;
}

.aside-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.aside-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.aside-item::before {
  top: 8px;
}

.aside-link {
  margin: 16px 0 0;
  font-size: 14px;
}

/* 图片容器统一约束 */
.hero-media img,
.preview-media img,
.overview-media img,
.short-media img,
.board-visual img,
.reference-figure img,
.support-figure img,
.settings-figure img,
.path-figure img,
.feature-figure img,
.update-cover img,
.cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-mint);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* 首屏 */
.hero-top {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 44px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 14px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 999px;
}

.hero-copy h1 {
  margin: 0 0 14px;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hero-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  border-radius: 50%;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 站内浏览面板 */
.browse-panel {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.browse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.panel-more {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-mute);
}

.panel-more:hover,
.panel-more:focus-visible {
  color: var(--brand);
}

/* 封面墙 */
.cover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cover-card {
  min-width: 0;
}

.cover-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-link:hover,
.cover-link:focus-visible {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.cover-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-mint);
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cover-type {
  font-size: 12px;
  color: var(--ink-mute);
}

.cover-state {
  font-size: 12px;
  color: var(--warm);
}

/* 最近更新流水 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  min-width: 0;
}

.update-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.update-link:hover,
.update-link:focus-visible {
  border-color: var(--brand-soft);
  background: #fbfdfc;
  color: var(--ink);
}

.update-batch {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.update-type {
  font-size: 12px;
  color: var(--ink-mute);
}

.update-state {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 榜单线索 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  min-width: 0;
}

.rank-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.rank-link:hover,
.rank-link:focus-visible {
  border-color: var(--line);
  background: #fbfdfc;
  color: var(--ink);
}

.rank-reason {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 阅读帮助目录 */
.help-directory,
.task-examples,
.start-steps,
.scope-note {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.help-card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-card);
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.help-card p {
  flex: 1 1 auto;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.help-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.help-link::after {
  content: "→";
  margin-left: 4px;
}

/* 任务示例 */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.task-column {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.task-column h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.task-column p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.task-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--brand);
}

.task-links a::after {
  content: "→";
  margin-left: 3px;
}

/* 界面预览 */
.interface-preview {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.preview-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-media {
  min-width: 0;
}

.preview-media img {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.preview-copy {
  min-width: 0;
}

.preview-copy h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-list h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.preview-list p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 开始使用三步 */
.step-item .step-no {
  margin-bottom: 10px;
}

/* 站点范围说明 */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-column {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-column h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  border-radius: 50%;
}

/* 首页底部留白 */
.scope-note {
  padding-bottom: 56px;
}

/* ==========================================================================
   pages · 题材索引
   ========================================================================== */

.page-head {
  margin-bottom: 24px;
}

.page-intro {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 题材条件标签 */
.filter-strip {
  margin-bottom: 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  color: var(--brand);
  border-color: var(--brand-soft);
  background: var(--bg-mint);
}

/* 题材总览 */
.genre-overview {
  margin-bottom: 28px;
}

.overview-media {
  margin-bottom: 20px;
}

.overview-media img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview-item {
  min-width: 0;
}

.overview-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.overview-link:hover,
.overview-link:focus-visible {
  border-color: var(--brand-soft);
  background: #fbfdfc;
  color: var(--ink);
}

.overview-name {
  flex: 0 0 96px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.overview-clue {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 连载题材分组 */
.series-genres {
  margin-bottom: 28px;
}

.series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.series-list,
.series-notes {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.series-list h3,
.series-notes h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.series-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-items li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.series-items li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  border-radius: 50%;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.note-list dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.note-list dd {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.note-list dd:last-child {
  margin-bottom: 0;
}

/* 短篇题材分组 */
.short-genres {
  margin-bottom: 28px;
}

.short-media {
  margin-bottom: 20px;
}

.short-media img {
  width: 100%;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.short-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.short-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.short-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.short-card h3 a {
  color: var(--ink);
}

.short-card h3 a:hover,
.short-card h3 a:focus-visible {
  color: var(--brand);
}

.short-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--warm);
}

.short-clue {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 题材选择对照 */
.genre-compare {
  margin-bottom: 8px;
}

.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.compare-body {
  min-width: 0;
}

.compare-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.compare-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  font-size: 14px;
}

/* ==========================================================================
   pages · 最近更新
   ========================================================================== */

.page-title {
  min-width: 0;
}

/* 更新页 page-title 区块作为导语容器 */
.page-updates .page-title,
.page-lead {
  margin-bottom: 20px;
}

.page-lead {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 批次标签 */
.batch-strip {
  margin-bottom: 24px;
}

.batch-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.batch-tag:hover,
.batch-tag:focus-visible {
  color: var(--brand);
  border-color: var(--brand-soft);
  background: var(--bg-mint);
}

.main-column {
  min-width: 0;
}

.content-block {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.content-block > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* 批次总览 */
.batch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-item {
  padding: 14px 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand-soft);
  border-radius: var(--radius-sm);
}

.batch-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.batch-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 更新流水 */
.update-flow .update-list {
  gap: 12px;
}

.update-flow .update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.update-cover {
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-mint);
}

.update-body {
  min-width: 0;
}

.update-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.update-status {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-flow .update-batch {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  margin-right: 6px;
  font-size: 12px;
  background: var(--bg-mint);
  border-radius: 999px;
}

.update-flow .update-type {
  margin-right: 6px;
}

/* 更新标记说明 */
.mark-grid {
  margin-top: 4px;
}

/* 追更阅读路径 */
.follow-path .step-list {
  margin-top: 4px;
}

.block-tail {
  margin: 18px 0 0;
  font-size: 14px;
}

/* 更新页侧栏 */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
}

.side-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

/* ==========================================================================
   pages · 阅读榜单
   ========================================================================== */

.page-rankings .page-shell {
  display: block;
}

.page-rankings .page-title {
  margin-bottom: 20px;
}

.title-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 999px;
}

.chip:hover,
.chip:focus-visible {
  background: #d8ece5;
  color: var(--brand);
}

.content-main {
  min-width: 0;
}

.section {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section:last-child {
  margin-bottom: 0;
}

.section .section-head {
  margin-bottom: 18px;
}

/* 榜单视觉图 */
.board-visual {
  margin-bottom: 20px;
}

.board-visual img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

/* 榜单页位次条 */
.ranking-board .rank-list {
  gap: 10px;
}

.ranking-board .rank-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
}

.ranking-board .rank-link:hover,
.ranking-board .rank-link:focus-visible {
  border-color: var(--brand-soft);
  background: #ffffff;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

.rank-body {
  min-width: 0;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

/* 入榜依据三列 */
.ranking-reasons .reason-grid {
  margin-top: 4px;
}

/* 榜单分组 */
.group-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.group-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.group-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brand-soft);
  border-radius: 50%;
}

.group-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 补读路径 */
.reread-path .step-row {
  margin-top: 4px;
}

/* 榜单侧栏 */
.content-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-nav {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.aside-nav h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 600;
}

.aside-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-nav a:hover,
.aside-nav a:focus-visible {
  color: var(--brand);
}

/* ==========================================================================
   pages · 开始使用
   ========================================================================== */

.page-start .page-shell {
  margin-bottom: 8px;
}

.page-title-block {
  margin-bottom: 20px;
}

.page-title-block .page-lead {
  margin: 0;
}

.page-main {
  min-width: 0;
}

.page-start .page-main > section {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-start .page-main > section:last-child {
  margin-bottom: 0;
}

.page-start .page-main > section > h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* 开始使用三步 */
.steps-grid {
  margin-top: 6px;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-card p {
  flex: 1 1 auto;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 路径流程 */
.path-figure {
  margin-bottom: 20px;
}

.path-figure img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.path-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-note {
  min-width: 0;
  padding: 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.path-note h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.path-note p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 栏目入口对照 */
.map-list {
  display: flex;
  flex-direction: column;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.map-row:last-child {
  border-bottom: 0;
}

.map-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.map-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 阅读前说明 */
.note-item {
  padding: 14px 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.note-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.note-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.reading-notes .note-list {
  gap: 12px;
}

/* 下一步入口 */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.next-card:hover,
.next-card:focus-visible {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.next-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.next-desc {
  font-size: 13px;
  color: var(--ink-mute);
}

/* 开始使用侧栏 */
.page-start .page-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-start .page-aside h2 {
  margin: 0;
  font-size: 16px;
}

.page-start .aside-list {
  gap: 14px;
}

/* ==========================================================================
   pages · 阅读设置
   ========================================================================== */

.page-settings .page-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-settings section {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-settings section > h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* 显示维度固定左列 */
.settings-dimensions .dimension-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.settings-dimensions .dimension-row:first-of-type {
  border-top: 0;
}

.dimension-label h3 {
  margin: 0;
  font-size: 15px;
  color: var(--brand);
}

.dimension-body {
  min-width: 0;
}

.dimension-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.dimension-body p:last-child {
  margin-bottom: 0;
}

/* 设置示意图 */
.settings-figure img {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

/* 设置检查清单 */
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: check;
}

.checklist-item {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  counter-increment: check;
}

.checklist-item::before {
  content: counter(check);
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

.checklist-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.checklist-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 设置页下一步 */
.page-settings .next-cols {
  margin-top: 6px;
}

.page-settings .next-col h3 {
  font-size: 15px;
}

.page-settings .next-col h3 a {
  color: var(--brand);
}

/* ==========================================================================
   pages · 功能说明
   ========================================================================== */

.layout-with-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-primary {
  min-width: 0;
}

.page-features .page-primary .section {
  margin-bottom: 20px;
}

.page-features .page-primary .section:last-child {
  margin-bottom: 0;
}

/* 功能目录 */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.catalog-item h3 {
  margin: 0;
  font-size: 15px;
}

.catalog-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.catalog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 999px;
  white-space: nowrap;
}

/* 功能界面图 */
.feature-media .feature-figure {
  margin-bottom: 16px;
}

.feature-figure img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.feature-media-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-media-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.feature-media-notes li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  border-radius: 50%;
}

/* 用法示例三列 */
.usage-grid {
  margin-top: 4px;
}

.usage-card .inline-link {
  margin-top: 10px;
}

/* 术语列表 */
.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.term-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.term-item:last-child {
  border-bottom: 0;
}

.term-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.term-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 功能说明侧栏 */
.page-features .page-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-features .page-aside h2 {
  margin: 0;
  font-size: 16px;
}

.page-features .aside-list {
  gap: 14px;
}

.aside-links {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.aside-links h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
}

.aside-links ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-links a:hover,
.aside-links a:focus-visible {
  color: var(--brand);
}

/* ==========================================================================
   pages · 故障排查
   ========================================================================== */

.page-troubleshoot .page-title {
  margin-bottom: 20px;
}

.page-troubleshoot .page-main {
  min-width: 0;
}

.page-troubleshoot .page-main > section {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-troubleshoot .page-main > section > h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* 现象目录 */
.symptom-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.symptom-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.symptom-item a:hover,
.symptom-item a:focus-visible {
  color: var(--brand);
  border-color: var(--brand-soft);
}

/* 对照图 */
.reference-figure {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reference-figure img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

/* FAQ 折叠 */
.troubleshoot-faq {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.troubleshoot-faq h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 0 14px 32px;
}

.faq-answer p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 排查三列 */
.image-loading,
.mobile-display,
.cache-network {
  margin-bottom: 24px;
}

.triage-grid {
  margin-top: 4px;
}

/* 反馈准备 */
.feedback-prep {
  margin-bottom: 8px;
}

.prep-link {
  margin: 16px 0 0;
  font-size: 14px;
}

/* 故障排查侧栏 */
.page-troubleshoot .page-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-troubleshoot .page-aside h2 {
  margin: 0;
  font-size: 16px;
}

.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: aside-step;
}

.aside-step {
  position: relative;
  padding-left: 34px;
  counter-increment: aside-step;
}

.aside-step::before {
  content: counter(aside-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

.aside-step h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.aside-step p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--brand);
}

/* ==========================================================================
   pages · 支持与反馈
   ========================================================================== */

.page-support .page-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-support .page-head {
  margin-bottom: 0;
}

.page-support section {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-support section > .section-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
}

/* 反馈前准备清单 */
.prep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.prep-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.prep-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-mint);
  border-radius: 50%;
}

.prep-body {
  min-width: 0;
}

.prep-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.prep-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 问题分类对照 */
.support-figure {
  margin: 16px 0 20px;
}

.support-figure img {
  width: 100%;
  height: 200px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.category-rows {
  display: flex;
  flex-direction: column;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.category-row:last-child {
  border-bottom: 0;
}

.category-type h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.category-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.category-target {
  min-width: 0;
}

.category-target p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 栏目建议 */
.suggestion-grid {
  margin-top: 16px;
}

.suggestion-card .text-link {
  margin-top: 10px;
}

/* 反馈边界 */
.boundary-grid {
  margin-top: 16px;
}

/* 相关帮助入口 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.related-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--brand);
}

.related-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.site-error .error-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px;
}

.error-panel {
  max-width: 640px;
  margin-bottom: 40px;
}

.error-code {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0;
}

.error-panel h1 {
  margin: 0 0 12px;
}

.error-lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand);
  border-radius: var(--radius-sm);
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: #116b5a;
  color: #ffffff;
}

.error-paths {
  margin-bottom: 32px;
}

.error-paths h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-path-list a:hover,
.error-path-list a:focus-visible {
  color: var(--brand);
  border-color: var(--brand-soft);
}

.error-note {
  max-width: 640px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-note h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.error-note p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    gap: 28px;
    padding: 40px 24px 36px;
  }

  .hero-media img {
    height: 300px;
  }

  .browse-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .panel-rankings {
    grid-column: 1 / -1;
  }

  .help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout,
  .layout-with-aside {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .preview-media img,
  .path-figure img,
  .feature-figure img,
  .reference-figure img,
  .settings-figure img,
  .board-visual img,
  .overview-media img,
  .short-media img,
  .support-figure img {
    height: 200px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(32, 48, 46, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0 4px;
    border-bottom: 0;
  }

  .nav-link.is-current {
    border-bottom: 0;
    border-left: 3px solid var(--brand-soft);
    padding-left: 10px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .hero-media img {
    height: 260px;
  }

  .browse-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-rankings {
    grid-column: auto;
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-grid,
  .scope-grid,
  .step-list,
  .step-row,
  .steps-grid,
  .mark-grid,
  .reason-grid,
  .group-grid,
  .usage-grid,
  .triage-grid,
  .prep-grid,
  .suggestion-grid,
  .boundary-grid,
  .device-cols,
  .night-cols,
  .overview-cols,
  .next-cols,
  .short-grid,
  .path-notes,
  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 内页两栏在窄屏改为单列，主内容在前 */
  .page-layout,
  .layout-with-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout > .page-aside,
  .page-layout > section {
    grid-column: 1;
  }

  .series-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .hero-inner {
    padding: 32px 16px 28px;
  }

  .browse-panel,
  .help-directory,
  .task-examples,
  .interface-preview,
  .start-steps,
  .scope-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .browse-panel {
    padding-top: 32px;
  }

  .help-directory,
  .task-examples,
  .interface-preview,
  .start-steps {
    padding-top: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }

  .site-error .error-main {
    padding: 40px 16px;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .settings-dimensions .dimension-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  .map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }

  .map-row .text-link {
    margin-top: 4px;
  }

  .catalog-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .catalog-tag {
    justify-self: start;
  }

  .term-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .category-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .update-flow .update-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .update-cover {
    width: 76px;
  }

  .symptom-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: 20px;
  }

  .brand {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media img {
    height: 220px;
  }

  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-grid,
  .task-grid,
  .scope-grid,
  .step-list,
  .step-row,
  .steps-grid,
  .mark-grid,
  .reason-grid,
  .group-grid,
  .usage-grid,
  .triage-grid,
  .prep-grid,
  .suggestion-grid,
  .boundary-grid,
  .device-cols,
  .night-cols,
  .overview-cols,
  .next-cols,
  .short-grid,
  .path-notes,
  .next-grid,
  .related-grid,
  .error-path-list,
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-link {
    flex-direction: column;
    gap: 4px;
  }

  .overview-name {
    flex: 0 0 auto;
  }

  .preview-media img,
  .path-figure img,
  .feature-figure img,
  .reference-figure img,
  .settings-figure img,
  .board-visual img,
  .overview-media img,
  .short-media img,
  .support-figure img {
    height: 180px;
  }

  .page-title {
    font-size: 24px;
  }

  .content-block,
  .section,
  .page-start .page-main > section,
  .page-settings section,
  .page-support section,
  .page-troubleshoot .page-main > section,
  .troubleshoot-faq {
    padding: 18px;
  }

  .panel {
    padding: 16px;
  }

  .panel-head {
    flex-wrap: wrap;
    gap: 4px;
  }

  .update-flow .update-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .update-cover {
    width: 64px;
  }

  .rank-body {
    font-size: 14px;
  }

  .prep-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .faq-answer {
    padding-left: 0;
  }

  .related-links {
    align-items: flex-start;
  }

  .footer-group a {
    min-height: 34px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
