/* ==========================================================================
   樱花动漫 pqewf.cn 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */
:root {
  --map-blue: #1f5f9e;
  --map-blue-dark: #17497b;
  --map-blue-soft: #e8f1fa;
  --route-orange: #d9761f;
  --route-orange-soft: #fdf1e4;
  --bg-page: #f4f6f8;
  --bg-card: #ffffff;
  --bg-soft: #eef2f6;
  --line: #d5dde5;
  --line-strong: #b9c6d3;
  --text-main: #262c33;
  --text-sub: #5a6675;
  --text-mute: #7d8894;
  --state-ok: #2f7d4f;
  --state-ok-soft: #e6f4ec;
  --state-warn: #9a6b12;
  --state-warn-soft: #fcf3dd;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 60, 92, 0.06), 0 4px 12px rgba(31, 60, 92, 0.05);
  --wrap: 1180px;
  --wrap-narrow: 1080px;
  --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: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "PingFang SC", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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(--map-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--route-orange);
}

a:focus-visible {
  outline: 2px solid var(--route-orange);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

time,
.rank-no,
.rank-index,
.step-no,
.step-index,
.path-step-no,
.path-step-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

table {
  border-collapse: collapse;
  width: 100%;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

summary {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   layout：全站骨架（页头 / 导航 / 主容器 / 面包屑 / 页标题 / 页脚）
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--map-blue);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: #ffe6c9;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: #e7f0fa;
  font-size: 15px;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-list a.is-current {
  background: #ffffff;
  color: var(--map-blue-dark);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--map-blue);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-sub);
}

.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);
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 900px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}

.site-footer {
  flex-shrink: 0;
  background: #22303e;
  color: #c8d3de;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  color: #9fb0c0;
  line-height: 1.75;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  min-height: 24px;
  color: #b7c6d4;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 32px auto 0;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8d9dad;
  font-size: 13px;
  line-height: 1.7;
}

/* 顶部事实条 */
.site-factbar,
.top-fact-bar {
  background: var(--map-blue-soft);
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
}

.site-factbar {
  padding: 8px 20px;
  text-align: center;
}

.top-fact-bar {
  padding: 8px 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   components：通用组件（章节头、卡片、路径步骤、表格、FAQ、按钮）
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: 52px;
}

.section-head {
  margin-bottom: 22px;
}

.section-title,
.section-head h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 4px solid var(--map-blue);
  line-height: 1.4;
}

.section-desc,
.section-intro,
.section-lede {
  margin-top: 10px;
  max-width: 880px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--route-orange-soft);
  color: var(--route-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 14px;
}

.section-foot a {
  color: var(--map-blue);
  font-weight: 600;
}

.section-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--route-orange);
  background: var(--route-orange-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--map-blue);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--map-blue-dark);
  color: #ffffff;
}

/* 路径步骤（首页 / 更新页 / 字段页共用，父级限定各自作用域） */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}

.path-step {
  position: relative;
  padding: 20px 20px 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.path-step-no,
.path-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--map-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.path-step-name,
.path-step-title,
.path-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.path-step-desc,
.path-step p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.field-table {
  min-width: 620px;
  font-size: 14px;
}

.field-table caption {
  padding: 14px 16px;
  text-align: left;
  color: var(--text-sub);
  font-size: 13px;
  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;
  line-height: 1.7;
}

.field-table thead th {
  background: var(--bg-soft);
  color: var(--text-main);
  font-weight: 700;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:hover {
  background: #f7fafd;
}

/* 章节目录 / 侧栏 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 34px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px 1fr;
}

.content-column,
.page-content {
  min-width: 0;
}

.section-toc,
.section-sidebar {
  position: sticky;
  top: 82px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.toc-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  line-height: 1.5;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  background: var(--map-blue-soft);
  color: var(--map-blue-dark);
}

.sidebar-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

/* 媒体图 */
.section-media,
.timeline-figure,
.ranking-figure,
.media-figure {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-media img,
.timeline-figure img,
.ranking-figure img,
.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--bg-soft);
}

.media-figure-wide img {
  aspect-ratio: 21 / 8;
}

.section-media figcaption,
.timeline-figure figcaption,
.ranking-figure figcaption,
.media-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.65;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

/* 首屏定位区 */
.hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 42px 20px 34px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero .page-title {
  font-size: 34px;
  line-height: 1.28;
  color: var(--text-main);
}

.hero-lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.85;
}

.hero-paths {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hero-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--map-blue);
  border-radius: var(--radius);
  background: var(--map-blue-soft);
  color: var(--map-blue-dark);
  font-size: 15px;
  font-weight: 600;
}

.hero-paths a:hover,
.hero-paths a:focus-visible {
  background: var(--map-blue);
  color: #ffffff;
}

.hero-media {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mute);
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  line-height: 1.65;
}

.hero-quick {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-link {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}

.quick-link::after {
  content: "→";
  color: var(--route-orange);
  font-weight: 700;
}

.quick-link:hover,
.quick-link:focus-visible {
  border-color: var(--map-blue);
  color: var(--map-blue-dark);
  box-shadow: var(--shadow-card);
}

/* 首页通用容器 */
.home-main .section {
  max-width: var(--wrap);
  margin: 0 auto 52px;
  padding: 0 20px;
}

.home-main .section-updates {
  padding-top: 0;
}

/* 题材方向总览 */
.topic-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.topic-column {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--map-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.topic-trait {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.topic-scope {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-bottom: 14px;
}

.topic-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}

/* 封面条目速览 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--map-blue);
  box-shadow: 0 3px 10px rgba(31, 95, 158, 0.14);
  transform: translateY(-2px);
}

.cover-media {
  margin-bottom: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cover-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cover-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cover-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.cover-fields li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
}

.cover-fields li:last-child {
  border-bottom: 0;
}

.cover-fields li span:first-child {
  flex: 0 0 68px;
  color: var(--text-mute);
}

/* 最近更新记录 */
.update-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 108px 96px 1fr 108px;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-item:hover {
  background: #f7fafd;
}

.update-date {
  color: var(--map-blue-dark);
  font-weight: 700;
}

.update-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--map-blue-soft);
  color: var(--map-blue-dark);
  font-size: 12px;
  white-space: nowrap;
}

.update-work {
  color: var(--text-main);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-batch {
  color: var(--route-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

/* 人气位次参考 + 条目字段口径摘要 */
.rank-fields-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.rank-column,
.fields-column {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.column-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--route-orange-soft);
  color: var(--route-orange);
  font-size: 13px;
  font-weight: 700;
}

.rank-row .rank-name {
  color: var(--text-main);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-row .rank-topic {
  color: var(--text-mute);
  font-size: 13px;
  white-space: nowrap;
}

.field-summary {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.field-summary dt {
  color: var(--map-blue-dark);
  font-weight: 700;
  line-height: 1.7;
}

.field-summary dd {
  color: var(--text-sub);
  line-height: 1.7;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.field-summary dd:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.column-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}

/* 站内栏目索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.index-column {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
}

.index-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages：内页通用模块
   -------------------------------------------------------------------------- */
.page-meta,
.page-meta-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.page-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-meta-item dt,
.page-meta-list .page-meta-item span:first-child {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.page-meta-item dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--map-blue-dark);
  font-family: var(--font-mono);
}

.page-meta-list .page-meta-item {
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages：题材分类（topics.html）
   -------------------------------------------------------------------------- */
.topic-section {
  padding-bottom: 8px;
}

.topic-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--map-blue-dark);
}

.topic-body p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
}

.entry-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.entry-item {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.entry-item .entry-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.entry-item .entry-meta {
  display: block;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.7;
}

.topic-fields .field-table {
  min-width: 560px;
}

/* 选择建议 */
.advice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.advice-item {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--route-orange);
  border-radius: var(--radius);
}

.advice-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.advice-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages：最近更新（updates.html）
   -------------------------------------------------------------------------- */
.updates-timeline,
.batch-notes,
.reading-path {
  margin-bottom: 48px;
}

.updates-timeline > h2,
.batch-notes > h2,
.reading-path > h2 {
  font-size: 23px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--map-blue);
  line-height: 1.4;
}

.timeline-list {
  position: relative;
  margin-top: 22px;
  padding-left: 26px;
  border-left: 2px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 4px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route-orange);
  border: 2px solid var(--bg-page);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background: var(--map-blue-soft);
  color: var(--map-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.timeline-body {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-detail {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.batch-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.batch-item {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--map-blue-dark);
}

.batch-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.reading-path .path-step {
  background: var(--bg-card);
}

.path-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.path-note a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages：人气位次（ranking.html）
   -------------------------------------------------------------------------- */
.ranking-list-section,
.basis-section,
.route-section {
  margin-bottom: 48px;
}

.ranking-items {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #f7fafd;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--map-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.ranking-item:nth-child(-n + 3) .rank-index {
  background: var(--route-orange);
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rank-body .rank-topic {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

.rank-body .rank-field {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.ranking-note,
.route-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.ranking-note a,
.route-note a {
  font-weight: 600;
}

.basis-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.basis-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--route-orange);
  border-radius: var(--radius);
}

.basis-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.basis-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.route-steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.route-step {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.route-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--map-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.route-step .step-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.route-step p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages：条目字段说明（fields.html）
   -------------------------------------------------------------------------- */
.content-section {
  margin-bottom: 46px;
  scroll-margin-top: 84px;
}

.field-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--map-blue);
  border-radius: var(--radius);
}

.field-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--map-blue-dark);
}

.field-meaning {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}

.field-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 14px;
  font-size: 13px;
}

.field-meta dt {
  color: var(--text-mute);
}

.field-meta dd {
  color: var(--text-main);
  line-height: 1.7;
}

.boundary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.boundary-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-in {
  border-top: 3px solid var(--state-ok);
}

.boundary-out {
  border-top: 3px solid var(--state-warn);
}

.boundary-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.boundary-in .boundary-title {
  color: var(--state-ok);
}

.boundary-out .boundary-title {
  color: var(--state-warn);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li,
.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.boundary-list li::before,
.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.boundary-in .boundary-list li::before {
  background: var(--state-ok);
}

.boundary-out .boundary-list li::before {
  background: var(--state-warn);
}

.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 15px 44px 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  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(--map-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  color: var(--map-blue-dark);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.error-block {
  padding: 34px 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: var(--map-blue);
  margin-bottom: 12px;
}

.error-block h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}

.error-hints {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-hints li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.error-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--route-orange);
}

.error-actions {
  margin-top: 24px;
}

.error-links {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.error-links h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--map-blue);
  color: var(--map-blue-dark);
}

/* --------------------------------------------------------------------------
   responsive：断点适配
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .topic-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-fields-columns {
    grid-template-columns: 1fr;
  }

  .entry-list,
  .advice-list,
  .batch-list,
  .basis-grid,
  .route-steps,
  .path-steps {
    grid-template-columns: 1fr 1fr;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-toc,
  .section-sidebar {
    position: static;
    order: 2;
  }

  .content-column,
  .page-content {
    order: 1;
  }

  .update-item {
    grid-template-columns: 100px 1fr;
    gap: 6px 14px;
  }

  .update-topic {
    justify-self: start;
  }

  .update-batch {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--map-blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: #e7f0fa;
    font-size: 16px;
  }

  .nav-list a.is-current {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .header-inner {
    position: relative;
    min-height: 58px;
  }

  .site-brand {
    font-size: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero .page-title {
    font-size: 26px;
  }

  .page-description,
  .hero-lead {
    font-size: 15px;
  }

  .section-title,
  .section-head h2,
  .updates-timeline > h2,
  .batch-notes > h2,
  .reading-path > h2 {
    font-size: 20px;
  }

  .home-main .section {
    margin-bottom: 40px;
  }

  .topic-columns,
  .cover-grid,
  .entry-list,
  .advice-list,
  .batch-list,
  .basis-grid,
  .route-steps,
  .path-steps,
  .index-columns {
    grid-template-columns: 1fr;
  }

  .quick-link {
    flex: 1 1 100%;
  }

  .field-summary {
    grid-template-columns: 84px 1fr;
  }

  .field-meta {
    grid-template-columns: 76px 1fr;
  }

  .timeline-list {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -27px;
  }

  .ranking-item {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .error-block {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .inner-main,
  .home-main .section,
  .hero-inner,
  .hero-quick,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-quick {
    padding-bottom: 22px;
  }

  .update-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .update-date {
    font-size: 13px;
  }

  .rank-row {
    grid-template-columns: 30px 1fr;
    gap: 4px 10px;
  }

  .rank-row .rank-topic {
    grid-column: 2 / 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
