/* ==========================================================================
   里番动漫 · cvonf.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础元素
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2430;
  --text-soft: #5b6472;
  --text-faint: #8a92a1;
  --primary: #3d6ef5;
  --primary-dark: #2f57c9;
  --primary-soft: #eaf0ff;
  --accent: #f2994a;
  --accent-soft: #fdf1e5;
  --line: #e4e7ee;
  --line-strong: #d3d8e3;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .05);
  --shadow-hover: 0 6px 18px rgba(31, 36, 48, .09);
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  font-weight: 700;
  color: var(--text);
}

time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 700;
}

.brand:hover {
  color: var(--primary);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 7px auto 7px;
  height: 3px;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: 0 5px 0 #ffffff;
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0;
}

.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;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.nav-link.is-current {
  color: var(--primary);
  background-color: var(--primary-soft);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--text);
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.page-header {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.page-description {
  margin-top: 12px;
  max-width: 780px;
  font-size: 16px;
  color: var(--text-soft);
}

.page-description a {
  font-weight: 500;
}

.site-footer {
  margin-top: 24px;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.footer-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-block;
  min-height: 24px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-desc {
  flex: 1 1 260px;
  min-width: 220px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-more {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.section-more::after {
  content: " →";
}

.section-lead,
.section-intro {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-soft);
}

.section-foot {
  margin-top: 18px;
  font-size: 14px;
}

.sub-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 状态标签 */
.status-ongoing,
.is-ongoing {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.status-completed,
.is-finished {
  color: var(--text-soft);
  background-color: #eef0f4;
}

.status-paused {
  color: #a4652a;
  background-color: var(--accent-soft);
}

.update-status,
.is-ongoing,
.is-finished {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

/* 字段说明表 */
.field-table {
  font-size: 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background-color: #fafbfd;
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  background-color: #fafbfd;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.field-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--text);
  background-color: #fcfcfe;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-footnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.field-footnote a + a {
  margin-left: 14px;
}

/* 站内栏目索引（首页 / 榜单页 / 阅读说明页） */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.sitemap-item {
  display: block;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sitemap-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.sitemap-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.sitemap-item:hover .sitemap-name {
  color: var(--primary);
}

.sitemap-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.site-factbar {
  background-color: #eef1f7;
  border-bottom: 1px solid var(--line);
}

.site-factbar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.32;
  font-weight: 700;
}

.hero-lead {
  margin-top: 14px;
  max-width: 520px;
  font-size: 16px;
  color: var(--text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
}

.tag-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-preview {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-figure {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.hero-update-note {
  padding: 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-note-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-note-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.hero-note-list li:first-child {
  border-top: none;
}

.note-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
}

.note-text {
  color: var(--text-soft);
}

/* 题材分类总览（四栏） */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.topic-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.topic-name {
  font-size: 18px;
  font-weight: 700;
}

.topic-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.topic-entries {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.topic-entries li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.entry-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}

.entry-link:hover {
  color: var(--primary);
}

.entry-meta {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* 最近更新目录（单列逐行） */
.update-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  overflow: hidden;
}

.update-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.update-row:first-child {
  border-top: none;
}

.update-row:hover {
  background-color: #fafbfd;
}

.update-date {
  flex-shrink: 0;
  width: 96px;
  font-size: 13px;
  color: var(--text-soft);
}

.update-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.update-topic {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* 人气榜单与编辑推荐（左位次栏 / 右说明栏） */
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ranking-board {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-list {
  counter-reset: none;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rank-item:first-child {
  border-top: none;
  padding-top: 0;
}

.rank-no {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #f1f3f8;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.rank-item:nth-child(1) .rank-no {
  background-color: var(--primary);
  color: #ffffff;
}

.rank-item:nth-child(2) .rank-no {
  background-color: var(--accent);
  color: #ffffff;
}

.rank-item:nth-child(3) .rank-no {
  background-color: var(--accent-soft);
  color: #a4652a;
}

.rank-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rank-topic {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.ranking-notes {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.ranking-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ranking-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.note-list li {
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.note-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.note-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* 专题汇编入口（三栏） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feature-figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.feature-name {
  padding: 16px 18px 0;
  font-size: 17px;
  font-weight: 700;
}

.feature-note {
  padding: 8px 18px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.feature-link {
  margin: 14px 18px 18px;
  font-size: 14px;
  font-weight: 600;
}

.feature-link::after {
  content: " →";
}

/* 阅读说明与内容反馈摘要（左字段栏 / 右反馈栏） */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-fields,
.guide-feedback {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.guide-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.field-list li {
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.field-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.field-list strong {
  display: block;
  margin-bottom: 2px;
}

.feedback-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.feedback-list {
  margin-top: 12px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
}

.guide-feedback .btn {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 题材分类（topic）
   -------------------------------------------------------------------------- */
.topic-scope {
  margin-bottom: 36px;
}

.scope-body {
  padding: 20px 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.scope-body p + p {
  margin-top: 10px;
}

.scope-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.topic-groups {
  margin-bottom: 36px;
}

.topic-group {
  padding: 20px 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-group + .topic-group {
  margin-top: 16px;
}

.group-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.group-title {
  font-size: 18px;
  font-weight: 700;
}

.group-note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.group-list {
  margin-top: 6px;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.entry-row:first-child {
  border-top: none;
}

.entry-cover {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #eef0f4;
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.entry-fields {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

.topic-fields {
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   pages · 最近更新（updates）
   -------------------------------------------------------------------------- */
.update-legend {
  margin-bottom: 36px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legend-item {
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-name {
  font-size: 16px;
  font-weight: 700;
}

.legend-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.update-list-section {
  margin-bottom: 36px;
}

.update-list-section .update-row {
  gap: 18px;
  padding: 14px 18px;
}

.update-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #eef0f4;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-body {
  min-width: 0;
  flex: 1 1 auto;
}

.update-list-section .update-name {
  font-size: 15px;
  font-weight: 600;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

.update-months {
  margin-bottom: 36px;
}

.month-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.month-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.month-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.month-count {
  font-size: 13px;
  color: var(--text-faint);
}

.site-index .index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.index-item {
  padding: 14px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-item:hover {
  border-color: var(--primary);
}

.index-link {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.index-item:hover .index-link {
  color: var(--primary);
}

.index-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 人气榜单（ranking）
   -------------------------------------------------------------------------- */
.topbar {
  background-color: #eef1f7;
  border-bottom: 1px solid var(--line);
}

.topbar-text {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  color: var(--text-soft);
}

.ranking-basis {
  padding-top: 0;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.basis-card {
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.basis-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.basis-list li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.basis-list li:first-child {
  margin-top: 0;
}

.basis-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
}

.basis-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-layout.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ranking-chart,
.ranking-editor {
  padding: 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-chart .rank-item {
  gap: 14px;
  padding: 12px 0;
}

.rank-cover {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #eef0f4;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 15px;
}

.rank-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

.editor-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.editor-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.editor-name {
  font-size: 15px;
  font-weight: 700;
}

.editor-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.editor-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.sitemap {
  padding-top: 36px;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明（guide）
   -------------------------------------------------------------------------- */
.site-notice {
  background-color: #eef1f7;
  border-bottom: 1px solid var(--line);
}

.site-notice p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  color: var(--text-soft);
}

.guide-section {
  margin-bottom: 36px;
}

.guide-section .guide-figure {
  margin-bottom: 20px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-item {
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-col {
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  overflow: hidden;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: none;
}

.faq-question {
  position: relative;
  padding: 15px 44px 15px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.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(--text-faint);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--primary);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.sitemap-section {
  margin-bottom: 12px;
}

.sitemap-col {
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sitemap-title {
  font-size: 15px;
  font-weight: 700;
}

.sitemap-title a {
  color: var(--text);
}

.sitemap-title a:hover {
  color: var(--primary);
}

.sitemap-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.error-panel {
  max-width: 620px;
  padding: 32px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: 30px;
  line-height: 1.35;
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-soft);
}

.error-hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-faint);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-links {
  margin-top: 32px;
}

.error-links h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-link-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.error-link-list li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .hero-lead {
    max-width: 100%;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .page-layout.ranking-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-grid,
  .basis-grid,
  .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 8px 16px 14px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(31, 36, 48, .08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
  }

  .inner-main,
  .section,
  .hero-index,
  .page-layout,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-factbar p,
  .topbar-text,
  .site-notice p,
  .footer-bottom p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-header {
    padding: 14px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-desc {
    flex-basis: 100%;
    min-width: 0;
  }

  .section-more {
    margin-left: 0;
  }

  .hero-figure img {
    height: 220px;
  }

  .feature-grid,
  .legend-grid,
  .basis-grid,
  .rule-list,
  .feedback-grid,
  .scope-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .update-date {
    width: auto;
  }

  .update-name {
    flex-basis: 100%;
    order: -1;
  }

  .update-list-section .update-row {
    align-items: flex-start;
  }

  .update-list-section .update-name {
    flex-basis: auto;
    order: 0;
  }

  .update-thumb {
    width: 48px;
    height: 48px;
  }

  .field-table tbody th {
    width: 30%;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
    gap: 24px 20px;
  }

  .error-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 16px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 100%;
  }

  .hero-tags {
    gap: 6px;
  }

  .tag-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ranking-board,
  .ranking-notes,
  .ranking-chart,
  .ranking-editor,
  .guide-fields,
  .guide-feedback,
  .topic-group,
  .topic-card,
  .scope-body {
    padding: 16px;
  }

  .entry-cover {
    width: 52px;
    height: 52px;
  }

  .rank-cover {
    width: 44px;
    height: 44px;
  }

  .rank-item {
    gap: 10px;
  }

  .month-list,
  .sitemap-grid,
  .site-index .index-list,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-text {
    max-width: 100%;
  }
}
