:root {
  --bg-page: #f7f8fb;
  --bg-panel: #ffffff;
  --bg-soft: #f1f3f8;
  --text-main: #1f2430;
  --text-sub: #5b6472;
  --text-faint: #8a92a1;
  --accent-red: #e5484d;
  --accent-blue: #3b6ea5;
  --line: #e6e9ef;
  --line-strong: #d3d8e2;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(31, 36, 48, 0.05);
  --shadow-hover: 0 6px 18px rgba(31, 36, 48, 0.1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --wrap: 1120px;
  --gap: 24px;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dd, dt, figure, figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-red);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-main);
  font-weight: 600;
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md);
  background-color: var(--accent-red);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 11px;
  background-color: #ffffff;
  border-radius: 2px;
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.4;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-soft);
}

.nav-link.is-current {
  color: var(--accent-red);
  font-weight: 600;
  background-color: rgba(229, 72, 77, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--bg-panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.home-main {
  padding-top: 24px;
}

.site-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.footer-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-back:hover {
  color: var(--accent-red);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  padding: 24px 0;
}

.footer-col-title {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  min-height: 30px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-note,
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================================
   components — 通用元素
   ========================================================================== */

.section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-desc,
.section-lead,
.section-intro {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.8;
}

.section-foot,
.section-more,
.section-note {
  margin-top: 16px;
  font-size: 14px;
}

.link-more,
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
}

.link-more::after,
.more-link::after {
  content: "→";
  font-size: 13px;
}

.link-more:hover,
.more-link:hover {
  color: var(--accent-red);
}

.link-entry {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  font-size: 14px;
  white-space: nowrap;
}

.link-entry:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background-color: rgba(59, 110, 165, 0.06);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-genre {
  background-color: rgba(59, 110, 165, 0.1);
  color: var(--accent-blue);
}

.tag-status {
  background-color: rgba(91, 100, 114, 0.12);
  color: var(--text-sub);
}

.tag-new {
  background-color: rgba(229, 72, 77, 0.1);
  color: var(--accent-red);
}

.tag-state {
  background-color: rgba(91, 100, 114, 0.12);
  color: var(--text-sub);
}

.tag-update {
  background-color: rgba(229, 72, 77, 0.1);
  color: var(--accent-red);
}

.tag-rank {
  background-color: rgba(59, 110, 165, 0.1);
  color: var(--accent-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-red);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #cf3d42;
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-panel);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.hero-copy {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(59, 110, 165, 0.1);
  color: var(--accent-blue);
  font-size: 13px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-desc {
  color: var(--text-sub);
  max-width: 46em;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  background-color: var(--bg-panel);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.today-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.today-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.today-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.today-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background-color: var(--bg-soft);
}

.today-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.genre-quick {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.quick-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  color: var(--text-sub);
  font-size: 14.5px;
}

.quick-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  flex-shrink: 0;
}

.quick-list a:hover {
  background-color: var(--bg-soft);
  color: var(--accent-red);
}

.quick-list a:hover::before {
  background-color: var(--accent-red);
}

.genre-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.genre-row:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.genre-cell {
  min-width: 0;
}

.genre-name {
  font-size: 18px;
}

.genre-feature,
.genre-organize {
  font-size: 14px;
  color: var(--text-sub);
}

.genre-cell-entry {
  justify-self: end;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cover-link {
  display: block;
  color: var(--text-main);
}

.cover-link:hover {
  color: var(--accent-red);
}

.cover-figure {
  background-color: var(--bg-soft);
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-name {
  padding: 12px 14px 6px;
  font-size: 16px;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}

.month-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.month-group {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.month-title {
  font-size: 18px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.month-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.month-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
}

.month-name {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 14.5px;
  color: var(--text-main);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.rank-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.18s ease;
}

.rank-card:hover {
  box-shadow: var(--shadow-hover);
}

.rank-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.rank-basis {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.rank-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  flex-shrink: 0;
  width: 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
}

.rank-label {
  min-width: 0;
  font-size: 14px;
  color: var(--text-main);
}

.note-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.note-col {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.note-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
}

.field-list {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.6fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: none;
}

.field-name {
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 600;
}

.field-meaning {
  font-size: 14px;
  color: var(--text-sub);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg-panel);
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.back-to-top:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* ==========================================================================
   pages — 内页通用
   ========================================================================== */

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 20px 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-description {
  color: var(--text-sub);
  font-size: 14.5px;
  max-width: 62em;
}

/* ==========================================================================
   pages — 题材分类
   ========================================================================== */

.section-shicai-intro .intro-body {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-text {
  color: var(--text-sub);
  font-size: 14.5px;
  max-width: 72em;
}

.section-shicai-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-shicai-groups .section-desc {
  margin-bottom: 4px;
}

.genre-group {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: box-shadow 0.18s ease;
}

.genre-group:hover {
  box-shadow: var(--shadow-hover);
}

.genre-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.genre-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-trait {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.genre-org {
  font-size: 13px;
  color: var(--text-faint);
}

.genre-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.genre-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
}

.genre-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.genre-cover-cap {
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  background-color: var(--bg-panel);
}

.genre-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background-color 0.18s ease;
}

.genre-item:hover {
  background-color: var(--bg-soft);
}

.genre-item a {
  flex: 1 1 200px;
  min-width: 0;
  color: var(--text-main);
  font-size: 14.5px;
}

.genre-item a:hover {
  color: var(--accent-red);
}

.tag-table-wrap {
  overflow-x: auto;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tag-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}

.tag-table-cap {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}

.tag-table th,
.tag-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tag-table thead th {
  background-color: var(--bg-soft);
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
}

.tag-table tbody tr:last-child td {
  border-bottom: none;
}

.tag-table tbody tr:hover {
  background-color: rgba(59, 110, 165, 0.04);
}

.tag-table td {
  color: var(--text-sub);
}

/* ==========================================================================
   pages — 最近更新
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.intro-grid .intro-text {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-figure {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.intro-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}

.section-monthly {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-monthly .section-desc {
  margin-bottom: 4px;
}

.section-monthly .month-group {
  padding: 18px 20px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background-color 0.18s ease;
}

.update-item:hover {
  background-color: var(--bg-soft);
}

.update-cover {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.update-info {
  min-width: 0;
}

.update-name {
  display: inline-block;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}

.update-name:hover {
  color: var(--accent-red);
}

.update-meta {
  font-size: 13px;
  color: var(--text-faint);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.legend-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: box-shadow 0.18s ease;
}

.legend-card:hover {
  box-shadow: var(--shadow-hover);
}

.legend-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.legend-text {
  font-size: 14px;
  color: var(--text-sub);
}

.section-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

/* ==========================================================================
   pages — 榜单排行
   ========================================================================== */

.board-intro .section-lead {
  margin-bottom: 18px;
}

.board-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.board-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.board-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}

.board-rule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.board-rule-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.board-rule-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.board-rule-text {
  font-size: 14px;
  color: var(--text-sub);
}

.board-scope-note {
  font-size: 14px;
}

.board-board-list .section-lead {
  margin-bottom: 18px;
}

.board-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.board-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.18s ease;
}

.board-card:hover {
  box-shadow: var(--shadow-hover);
}

.board-card-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.board-card-basis {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.board-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.board-rank-item {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.board-rank-item:last-child {
  border-bottom: none;
}

.board-rank-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
}

.board-rank-cover {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.board-rank-name {
  min-width: 0;
  font-size: 14px;
  color: var(--text-main);
}

.board-tag {
  grid-column: 3;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.board-tag-genre {
  background-color: rgba(59, 110, 165, 0.1);
  color: var(--accent-blue);
}

.board-tag-status {
  background-color: rgba(229, 72, 77, 0.1);
  color: var(--accent-red);
}

.board-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
}

.board-card-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.board-card-link:hover {
  color: var(--accent-red);
}

.board-cross-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.board-cross-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-cross-name {
  font-size: 16px;
}

.board-cross-text {
  font-size: 14px;
  color: var(--text-sub);
}

.board-cross-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--accent-blue);
}

.board-cross-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.board-cross-link:hover {
  color: var(--accent-red);
}

.board-cross-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

/* ==========================================================================
   pages — 阅读说明
   ========================================================================== */

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-boundary .boundary-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}

.section-boundary .boundary-item::before {
  display: none;
}

.boundary-summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.boundary-summary::-webkit-details-marker {
  display: none;
}

.boundary-summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  color: var(--accent-blue);
}

.boundary-item[open] .boundary-summary::after {
  content: "−";
}

.boundary-item[open] .boundary-summary {
  border-bottom: 1px solid var(--line);
}

.boundary-text {
  padding: 14px 20px 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.field-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  margin: 16px 0 20px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.field-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}

.field-table {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.field-table .field-row {
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.8fr);
  padding: 12px 20px;
}

.field-row-head {
  background-color: var(--bg-soft);
}

.field-row-head .field-name,
.field-row-head .field-meaning {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.path-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.path-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-text {
  font-size: 14px;
  color: var(--text-sub);
}

.path-note {
  font-size: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  color: var(--accent-blue);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 20px 18px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent-red);
  line-height: 1.1;
  margin-bottom: 10px;
}

.error-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.error-text {
  color: var(--text-sub);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.error-home,
.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
}

.error-home {
  background-color: var(--accent-red);
  color: #ffffff;
}

.error-home:hover {
  background-color: #cf3d42;
  color: #ffffff;
}

.error-link {
  border: 1px solid var(--line-strong);
  color: var(--text-main);
}

.error-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.error-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(31, 36, 48, 0.08);
    padding: 8px 16px 14px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
  }

  .nav-list.is-open {
    max-height: 420px;
  }

  .nav-link {
    width: 100%;
    padding: 0 12px;
    border-radius: var(--radius-md);
  }

  .site-main {
    padding: 20px 16px 44px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding: 22px;
  }

  .cover-grid,
  .rank-grid,
  .note-columns,
  .board-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .genre-cell-entry {
    justify-self: start;
  }

  .genre-body {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .back-to-top {
    right: 14px;
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .site-body {
    font-size: 14.5px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-copy,
  .today-card,
  .genre-quick,
  .page-header,
  .genre-group,
  .rank-card,
  .note-col,
  .board-card,
  .board-rule-item,
  .board-cross-item,
  .legend-card,
  .path-item,
  .error-panel {
    padding: 18px;
  }

  .genre-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-cover {
    max-width: 200px;
  }

  .update-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .update-cover {
    width: 56px;
    height: 74px;
  }

  .board-rank-item {
    grid-template-columns: 22px 36px minmax(0, 1fr);
    gap: 8px;
  }

  .board-rank-cover {
    width: 36px;
    height: 48px;
  }

  .field-row,
  .field-table .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-inner {
    padding: 24px 16px 20px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-code {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
