:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c1f24;
  --text-sub: #5b6270;
  --text-mute: #7a8191;
  --line: #e3e6eb;
  --line-strong: #d3d8e0;
  --accent: #3d7bff;
  --accent-soft: #eaf0ff;
  --status-ongoing: #2f9e6b;
  --status-hiatus: #d08a1e;
  --status-finished: #7a8191;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: 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: 20px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 56px;
}

/* ==========================================================================
   components · 品牌与主导航
   ========================================================================== */

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.brand-tag {
  font-size: 12px;
  color: var(--text-mute);
  padding-left: 8px;
  border-left: 1px solid var(--line-strong);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.nav-list > li > a.is-current {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ==========================================================================
   components · 通用按钮 / 状态 / 标签
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2f68e0;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.status-ongoing {
  color: var(--status-ongoing);
}

.status-paused,
.status-hiatus {
  color: var(--status-hiatus);
}

.status-completed,
.status-finished {
  color: var(--status-finished);
}

.status-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.status-badge.status-serial,
.status-badge.status-ongoing {
  color: var(--status-ongoing);
}

.status-badge.status-paused,
.status-badge.status-hiatus {
  color: var(--status-hiatus);
}

.status-badge.status-completed,
.status-badge.status-finished {
  color: var(--status-finished);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tag:hover,
.tag:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.tag-count {
  font-size: 12px;
  color: var(--text-mute);
}

.tag:hover .tag-count,
.tag:focus-visible .tag-count {
  color: var(--accent);
}

.tag-small {
  padding: 4px 10px;
  font-size: 12px;
}

/* ==========================================================================
   components · 面包屑 / 页面标题区
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  padding: 4px 0 14px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-mute);
}

.page-header {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 860px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ==========================================================================
   components · 通用区块头 / 页脚
   ========================================================================== */

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 21px;
}

.section-desc {
  margin-top: 8px;
  max-width: 820px;
  font-size: 14px;
  color: var(--text-sub);
}

.section-lead,
.section-intro {
  margin-top: 8px;
  max-width: 820px;
  font-size: 14px;
  color: var(--text-sub);
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-sub);
}

.section-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.section-footnote a + a {
  margin-left: 14px;
}

.section-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-brand {
  min-width: 220px;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-mute);
}

.footer-nav {
  margin-left: auto;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav a {
  color: var(--text-sub);
}

.footer-copy {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.site-factbar {
  background: #eef1f6;
  border-bottom: 1px solid var(--line);
}

.site-factbar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text-sub);
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.home-main > section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.home-main > section:last-child {
  border-bottom: 0;
}

/* 首屏题材标签聚合区 */

.hero-section {
  padding-top: 36px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.hero-intro {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
}

.hero-summary {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
  max-width: 620px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-tags-note {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-figure {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

/* 封面墙与作品条目区 */

.coverwall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.cover-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  box-shadow: 0 6px 18px rgba(28, 31, 36, 0.08);
  transform: translateY(-2px);
}

.cover-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eceff4;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}

.cover-topic {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.cover-status {
  margin-top: 8px;
}

/* 最近更新目录 */

.update-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-mute);
}

.update-name,
.update-title {
  min-width: 0;
  color: var(--text);
}

.update-topic {
  font-size: 13px;
  color: var(--text-sub);
}

.update-type {
  font-size: 13px;
  color: var(--text-sub);
  text-align: right;
}

/* 人气榜单与编辑推荐 */

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-board,
.editor-picks {
  min-width: 0;
}

.sub-title {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.rank-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.rank-name {
  min-width: 0;
  color: var(--text);
}

.rank-topic {
  font-size: 13px;
  color: var(--text-sub);
}

.pick-list {
  display: grid;
  gap: 12px;
}

.pick-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.pick-name {
  font-size: 15px;
  font-weight: 600;
}

.pick-reason {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.pick-tags {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-mute);
}

/* 阅读说明与内容反馈摘要 */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-fields,
.guide-feedback {
  min-width: 0;
}

.field-summary {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-summary dt {
  padding: 11px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-summary dt:first-child {
  padding-top: 14px;
}

.field-summary dd {
  margin: 4px 0 0;
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.field-summary dd:last-child {
  border-bottom: 0;
}

.guide-feedback p {
  font-size: 14px;
  color: var(--text-sub);
}

.feedback-points {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.feedback-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.feedback-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feedback-link {
  margin-top: 14px;
  font-size: 14px;
}

/* 站内栏目索引 */

.column-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.column-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.column-name {
  font-size: 15px;
  font-weight: 600;
}

.column-name a {
  color: var(--text);
}

.column-name a:hover,
.column-name a:focus-visible {
  color: var(--accent);
}

.column-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ==========================================================================
   pages · 题材分类
   ========================================================================== */

.topic-overview {
  margin-bottom: 40px;
}

.topic-index-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.topic-index-row:last-child {
  border-bottom: 0;
}

.topic-no {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.topic-index-name {
  color: var(--text);
  font-weight: 600;
}

.topic-index-scope {
  font-size: 13px;
  color: var(--text-sub);
}

.topic-detail {
  margin-bottom: 40px;
}

.topic-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.topic-group:last-child {
  margin-bottom: 0;
}

.topic-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.topic-group-head h3 {
  font-size: 17px;
}

.topic-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eceff4;
  margin-bottom: 14px;
  max-width: 420px;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.topic-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-mute);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.topic-group-desc {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 860px;
}

.work-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) auto minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.work-name {
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.work-topic {
  font-size: 13px;
  color: var(--text-sub);
}

.work-note {
  font-size: 13px;
  color: var(--text-mute);
  text-align: right;
}

.topic-related {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-mute);
}

.topic-related a {
  margin-right: 14px;
}

.topic-spec {
  margin-bottom: 8px;
}

/* ==========================================================================
   pages · 最近更新
   ========================================================================== */

.status-legend {
  margin-bottom: 36px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.status-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.status-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.update-timeline {
  margin-bottom: 36px;
}

.timeline-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 18px 0;
}

.timeline-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.timeline-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.update-timeline .update-row {
  grid-template-columns: 108px minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.7fr) auto;
}

.reading-notes {
  margin-bottom: 8px;
}

.note-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.note-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ==========================================================================
   pages · 人气榜单
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.ranking-board {
  margin-bottom: 40px;
}

.ranking-board .rank-list {
  margin-top: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eceff4;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
  font-size: 14px;
}

.rank-info .rank-name {
  font-weight: 600;
}

.rank-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.rank-meta .rank-topic {
  margin-right: 10px;
}

.editor-picks {
  margin-bottom: 40px;
}

.editor-picks .pick-list {
  margin-top: 16px;
}

.ranking-aside {
  position: sticky;
  top: 82px;
}

.aside-lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.rule-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.rule-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rule-name {
  font-size: 15px;
  font-weight: 600;
}

.rule-item p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.aside-links {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.aside-links-title {
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-links ul {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.aside-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-sub);
}

.aside-links a:hover,
.aside-links a:focus-visible {
  color: var(--accent);
}

.ranking-faq {
  margin-bottom: 40px;
}

.faq-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-weight: 400;
  color: var(--text-mute);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.column-index .index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.index-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
}

.index-name a {
  color: var(--text);
}

.index-name a:hover,
.index-name a:focus-visible {
  color: var(--accent);
}

.index-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ==========================================================================
   pages · 阅读说明
   ========================================================================== */

.guide-section {
  margin-bottom: 40px;
}

.guide-section h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 17px;
}

.guide-media {
  margin: 18px 0;
}

.media-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  background: #f1f3f7;
  font-weight: 600;
  color: var(--text);
}

.field-table tbody th {
  width: 180px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table td {
  color: var(--text-sub);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-section .status-legend {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.guide-section .status-legend .status-item {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.tag-usage-list,
.path-list,
.feedback-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tag-usage-item,
.path-item,
.feedback-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.tag-usage-item h3,
.path-item h3,
.feedback-item h3 {
  font-size: 15px;
}

.tag-usage-item p,
.path-item p,
.feedback-item p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.path-list {
  counter-reset: path-step;
}

.path-item {
  position: relative;
  padding-left: 52px;
}

.path-item::before {
  counter-increment: path-step;
  content: counter(path-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
}

.faq-section .faq-list {
  margin-top: 16px;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.error-code {
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.error-panel h1 {
  margin-top: 14px;
  font-size: 26px;
}

.error-desc {
  margin-top: 10px;
  max-width: 620px;
  font-size: 14px;
  color: var(--text-sub);
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints {
  margin-top: 36px;
}

.error-hints h2 {
  font-size: 21px;
}

.hint-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.hint-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-sub);
}

.hint-list a:hover,
.hint-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-list > li > a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
    padding-left: 12px;
  }

  .site-factbar p {
    padding: 8px 16px;
  }

  .home-main,
  .inner-main,
  .section-index,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-layout,
  .ranking-layout,
  .guide-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ranking-aside {
    position: static;
  }

  .page-layout .layout-aside {
    order: -1;
  }

  .page-layout .layout-main {
    order: 1;
  }

  .update-row,
  .update-timeline .update-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    row-gap: 4px;
  }

  .update-type {
    text-align: left;
  }

  .topic-index-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .topic-index-scope {
    grid-column: 2 / -1;
  }

  .work-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .work-note {
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer-inner {
    padding: 24px 16px;
  }

  .footer-nav {
    margin-left: 0;
  }

  .footer-brand {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  h1,
  .hero-title,
  .page-title {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 19px;
  }

  h3 {
    font-size: 16px;
  }

  .home-main > section {
    padding: 30px 0;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .coverwall-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
  }

  .rank-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .rank-topic {
    grid-column: 2 / -1;
  }

  .rank-item {
    grid-template-columns: 32px 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .status-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table tbody th {
    width: 96px;
    white-space: normal;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .topic-group {
    padding: 16px;
  }

  .topic-figure {
    max-width: 100%;
  }

  .path-item {
    padding-left: 46px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .hint-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-factbar,
  .breadcrumb,
  .nav-toggle,
  .site-footer,
  .section-more,
  .aside-links {
    display: none;
  }

  body {
    background: #ffffff;
  }
}
