:root {
  --bg-page: #f7f7f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f0f1ee;
  --text-main: #1f2328;
  --text-sub: #5b6470;
  --text-faint: #8a929c;
  --accent: #2f6f5e;
  --accent-dark: #245647;
  --accent-soft: #e4ede9;
  --warn: #c2543a;
  --warn-soft: #f6e7e3;
  --line: #dcdfe3;
  --line-strong: #c3c8ce;
  --footer-bg: #16191d;
  --footer-text: #c8ccd2;
  --footer-faint: #8d949d;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1200px;
  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, "Courier New", monospace;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   layout — 全站骨架
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--accent-dark);
  background-color: var(--bg-subtle);
}

.nav-list a.is-current {
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb-sep {
  color: var(--text-faint);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 860px;
  padding-bottom: 20px;
}

.page-lead {
  font-size: 15px;
  color: var(--text-faint);
  padding-bottom: 20px;
  max-width: 860px;
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-faint);
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2e34;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--footer-text);
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2a2e34;
}

.footer-copy {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 13px;
  color: var(--footer-faint);
}

/* ============================================================
   components — 全站通用
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  box-shadow: inset 0 0 0 6px var(--accent-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-faint);
}

.section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-num,
.section-no,
.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-title .section-num,
.section-title .section-no {
  margin-right: 10px;
  margin-bottom: 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 860px;
}

.sub-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-sub);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.status-ongoing,
.status-completed,
.status-paused {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
}

.status-ongoing {
  color: var(--accent-dark);
  background-color: var(--accent-soft);
}

.status-completed {
  color: var(--text-sub);
  background-color: var(--bg-subtle);
}

.status-paused {
  color: var(--warn);
  background-color: var(--warn-soft);
}

.back-to-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: right;
  font-size: 14px;
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero-time-archive {
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.time-archive-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.time-tag {
  display: inline-block;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.time-tag-current {
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  font-weight: 600;
}

.time-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.time-history a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
}

.time-history a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.hero-visual figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

.tema-overview {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.tema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tema-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tema-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
}

.tema-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.tema-scope {
  font-size: 14px;
  color: var(--text-sub);
}

.tema-rep {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: auto;
}

.tema-rep a {
  color: var(--accent);
  margin-right: 8px;
}

.tema-rep a:last-child {
  margin-right: 0;
}

.cover-and-update {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.cover-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.cover-wall,
.update-record {
  min-width: 0;
}

.cover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
}

.cover-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--bg-subtle);
}

.cover-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.cover-tema {
  font-size: 13px;
  color: var(--text-faint);
}

.cover-status {
  align-self: flex-start;
}

.cover-more,
.update-more,
.rank-more,
.field-more {
  margin-top: 18px;
  font-size: 14px;
}

.batch-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  margin-bottom: 16px;
  overflow: hidden;
}

.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.batch-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-dark);
}

.batch-count {
  color: var(--text-sub);
}

.batch-range {
  color: var(--text-faint);
  margin-left: auto;
}

.update-lines {
  display: flex;
  flex-direction: column;
}

.update-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.update-line:last-child {
  border-bottom: none;
}

.line-name {
  font-weight: 600;
  color: var(--text-main);
  min-width: 120px;
}

.line-progress {
  color: var(--text-sub);
}

.line-status {
  margin-left: auto;
}

.update-figure {
  margin-top: 20px;
}

.update-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.update-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.rank-and-fields {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.rank-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rank-list-wrap,
.field-summary-wrap {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(110px, 1.1fr) minmax(80px, 0.8fr) minmax(120px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-no {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.rank-name {
  font-weight: 600;
  color: var(--text-main);
}

.rank-tema {
  color: var(--text-sub);
}

.rank-note {
  color: var(--text-faint);
  font-size: 13px;
}

.field-summary {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.field-summary dt {
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

.field-summary dd {
  margin: 0;
  padding: 4px 16px 12px;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.field-summary dd:last-of-type {
  border-bottom: none;
}

.chayue-path {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.step-text {
  font-size: 14px;
  color: var(--text-sub);
}

.step-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

.feedback-entry {
  margin-top: 32px;
  padding: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}

.feedback-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feedback-text {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 860px;
}

.feedback-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.site-index {
  padding: 56px 0 0;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}

.index-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 13px;
  color: var(--text-sub);
}

/* ============================================================
   pages — 题材分类
   ============================================================ */

.direction-index,
.direction-groups,
.direction-boundary {
  padding: 0 0 48px;
}

.direction-index-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.direction-index-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.direction-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.direction-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.direction-scope {
  font-size: 14px;
  color: var(--text-sub);
}

.direction-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  margin-top: 20px;
}

.direction-group-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.direction-group-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.direction-group-note {
  font-size: 14px;
  color: var(--text-sub);
}

.direction-group-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.direction-group-body .cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.direction-group-body .cover-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-subtle);
}

.direction-group-body .cover-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.boundary-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.boundary-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.boundary-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.boundary-text {
  font-size: 14px;
  color: var(--text-sub);
}

.boundary-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* ============================================================
   pages — 最近更新
   ============================================================ */

.batch-status,
.batch-list,
.batch-rule {
  padding: 0 0 48px;
}

.batch-status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.batch-status-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-status-label {
  font-size: 13px;
  color: var(--text-faint);
}

.batch-status-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.batch-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 20px;
}

.batch-group-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.batch-group-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.batch-group-meta {
  font-size: 14px;
  color: var(--text-sub);
}

.batch-cover {
  margin-bottom: 16px;
}

.batch-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.batch-cover figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.update-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) minmax(100px, 1fr) minmax(90px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: none;
}

.update-name {
  font-weight: 600;
  color: var(--text-main);
}

.update-progress {
  color: var(--text-sub);
}

.update-status {
  color: var(--text-faint);
  font-size: 13px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.rule-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.rule-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.rule-text {
  font-size: 15px;
  color: var(--text-sub);
}

.rule-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* ============================================================
   pages — 人气位次
   ============================================================ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.layout-main-aside {
  margin-bottom: 48px;
}

.rank-list-section,
.rank-rule-aside {
  min-width: 0;
}

.rank-list-section .rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  overflow: hidden;
  margin-top: 20px;
}

.rank-list-section .rank-row {
  display: grid;
  grid-template-columns: 40px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-list-section .rank-row:last-child {
  border-bottom: none;
}

.rank-index {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
}

.rank-cover img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.rank-body .rank-note {
  font-size: 14px;
  color: var(--text-sub);
}

.rank-footnote {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.rank-rule-aside {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.rank-rule-aside .rule-list {
  margin-top: 0;
  gap: 18px;
}

.rank-rule-aside .rule-item {
  border: none;
  border-radius: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--accent-soft);
  background-color: transparent;
}

.rule-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rank-relation-section {
  padding: 0 0 48px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.relation-table {
  margin-top: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.relation-table th,
.relation-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.relation-table thead th {
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.relation-table tbody th {
  font-weight: 600;
  color: var(--text-main);
}

.relation-table tbody td {
  color: var(--text-sub);
}

.relation-table tbody tr:last-child th,
.relation-table tbody tr:last-child td {
  border-bottom: none;
}

.relation-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* ============================================================
   pages — 条目字段说明
   ============================================================ */

.section {
  padding: 0 0 48px;
}

.field-figure {
  margin-bottom: 24px;
}

.field-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.field-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.field-table {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.field-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-sub);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-rule-section .rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-rule-section .rule-item {
  padding: 20px 18px;
}

.rule-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-rule-section .rule-item p {
  font-size: 14px;
  color: var(--text-sub);
}

.diff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diff-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.diff-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.diff-item p {
  font-size: 14px;
  color: var(--text-sub);
}

.section-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* ============================================================
   pages — 查阅指引
   ============================================================ */

.path-steps,
.feedback-scope,
.path-faq,
.path-next {
  padding: 0 0 48px;
}

.path-steps .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.feedback-figure {
  margin-bottom: 20px;
}

.feedback-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.feedback-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.feedback-body {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.feedback-body .sub-title {
  margin-top: 0;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-sub);
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.next-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-item a {
  font-size: 16px;
  font-weight: 600;
}

.next-desc {
  font-size: 14px;
  color: var(--text-sub);
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.error-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.error-back {
  font-size: 15px;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1080px) {
  .tema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .direction-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-visual img {
    height: 300px;
  }

  .cover-update-layout,
  .rank-fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .step-list,
  .path-steps .step-list,
  .next-list,
  .batch-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-rule-section .rule-list,
  .diff-list,
  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 8px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-list a.is-current {
    box-shadow: inset 2px 0 0 0 var(--accent);
    padding-left: 14px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .footer-inner {
    padding: 36px 16px 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-copy {
    padding: 16px;
  }

  .page-title,
  .hero-title {
    font-size: 26px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-time-archive {
    padding: 28px 0 40px;
  }

  .tema-overview,
  .cover-and-update,
  .rank-and-fields,
  .chayue-path {
    padding: 40px 0;
  }

  .tema-grid,
  .index-columns,
  .direction-index-list,
  .step-list,
  .path-steps .step-list,
  .next-list,
  .batch-status-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-figure img {
    height: 150px;
  }

  .direction-group-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .direction-group-body .cover-card img {
    height: 150px;
  }

  .hero-visual img {
    height: 220px;
  }

  .update-figure img,
  .batch-cover img,
  .field-figure img,
  .feedback-figure img {
    height: 190px;
  }

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 4px;
  }

  .rank-tema,
  .rank-note {
    grid-column: 2 / -1;
  }

  .rank-list-section .rank-row {
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    width: 64px;
    height: 84px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .line-status {
    margin-left: 0;
  }

  .batch-range {
    margin-left: 0;
    flex-basis: 100%;
  }

  .error-code {
    font-size: 44px;
  }

  .error-block {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .cover-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-figure img {
    height: 200px;
  }

  .direction-group-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .time-history a {
    min-height: 36px;
  }
}
