:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-soft: #eef1f5;
  --bg-tint: #e7edf5;
  --text-main: #1f2329;
  --text-sub: #5c6470;
  --text-faint: #8b93a0;
  --accent: #3a6ea5;
  --accent-dark: #2c5580;
  --accent-soft: #7a8ba6;
  --line: #e3e6eb;
  --line-strong: #d2d8e0;
  --state: #4f8a6d;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(31, 35, 41, 0.05);
  --shadow-raise: 0 4px 14px rgba(31, 35, 41, 0.08);
  --wrap: 1180px;
  --wrap-narrow: 900px;
  --gap: 20px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ============================================================
   base —— 全站基础重置、字体、颜色、通用元素
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  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;
  -moz-osx-font-smoothing: grayscale;
}

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;
}

dl,
dd {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
  color: var(--text-main);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 跳转链接：默认不可见，聚焦时出现 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #ffffff;
}

/* 通用标签胶囊 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: var(--bg-soft);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.tag:hover,
.tag:focus-visible {
  border-color: var(--accent);
  background-color: var(--bg-tint);
  color: var(--accent-dark);
}

/* ============================================================
   layout —— 顶部信息条、页头、导航、主容器、面包屑、页脚骨架
   ============================================================ */

.top-bar {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
}

.top-bar-note {
  color: var(--text-sub);
  font-size: 13px;
}

.top-bar-link {
  flex: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 220px;
  min-width: 0;
  color: var(--text-main);
}

.brand:hover,
.brand:focus-visible {
  color: var(--text-main);
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-tagline {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: var(--bg-soft);
  color: var(--accent-dark);
}

.nav-list a.is-current {
  background-color: var(--bg-tint);
  color: var(--accent-dark);
  font-weight: 600;
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--text-faint);
  font-size: 13.5px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-main);
}

.page-description {
  max-width: 780px;
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15.5px;
}

/* 侧栏布局：默认主内容在前、aside 在后；.sidebar-left 才允许侧栏在前 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.site-footer {
  margin-top: 40px;
  background-color: #232a33;
  color: #c8cfd8;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-back,
.footer-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #e4e9ef;
  font-size: 13.5px;
}

.footer-back:hover,
.footer-back:focus-visible,
.footer-top-link:hover,
.footer-top-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.footer-brand {
  padding: 20px 0 8px;
}

.footer-brand-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.footer-brand-desc {
  max-width: 720px;
  margin-top: 6px;
  color: #9aa4b0;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0 8px;
}

.footer-group-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #b3bcc7;
  font-size: 13.5px;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
}

.footer-copy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8b95a1;
  font-size: 12.5px;
}

/* ============================================================
   components —— 通用按钮、区块头、卡片、表格、列表、侧栏
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-card);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
}

.section-desc,
.section-lead {
  max-width: 780px;
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 15px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14.5px;
}

.section-foot a {
  font-weight: 600;
}

.section-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.section-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 7;
}

.section-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
}

/* 字段释义表（dl 结构，首页） */
.field-table {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.field-table dt {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
}

.field-table dd {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 14px;
}

.field-table dt:last-of-type,
.field-table dd:last-of-type {
  border-bottom: 0;
}

/* 表格版字段释义（内页） */
.field-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow-x: auto;
}

.field-table-caption {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13.5px;
  text-align: left;
}

.field-table-wrap .field-table {
  display: table;
  border: 0;
  border-radius: 0;
}

.field-table-wrap th,
.field-table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.field-table-wrap th {
  background-color: var(--bg-soft);
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.field-table-wrap td {
  color: var(--text-sub);
  min-width: 160px;
}

.field-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* 侧栏通用 */
.aside-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}

.aside-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--accent);
}

.aside-text {
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 14px;
}

.aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
}

.aside-figure {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.aside-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.aside-figure figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12.5px;
}

/* 卡片通用底 */
.cover-card,
.entry-card,
.rank-card,
.represent-card,
.board-card,
.index-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   pages —— 首页
   ============================================================ */

.home-main {
  padding-top: 28px;
}

/* 首屏 */
.hero-section {
  margin-bottom: 44px;
  padding: 28px 28px 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background-color: var(--bg-tint);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-desc {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hero-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
  color: var(--text-faint);
  font-size: 13px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-tags-label {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 题材分类方向总览 */
.tice-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.tice-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.tice-list .tice-row:last-child {
  border-bottom: 0;
}

.tice-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
}

.tice-feature,
.tice-organize,
.tice-samples {
  color: var(--text-sub);
  font-size: 14px;
}

.tice-samples a {
  font-weight: 600;
}

/* 封面墙速览 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  padding: 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}

.cover-figure {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
}

.cover-tag {
  margin-top: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.cover-note {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 最近更新记录 */
.update-group {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.update-month {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
  font-size: 15px;
  font-weight: 600;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 1.8fr);
  gap: 8px 20px;
  align-items: baseline;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.update-list .update-item:last-child {
  border-bottom: 0;
}

.update-name {
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
}

.update-tag {
  color: var(--accent);
  font-size: 13px;
}

.update-note {
  color: var(--text-sub);
  font-size: 13.5px;
}

/* 榜单排行速览 */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.rank-card {
  padding: 18px 20px;
}

.rank-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-dark);
}

.rank-basis {
  margin-top: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--text-faint);
  font-size: 13px;
}

.rank-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.rank-items li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-sub);
  font-size: 14px;
}

.rank-items li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--accent-soft);
}

.rank-items a {
  font-weight: 500;
}

/* 阅读说明与收录边界摘要 */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.notes-fields,
.notes-boundary {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.notes-subtitle {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-sub);
  font-size: 14px;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--state);
}

.notes-more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-card:hover,
.index-card:focus-within {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-raise);
}

.index-name {
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 600;
}

.index-card .index-name a {
  color: inherit;
}

.index-card .index-name a:hover,
.index-card .index-name a:focus-visible {
  color: var(--accent);
}

.index-note {
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ============================================================
   pages —— 题材分类页
   ============================================================ */

.tice-aside {
  position: sticky;
  top: 90px;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tice-intro {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tice-intro p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.method-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-sub);
  font-size: 14px;
}

.method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.method-list strong {
  margin-right: 4px;
}

/* 题材方向总览表 */
.tice-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.tice-table .tice-row {
  grid-template-columns: minmax(110px, 150px) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.tice-row-head {
  background-color: var(--bg-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}

.tice-row-head .tice-cell {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
}

.tice-cell {
  min-width: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.tice-cell-name {
  color: var(--accent-dark);
  font-weight: 600;
}

/* 各题材代表条目 */
.represent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.represent-card {
  padding: 14px;
}

.represent-figure {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.represent-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.represent-name {
  font-size: 16px;
  font-weight: 600;
}

.represent-tag {
  margin-top: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.represent-desc {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.tice-bridge {
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tice-bridge p {
  color: var(--text-sub);
  font-size: 14.5px;
}

.tice-bridge .bridge-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.bridge-list a {
  font-size: 14.5px;
  font-weight: 600;
}

/* ============================================================
   pages —— 作品索引页
   ============================================================ */

.index-guide {
  margin-bottom: 40px;
}

.index-guide > p {
  max-width: 780px;
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
}

.index-sections {
  margin-bottom: 40px;
}

.index-group {
  margin-bottom: 34px;
  scroll-margin-top: 90px;
}

.group-title {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.entry-card {
  padding: 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.entry-card:hover,
.entry-card:focus-within {
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}

.entry-cover {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.entry-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.entry-name {
  font-size: 16px;
  font-weight: 600;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.entry-desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.index-bridge {
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.index-bridge p {
  color: var(--text-sub);
  font-size: 14.5px;
}

.index-bridge .bridge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 14px;
}

/* ============================================================
   pages —— 最近更新页
   ============================================================ */

.section-update-intro {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.update-range-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.update-range-list li {
  color: var(--text-sub);
  font-size: 14px;
}

.update-range-list strong {
  display: block;
  color: var(--text-main);
  font-size: 14.5px;
}

.section-update-months .update-month {
  display: block;
  margin-bottom: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.update-month-title {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
  font-size: 15px;
  font-weight: 600;
}

.section-update-months .update-item {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 0 18px;
  padding: 14px 20px;
}

.update-thumb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.update-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15px;
}

.update-body .update-tag {
  margin-top: 4px;
  font-size: 13px;
}

.update-body .update-note {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
}

.section-update-link {
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section-update-link .section-lead + .section-lead {
  margin-top: 8px;
}

.update-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 14px;
}

/* ============================================================
   pages —— 榜单排行页
   ============================================================ */

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.bangdan-intro {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.basis-item {
  min-width: 0;
}

.basis-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
}

.basis-desc {
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.basis-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--text-faint);
  font-size: 13px;
}

.board-card {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}

.board-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.board-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-dark);
}

.board-basis {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 13px;
}

.board-list {
  display: flex;
  flex-direction: column;
  counter-reset: board-rank;
}

.board-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 14px;
  align-items: baseline;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 14px;
}

.board-list .board-entry:last-child {
  border-bottom: 0;
}

.board-entry::before {
  counter-increment: board-rank;
  content: counter(board-rank);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-soft);
}

.board-link {
  color: var(--text-main);
  font-weight: 600;
}

.board-desc {
  grid-column: 2;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 13.5px;
}

.bangdan-bridge {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bangdan-bridge p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.bridge-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 14px;
}

.bangdan-aside {
  position: sticky;
  top: 90px;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bangdan-aside .aside-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-sub);
  font-size: 13.5px;
}

.bangdan-aside .aside-list li:last-child {
  border-bottom: 0;
}

/* ============================================================
   pages —— 阅读说明页
   ============================================================ */

.section-fields .field-table {
  margin-top: 16px;
}

.section-boundary {
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}

.boundary-body {
  min-width: 0;
}

.boundary-body p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.boundary-body .boundary-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.boundary-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-soft);
  overflow: hidden;
}

.boundary-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.boundary-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
  color: var(--text-faint);
  font-size: 13px;
}

.path-list {
  counter-reset: path-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.path-item {
  position: relative;
  min-width: 0;
  padding: 16px 18px 16px 52px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.path-item::before {
  counter-increment: path-step;
  content: counter(path-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-tint);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.path-title {
  font-size: 15.5px;
  font-weight: 600;
}

.path-item p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 14px 46px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  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%);
  color: var(--accent);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.faq-answer {
  padding: 14px 18px;
}

.faq-answer p {
  color: var(--text-sub);
  font-size: 14px;
}

.section-index .index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 16px;
}

.index-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.index-item a {
  font-size: 14.5px;
  font-weight: 600;
}

.index-item .index-note {
  flex: 1 1 100%;
}

/* ============================================================
   pages —— 404
   ============================================================ */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-hero {
  max-width: 640px;
  margin-bottom: 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-soft);
}

.error-title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.error-desc {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15.5px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.error-guide {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.error-guide-title {
  font-size: 18px;
  font-weight: 600;
}

.error-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 14px;
}

.error-guide-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  font-weight: 500;
}

/* ============================================================
   responsive —— 平板与手机断点
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: 30px;
  }

  .cover-grid,
  .rank-grid,
  .represent-grid,
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .tice-aside,
  .bangdan-aside {
    position: static;
  }

  .notes-layout,
  .boundary-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand {
    flex: 1 1 auto;
    padding-top: 4px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-toggle {
    display: flex;
    flex: none;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--bg-card);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-main {
    padding: 22px 16px 44px;
  }

  .inner-main {
    padding-top: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 14.5px;
  }

  .section {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-section {
    padding: 20px 16px 16px;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .top-bar-inner {
    padding: 8px 16px;
  }

  .cover-grid,
  .rank-grid,
  .represent-grid,
  .entry-grid,
  .index-grid,
  .method-list,
  .basis-list,
  .update-range-list,
  .path-list,
  .section-index .index-list,
  .error-guide-list,
  .index-bridge .bridge-list,
  .update-link-list,
  .bridge-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .tice-list .tice-row,
  .tice-table .tice-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 16px;
  }

  .tice-row-head {
    display: none;
  }

  .tice-table .tice-row-head {
    display: none;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 16px;
  }

  .section-update-months .update-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0 14px;
  }

  .update-month {
    padding: 10px 16px;
  }

  .update-month-title {
    padding: 10px 16px;
  }

  .board-head {
    padding: 14px 16px;
  }

  .board-entry {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 12px;
    padding: 12px 16px;
  }

  .field-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .field-table dd {
    padding-top: 0;
  }

  .field-table dt:last-of-type {
    border-bottom: 0;
  }

  .field-table dd:last-of-type {
    border-bottom: 0;
  }

  .notes-fields,
  .notes-boundary,
  .tice-intro,
  .tice-bridge,
  .index-bridge,
  .section-update-intro,
  .section-update-link,
  .bangdan-intro,
  .bangdan-bridge,
  .section-boundary,
  .error-guide {
    padding: 18px 16px;
  }

  .tice-aside,
  .bangdan-aside {
    padding: 16px;
  }

  .footer-inner {
    padding: 28px 16px 22px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-back,
  .footer-top-link {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15.5px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 22px;
  }

  .brand-tagline {
    font-size: 12px;
  }

  .section-update-months .update-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-thumb {
    max-width: 120px;
  }

  .path-item {
    padding: 14px 16px 14px 46px;
  }
}

/* 轻量渐入：不影响初始可见性，仅在脚本可用时附加 */
.js-reveal {
  transition: transform 0.4s ease;
}

.js-reveal.is-visible {
  transform: translateY(0);
}
