/* ==========================================================================
   黑料吃瓜 92souti.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base — 变量、重置、字体、通用元素
   ========================================================================== */

:root {
  --paper: #f6f7f9;
  --ink: #1f2933;
  --ink-soft: #55606c;
  --ink-mute: #7c8794;
  --indigo: #2c5f8a;
  --indigo-dark: #224a6d;
  --accent: #e0803f;
  --teal: #5c8d89;
  --line: #dfe3e8;
  --line-soft: #e9edf1;
  --deep: #16202b;
  --tag-bg: #eef2f6;
  --white: #ffffff;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;

  --wrap: 1180px;
  --body-max: 760px;
  --radius: 6px;
  --radius-sm: 4px;
  --gap-block: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--indigo-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

table {
  width: 100%;
  border-collapse: collapse;
}

details > summary {
  cursor: pointer;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout — 全站骨架：页头、导航、主容器、面包屑、页脚
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--deep);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--indigo);
  text-decoration: none;
}

.brand-sub {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-mute);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--indigo);
  background: var(--tag-bg);
  text-decoration: none;
}

.site-nav a.is-current {
  color: var(--indigo);
  font-weight: 700;
  background: var(--tag-bg);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--indigo);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--white);
  background: var(--indigo-dark);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  position: relative;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle::before {
  top: 15px;
  box-shadow: 0 6px 0 var(--ink);
}

.menu-toggle::after {
  top: 27px;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--indigo);
  text-decoration: none;
}

.mobile-nav a.is-current {
  color: var(--indigo);
  font-weight: 700;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 24px var(--gap-block);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--indigo);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.page-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--deep);
}

.page-title-block {
  max-width: var(--body-max);
  margin: 0 0 32px;
}

.page-lead,
.page-lede,
.title-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.title-meta,
.page-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.title-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--tag-bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.section-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* 页脚 */

.site-footer {
  margin-top: auto;
  background: var(--deep);
  color: #c2cbd4;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.footer-col ul {
  margin: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: 14px;
  line-height: 1.6;
  color: #c2cbd4;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #94a1ad;
}

/* ==========================================================================
   components — 通用组件：按钮、标签、区块头、卡片、明细行、时间线、
                折叠问答、术语气泡、章节导航、图片容器
   ========================================================================== */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--indigo);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--white);
  background: var(--indigo-dark);
  text-decoration: none;
}

.btn-ghost {
  color: var(--indigo);
  background: transparent;
  border-color: var(--indigo);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--white);
  background: var(--indigo);
  text-decoration: none;
}

/* 标签 */

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--ink-soft);
}

.tag-genre {
  color: var(--indigo);
}

.tag-len {
  color: var(--teal);
}

.status-tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-ongoing {
  color: var(--indigo);
  background: #e8f0f7;
}

.status-intermittent {
  color: #a35a1e;
  background: #fbeedd;
}

.status-finished {
  color: #3d6b67;
  background: #e6efee;
}

.status-paused {
  color: var(--ink-mute);
  background: var(--tag-bg);
}

/* 区块头 */

.section-head {
  max-width: var(--body-max);
  margin: 0 0 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--indigo);
}

.section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.section-intro,
.section-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 更多入口 */

.entry-more {
  margin: 20px 0 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
}

.link-arrow::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.18s ease;
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(3px);
}

/* 图片容器 */

.content-media,
.content-media-inline,
.topic-figure,
.article-media,
.aside-figure,
.step-media,
.term-group-media,
.hero-visual,
.work-cover {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tag-bg);
}

.content-media img,
.content-media-inline img,
.topic-figure img,
.article-media img,
.aside-figure img,
.step-media img,
.term-group-media img,
.hero-visual img,
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 作品封面卡（3:4） */

.work-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-info h4,
.work-info strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.work-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.work-struct {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 题材标签条 */

.genre-tabs {
  margin: 0 0 24px;
}

.genre-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.genre-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.genre-tabs a:hover,
.genre-tabs a:focus-visible {
  color: var(--indigo);
  border-color: var(--indigo);
  text-decoration: none;
}

/* 条目明细行 */

.entry-rows {
  margin: 0;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry-row:first-child {
  border-top: 1px solid var(--line-soft);
}

.entry-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.entry-genre,
.entry-scale,
.entry-structure,
.entry-status {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.entry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  white-space: nowrap;
}

/* 时间线（通用描述列表语义） */

.timeline-list {
  margin: 0;
}

/* 折叠问答 */

.faq-list {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item > summary,
.faq-item summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--deep);
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--indigo);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item > p,
.faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 术语气泡 */

.term-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.term-bubble {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.term-bubble summary {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
}

.term-bubble summary::before {
  content: "术语 · ";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
}

.term-bubble p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 章节导航条 */

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.chapter-nav a,
.chapter-nav-prev,
.chapter-nav-index,
.chapter-nav-next,
.chapter-prev,
.chapter-index,
.chapter-next,
.nav-btn,
.chapter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible,
.nav-btn:hover,
.nav-btn:focus-visible,
.chapter-link:hover,
.chapter-link:focus-visible {
  color: var(--indigo);
  border-color: var(--indigo);
  text-decoration: none;
}

.chapter-nav-index,
.chapter-index,
.nav-btn-strong {
  color: var(--white);
  background: var(--indigo);
  border-color: var(--indigo);
}

.chapter-nav-index:hover,
.chapter-index:hover,
.nav-btn-strong:hover,
.chapter-nav-index:focus-visible,
.chapter-index:focus-visible,
.nav-btn-strong:focus-visible {
  color: var(--white);
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
}

/* 相邻内容链接条 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 32px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.related-links-label {
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  color: var(--indigo);
}

/* 侧栏通用 */

.aside-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.aside-note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.aside-link,
.aside-foot {
  margin: 12px 0 0;
}

/* ==========================================================================
   pages — 首页与各内页模块
   ========================================================================== */

/* ---------- 首页 ---------- */

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px var(--gap-block);
}

.home-main > section {
  margin-bottom: var(--gap-block);
}

.home-main > section:last-child {
  margin-bottom: 0;
}

/* 首屏三栏 */

.hero {
  padding-bottom: 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.hero-topics,
.hero-notice {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-aside-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-soft);
}

.topic-brief-list {
  margin: 0;
}

.topic-brief-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.topic-brief-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-brief-list a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--deep);
}

.topic-brief-list a:hover,
.topic-brief-list a:focus-visible {
  color: var(--indigo);
}

.topic-brief-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
}

.topic-brief-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.hero-main {
  padding: 4px 0 0;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.hero-main h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.3;
  color: var(--deep);
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-visual {
  margin: 0 0 20px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-notice .notice-line {
  margin: 0 0 10px;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
}

.notice-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* 题材索引 */

.genre-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.genre-index-layout .genre-tabs {
  margin: 0;
}

.genre-index-layout .genre-tabs ul {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}

.genre-index-layout .genre-tabs a {
  width: 100%;
  justify-content: flex-start;
  background: var(--white);
}

.entry-detail {
  min-width: 0;
}

.entry-table {
  font-size: 14px;
}

.entry-table caption {
  margin-bottom: 12px;
  font-size: 13px;
  text-align: left;
  color: var(--ink-mute);
}

.entry-table thead th {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--ink-mute);
  background: var(--tag-bg);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.entry-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.entry-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.entry-table tbody td {
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-table tbody td:first-child {
  font-weight: 700;
  color: var(--deep);
}

/* 最近更新记录 */

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--indigo);
  border: 2px solid var(--paper);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.timeline-work {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.timeline-body {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.timeline-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 编辑选读序列 */

.sequence-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.sequence-group {
  min-width: 0;
}

.sequence-group h3 {
  margin: 0 0 6px;
  padding-bottom: 8px;
  font-size: 17px;
  border-bottom: 2px solid var(--line);
}

.sequence-note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.sequence-group .work-card-list {
  grid-template-columns: minmax(0, 1fr);
}

/* 作品解读分段结论 */

.interpretation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 36px;
  align-items: start;
}

.interpretation-body {
  max-width: var(--body-max);
  min-width: 0;
}

.interpretation-body h3 {
  margin: 26px 0 8px;
  padding-left: 12px;
  font-size: 18px;
  border-left: 3px solid var(--teal);
}

.interpretation-body h3:first-child {
  margin-top: 0;
}

.interpretation-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.conclusion-source {
  margin: 0 0 18px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-mute);
  background: var(--tag-bg);
  border-radius: var(--radius-sm);
}

.interpretation-aside {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.interpretation-aside h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--deep);
}

.interpretation-aside h3 + p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 设定辞典速查 */

.term-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.term-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glossary-quick .term-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.glossary-quick .term-card .term-bubble {
  height: 100%;
}

/* 阅读答疑摘选 */

.faq-preview .faq-list {
  max-width: var(--body-max);
}

/* 新读者入门路径 */

.starter-path .step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  counter-reset: step;
}

.starter-path .step-item {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.starter-path .step-num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.starter-path .step-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.starter-path .step-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 内容来源与纠错说明条 */

.source-note {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.source-note h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.source-note p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.source-note p:last-child {
  margin-bottom: 0;
}

/* ---------- 通用内页布局：主内容 + 侧栏 ---------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 36px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
}

.page-layout > .content-main,
.page-layout > .faq-main,
.page-layout > .topic-body,
.page-layout > .layout-main,
.page-layout > .main-column {
  min-width: 0;
}

.page-layout > .content-aside,
.page-layout > .faq-aside,
.page-layout > .genre-directory,
.page-layout > .side-column {
  min-width: 0;
}

/* ---------- 题材书架 ---------- */

.page-shujia .content-media-inline {
  max-width: var(--body-max);
  aspect-ratio: 16 / 9;
  margin: 20px 0 0;
}

.page-layout.sidebar-left .genre-directory {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-directory-list {
  margin: 0 0 14px;
}

.genre-directory-list li {
  border-bottom: 1px solid var(--line-soft);
}

.genre-directory-list li:last-child {
  border-bottom: 0;
}

.genre-directory-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.genre-directory-list a:hover,
.genre-directory-list a:focus-visible {
  color: var(--indigo);
  text-decoration: none;
}

.genre-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.summary-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.summary-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.summary-scope {
  margin-top: 10px;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line);
}

.genre-group {
  margin-bottom: 32px;
  scroll-margin-top: 84px;
}

.genre-group-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.genre-group-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.genre-group-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- 追更记录 ---------- */

.page-zhuigeng .side-column {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-zhuigeng .side-column .aside-title:not(:first-child) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.legend-list {
  margin: 0 0 4px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.legend-item:last-child {
  border-bottom: 0;
}

.legend-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-zhuigeng .aside-figure {
  aspect-ratio: 4 / 3;
  margin: 0;
}

.page-zhuigeng .main-column {
  min-width: 0;
}

.page-zhuigeng .timeline-list {
  margin: 0;
}

.timeline-node {
  position: relative;
  padding: 0 0 28px 22px;
}

.timeline-node:last-child {
  padding-bottom: 0;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--indigo);
  border: 2px solid var(--paper);
}

.node-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.node-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.node-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.node-record,
.node-background {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.node-background {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.node-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--tag-bg);
  border-radius: var(--radius-sm);
}

.page-zhuigeng .usage-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.usage-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.usage-step {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-step .step-index {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.usage-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.usage-step p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.usage-step .step-link {
  margin: 0;
}

/* ---------- 作品解读 ---------- */

.page-jiedu .topic-toc {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-list {
  margin: 0 0 14px;
  counter-reset: toc;
}

.toc-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.toc-list li:last-child {
  border-bottom: 0;
}

.toc-list a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--indigo);
  text-decoration: none;
}

.toc-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.page-jiedu .topic-body {
  max-width: 100%;
  min-width: 0;
}

.page-jiedu .topic-figure {
  aspect-ratio: 16 / 9;
  margin: 0 0 32px;
}

.topic-article {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.topic-article:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.article-head {
  margin-bottom: 20px;
}

.article-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.article-head h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.article-media {
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
}

.conclusion-block {
  margin-bottom: 24px;
}

.conclusion-block h3 {
  margin: 0 0 8px;
  padding-left: 12px;
  font-size: 18px;
  border-left: 3px solid var(--teal);
}

.conclusion-block p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.term-inline {
  margin: 28px 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.term-inline h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.article-related {
  margin-top: 24px;
}

.article-related h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink-mute);
}

.article-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.article-related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--indigo);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-related a:hover,
.article-related a:focus-visible {
  border-color: var(--indigo);
  text-decoration: none;
}

.page-jiedu .glossary-links {
  margin-top: 40px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glossary-hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.term-link {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--indigo);
  background: var(--tag-bg);
  border-radius: var(--radius-sm);
}

.term-link:hover,
.term-link:focus-visible {
  background: #e2ebf3;
  text-decoration: none;
}

/* ---------- 设定辞典 ---------- */

.page-cidian .title-block {
  max-width: var(--body-max);
  margin: 0 0 28px;
}

.index-strip {
  margin: 0 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.index-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.index-strip a:hover,
.index-strip a:focus-visible {
  color: var(--indigo);
  border-color: var(--indigo);
  text-decoration: none;
}

.page-cidian .page-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}

.term-group {
  margin-bottom: 40px;
  scroll-margin-top: 84px;
}

.term-group h2 {
  margin: 0 0 8px;
  padding-left: 12px;
  font-size: 20px;
  border-left: 3px solid var(--indigo);
}

.group-intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.term-group-media {
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
}

.term-card .term-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
}

.term-brief {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.term-card .term-note {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.term-card .term-note summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
}

.term-card .term-note summary::before {
  content: "展开注释 · ";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
}

.term-card .term-note[open] summary::before {
  content: "收起注释 · ";
}

.term-card .term-note p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-cidian .content-aside {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-cidian .content-aside .usage-note {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.page-cidian .content-aside .usage-note:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.page-cidian .content-aside h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.page-cidian .content-aside .usage-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-cidian .content-aside .usage-step {
  padding: 0;
  background: transparent;
  border: 0;
}

.page-cidian .content-aside .usage-step h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.page-cidian .content-aside .usage-step p {
  font-size: 13px;
  margin: 0;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.aside-links a {
  font-size: 14px;
  color: var(--indigo);
}

/* ---------- 阅读答疑 ---------- */

.page-dayi .page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}

.faq-group {
  margin-bottom: 32px;
  scroll-margin-top: 84px;
}

.faq-group-title {
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 18px;
  border-left: 3px solid var(--indigo);
}

.faq-main .faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-main .faq-item summary {
  padding: 16px 40px 16px 0;
  font-size: 16px;
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-aside {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-aside h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.faq-aside .aside-figure {
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
}

.aside-nav {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-nav:last-of-type {
  border-bottom: 0;
}

.aside-subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
}

.category-list,
.faq-aside .entry-list {
  margin: 0;
}

.category-list li,
.faq-aside .entry-list li {
  margin-bottom: 8px;
}

.category-list a,
.faq-aside .entry-list a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--indigo);
}

.faq-aside .aside-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.faq-aside .aside-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 新读者入门 ---------- */

.page-rumen .title-block {
  max-width: var(--body-max);
  margin: 0 0 36px;
}

.page-rumen .step-list {
  max-width: var(--body-max);
  margin: 0;
}

.page-rumen .step-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.page-rumen .step-item:first-of-type {
  padding-top: 0;
}

.page-rumen .step-media {
  aspect-ratio: 4 / 3;
  margin: 0;
}

.step-body {
  min-width: 0;
}

.step-body .step-index {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.step-goal {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--tag-bg);
  border-radius: var(--radius-sm);
}

.step-body > p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.step-check {
  font-size: 14px;
  color: var(--ink-mute);
}

.step-entry {
  margin: 0;
}

.page-rumen .chapter-nav {
  max-width: var(--body-max);
}

.further-reading {
  max-width: var(--body-max);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.further-reading h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.further-reading > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.further-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
}

.further-list li {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.further-list a {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
}

.further-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px var(--gap-block);
}

.error-hero {
  max-width: var(--body-max);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.error-hero h1 {
  margin: 0 0 14px;
  font-size: 34px;
  color: var(--deep);
}

.error-hero p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-paths h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-path-list a:hover,
.error-path-list a:focus-visible {
  color: var(--indigo);
  border-color: var(--indigo);
  text-decoration: none;
}

/* ---------- 进入视口轻微淡入（增强，不影响初始可见） ---------- */

@media (prefers-reduced-motion: no-preference) {
  .home-main > section,
  .inner-main > section,
  .inner-main > .page-layout {
    animation: section-in 0.45s ease-out both;
  }

  @keyframes section-in {
    from {
      transform: translateY(8px);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   responsive — 1024 / 768 / 480
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --gap-block: 48px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .hero-notice {
    grid-column: 1 / -1;
  }

  .sequence-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-path .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-cidian .page-layout,
  .page-dayi .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }

  .entry-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}

@media (max-width: 768px) {
  :root {
    --gap-block: 36px;
  }

  h1,
  .page-title,
  .hero-main h1,
  .error-hero h1 {
    font-size: 26px;
  }

  h2,
  .section-title,
  .article-head h2 {
    font-size: 19px;
  }

  .header-inner {
    gap: 12px;
    padding: 0 16px;
    min-height: 58px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-cta {
    margin-left: auto;
  }

  .menu-toggle + .nav-cta,
  .nav-cta + .menu-toggle {
    margin-left: 0;
  }

  .inner-main {
    padding: 20px 16px var(--gap-block);
  }

  .home-main {
    padding: 24px 16px var(--gap-block);
  }

  .error-main {
    padding: 48px 16px var(--gap-block);
  }

  /* 首屏：主视觉在前，辅助侧栏在后 */

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-main {
    order: 1;
  }

  .hero-notice {
    order: 2;
    grid-column: auto;
  }

  .hero-topics {
    order: 3;
  }

  /* 题材索引：标签横排在上，明细在下 */

  .genre-index-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-index-layout .genre-tabs ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .genre-index-layout .genre-tabs a {
    width: auto;
  }

  .entry-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .entry-table thead th,
  .entry-table tbody td {
    padding: 10px;
  }

  /* 序列与卡片 */

  .sequence-groups,
  .starter-path .step-list,
  .term-card-grid,
  .usage-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 内页布局：单列，主内容在前 */

  .page-layout,
  .page-layout.sidebar-left,
  .page-cidian .page-layout,
  .page-dayi .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout > .content-main,
  .page-layout > .faq-main,
  .page-layout > .topic-body,
  .page-layout > .layout-main,
  .page-layout > .main-column {
    order: 1;
  }

  .page-layout > .content-aside,
  .page-layout > .faq-aside,
  .page-layout > .genre-directory,
  .page-layout > .side-column {
    order: 2;
  }

  .page-layout.sidebar-left > .genre-directory,
  .page-layout.sidebar-left > .side-column,
  .page-layout.sidebar-left > .topic-toc {
    order: 2;
  }

  .page-layout.sidebar-left > .layout-main,
  .page-layout.sidebar-left > .main-column,
  .page-layout.sidebar-left > .topic-body {
    order: 1;
  }

  /* 条目明细行：改为两列堆叠 */

  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: start;
  }

  .entry-name {
    grid-column: 1 / 2;
  }

  .entry-link {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
  }

  .entry-genre,
  .entry-scale,
  .entry-structure,
  .entry-status {
    grid-column: 1 / -1;
  }

  /* 入门步骤：单列 */

  .page-rumen .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 解读正文与旁注 */

  .interpretation-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* 页脚 */

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 36px 16px 24px;
  }

  .footer-bottom p {
    padding: 16px;
  }

  .page-title-block {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-main h1,
  .page-title,
  .error-hero h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .work-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .chapter-nav a,
  .chapter-nav-prev,
  .chapter-nav-index,
  .chapter-nav-next,
  .chapter-prev,
  .chapter-index,
  .chapter-next,
  .nav-btn,
  .chapter-link {
    width: 100%;
  }

  .summary-grid,
  .term-list,
  .further-list,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-table {
    font-size: 13px;
  }
}
