/* ==========================================================================
   免费的51动漫 · 漫画档案站 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f4ee;
  --ink: #1f2a44;
  --ink-soft: #4a5468;
  --accent: #c8452c;
  --line: #dcd6c7;
  --tint: #eef0e9;
  --card: #fbfaf6;
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1120px;
  --gutter: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dd {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--tint);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. LAYOUT — 全站骨架：页头、导航、主容器、面包屑、标题区、页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(31, 42, 68, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: height 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat,
    var(--paper);
  transition: width 0.2s ease, height 0.2s ease;
}

.site-header.is-scrolled .brand-mark {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  transition: font-size 0.2s ease;
}

.site-header.is-scrolled .brand-name {
  font-size: 15.5px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-item a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--ink);
}

.nav-item a.is-current {
  color: var(--ink);
  font-weight: 700;
}

.nav-item a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-head {
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-lede {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-updated,
.page-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.page-meta a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.page-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 内页双栏：默认主内容在前、aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 44px;
  align-items: start;
  padding-top: 32px;
}

/* 侧栏在前的变体，选择器落在布局容器本身 */
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}

.content-main {
  min-width: 0;
}

.content-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-desc {
  margin-top: 10px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.footer-col ul {
  margin-top: 12px;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   3. COMPONENTS — 通用组件
   -------------------------------------------------------------------------- */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 700;
}

.section-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
}

.section-intro,
.section-note {
  max-width: 720px;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.section-intro + * {
  margin-top: 22px;
}

.text-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #a93a24;
  border-color: #a93a24;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--tint);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.field-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 档案卡：首页与题材页共用 */
.archive-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.archive-card-cover {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}

.archive-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.archive-card-meta,
.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.archive-card-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.badge-update {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top::before {
  content: "↑";
  font-size: 16px;
  line-height: 1;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.related-links-item {
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.related-links-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 跳转链接（无障碍） */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   4. PAGES — 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

/* 首屏档案封面区 */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 560px;
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-figure {
  margin: 0;
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 题材索引带 */
.genre-band {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.genre-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.genre-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.genre-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.genre-tag-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.genre-tag-hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.genre-band-link {
  margin-top: 18px;
}

/* 最近更新档案墙 */
.archive-wall {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.archive-wall-note {
  margin-top: 22px;
}

/* 榜单索引 */
.ranking {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.ranking-list {
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-no {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.ranking-meta {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ranking-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.ranking-aside h3 {
  font-size: 15px;
  font-weight: 700;
}

.ranking-aside h3 + p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.ranking-aside p + h3 {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ranking-aside-link {
  margin-top: 16px;
}

/* 年度归档入口 */
.year-entry {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.year-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.year-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.year-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 阅读说明与手记摘要 */
.read-notes {
  padding: 48px 0 56px;
}

.read-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.term-block {
  min-width: 0;
}

.term-list {
  border-top: 1px solid var(--line);
}

.term-list dt {
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.term-list dd {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.term-block-link {
  margin-top: 16px;
}

.note-block {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.note-entry {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.18s ease;
}

.note-entry:hover {
  border-color: var(--accent);
}

.note-entry-title {
  font-size: 16px;
  font-weight: 700;
}

.note-entry-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. PAGES — 作品档案
   -------------------------------------------------------------------------- */
.archive-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
}

.year-index {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.year-list {
  margin-top: 14px;
}

.year-item + .year-item {
  margin-top: 2px;
}

.year-item a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.year-item a:hover {
  color: var(--ink);
  background: var(--tint);
}

.year-item.is-active a {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.aside-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.aside-foot a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.aside-foot a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.archive-main {
  min-width: 0;
}

.year-group + .year-group {
  margin-top: 40px;
}

.year-group-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.year-group-title {
  font-size: 22px;
  font-weight: 700;
}

.year-group-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* 档案页卡：封面 + 信息体 */
.archive-card-grid .archive-card {
  padding: 0;
  overflow: hidden;
}

.archive-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--tint);
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  min-width: 0;
}

.archive-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.archive-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.rules-block {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.rules-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.rules-term-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.rules-term {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.term-key {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

.rules-link {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
}

.rules-link a {
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

/* --------------------------------------------------------------------------
   6. PAGES — 题材分类
   -------------------------------------------------------------------------- */
.genre-overview {
  padding-top: 32px;
}

.genre-overview h2 {
  font-size: 22px;
}

.genre-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.genre-overview-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.genre-overview-item h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.genre-overview-item p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.genre-state {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.genre-block {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.genre-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.genre-block-text {
  min-width: 0;
}

.genre-block-text h2 {
  font-size: 22px;
}

.genre-block-text p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.genre-boundary {
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: 13.5px !important;
}

.genre-block-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.tag-rules {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.rule-list {
  margin-top: 16px;
  padding-left: 0;
  counter-reset: rule;
  display: grid;
  gap: 10px;
}

.rule-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  counter-increment: rule;
}

.rule-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 18px;
  text-align: center;
  color: var(--ink);
}

.rule-example {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.rule-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
}

.rule-links a {
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

.related-entry {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-entry h2 {
  font-size: 22px;
}

.related-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-entry-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.18s ease;
}

.related-entry-item:hover {
  border-color: var(--accent);
}

.related-entry-item h3 {
  font-size: 15px;
  font-weight: 700;
}

.related-entry-item p {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-entry-item a {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   7. PAGES — 更新动态
   -------------------------------------------------------------------------- */
.change-types {
  padding-top: 32px;
}

.change-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.change-type-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.change-type-name {
  font-size: 15.5px;
  font-weight: 700;
}

.change-type-def {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.change-type-example {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.update-list-section {
  margin-top: 44px;
}

.update-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.update-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid rgba(200, 69, 44, 0.35);
  border-radius: 3px;
  background: rgba(200, 69, 44, 0.07);
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent);
  text-align: center;
  white-space: nowrap;
}

.update-body {
  min-width: 0;
}

.update-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.update-title a {
  color: var(--ink);
}

.update-title a:hover {
  color: var(--accent);
}

.update-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.update-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.update-thumb {
  margin: 0;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-advice {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.advice-body p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.advice-link-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px !important;
  font-size: 13.5px;
}

.advice-link-line a {
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

/* --------------------------------------------------------------------------
   8. PAGES — 创作手记
   -------------------------------------------------------------------------- */
.page-title-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}

.notes-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 44px;
  align-items: start;
}

.notes-layout .breadcrumb {
  padding-top: 0;
}

.notes-layout .page-header {
  padding-top: 10px;
}

.notes-main {
  min-width: 0;
}

.note-article {
  margin-top: 24px;
}

.note-section + .note-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.note-section h2 {
  font-size: 22px;
}

.note-section p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.note-figure {
  margin: 20px 0 0;
  max-width: 720px;
}

.note-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.note-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.note-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.boundary-text {
  min-width: 0;
}

.boundary-text h2 {
  font-size: 19px;
}

.boundary-text p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.boundary-links {
  min-width: 0;
}

.boundary-links h3 {
  font-size: 15px;
  font-weight: 700;
}

.entry-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.entry-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.entry-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notes-aside {
  top: 88px;
}

.toc-nav {
  margin-top: 12px;
}

.toc-list {
  display: grid;
  gap: 2px;
}

.toc-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.toc-list a:hover,
.toc-list a.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
  background: var(--tint);
}

/* --------------------------------------------------------------------------
   9. PAGES — 阅读说明
   -------------------------------------------------------------------------- */
.guide-glossary {
  padding-top: 32px;
}

.guide-glossary h2,
.guide-order h2,
.guide-faq h2,
.guide-links h2 {
  font-size: 22px;
}

.glossary-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.glossary-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-term {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.glossary-def {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.guide-order {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.order-text {
  min-width: 0;
}

.order-text p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.order-text p + p {
  margin-top: 12px;
}

.order-figure {
  margin: 0;
  min-width: 0;
}

.order-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.order-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-faq {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.faq-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 15px 36px 15px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
}

.faq-answer p {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.guide-links {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.18s ease;
}

.related-card:hover {
  border-color: var(--accent);
}

.related-title {
  font-size: 15px;
  font-weight: 700;
}

.related-desc {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

/* --------------------------------------------------------------------------
   10. PAGES — 合作与反馈
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.coop-types {
  padding-top: 32px;
}

.coop-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.coop-type-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.coop-type-name {
  font-size: 15.5px;
  font-weight: 700;
}

.coop-type-criteria,
.coop-type-prep {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.coop-type-prep {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.coop-process {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.process-steps {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.process-step .step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

.process-step .step-body {
  min-width: 0;
}

.process-step .step-name {
  font-size: 15.5px;
  font-weight: 700;
}

.process-step .step-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.step-figure {
  margin: 14px 0 0;
  max-width: 260px;
}

.step-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coop-reject {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.reject-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.reject-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 120px minmax(0, 1.2fr);
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
}

.reject-reason {
  font-weight: 700;
  color: var(--ink);
}

.reject-step {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.reject-fix {
  color: var(--ink-soft);
}

.coop-links {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.18s ease;
}

.entry-card:hover {
  border-color: var(--accent);
}

.entry-title {
  font-size: 15px;
  font-weight: 700;
}

.entry-desc {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid rgba(200, 69, 44, 0.4);
}

/* --------------------------------------------------------------------------
   11. PAGES — 404
   -------------------------------------------------------------------------- */
.error-main {
  display: block;
}

.error-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.error-inner h1 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.3;
}

.error-lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-tip {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.error-btn-primary:hover {
  background: #a93a24;
  border-color: #a93a24;
  color: #fff;
}

.error-paths {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-paths h2 {
  font-size: 19px;
}

.error-path-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.error-path-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.error-path-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE — 1080 / 760 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-list {
    gap: 16px;
  }

  .nav-item a {
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 32px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 28px;
  }

  .archive-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-entry-list,
  .related-grid,
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand-desc {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
    --header-h: 60px;
  }

  body {
    font-size: 15.5px;
  }

  /* 页头与移动导航 */
  .header-inner {
    gap: 12px;
    height: var(--header-h);
  }

  .site-header.is-scrolled .header-inner {
    height: 56px;
  }

  .brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    display: block;
    min-height: 48px;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-item a.is-current {
    color: var(--accent);
  }

  .nav-item a.is-current::after {
    display: none;
  }

  /* 主容器与标题区 */
  .inner-main {
    padding-bottom: 56px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    padding-top: 10px;
  }

  .page-head {
    padding: 10px 0 16px;
  }

  .page-lead,
  .page-lede {
    font-size: 14.5px;
  }

  /* 首页首屏 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px var(--gutter) 36px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  /* 首页模块 */
  .genre-band,
  .archive-wall,
  .ranking,
  .year-entry {
    padding: 34px 0;
  }

  .read-notes {
    padding: 34px 0 44px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2,
  .section-title,
  .genre-overview h2,
  .genre-block-text h2,
  .related-entry h2,
  .guide-glossary h2,
  .guide-order h2,
  .guide-faq h2,
  .guide-links h2,
  .year-group-title,
  .note-section h2 {
    font-size: 19px;
  }

  .genre-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .archive-card {
    padding: 8px 8px 12px;
  }

  .archive-card-title {
    font-size: 14px;
  }

  .archive-card-line {
    font-size: 12.5px;
  }

  .ranking-layout,
  .read-notes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .year-bar {
    gap: 10px;
  }

  .year-chip {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  /* 内页双栏：全部改为单列，主内容在前 */
  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
  }

  .content-aside,
  .archive-aside {
    position: static;
    top: auto;
  }

  .year-index {
    padding: 14px;
  }

  .year-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .year-item + .year-item {
    margin-top: 0;
  }

  .year-item a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
    background: var(--tint);
    border-radius: 3px;
  }

  .year-item.is-active a {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .archive-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .archive-card-grid .archive-card {
    padding: 0;
  }

  .archive-body {
    padding: 10px 10px 12px;
  }

  .archive-title {
    font-size: 14px;
  }

  .archive-line {
    font-size: 12.5px;
  }

  .rules-block,
  .tag-rules,
  .update-advice {
    padding: 18px;
  }

  /* 题材分类 */
  .genre-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .genre-block {
    margin-top: 32px;
    padding-top: 24px;
  }

  .genre-block-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-block-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .related-entry-list,
  .related-grid,
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* 更新动态 */
  .change-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .update-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb {
    display: none;
  }

  .update-title {
    font-size: 15px;
  }

  /* 创作手记 */
  .page-title-block {
    padding-top: 24px;
  }

  .notes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 44px;
  }

  .notes-layout .page-header {
    padding-top: 8px;
  }

  .note-section p {
    font-size: 14.5px;
  }

  .note-boundary {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  .notes-aside {
    order: 2;
  }

  /* 阅读说明 */
  .glossary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .order-figure {
    order: -1;
  }

  .faq-question {
    font-size: 14.5px;
  }

  /* 合作与反馈 */
  .coop-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .process-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .process-step .step-index {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .reject-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  /* 页脚 */
  .footer-inner {
    padding: 36px var(--gutter) 24px;
    gap: 28px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-bottom {
    padding: 16px var(--gutter) 24px;
    font-size: 12px;
  }

  /* 返回顶部与相关内容 */
  .back-to-top {
    right: 14px;
    bottom: 16px;
  }

  .related-links {
    padding: 18px var(--gutter);
    gap: 10px 14px;
  }

  /* 404 */
  .error-inner {
    padding: 48px var(--gutter) 56px;
  }

  .error-inner h1 {
    font-size: 26px;
  }

  .error-actions .error-btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 25px;
  }

  .page-title {
    font-size: 24px;
  }

  .genre-tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-overview-grid,
  .archive-card-grid,
  .genre-block-cards,
  .related-entry-list,
  .related-grid,
  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .update-tag {
    justify-self: start;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand-desc {
    max-width: none;
  }
}

/* 动效偏好：关闭动画增强 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .archive-card:hover,
  .genre-tag:hover {
    transform: none;
  }
}
