/* ==========================================================================
   禁漫天堂 · 全站样式表
   明亮家居选品式视觉：米白底、木质棕点缀、规格表式排版
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE · 变量与全局重置
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #faf7f2;
  --bg-content: #ffffff;
  --text-main: #2b2b2b;
  --text-sub: #6b6459;
  --brand: #8a6a4f;
  --brand-soft: #c9a26b;
  --line: #e6ded2;
  --line-strong: #d8cec0;
  --footer-bg: #2f2a25;
  --footer-text: #d9d2c8;
  --footer-dim: #9c948a;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1160px;
  --read-width: 720px;
  --shadow-soft: 0 1px 2px rgba(43, 43, 43, 0.04), 0 6px 18px rgba(43, 43, 43, 0.05);
  --shadow-hover: 0 4px 10px rgba(43, 43, 43, 0.08), 0 14px 30px rgba(43, 43, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-soft);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
  color: var(--text-main);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. LAYOUT · 页头 / 导航 / 主容器 / 面包屑 / 页脚骨架
   -------------------------------------------------------------------------- */

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-main);
  margin-right: auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand);
}

.brand-name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-tag {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-sub);
}

/* --- 主导航 --- */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(201, 162, 107, 0.14);
}

.nav-list a.is-current {
  color: var(--text-main);
  font-weight: 600;
  background: rgba(138, 106, 79, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-content);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: var(--text-main);
  box-shadow: 0 6px 0 var(--text-main), 0 12px 0 var(--text-main);
}

/* --- 主内容与内页容器 --- */
.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* --- 内页标题区 --- */
.page-header {
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-main);
}

.page-description {
  margin-top: 14px;
  max-width: var(--read-width);
  font-size: 16px;
  color: var(--text-sub);
}

/* --- 页脚 --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(217, 210, 200, 0.16);
}

.footer-back,
.footer-top-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--footer-text);
  border: 1px solid rgba(217, 210, 200, 0.28);
  border-radius: var(--radius-sm);
  min-height: 40px;
  line-height: 22px;
}

.footer-back:hover,
.footer-back:focus-visible,
.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: #ffffff;
  border-color: var(--brand-soft);
  background: rgba(201, 162, 107, 0.16);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0 26px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--footer-dim);
  padding: 3px 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brand-soft);
}

.footer-note {
  padding-top: 20px;
  border-top: 1px solid rgba(217, 210, 200, 0.16);
  font-size: 13px;
  color: var(--footer-dim);
  max-width: 860px;
}

.footer-copy {
  margin-top: 10px;
  font-size: 13px;
  color: var(--footer-dim);
}

/* --------------------------------------------------------------------------
   3. COMPONENTS · 通用模块
   -------------------------------------------------------------------------- */

.section-title,
.section-title-wide {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.36;
  color: var(--text-main);
}

.section-title-wide {
  font-size: 28px;
}

.section-head {
  margin-bottom: 26px;
}

.section-desc {
  margin-top: 12px;
  max-width: var(--read-width);
  font-size: 15px;
  color: var(--text-sub);
}

.section-lead,
.section-intro {
  margin-top: 12px;
  max-width: var(--read-width);
  font-size: 15px;
  color: var(--text-sub);
}

.section-text {
  margin-top: 16px;
  max-width: var(--read-width);
  font-size: 16px;
  color: var(--text-main);
}

/* --- 通用图片容器 --- */
.hero-figure img,
.cover-thumb img,
.cover-figure img,
.genre-media img,
.section-media img,
.field-figure img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line);
}

/* --------------------------------------------------------------------------
   4. PAGES · 首页
   -------------------------------------------------------------------------- */

/* --- 首屏查阅区 --- */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg-content);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-fact {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--brand);
  background: rgba(201, 162, 107, 0.16);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-main);
}

.hero-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  color: var(--text-sub);
}

.hero-entries {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.hero-entries li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.entry-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}

.entry-link:hover,
.entry-link:focus-visible {
  color: var(--brand-soft);
}

.entry-note {
  font-size: 14px;
  color: var(--text-sub);
}

.hero-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.hero-figure img {
  aspect-ratio: 16 / 10;
}

.hero-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cover-thumb {
  min-width: 0;
}

.cover-thumb img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}

.cover-thumb figcaption {
  padding: 8px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* --- 题材方向总览 --- */
.genres-overview {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.genre-box:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.genre-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.genre-scope {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1 1 auto;
}

.genre-count {
  font-size: 13px;
  color: var(--brand);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.genre-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  min-height: 22px;
}

.genre-link:hover,
.genre-link:focus-visible {
  color: var(--brand-soft);
}

/* --- 封面作品速览 + 更新批次并列 --- */
.covers-updates {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.covers-updates-inner {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.covers-column,
.updates-column {
  min-width: 0;
}

.column-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
}

.column-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.cover-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.cover-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.cover-tags {
  font-size: 13px;
  color: var(--text-sub);
}

.updates-column {
  padding: 22px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.batch-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.batch-item:last-child {
  border-bottom: 0;
}

.batch-no {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(201, 162, 107, 0.16);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.batch-detail {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.batch-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
}

/* --- 字段口径 + 查阅步骤并列 --- */
.fields-guide {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.fields-guide-inner {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.fields-column,
.guide-column {
  min-width: 0;
}

/* 首页字段表 */
.fields-column .field-table {
  margin-top: 18px;
  font-size: 14px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fields-column .field-table th,
.fields-column .field-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fields-column .field-table thead th {
  background: rgba(201, 162, 107, 0.12);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.fields-column .field-table tbody tr:last-child th,
.fields-column .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.fields-column .field-table tbody th {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  width: 116px;
}

.fields-column .field-table tbody td {
  color: var(--text-sub);
}

/* 首页步骤条 */
.guide-column .step-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-column .step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-column .step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
}

.guide-column .step-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.guide-column .step-text {
  font-size: 14px;
  color: var(--text-sub);
}

/* --- 站内栏目索引 --- */
.site-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 76px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.index-col {
  min-width: 0;
}

.index-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  padding: 3px 0;
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   5. PAGES · 内页（题材分类 / 更新记录 / 条目字段 / 查阅指引）
   -------------------------------------------------------------------------- */

/* --- 通用内页区块 --- */
.content-section {
  margin-top: 48px;
}

.content-section:first-of-type {
  margin-top: 0;
}

/* --- 题材分类页 --- */
.genre-groups {
  display: block;
}

.genre-group {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.genre-group:first-of-type {
  padding-top: 0;
}

.genre-group .genre-name {
  font-size: 21px;
}

.genre-group .genre-scope {
  margin-top: 10px;
  max-width: var(--read-width);
  font-size: 15px;
}

.genre-media {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  max-width: 720px;
}

.genre-media img {
  aspect-ratio: 16 / 9;
}

.genre-media figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.genre-entry-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.genre-entry {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-entry:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.genre-entry a {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.genre-entry a:hover,
.genre-entry a:focus-visible {
  color: var(--brand-soft);
}

.genre-entry .entry-meta {
  font-size: 13px;
  color: var(--text-sub);
}

.genre-notes {
  margin-top: 48px;
}

.status-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.status-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.notes-tail {
  margin-top: 20px;
  max-width: var(--read-width);
  font-size: 14px;
  color: var(--text-sub);
}

.notes-tail a {
  margin-right: 12px;
}

/* --- 更新记录页 --- */
.section {
  display: block;
}

.batch-rule {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-media {
  margin-top: 22px;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.section-media img {
  aspect-ratio: 16 / 9;
}

.section-media figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.rule-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-soft);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-sub);
}

.batch-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 更新记录页的折叠批次（覆盖首页 .batch-item 的横排定义） */
.batch-list .batch-item {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-content);
  overflow: hidden;
}

.batch-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.batch-summary::-webkit-details-marker {
  display: none;
}

.batch-summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 13px;
  color: var(--brand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  white-space: nowrap;
}

details[open] > .batch-summary::after {
  content: "收起";
}

.batch-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(201, 162, 107, 0.16);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.batch-date {
  font-size: 14px;
  color: var(--text-sub);
}

.batch-count {
  font-size: 13px;
  color: var(--text-sub);
}

.batch-entries {
  padding: 4px 18px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.batch-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.batch-entry:last-child {
  border-bottom: 0;
}

.batch-entry .entry-name {
  font-weight: 600;
  color: var(--text-main);
}

.batch-entry .entry-genre,
.batch-entry .entry-progress {
  color: var(--text-sub);
}

.progress-map {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.field-map {
  margin-top: 24px;
  font-size: 14px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-map caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(201, 162, 107, 0.12);
  border-bottom: 1px solid var(--line);
}

.field-map th,
.field-map td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-map thead th {
  background: rgba(201, 162, 107, 0.08);
  font-weight: 600;
  color: var(--text-main);
}

.field-map tbody tr:last-child td {
  border-bottom: 0;
}

.field-map tbody td {
  color: var(--text-sub);
}

/* --- 条目字段说明页 --- */
.field-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-content);
}

.field-table-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(201, 162, 107, 0.12);
  border-bottom: 1px solid var(--line);
}

.field-table-section .field-table {
  font-size: 14px;
  min-width: 560px;
}

.field-table-section .field-table th,
.field-table-section .field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table-section .field-table thead th {
  background: rgba(201, 162, 107, 0.08);
  font-weight: 600;
  color: var(--text-main);
}

.field-table-section .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table-section .field-name {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  width: 150px;
}

.field-table-section .field-mean {
  color: var(--text-main);
  width: 260px;
}

.field-table-section .field-value {
  color: var(--text-sub);
}

.field-figure {
  margin-top: 24px;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.field-figure img {
  aspect-ratio: 16 / 9;
}

.field-figure-caption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.example-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.example-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.example-text {
  font-size: 14px;
  color: var(--text-sub);
}

.batch-map {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.batch-map-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-soft);
  border-radius: var(--radius);
}

.batch-map-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.batch-map-text {
  font-size: 14px;
  color: var(--text-sub);
}

.next-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.next-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.next-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}

.next-item a:hover,
.next-item a:focus-visible {
  color: var(--brand-soft);
}

.next-item .next-desc {
  font-size: 14px;
  color: var(--text-sub);
}

/* --- 查阅指引页 --- */
.guide-steps {
  display: block;
}

.guide-figure {
  margin-top: 22px;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.guide-figure img {
  aspect-ratio: 16 / 9;
}

.guide-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* 指引页步骤条（覆盖首页 .step-item 的网格定义） */
.guide-steps .step-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-steps .step-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-steps .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
}

.guide-steps .step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.guide-steps .step-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.guide-faq {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.faq-item {
  margin-top: 12px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item:first-of-type {
  margin-top: 24px;
}

.faq-question {
  display: block;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  position: relative;
  padding-right: 52px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

details[open] > .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  padding-top: 14px;
  max-width: var(--read-width);
  font-size: 15px;
  color: var(--text-sub);
}

.guide-feedback {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.feedback-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feedback-card {
  min-width: 0;
  padding: 20px;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feedback-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.feedback-note {
  margin-top: 22px;
  max-width: var(--read-width);
  font-size: 14px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   6. PAGES · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.error-block {
  padding: 72px 0 40px;
  max-width: var(--read-width);
}

.error-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.error-block h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-main);
}

.error-text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-sub);
}

.error-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--brand);
  background: var(--bg-content);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  line-height: 22px;
}

.error-links a:hover,
.error-links a:focus-visible {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE · 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 42px 20px 46px;
  }

  .hero-title {
    font-size: 34px;
  }

  .genres-overview,
  .covers-updates,
  .fields-guide,
  .site-index {
    padding-left: 20px;
    padding-right: 20px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .covers-updates-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .cover-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fields-guide-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .inner-main,
  .error-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-title {
    font-size: 30px;
  }

  .genre-entry-list,
  .status-list,
  .batch-map,
  .feedback-grid,
  .guide-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-inner {
    padding: 34px 20px 24px;
  }
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE · 720px（手机，含 390px）
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tag {
    font-size: 11px;
  }

  /* 移动端：显示汉堡按钮，导航列表默认收起 */
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 10px;
    font-size: 15px;
    min-height: 44px;
    line-height: 20px;
  }

  .site-main {
    overflow-x: visible;
  }

  .hero-inner {
    padding: 30px 16px 36px;
    gap: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-entries li {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .hero-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .genres-overview,
  .covers-updates,
  .fields-guide,
  .site-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genres-overview,
  .covers-updates,
  .fields-guide {
    padding-top: 40px;
  }

  .site-index {
    padding-top: 40px;
    padding-bottom: 52px;
  }

  .section-title,
  .section-title-wide {
    font-size: 21px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-box {
    padding: 18px 16px;
  }

  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .updates-column {
    padding: 18px 16px;
  }

  .fields-column .field-table {
    font-size: 13px;
  }

  .fields-column .field-table th,
  .fields-column .field-table td {
    padding: 9px 10px;
  }

  .fields-column .field-table tbody th {
    width: 96px;
    white-space: normal;
  }

  .guide-column .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .guide-column .step-no {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* --- 内页 --- */
  .inner-main,
  .error-main {
    padding: 0 16px 52px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
    margin-top: 12px;
  }

  .content-section {
    margin-top: 36px;
  }

  .genre-group {
    padding: 24px 0 26px;
  }

  .genre-group .genre-name {
    font-size: 19px;
  }

  .genre-entry-list,
  .status-list,
  .batch-map,
  .feedback-grid,
  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .genre-media,
  .section-media,
  .field-figure,
  .guide-figure {
    max-width: 100%;
  }

  .genre-notes,
  .progress-map,
  .guide-faq,
  .guide-feedback {
    margin-top: 36px;
    padding-top: 26px;
  }

  .rule-list,
  .example-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .batch-summary {
    gap: 8px;
    padding: 13px 14px;
  }

  .batch-summary::after {
    margin-left: 0;
  }

  .batch-entries {
    padding: 4px 14px 14px;
  }

  .batch-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 0;
  }

  .field-table-wrap {
    margin-top: 18px;
  }

  .field-table-section .field-table {
    min-width: 520px;
  }

  .field-table-section .field-table th,
  .field-table-section .field-table td {
    padding: 10px 12px;
  }

  .field-table-section .field-name {
    width: 120px;
    white-space: normal;
  }

  .field-table-section .field-mean {
    width: 180px;
  }

  .field-map {
    font-size: 13px;
  }

  .field-map th,
  .field-map td {
    padding: 10px 12px;
  }

  .next-item {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 48px 14px 14px;
  }

  .faq-answer {
    padding: 0 14px 16px;
  }

  .error-block {
    padding: 48px 0 32px;
  }

  .error-block h1 {
    font-size: 26px;
  }

  .error-links {
    gap: 10px;
  }

  .error-links a {
    flex: 1 1 140px;
    text-align: center;
  }

  /* --- 页脚 --- */
  .footer-inner {
    padding: 28px 16px 20px;
  }

  .footer-top {
    padding-bottom: 18px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0 20px;
  }

  .footer-list a {
    min-height: 30px;
    line-height: 24px;
  }
}

/* --------------------------------------------------------------------------
   9. ENHANCEMENT · 不影响初始可见性的轻量动效
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .genre-box,
  .cover-card,
  .genre-entry {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
