/* =========================================================
   羞羞漫画 · 全站样式
   base → layout → components → pages → responsive
   ========================================================= */

/* ---------- base ---------- */

:root {
  --ink: #2b2b3a;
  --ink-deep: #1f1f28;
  --accent: #e8544e;
  --accent-dark: #c8403b;
  --paper: #f7f5f2;
  --card: #ffffff;
  --line: #e2ded7;
  --line-soft: #ece8e2;
  --muted: #6b6a78;
  --muted-light: #9a98a4;
  --light-text: #e8e6e2;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --gap: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- layout ---------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.site-main {
  flex: 1 1 auto;
  display: block;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--light-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  color: var(--light-text);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted-light);
  line-height: 1.4;
}

.brand:hover .brand-name {
  color: var(--accent);
}

/* 主导航 */

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--light-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.nav-link.is-current {
  color: #ffffff;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light-text);
  border-radius: 1px;
}

/* 顶部事实条 */

.fact-bar {
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fact-bar-text {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--muted-light);
}

/* 内页骨架 */

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 24px 56px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--muted-light);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 860px;
}

.page-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 860px;
}

/* 通用分栏 */

.page-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr);
}

.page-layout.sidebar-left {
  grid-template-columns: 264px minmax(0, 1fr);
}

.page-layout.sidebar-left .page-aside,
.page-layout.sidebar-left .archive-summary {
  grid-column: 1;
  grid-row: 1;
}

.page-layout.sidebar-left .page-content,
.page-layout.sidebar-left .layout-main {
  grid-column: 2;
  grid-row: 1;
}

.layout-main {
  min-width: 0;
}

.content-main {
  min-width: 0;
}

/* 页脚 */

.site-footer {
  background: var(--ink-deep);
  color: var(--light-text);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px 26px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #b9b6bd;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  font-size: 13px;
  color: #b9b6bd;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #8f8c96;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  color: #8f8c96;
}

/* ---------- components ---------- */

/* 区块标题 */

.section {
  margin-bottom: 46px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 800px;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 820px;
}

.col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* 标签 */

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  background: #f0ece6;
  color: var(--muted);
  white-space: nowrap;
}

.tag-genre {
  background: #fbe9e8;
  color: var(--accent-dark);
}

/* 摘要框 */

.summary-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.summary-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.summary-text + .summary-text {
  margin-top: 10px;
}

.summary-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-meta li {
  font-size: 12px;
  color: var(--ink);
  background: #f2eee8;
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}

/* 目录 */

.toc {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  counter-reset: toc;
}

.toc-item {
  font-size: 13px;
  counter-increment: toc;
}

.toc-item a {
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.toc-item a::before {
  content: counter(toc);
  flex: none;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: #f0ece6;
  color: var(--muted);
}

.toc-item a:hover {
  color: var(--accent);
}

/* 通用内容区块 */

.content-section {
  margin-bottom: 44px;
}

.content-section > .section-head {
  margin-bottom: 18px;
}

/* 站内链接网格 */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.link-grid-item a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.link-grid-item a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.link-grid-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* 相关链接列表 */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.related-item a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.related-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* 图片容器 */

.section-figure,
.figure-block,
.guide-figure,
.archive-figure,
.topic-figure,
.topic-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ece8e2;
}

.section-figure img,
.figure-block img,
.guide-figure img,
.archive-figure img,
.topic-figure img,
.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure-caption,
.figcaption,
.section-figure figcaption,
.figure-block figcaption,
.guide-figure figcaption,
.archive-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line-soft);
}

/* 折叠问答 */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line-soft);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- pages ---------- */

/* 首页首屏 */

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 56px;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: #fbe9e8;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-path-item {
  display: block;
}

.hero-path-link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  min-height: 44px;
  line-height: 24px;
}

.hero-path-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.hero-path-item:nth-child(2) .hero-path-link {
  background: var(--accent);
}

.hero-path-item:nth-child(2) .hero-path-link:hover {
  background: var(--accent-dark);
}

.hero-path-item:nth-child(3) .hero-path-link {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.hero-path-item:nth-child(3) .hero-path-link:hover {
  background: var(--ink);
  color: #ffffff;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.hero-visual-caption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* 首页 · 题材分类总览 */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.cat-row:hover {
  background: var(--card);
}

.cat-no {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.cat-body {
  min-width: 0;
}

.cat-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cat-name a:hover {
  color: var(--accent);
}

.cat-scope {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cat-rep {
  font-size: 13px;
  color: var(--muted-light);
}

/* 首页 · 年份归档速览 */

.archive-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.archive-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.archive-range {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.archive-range a:hover {
  color: var(--accent);
}

.archive-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-items li {
  font-size: 13px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.archive-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.archive-note {
  font-size: 12px;
  color: var(--muted-light);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* 首页 · 专题片单 */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.topic-media img {
  transition: transform 0.35s ease;
}

.topic-card:hover .topic-media img {
  transform: scale(1.04);
}

.topic-body {
  padding: 16px 18px 18px;
  min-width: 0;
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-name a:hover {
  color: var(--accent);
}

.topic-idea {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.topic-picks {
  font-size: 13px;
  color: var(--muted-light);
}

/* 首页 · 最近更新与榜单 */

.updates-layout,
.fields-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.updates-col,
.rank-col,
.fields-col,
.bounds-col {
  min-width: 0;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.update-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.update-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.update-name:hover {
  color: var(--accent);
}

.update-note {
  font-size: 12px;
  color: var(--muted-light);
  margin-left: auto;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-no {
  flex: none;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: #f0ece6;
  color: var(--muted);
}

.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  background: var(--accent);
  color: #ffffff;
}

.rank-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.rank-name:hover {
  color: var(--accent);
}

/* 首页 · 字段与边界摘要 */

.field-list {
  border-top: 1px solid var(--line);
}

.field-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 12px;
}

.field-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.fields-more,
.bounds-more {
  margin-top: 14px;
  font-size: 13px;
}

.fields-more a,
.bounds-more a {
  color: var(--accent);
  font-weight: 700;
}

.fields-more a:hover,
.bounds-more a:hover {
  color: var(--accent-dark);
}

.bounds-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bounds-list li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.bounds-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* 首页 · 站内栏目索引 */

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-link {
  display: block;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.index-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.index-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
}

/* 题材分类页 */

.page-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.category-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.category-row:hover {
  background: var(--card);
}

.category-index {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
}

.category-body {
  min-width: 0;
}

.category-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-scope {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.category-sample {
  font-size: 13px;
  color: var(--muted-light);
}

.distinction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.distinction-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.distinction-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.distinction-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.relation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.relation-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.relation-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.relation-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.relation-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.relation-link a {
  color: var(--accent);
}

.relation-link a:hover {
  color: var(--accent-dark);
}

.section-figure {
  margin-top: 24px;
}

.section-figure img {
  aspect-ratio: 16 / 7;
}

/* 年份归档页 */

.archive-summary {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.aside-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.summary-facts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.summary-facts dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.summary-facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.archive-figure {
  margin-top: 16px;
}

.archive-figure img {
  aspect-ratio: 4 / 3;
}

.archive-toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
}

.year-section {
  margin-bottom: 44px;
}

.year-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.year-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f2eee8;
  border-bottom: 1px solid var(--line);
}

.year-range {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.year-count {
  font-size: 12px;
  color: var(--accent-dark);
  background: #fbe9e8;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.year-row-body {
  padding: 16px 18px 18px;
}

.year-reps {
  margin-bottom: 10px;
}

.year-reps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.rep-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rep-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  background: #f2eee8;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.rep-tag {
  font-size: 11px;
  color: var(--accent-dark);
}

.year-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.year-rule,
.year-cross {
  margin-bottom: 40px;
}

.year-rule > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 820px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.rule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cross-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.cross-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cross-col p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.cross-col p + p {
  margin-top: 8px;
}

/* 专题片单页 */

.summary-box[aria-label="本页摘要"] {
  margin-bottom: 22px;
}

.topic-list-section > .section-title {
  margin-bottom: 8px;
}

.topic-list-section > .section-desc {
  margin-bottom: 20px;
}

.topic-list-section .topic-card {
  flex-direction: row;
  margin-bottom: 20px;
}

.topic-list-section .topic-figure {
  flex: 0 0 300px;
  aspect-ratio: auto;
  border-radius: 0;
}

.topic-list-section .topic-figure img {
  transition: transform 0.35s ease;
}

.topic-list-section .topic-card:hover .topic-figure img {
  transform: scale(1.04);
}

.topic-entries {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.topic-entries dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.topic-entries dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.topic-link {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.topic-link a {
  color: var(--accent);
}

.topic-link a:hover {
  color: var(--accent-dark);
}

.topic-rules-section .rule-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.topic-rules-section .rule-list dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.topic-rules-section .rule-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.topic-relation-section .relation-col p + p {
  margin-top: 8px;
}

/* 浏览指引页 */

.guide-summary {
  margin-bottom: 30px;
}

.guide-summary p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 860px;
}

.guide-summary p + p {
  margin-top: 10px;
}

.guide-figure {
  margin-bottom: 34px;
}

.guide-figure img {
  aspect-ratio: 16 / 7;
}

.guide-steps {
  margin-bottom: 44px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  min-width: 0;
}

.step-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 10px;
}

.step-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-action {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 8px;
}

.step-confirm {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.guide-faq {
  margin-bottom: 44px;
}

.guide-mapping {
  margin-bottom: 44px;
}

.mapping-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mapping-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.mapping-col-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mapping-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mapping-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.mapping-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* 字段与边界页 */

.page-boundaries .content-main {
  min-width: 0;
}

.page-boundaries .summary-box {
  margin-bottom: 28px;
}

.page-boundaries .summary-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.page-boundaries .summary-box p + p {
  margin-top: 10px;
}

.figure-block {
  margin-bottom: 32px;
}

.figure-block img {
  aspect-ratio: 16 / 7;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #f2eee8;
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.field-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #faf8f5;
}

.field-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.field-table td {
  color: var(--muted);
  line-height: 1.75;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scope-item {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.update-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-step {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.update-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.page-boundaries .related-section {
  margin-top: 12px;
}

/* 404 */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}

.error-inner {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  text-align: left;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.error-list li {
  padding-left: 16px;
  position: relative;
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.error-list a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.error-list a:hover {
  color: var(--accent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 44px;
  line-height: 22px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #ffffff;
}

.error-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.error-note a {
  color: var(--accent);
  font-weight: 700;
}

.error-note a:hover {
  color: var(--accent-dark);
}

/* 滚动出现动画（增强，不影响初始可见） */

.reveal-ready .section,
.reveal-ready .hero-copy,
.reveal-ready .hero-visual {
  animation: rise-in 0.5s ease both;
}

@keyframes rise-in {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .section,
  .reveal-ready .hero-copy,
  .reveal-ready .hero-visual {
    animation: none;
  }

  .topic-media img,
  .topic-figure img {
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 0 18px;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
    line-height: 20px;
  }

  .fact-bar-text {
    padding: 8px 18px;
  }

  .home-main,
  .inner-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-bottom: 44px;
  }

  .hero-title {
    font-size: 28px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout.sidebar-left .page-aside,
  .page-layout.sidebar-left .archive-summary,
  .page-layout.sidebar-left .page-content,
  .page-layout.sidebar-left .layout-main {
    grid-column: 1;
    grid-row: auto;
  }

  .page-layout.sidebar-left .page-content,
  .page-layout.sidebar-left .layout-main {
    order: 1;
  }

  .page-layout.sidebar-left .page-aside,
  .page-layout.sidebar-left .archive-summary {
    order: 2;
  }

  .page-layout.sidebar-left {
    display: flex;
    flex-direction: column;
  }

  .topic-grid,
  .updates-layout,
  .fields-layout,
  .relation-columns,
  .cross-grid,
  .mapping-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-list-section .topic-card {
    flex-direction: column;
  }

  .topic-list-section .topic-figure {
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 36px 18px 24px;
    gap: 26px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-copy {
    padding: 14px 18px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tag {
    font-size: 11px;
  }

  .home-main,
  .inner-main {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 44px;
  }

  .home-main {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .section {
    margin-bottom: 36px;
  }

  .cat-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 4px;
  }

  .cat-no {
    font-size: 18px;
  }

  .category-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 2px;
  }

  .category-index {
    font-size: 17px;
  }

  .archive-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-note {
    margin-left: 0;
    flex: 1 0 100%;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .link-grid,
  .related-list,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-rules-section .rule-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .topic-rules-section .rule-list dt {
    margin-top: 8px;
  }

  .summary-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .summary-facts dd {
    margin-bottom: 8px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .error-inner {
    padding: 26px 20px 24px;
  }

  .error-title {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }
}
