/* =========================================================
   禁漫天堂 sybsk.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   base：变量、重置、排版基础
   --------------------------------------------------------- */
:root {
  --c-text: #1B1F24;
  --c-muted: #5A6470;
  --c-bg: #E8E4DC;
  --c-surface: #FFFFFF;
  --c-accent: #8C6A3F;
  --c-line: #D5CFC4;
  --c-line-soft: #E4DFD5;
  --c-hover: #F4F1EA;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --gap: 24px;
  --shadow-card: 0 1px 2px rgba(27, 31, 36, 0.06);
  --shadow-lift: 0 6px 18px rgba(27, 31, 36, 0.12);
  --font-title: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------------------------------
   layout：全站骨架（页头、导航、主容器、面包屑、页脚）
   --------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--c-text);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background-color: var(--c-surface);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--c-text);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 18px;
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-text);
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.page-description {
  max-width: 68ch;
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.75;
}

.site-footer {
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 42ch;
  font-size: 14px;
  color: var(--c-muted);
}

.footer-group {
  min-width: 0;
}

.footer-group h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  padding: 3px 0;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--c-accent);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 32px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

/* ---------------------------------------------------------
   components：通用模块（标题组、卡片、列表、表格、步骤、FAQ）
   --------------------------------------------------------- */
.section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
  max-width: 72ch;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15px;
  color: var(--c-muted);
}

.section-intro,
.section-lead {
  max-width: 72ch;
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.section-media {
  margin: 0 0 28px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: var(--c-hover);
}

.section-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

/* 字段对照表（首页摘要） */
.field-table,
.value-table {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption,
.value-table caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: left;
  border-bottom: 1px solid var(--c-line-soft);
}

.field-table th,
.field-table td,
.value-table th,
.value-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.field-table thead th,
.value-table thead th {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--c-text);
  background-color: var(--c-hover);
}

.field-table tbody tr:last-child td,
.value-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 折叠问答（内页通用） */
.faq-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq-item summary {
  padding: 16px 18px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--c-accent);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--c-muted);
}

/* 返回顶部按钮（滚动增强） */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-surface);
  background-color: var(--c-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--c-accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   pages：首页
   --------------------------------------------------------- */
.fact-bar {
  background-color: var(--c-text);
}

.fact-bar p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  color: #E8E4DC;
}

.hero {
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-lead .page-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-summary {
  max-width: 60ch;
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 26px;
}

.hero-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-path {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--c-hover);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-path a {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-path span {
  font-size: 14px;
  color: var(--c-muted);
}

.hero-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-media {
  background-color: var(--c-bg);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-muted);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line-soft);
}

.hero-directory {
  background-color: var(--c-hover);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-directory-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.directory-list li {
  border-bottom: 1px solid var(--c-line-soft);
}

.directory-list li:last-child {
  border-bottom: 0;
}

.directory-list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--c-text);
}

.directory-list a:hover,
.directory-list a:focus-visible {
  color: var(--c-accent);
}

.hero-random {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--c-surface);
  background-color: var(--c-text);
  border-radius: var(--radius-sm);
}

.hero-random:hover,
.hero-random:focus-visible {
  background-color: var(--c-accent);
  text-decoration: none;
}

/* 题材方向总览 */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.direction-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.direction-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.direction-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin-bottom: 14px;
}

.direction-meta dt {
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
}

.direction-meta dd {
  font-size: 14px;
  color: var(--c-text);
}

.direction-rep {
  font-size: 14px;
  color: var(--c-muted);
  padding-top: 12px;
  border-top: 1px solid var(--c-line-soft);
}

.direction-rep a {
  margin-right: 10px;
}

/* 封面速览与更新记录并列区 */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.overview-covers {
  min-width: 0;
}

.overview-covers h3,
.overview-updates h3,
.reference-rank h3,
.reference-fields h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.cover-card {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: var(--c-accent);
}

.cover-card a {
  display: block;
  padding: 16px;
  color: var(--c-text);
}

.cover-card a:hover,
.cover-card a:focus-visible {
  text-decoration: none;
}

.cover-name {
  display: block;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cover-tag,
.cover-state {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: var(--radius-sm);
}

.cover-tag {
  color: var(--c-accent);
  background-color: var(--c-hover);
}

.cover-state {
  color: var(--c-muted);
  border: 1px solid var(--c-line-soft);
}

.covers-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-muted);
}

.overview-updates {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.batch-list {
  display: flex;
  flex-direction: column;
}

.batch-row {
  padding: 12px 8px;
  border-bottom: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease;
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-row:hover {
  background-color: var(--c-hover);
}

.batch-no {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  margin-right: 10px;
}

.batch-dir {
  display: inline-block;
  font-size: 13px;
  color: var(--c-muted);
  margin-right: 10px;
}

.batch-date {
  display: inline-block;
  font-size: 13px;
  color: var(--c-muted);
}

.batch-note {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--c-text);
}

.aside-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

/* 位次参考与字段口径 */
.reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.reference-rank,
.reference-fields {
  min-width: 0;
}

.rank-list {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line-soft);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}

.rank-name {
  font-size: 15px;
  color: var(--c-text);
}

.rank-dir {
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
}

.fields-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 查阅路径三步指引 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.step-item {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-surface);
  background-color: var(--c-accent);
  border-radius: 50%;
}

.path-guide .step-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.path-guide .step-item p {
  font-size: 15px;
  color: var(--c-muted);
}

.feedback-note {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.feedback-note h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feedback-note p {
  font-size: 15px;
  color: var(--c-muted);
}

.feedback-note a {
  margin-right: 12px;
}

/* 站内栏目索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.index-column {
  min-width: 0;
  padding: 18px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
}

.index-column h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.index-column p {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.index-column a {
  display: inline-block;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.index-column a:hover,
.index-column a:focus-visible {
  border-bottom-color: var(--c-accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   pages：题材分类页
   --------------------------------------------------------- */
.topic-groups h2,
.topic-advice h2,
.topic-faq h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.topic-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  grid-template-areas:
    "body figure"
    "entries entries";
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--c-line);
}

.topic-group-body {
  grid-area: body;
  min-width: 0;
}

.topic-group-name {
  font-size: 20px;
  margin-bottom: 12px;
}

.topic-group-scope,
.topic-group-tone {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.field-label {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--c-text);
}

.topic-group-figure {
  grid-area: figure;
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-group-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.topic-group-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

.topic-group-entries {
  grid-area: entries;
  min-width: 0;
}

.entries-title {
  font-size: 15px;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.entry-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.entry-card {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
}

.entry-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}

.entry-tag,
.entry-status {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.entry-tag {
  color: var(--c-accent);
  background-color: var(--c-hover);
}

.entry-status {
  color: var(--c-muted);
  border: 1px solid var(--c-line-soft);
}

.topic-advice {
  margin-top: 40px;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.advice-item {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.advice-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.advice-text {
  font-size: 15px;
  color: var(--c-muted);
}

.advice-more {
  margin-top: 18px;
  font-size: 14px;
}

.advice-more a {
  margin-right: 14px;
}

.topic-faq {
  margin-top: 40px;
}

/* ---------------------------------------------------------
   pages：更新记录页
   --------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.update-batches,
.direction-entry {
  min-width: 0;
}

.update-batches h2,
.record-policy h2,
.direction-entry h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.update-figure {
  margin: 0 0 24px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

.update-batches .batch-list {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 8px;
}

.update-batches .batch-row {
  display: grid;
  grid-template-columns: 92px 110px 108px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 12px;
}

.update-batches .batch-no,
.update-batches .batch-direction,
.update-batches .batch-date {
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
}

.update-batches .batch-no {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--c-accent);
}

.update-batches .batch-changes {
  font-size: 14px;
  color: var(--c-text);
}

.record-policy {
  min-width: 0;
}

.policy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-col {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.policy-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--c-muted);
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--c-accent);
  border-radius: 50%;
}

.direction-entry {
  margin-top: 40px;
}

.direction-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.direction-links a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--c-text);
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.direction-links a:hover,
.direction-links a:focus-visible {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.direction-note {
  font-size: 14px;
  color: var(--c-muted);
}

.direction-note a {
  margin-right: 14px;
}

/* ---------------------------------------------------------
   pages：条目字段说明页
   --------------------------------------------------------- */
.fields-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

.section-fields-definition h2,
.section-rank-scope h2,
.section-value-table h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.field-list {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-name {
  padding: 14px 18px 6px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  background-color: var(--c-hover);
  border-top: 1px solid var(--c-line-soft);
}

.field-name:first-of-type {
  border-top: 0;
}

.field-body {
  padding: 6px 18px 18px;
  background-color: var(--c-surface);
}

.field-meaning {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 6px;
}

.field-sample {
  font-size: 14px;
  color: var(--c-muted);
}

.rank-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.rank-scope-item {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.rank-scope-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.rank-scope-item p {
  font-size: 14px;
  color: var(--c-muted);
}

.aside-block {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-block h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list li {
  font-size: 14px;
  color: var(--c-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.aside-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
}

/* ---------------------------------------------------------
   pages：查阅路径指引页
   --------------------------------------------------------- */
.page-media {
  margin: 0 0 36px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.page-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

.guide-steps,
.guide-criteria,
.guide-feedback,
.guide-links {
  margin-bottom: 44px;
}

.guide-steps h2,
.guide-criteria h2,
.guide-feedback h2,
.guide-links h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.guide-steps .step-list {
  margin-bottom: 0;
}

.guide-steps .step-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-surface);
  background-color: var(--c-accent);
  border-radius: 50%;
}

.guide-steps .step-item p {
  font-size: 15px;
  color: var(--c-muted);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.criteria-item {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.criteria-item h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.criteria-basis,
.criteria-pitfall {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.criteria-basis strong,
.criteria-pitfall strong {
  display: inline-block;
  min-width: 68px;
  margin-right: 6px;
  font-family: var(--font-title);
  color: var(--c-text);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.feedback-item {
  min-width: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feedback-item p {
  font-size: 15px;
  color: var(--c-muted);
}

.guide-feedback .feedback-note {
  margin-bottom: 0;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.link-list a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--c-text);
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

/* ---------------------------------------------------------
   pages：404
   --------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 96px;
  width: 100%;
}

.error-panel {
  max-width: 640px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 36px 32px;
}

.error-code {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--c-text);
  background-color: var(--c-hover);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   responsive：1024px 与 768px 断点
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 40px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-layout,
  .reference-layout,
  .page-layout,
  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 4px;
    border-top: 1px solid var(--c-line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--c-accent);
  }

  .inner-main {
    padding: 22px 18px 52px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
  }

  .hero-inner {
    padding: 32px 18px 40px;
  }

  .hero-lead .page-title {
    font-size: 26px;
  }

  .hero-path {
    flex-direction: column;
    gap: 4px;
  }

  .hero-path a {
    white-space: normal;
  }

  .fact-bar p {
    padding: 9px 18px;
  }

  .section {
    margin-bottom: 42px;
  }

  .section-head h2,
  .topic-groups h2,
  .topic-advice h2,
  .topic-faq h2,
  .update-batches h2,
  .record-policy h2,
  .direction-entry h2,
  .section-fields-definition h2,
  .section-rank-scope h2,
  .section-value-table h2,
  .guide-steps h2,
  .guide-criteria h2,
  .guide-feedback h2,
  .guide-links h2 {
    font-size: 20px;
  }

  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-group {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "body"
      "figure"
      "entries";
    gap: 18px;
    padding: 22px 0;
  }

  .topic-group-figure img {
    height: 180px;
  }

  .update-batches .batch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-batches .batch-no,
  .update-batches .batch-direction,
  .update-batches .batch-date {
    display: inline-block;
    margin-right: 10px;
  }

  .policy-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-media img,
  .page-media img,
  .update-figure img {
    height: 190px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 18px 20px;
  }

  .footer-copy {
    padding: 14px 18px 28px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .error-main {
    padding: 48px 18px 72px;
  }

  .error-panel {
    padding: 28px 22px;
  }

  .error-panel h1 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lead .page-title {
    font-size: 23px;
  }
}
