/* ==========================================================================
   樱花动漫 tppfh.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-soft: #f1f3f7;
  --text-main: #1f2430;
  --text-sub: #5b6472;
  --text-faint: #8b93a1;
  --accent: #e8567a;
  --accent-soft: #fde9ef;
  --pass: #2f7d6f;
  --pass-soft: #e4f2ef;
  --line: #e3e6ec;
  --line-strong: #cdd3dd;
  --radius: 8px;
  --radius-sm: 5px;
  --container: 1200px;
  --shadow-card: 0 1px 2px rgba(31, 36, 48, 0.05), 0 6px 18px rgba(31, 36, 48, 0.04);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", "PingFang SC", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-sub);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  min-height: 60px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 4px;
  background: var(--accent);
  box-shadow: inset -4px -4px 0 rgba(255, 255, 255, 0.35);
}

.brand-text {
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text-main);
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--text-main);
}

.nav-toggle::after {
  bottom: 16px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-sub);
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.site-main {
  display: block;
  width: 100%;
}

.home-main > .section,
.inner-main > .section,
.inner-main > .page-layout,
.inner-main > .ranking-list,
.inner-main > .ranking-criteria,
.inner-main > .ranking-links,
.inner-main > .ranking-back {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main > .breadcrumb,
.inner-main > .page-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main {
  display: block;
  padding-bottom: 56px;
}

.section {
  padding-top: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title,
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
}

.section-desc {
  margin-top: 8px;
  max-width: 860px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.section-note {
  margin-bottom: 18px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   components — 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #d0405f;
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-theme {
  background: var(--accent-soft);
  color: #b83a5c;
}

.tag-update {
  background: var(--pass-soft);
  color: var(--pass);
}

.tag-rank {
  background: #fdf1e0;
  color: #a7712a;
}

.tag-code {
  background: var(--bg-soft);
  color: var(--text-sub);
  border: 1px solid var(--line);
}

.link-more {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.link-more:hover {
  color: #b83a5c;
}

.data-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.data-table caption {
  padding: 14px 16px 0;
  text-align: left;
  color: var(--text-sub);
  font-size: 13px;
}

.data-table thead th {
  padding: 11px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcfe;
}

.field-name,
.col-code,
.cell-code,
.cell-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-caption {
  padding: 0 0 10px;
  color: var(--text-sub);
  font-size: 13px;
  text-align: left;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.page-description {
  margin-top: 10px;
  padding-bottom: 18px;
  max-width: 880px;
  color: var(--text-sub);
  font-size: 15px;
}

.site-footer {
  margin-top: 56px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.footer-title {
  font-size: 17px;
  font-weight: 700;
}

.footer-about p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-sub);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note p {
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  color: var(--text-faint);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.lead-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.lead-strip p {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.32;
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  color: var(--text-sub);
  font-size: 15.5px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-points li {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  height: auto;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.feature-main {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-media {
  background: var(--bg-soft);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
  object-fit: cover;
}

.feature-body {
  padding: 20px 22px 22px;
}

.feature-body h3 {
  margin-top: 12px;
  font-size: 20px;
}

.feature-body p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.feature-body .link-more {
  margin-top: 14px;
}

.feature-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item h3 {
  margin-top: 10px;
  font-size: 16.5px;
}

.feature-item p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
}

.feature-item .link-more {
  margin-top: auto;
  padding-top: 14px;
}

.topics-table td:last-child {
  white-space: nowrap;
}

.topics-table td:nth-child(3) {
  color: var(--text-sub);
}

.wall-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.wall-main {
  min-width: 0;
}

.wall-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tag {
  min-height: 34px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 32px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.cover-card-wide {
  grid-column: span 2;
  flex-direction: row;
}

.cover-media {
  background: var(--bg-soft);
}

.cover-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.cover-card-wide .cover-media {
  flex: 0 0 46%;
  max-width: 46%;
}

.cover-card-wide .cover-media img {
  height: 100%;
  aspect-ratio: auto;
}

.cover-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 14px 14px;
}

.cover-body h3 {
  font-size: 15px;
}

.cover-body p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.wall-side {
  min-width: 0;
  padding: 20px 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wall-side h3 {
  font-size: 18px;
}

.aside-desc {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.update-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.update-month {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.update-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.update-list li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.update-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.update-title {
  font-size: 14px;
  font-weight: 700;
}

.update-summary {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

.update-theme {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.aside-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rank-list {
  display: grid;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #fbfcfe;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.rank-row:nth-child(n + 4) .rank-no {
  color: var(--text-faint);
}

.rank-main {
  min-width: 0;
}

.rank-main h3 {
  font-size: 15.5px;
}

.rank-reason {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.65;
}

.rank-theme {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-sub);
  text-align: right;
}

.rank-foot {
  margin-top: 14px;
}

.fields-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fields-col {
  padding: 20px 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fields-col h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.fields-table {
  border: 0;
  border-radius: 0;
  font-size: 13.5px;
}

.fields-table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0;
}

.fields-table tbody td,
.fields-table tbody th {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.fields-table tbody td:last-child {
  color: var(--text-sub);
}

.fields-note {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.boundary-list {
  display: grid;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.column-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-item {
  display: block;
  padding: 16px 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.index-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.index-item:hover .index-name {
  color: var(--accent);
}

.index-desc {
  display: block;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.topic-table td:nth-child(3) {
  color: var(--text-sub);
}

.topic-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-visual-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-visual-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.topic-visual-item figcaption {
  padding: 16px 18px 18px;
}

.topic-visual-name {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.topic-visual-item figcaption p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
}

.field-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table thead th {
  padding: 11px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.field-table tbody td,
.field-table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  line-height: 1.65;
}

.field-table tbody tr:last-child td,
.field-table tbody tr:last-child th {
  border-bottom: 0;
}

.map-list {
  display: grid;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.map-row:last-child {
  border-bottom: 0;
}

.map-row:hover {
  background: #fbfcfe;
}

.map-name {
  font-size: 14.5px;
  font-weight: 700;
}

.map-link {
  font-size: 13.5px;
  text-align: right;
}

.map-link a {
  color: var(--accent);
}

.enter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enter-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.enter-name {
  font-size: 16px;
  font-weight: 700;
}

.enter-item p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.enter-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

.section-foot {
  margin-top: 16px;
}

.section-foot a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages — 更新归档
   -------------------------------------------------------------------------- */

.updates-month {
  margin-bottom: 22px;
  padding: 20px 20px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.month-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

.updates-month .update-list {
  gap: 0;
  margin-top: 0;
}

.update-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-cover {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.update-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-body .update-summary {
  margin-top: 0;
  font-size: 14px;
  color: var(--text-main);
}

.update-meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.revision-list {
  display: grid;
  gap: 14px;
}

.revision-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pass);
  border-radius: var(--radius-sm);
}

.revision-stage {
  font-size: 14.5px;
  font-weight: 700;
}

.revision-detail {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.meta-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.status {
  display: inline-block;
  padding: 1px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.status-new {
  background: var(--accent-soft);
  color: #b83a5c;
}

.status-revise {
  background: #fdf1e0;
  color: #a7712a;
}

.status-hold {
  background: var(--bg-soft);
  color: var(--text-sub);
}

.status-table tbody th {
  width: 140px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-item a {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.entry-note {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px 0;
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.related-links-item {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-sub);
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages — 排行榜
   -------------------------------------------------------------------------- */

.ranking-list,
.ranking-criteria,
.ranking-links,
.ranking-back {
  padding-top: 40px;
}

.ranking-list h2,
.ranking-criteria h2,
.ranking-links h2,
.ranking-back h2 {
  font-size: 22px;
}

.ranking-rows {
  display: grid;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px 108px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: #fbfcfe;
}

.ranking-row .rank-no {
  padding-top: 2px;
}

.rank-cover {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
}

.rank-name a {
  color: var(--text-main);
}

.rank-name a:hover {
  color: var(--accent);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.rank-topic {
  color: var(--accent);
}

.rank-state {
  color: var(--pass);
}

.rank-body .rank-reason {
  margin-top: 8px;
  font-size: 13.5px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.criteria-item {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-item h3 {
  font-size: 15px;
}

.criteria-item p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.link-rows {
  display: grid;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.link-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.link-row:last-child {
  border-bottom: 0;
}

.link-row:hover {
  background: #fbfcfe;
}

.link-key {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.link-desc {
  color: var(--text-sub);
  font-size: 13.5px;
}

.link-row a {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages — 浏览指引
   -------------------------------------------------------------------------- */

.guide-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  padding-top: 40px;
}

.guide-main {
  min-width: 0;
}

.guide-main .section {
  padding-top: 0;
  margin-bottom: 40px;
}

.guide-main .section:last-child {
  margin-bottom: 0;
}

.guide-main .section-title {
  font-size: 22px;
}

.section-boundary,
.section-steps,
.section-faq,
.section-fields {
  scroll-margin-top: 76px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boundary-col {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-in {
  border-top: 3px solid var(--pass);
}

.boundary-out {
  border-top: 3px solid var(--line-strong);
}

.boundary-title {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.boundary-in .boundary-list li::before {
  background: var(--pass);
}

.boundary-out .boundary-list li::before {
  background: var(--line-strong);
}

.guide-figure {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  padding: 18px 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  margin-bottom: 10px;
  padding: 1px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b83a5c;
}

.step-title {
  font-size: 15px;
}

.step-item p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 700;
  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-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.guide-aside {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-block {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.aside-links {
  display: grid;
  gap: 9px;
}

.aside-links a {
  display: block;
  padding-left: 14px;
  position: relative;
  color: var(--text-sub);
  font-size: 13.5px;
}

.aside-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.aside-links a:hover {
  color: var(--accent);
}

.aside-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-bottom: 40px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.error-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.error-inner {
  padding-top: 56px;
  padding-bottom: 52px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.error-inner h1 {
  margin-top: 10px;
  font-size: 32px;
}

.error-lead {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-sub);
  font-size: 15px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-paths {
  padding-top: 40px;
}

.error-paths h2 {
  font-size: 22px;
}

.section-lead {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.error-path-list li {
  padding: 18px 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-path-list h3 {
  font-size: 15.5px;
}

.error-path-list h3 a {
  color: var(--text-main);
}

.error-path-list h3 a:hover {
  color: var(--accent);
}

.error-path-list p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 28px;
  }

  .page-layout,
  .wall-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .criteria-grid,
  .step-list,
  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .column-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 56px;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    padding: 0 16px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-media img {
    aspect-ratio: 16 / 9;
  }

  .page-layout,
  .wall-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-card-wide {
    grid-column: span 2;
  }

  .fields-layout,
  .topic-visual-grid,
  .enter-list,
  .entry-list,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-theme {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .map-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .map-link {
    grid-column: 2;
    text-align: left;
  }

  .link-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .link-row a {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 14.5px;
  }

  .header-inner,
  .home-main > .section,
  .inner-main > .section,
  .inner-main > .page-layout,
  .inner-main > .breadcrumb,
  .inner-main > .page-header,
  .inner-main > .ranking-list,
  .inner-main > .ranking-criteria,
  .inner-main > .ranking-links,
  .inner-main > .ranking-back,
  .related-links,
  .footer-inner,
  .footer-bottom p,
  .container,
  .lead-strip p,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title,
  .error-inner h1 {
    font-size: 24px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .section-title,
  .section-head h2,
  .ranking-list h2,
  .ranking-criteria h2,
  .ranking-links h2,
  .ranking-back h2,
  .error-paths h2 {
    font-size: 18px;
  }

  .hero-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card-wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .cover-card-wide .cover-media {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .cover-card-wide .cover-media img {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .column-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .criteria-grid,
  .step-list,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row {
    grid-template-columns: 34px 84px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row {
    padding: 12px 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table,
  .field-table {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody td,
  .data-table tbody th,
  .field-table thead th,
  .field-table tbody td,
  .field-table tbody th {
    padding: 10px 12px;
  }

  .status-table tbody th {
    width: 110px;
  }
}
