/* ==========================================================================
   91漫画免费版app · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --c-bg: #ffffff;
  --c-text: #1c1f26;
  --c-muted: #5c6470;
  --c-line: #e4e7ec;
  --c-accent: #2f4b7c;
  --c-soft: #f5f7fa;
  --c-soft-deep: #eef1f6;
  --c-ongoing: #2f7d5b;
  --c-finished: #5c6470;
  --c-paused: #a2532c;
  --c-pending: #7a6a3f;
  --radius: 4px;
  --shell: 1120px;
  --gap: 32px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: #1f3557;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

abbr[title] {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout —— 骨架：页头、主容器、页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-cn);
}

/* 页头：全站统一，高 64px，白底 1px 下边框 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  flex: 0 0 auto;
  color: var(--c-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.brand:hover {
  color: var(--c-accent);
  text-decoration: none;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-list > li {
  flex: 0 0 auto;
}

.nav-list a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--c-soft);
  color: var(--c-accent);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--c-accent);
  font-weight: 600;
  background: var(--c-soft);
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.header-tools a {
  display: inline-block;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.header-tools a:hover {
  background: var(--c-soft);
  color: var(--c-accent);
  text-decoration: none;
}

/* 汉堡按钮：桌面隐藏，手机显示 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  background: var(--c-bg);
  color: var(--c-text);
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.home-main {
  width: 100%;
}

/* 面包屑：全站统一 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-accent);
}

.breadcrumb-sep {
  color: #a8b0bb;
}

.breadcrumb-current {
  color: var(--c-text);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-muted);
}

/* 页面标题区：全站统一 */
.page-header {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}

.page-head {
  margin: 0 0 24px;
}

.page-lead,
.page-intro,
.page-hero-desc {
  max-width: 34em;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-fields,
.page-hero-meta,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}

.field,
.meta-item {
  min-width: 140px;
}

.field dt,
.meta-item dt {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.field dd,
.meta-item dd {
  margin: 2px 0 0;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* 页脚：全站统一，四列索引 + 一行边界说明 */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  color: var(--c-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-desc {
  margin-top: 8px;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 10px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-list a:hover {
  color: var(--c-accent);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
}

.footer-bottom p {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 20px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 两栏页面布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: var(--gap);
  align-items: start;
}

.layout-main,
.content-main {
  min-width: 0;
}

.layout-aside,
.content-side {
  min-width: 0;
}

/* 通用分节 */
.section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--c-line);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.section-desc {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-lead {
  max-width: 34em;
  margin-bottom: 20px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-more,
.panel-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. components —— 按钮、标签、状态、卡片、目录、折叠项等
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #24395f;
  border-color: #24395f;
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--c-line);
  color: var(--c-text);
}

.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.link-inline {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* 标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

/* 连载状态标签 */
.status {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--c-ongoing);
  background: #f1f7f3;
}

.status-finished,
.status-done {
  color: var(--c-finished);
  background: var(--c-soft);
}

.status-paused,
.status-hiatus {
  color: var(--c-paused);
  background: #fbf3ee;
}

.status-pending,
.status-ready {
  color: var(--c-pending);
  background: #f8f5ec;
}

/* 复制按钮 */
.copy-btn,
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.copy-btn:hover,
.btn-copy:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.copy-btn.is-copied,
.btn-copy.is-copied {
  border-color: var(--c-ongoing);
  color: var(--c-ongoing);
}

/* 图片容器统一约束 */
.hero-figure,
.genre-figure,
.entry-cover,
.album-item,
.log-group-figure,
.chronicle-figure,
.step-figure,
.page-hero-media,
.boundary-media {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.hero-figure img,
.genre-figure img,
.entry-cover img,
.album-item img,
.log-group-figure img,
.chronicle-figure img,
.step-figure img,
.page-hero-media img,
.boundary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 目录面板（首页首屏右侧） */
.hero-directory {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.directory-title {
  margin-bottom: 12px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.directory-list {
  display: flex;
  flex-direction: column;
}

.directory-list > li + li {
  border-top: 1px solid var(--c-line);
}

.directory-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 8px;
  border-radius: var(--radius);
  color: var(--c-text);
}

.directory-item:hover {
  background: #ffffff;
  color: var(--c-accent);
  text-decoration: none;
}

.directory-name {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
}

.directory-note {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.directory-arrow {
  flex: 0 0 auto;
  color: var(--c-accent);
  font-size: 14px;
  transition: transform 0.16s ease;
}

.directory-item:hover .directory-arrow {
  transform: translateX(2px);
}

/* 更新记录面板（首页） */
.update-panel {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1.6fr) 96px;
  gap: 16px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date,
.log-field-date {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.update-name {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.update-change {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.update-genre {
  color: var(--c-accent);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.panel-more {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--c-line);
  display: block;
  font-weight: 600;
}

/* 步骤块（首页三步条） */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.path-section .step-block {
  display: block;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.path-section .step-num {
  display: block;
  margin-bottom: 8px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.path-section .step-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.path-section .step-desc {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 页脚上方的相关入口条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
}

.related-links-label {
  color: var(--c-muted);
  font-size: 13px;
}

.related-links-item {
  color: var(--c-accent);
  font-weight: 600;
}

.related-entry {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}

.related-entry h2 {
  font-size: 18px;
  font-weight: 600;
}

.related-entry p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 12px;
}

.related-list a {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* 相邻导航条 */
.adjacent-nav,
.album-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.adjacent-link,
.album-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.adjacent-link:hover,
.album-nav a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. pages —— 各页面业务模块
   -------------------------------------------------------------------------- */

/* ---------- 首页：首屏目录区 ---------- */
.hero {
  width: 100%;
  border-bottom: 1px solid var(--c-line);
  background: #ffffff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 40px;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 10px;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-lead h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-desc {
  max-width: 34em;
  margin-top: 14px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-figure {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
}

/* ---------- 首页：题材分区索引矩阵 ---------- */
.genre-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.genre-cell {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.genre-figure {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}

.genre-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.genre-cell .tag-list {
  margin-top: 10px;
}

.genre-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 首页：编辑专题辑选介 ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.album-section .album-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.album-section .album-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.album-section .album-desc {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.album-section .tag-list {
  margin-top: 12px;
}

.album-section .copy-btn {
  margin-top: 16px;
  align-self: flex-start;
}

/* ---------- 首页：年度归档概览 ---------- */
.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.archive-item {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.archive-year {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.archive-summary {
  margin-top: 8px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

.archive-points {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-points li {
  position: relative;
  padding-left: 12px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.archive-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
}

.archive-next {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 首页：站内整理口径与内容边界 ---------- */
.scope-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--gap);
  align-items: start;
}

.scope-main {
  min-width: 0;
}

.scope-main h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.scope-text {
  max-width: 34em;
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.scope-list li {
  position: relative;
  padding-left: 14px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.scope-aside {
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.scope-aside-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.scope-aside-text {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.scope-aside-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 内页：题材索引 ---------- */
.genre-nav {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-bottom: 28px;
  padding: 10px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: #ffffff;
}

.genre-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.4;
}

.genre-nav-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

.genre-nav-link.is-current {
  border-color: var(--c-accent);
  background: var(--c-soft);
  color: var(--c-accent);
  font-weight: 600;
}

.genre-group {
  margin-bottom: 36px;
}

.genre-group-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.genre-group-head h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.genre-group-desc {
  max-width: 34em;
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.entry-cover {
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.entry-tags {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.entry-status {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.entry-chapter {
  margin-top: 4px;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* 内页侧栏块 */
.aside-block,
.side-block {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.aside-block + .aside-block,
.side-block + .side-block {
  margin-top: 20px;
}

.aside-title,
.side-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.side-desc {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item p {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.aside-links a {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.side-list a {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 内页：专题辑 ---------- */
.album-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.album-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}

.album-index {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.album-head h2 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.album-note {
  max-width: 34em;
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.album-head .tag-list {
  margin-top: 12px;
}

.album-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.album-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
}

.album-item img {
  aspect-ratio: 3 / 4;
}

.album-item figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
}

.item-name {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.album-item .status {
  margin-top: 6px;
}

.album-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.album-rules {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.album-rules h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.rule-item {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.rule-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.rule-item p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 内页：更新记录 ---------- */
.log-timeline h2,
.log-rules h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.section-index {
  margin-right: 8px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.log-group {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.log-group-figure {
  aspect-ratio: 16 / 6;
  margin-bottom: 14px;
}

.log-date {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  font-family: var(--font-mono);
}

.log-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.log-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1.6fr) 96px;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}

.log-row:last-child {
  border-bottom: 0;
}

.log-field {
  min-width: 0;
}

.log-field-title {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.log-field-change {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.log-field-genre {
  color: var(--c-accent);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.log-rules {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

/* ---------- 内页：年度档案 ---------- */
.archive-overview h2,
.archive-chronicle h2,
.archive-plan h2,
.archive-rules h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.overview-item {
  min-width: 0;
}

.overview-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.overview-item p {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.archive-chronicle {
  margin-top: 40px;
}

.chronicle-year {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.chronicle-head {
  min-width: 0;
}

.chronicle-year-no {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.chronicle-year-title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.chronicle-figure {
  grid-column: 1;
  aspect-ratio: 4 / 3;
  margin-top: 14px;
}

.chronicle-figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.chronicle-summary {
  grid-column: 2;
  max-width: 34em;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.75;
}

.chronicle-list {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chronicle-list li {
  position: relative;
  padding-left: 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.chronicle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.archive-plan {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.plan-list li {
  padding: 16px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.plan-list h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.plan-list p {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.archive-rules {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.rules-list li {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.rules-list h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.rules-list p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 内页：阅读路径 ---------- */
.page-reading-guide .page-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  list-style: none;
}

.page-reading-guide .page-fields li {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-reading-guide .step-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.page-reading-guide .step-media {
  min-width: 0;
}

.page-reading-guide .step-num {
  display: block;
  margin-bottom: 10px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.page-reading-guide .step-figure {
  aspect-ratio: 4 / 3;
}

.page-reading-guide .step-figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.page-reading-guide .step-body {
  min-width: 0;
}

.page-reading-guide .step-body h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.page-reading-guide .step-body p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.step-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.step-points li {
  position: relative;
  padding-left: 14px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.path-branch {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.path-branch h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.path-branch > p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.branch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.branch-col {
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.branch-col h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.branch-col p {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.branch-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.branch-points li {
  position: relative;
  padding-left: 14px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

.branch-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.checklist {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.checklist h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.checklist > p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.checklist-list li {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.checklist-wrong {
  color: var(--c-paused);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.checklist-fix {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 阅读路径侧栏 */
.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.aside-steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.aside-steps a {
  color: var(--c-accent);
  font-weight: 600;
}

.aside-steps span {
  color: var(--c-muted);
  font-size: 13px;
}

.aside-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.aside-note {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 内页：常见问题 ---------- */
.page-faq .page-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}

.page-hero {
  margin-bottom: 32px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
}

.page-hero-media {
  aspect-ratio: 4 / 3;
}

.page-hero-media figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.faq-group {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.section-num {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 16px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--c-accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(-90deg);
}

.faq-answer {
  padding: 0 16px 16px;
  border-top: 1px solid var(--c-line);
}

.faq-answer p {
  max-width: 34em;
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
  margin-top: 18px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.boundary-item {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-soft);
}

.boundary-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.boundary-item p {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-media {
  aspect-ratio: 4 / 3;
}

.boundary-media figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.feedback-section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feedback-item {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.feedback-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.feedback-item p {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.related-section {
  padding-top: 8px;
}

/* ---------- 404 ---------- */
.error-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}

.error-code {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.error-head h1 {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}

.error-desc {
  max-width: 34em;
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.error-panel {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}

.error-panel h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.error-panel > p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
}

.error-links a {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

.error-back {
  margin-top: 20px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.btn-home:hover {
  background: #24395f;
  border-color: #24395f;
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1024 / 768 / 480 断点
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-inner {
    gap: 14px;
    padding: 0 18px;
  }

  .nav-list a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .header-tools a {
    padding: 7px 7px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 28px;
  }

  .section {
    padding: 34px 18px;
  }

  .inner-main {
    padding: 20px 18px 48px;
  }

  .footer-inner {
    gap: 24px;
    padding: 34px 18px 24px;
  }

  .footer-bottom p {
    padding: 14px 18px 20px;
  }

  .genre-matrix,
  .album-grid,
  .archive-list,
  .entry-grid,
  .overview-grid,
  .plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }

  .chronicle-year {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }

  .page-reading-guide .step-block {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 页头：折叠为汉堡菜单 */
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 60px;
    padding: 0 16px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .primary-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }

  /* 仅收起列表本身，父容器保持可见 */
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0 0 10px;
    padding: 6px 0;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    font-size: 15px;
    border-radius: var(--radius);
  }

  .header-tools {
    order: 4;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 0 10px;
    border-top: 1px solid var(--c-line);
  }

  .header-tools a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 10px;
    font-size: 14px;
  }

  /* 首屏单列堆叠：标题列在前，目录面板列在后 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 32px;
  }

  .hero-lead h1 {
    font-size: 24px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .section,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-title {
    font-size: 24px;
  }

  .genre-matrix,
  .album-grid,
  .archive-list,
  .entry-grid,
  .overview-grid,
  .plan-list,
  .path-steps,
  .branch-columns,
  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 两栏页面改单栏：主内容在 aside 之前 */
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .genre-nav {
    position: static;
    top: auto;
    padding: 8px 0;
  }

  .genre-nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .genre-nav-list > li {
    flex: 0 0 auto;
  }

  .genre-nav-link {
    white-space: nowrap;
  }

  .update-row,
  .log-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 13px 14px;
  }

  .update-genre,
  .log-field-genre {
    text-align: left;
  }

  .scope-inner,
  .page-hero-inner,
  .boundary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .album-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-reading-guide .step-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .page-reading-guide .step-figure,
  .chronicle-figure {
    aspect-ratio: 16 / 9;
  }

  .chronicle-year {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .chronicle-summary,
  .chronicle-list,
  .chronicle-figure {
    grid-column: 1;
  }

  .chronicle-figure {
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 30px 16px 22px;
  }

  .footer-bottom p {
    padding: 14px 16px 20px;
  }

  .adjacent-nav,
  .album-nav {
    gap: 8px;
  }

  .adjacent-link,
  .album-nav a {
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand {
    font-size: 16px;
  }

  .hero-inner {
    padding: 24px 14px 28px;
  }

  .hero-lead h1,
  .page-title,
  .error-head h1 {
    font-size: 22px;
  }

  .section,
  .inner-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head h2,
  .genre-group-head h2,
  .album-head h2,
  .album-rules h2,
  .log-timeline h2,
  .log-rules h2,
  .archive-overview h2,
  .archive-chronicle h2,
  .archive-plan h2,
  .archive-rules h2,
  .path-branch h2,
  .checklist h2,
  .section-title,
  .error-panel h2,
  .page-reading-guide .step-body h2,
  .scope-main h2 {
    font-size: 19px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .album-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .album-card {
    padding: 16px;
  }

  .album-foot {
    gap: 12px;
  }

  .album-foot .btn-copy {
    flex: 1 1 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .related-list {
    flex-direction: column;
    gap: 8px;
  }

  .error-main {
    padding: 32px 14px 48px;
  }

  .error-panel {
    padding: 18px;
  }

  .error-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* 动效增强：仅做进入视口淡入，不影响初始可见性 */
@media (prefers-reduced-motion: no-preference) {
  .section,
  .hero-lead,
  .hero-directory {
    animation: none;
  }

  .js-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .js-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
