/* =========================================================
   新新漫画 · 全站样式表
   研究报告风漫画内容站
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base —— 变量、重置、基础排版
   --------------------------------------------------------- */
:root {
  --bg-page: #fbfbf9;
  --bg-panel: #ffffff;
  --bg-soft: #f4f4f0;
  --text-main: #23262b;
  --text-sub: #6b7078;
  --line: #e2e0da;
  --line-strong: #cfccc3;
  --accent: #2f5d50;
  --accent-soft: #eef1ec;
  --accent-deep: #24473d;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-hover: 0 6px 18px rgba(35, 38, 43, 0.08);
  --container: 1120px;
  --prose: 720px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------
   2. layout —— 骨架：页头、主容器、页脚
   --------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(251, 251, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0;
  padding: 8px 0;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--accent);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  background-color: var(--bg-soft);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background-color: var(--accent-soft);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--text-main);
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--text-main);
}

.nav-toggle::after {
  bottom: 16px;
  display: none;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
}

/* 主容器 */
.site-main {
  display: block;
}

.home-main {
  padding-bottom: 24px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* 通用 section 间距 */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.home-main > .section {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-main > .section:first-of-type {
  border-top: none;
}

/* 页脚 */
.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  padding: 3px 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-bottom p {
  margin: 0;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-main);
}

.footer-desc {
  flex: 1 1 240px;
}

.footer-copy {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   3. components —— 通用组件
   --------------------------------------------------------- */

/* 区块标题组 */
.section-head {
  max-width: var(--prose);
  margin-bottom: 26px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-desc,
.section-intro,
.section-lead,
.section-note {
  font-size: 15px;
  color: var(--text-sub);
  max-width: var(--prose);
  margin-bottom: 0;
}

.section-intro,
.section-lead,
.section-note {
  margin-bottom: 24px;
}

.section-body {
  max-width: var(--prose);
}

.section-body p {
  margin-bottom: 1em;
}

/* 文字链接 */
.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 93, 80, 0.35);
  padding-bottom: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* 封面卡片（首页封面墙） */
.cover-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.cover-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
}

.cover-note {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

/* 标签 */
.tag,
.update-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  white-space: nowrap;
}

/* 更新状态 */
.update-status {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
}

.status-active,
.status-new {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-color: rgba(47, 93, 80, 0.22);
}

.status-note {
  color: #7a5c1e;
  background-color: #f7f1e2;
  border-color: #e8dcc0;
}

.status-pause {
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border-color: var(--line);
}

/* 字段对照表 */
.field-table {
  width: 100%;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.field-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 14px;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.field-table tbody th,
.field-table tbody td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table tbody th {
  width: 30%;
  min-width: 96px;
  font-weight: 600;
  color: var(--text-main);
  background-color: #fcfcfa;
}

.field-table tbody td {
  color: var(--text-sub);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 页面标题区 */
.page-header {
  max-width: var(--prose);
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--text-sub);
  margin: 0;
}

/* 正文段落区 */
.prose {
  max-width: var(--prose);
}

.prose p {
  margin-bottom: 1em;
  color: var(--text-main);
}

/* 相关链接列表 */
.related-list,
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-main);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* 侧栏标题与列表 */
.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.aside-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.aside-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--accent);
}

/* ---------------------------------------------------------
   4. pages —— 首页
   --------------------------------------------------------- */

/* 首屏 */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

/* 题材锚点索引 */
.genre-index-list {
  border-top: 1px solid var(--line);
}

.genre-index-row {
  display: grid;
  grid-template-columns: 44px 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.genre-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.genre-name:hover,
.genre-name:focus-visible {
  color: var(--accent);
}

.genre-trait,
.genre-organize {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

/* 封面墙 */
.wall-group {
  margin-bottom: 34px;
}

.wall-group:last-child {
  margin-bottom: 0;
}

.wall-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 最近更新线索 */
.layout-updates {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.updates-main {
  min-width: 0;
}

.updates-main .section-title {
  margin-bottom: 10px;
}

.updates-main .section-desc {
  margin-bottom: 24px;
}

.update-month {
  margin-bottom: 24px;
}

.update-month:last-child {
  margin-bottom: 0;
}

.update-month-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  flex: 0 0 auto;
}

.update-name {
  font-size: 15px;
  color: var(--text-main);
  flex: 1 1 160px;
  min-width: 0;
}

.updates-aside {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* 榜单排行速览 */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ranking-col {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.ranking-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.ranking-basis {
  font-size: 14px;
  color: var(--text-sub);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.ranking-no {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.ranking-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.ranking-reason {
  grid-column: 2;
  font-size: 13px;
  color: var(--text-sub);
}

.ranking-more {
  margin-top: 22px;
  margin-bottom: 0;
}

/* 阅读说明摘要 */
.layout-guide-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-fields,
.guide-scope {
  min-width: 0;
}

.guide-fields .section-title,
.guide-scope .section-title {
  margin-bottom: 16px;
}

.guide-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.index-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.index-note {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.index-links a {
  font-size: 14px;
  color: var(--accent);
  padding: 3px 0;
}

/* ---------------------------------------------------------
   5. pages —— 题材分类
   --------------------------------------------------------- */
.genre-overview .section-title,
.genre-anchor-index .section-title,
.genre-sections .section-title,
.genre-boundary .section-title {
  margin-bottom: 10px;
}

.overview-list {
  border-top: 1px solid var(--line);
}

.overview-row {
  display: grid;
  grid-template-columns: 40px 110px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.overview-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.overview-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.overview-trait,
.overview-organize {
  font-size: 15px;
  color: var(--text-sub);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-item {
  min-width: 0;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.genre-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.genre-block:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.genre-block-header {
  margin-bottom: 18px;
  max-width: var(--prose);
}

.genre-block-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.genre-block-trait {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-grid .cover-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.cover-grid .cover-card img {
  border-radius: 0;
  aspect-ratio: 3 / 4;
}

.cover-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.genre-boundary p {
  max-width: var(--prose);
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 1em;
}

/* ---------------------------------------------------------
   6. pages —— 最近更新
   --------------------------------------------------------- */
.updates-intro .prose p,
.updates-return .prose p {
  font-size: 16px;
  color: var(--text-main);
}

.month-group {
  margin-bottom: 26px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 6px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.month-group .update-item {
  gap: 12px;
}

.month-group .update-name {
  flex: 1 1 200px;
}

.updates-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.updates-media .section-title {
  grid-column: 1 / -1;
}

.media-figure {
  min-width: 0;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.media-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.field-table dl,
dl.field-table {
  display: block;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 0;
  margin: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: none;
}

.field-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.field-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

/* ---------------------------------------------------------
   7. pages —— 榜单排行
   --------------------------------------------------------- */
.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.criteria-item {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.criteria-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.criteria-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.ranking-board {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 10px;
  margin-bottom: 24px;
}

.ranking-board:last-child {
  margin-bottom: 0;
}

.board-head {
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.board-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.board-basis {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

.board-list {
  display: flex;
  flex-direction: column;
}

.board-entry {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.board-entry:last-child {
  border-bottom: none;
}

.board-entry:has(.entry-cover) {
  grid-template-columns: 40px 96px minmax(0, 1fr);
}

.entry-rank {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1.6;
}

.entry-cover {
  min-width: 0;
}

.entry-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.entry-tag {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.entry-reason {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

.update-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.update-log-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.update-log-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.log-text {
  font-size: 15px;
  color: var(--text-main);
  margin: 0;
}

/* ---------------------------------------------------------
   8. pages —— 阅读说明
   --------------------------------------------------------- */
.guide-scope-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-scope-main {
  min-width: 0;
  max-width: var(--prose);
}

.guide-scope-main p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 1em;
}

.guide-scope-aside {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.guide-check-list,
.guide-cross-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.guide-check-list li,
.guide-cross-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.guide-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background-color: var(--accent);
}

.guide-cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 2px;
  background-color: var(--line-strong);
}

.guide-fields-body {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-field-figure {
  min-width: 0;
}

.guide-field-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.guide-field-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.guide-fields-body .field-table {
  min-width: 0;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1.6;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.step-result {
  color: var(--text-main);
  font-weight: 600;
}

.guide-feedback-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-feedback-main {
  min-width: 0;
  max-width: var(--prose);
}

.guide-feedback-main p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 1em;
}

.feedback-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 1em;
  padding: 0;
  counter-reset: feedback;
}

.feedback-flow li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  counter-increment: feedback;
}

.feedback-flow li::before {
  content: counter(feedback);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.guide-feedback-aside {
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.adjustment-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.log-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-related {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.guide-related .section-title {
  margin-bottom: 20px;
}

/* ---------------------------------------------------------
   9. pages —— 404
   --------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 88px;
}

.error-block {
  max-width: var(--prose);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.error-links a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-main);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-hint {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

/* ---------------------------------------------------------
   10. responsive —— 960px 与 640px 断点
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 0 18px;
    min-height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .home-main > .section,
  .inner-main,
  .hero,
  .error-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-media {
    order: 2;
  }

  .layout-updates,
  .layout-guide-summary,
  .guide-scope-body,
  .guide-feedback-body,
  .guide-fields-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .updates-aside {
    order: 2;
  }

  .ranking-grid,
  .wall-grid,
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-index-row,
  .overview-row {
    grid-template-columns: 36px 100px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .genre-organize,
  .overview-organize {
    grid-column: 3;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 36px 18px 24px;
  }

  .guide-field-figure img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 16px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .page-title,
  .error-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .wall-grid,
  .cover-grid,
  .ranking-grid,
  .index-grid,
  .updates-media,
  .criteria-list,
  .related-list,
  .related-links,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-index-row,
  .overview-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px 0;
  }

  .genre-trait,
  .overview-trait {
    grid-column: 2;
  }

  .genre-organize,
  .overview-organize {
    grid-column: 2;
  }

  .genre-name,
  .overview-name {
    font-size: 16px;
  }

  .update-item {
    gap: 8px;
  }

  .update-name {
    flex: 1 1 100%;
  }

  .board-entry,
  .board-entry:has(.entry-cover) {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .entry-cover {
    grid-column: 2;
    max-width: 140px;
  }

  .entry-body {
    grid-column: 2;
  }

  .update-log-item,
  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .field-table tbody th {
    width: 34%;
  }

  .field-table tbody th,
  .field-table tbody td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .month-group {
    padding: 16px 14px 4px;
  }

  .path-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .updates-aside,
  .guide-scope-aside,
  .guide-feedback-aside,
  .ranking-col,
  .index-col {
    padding: 16px;
  }
}
