:root {
  --brand: #1f6fb2;
  --brand-dark: #175a92;
  --accent: #f2a33c;
  --text: #2b2f36;
  --text-soft: #6b7280;
  --bg: #f7f9fb;
  --card: #ffffff;
  --line: #e3e8ee;
  --ok: #2f9e6e;
  --done: #8a8f98;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 60, 92, 0.06);
  --shadow-hover: 0 4px 14px rgba(31, 60, 92, 0.12);
  --shell: 1140px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ layout 骨架 ============ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border-radius: 1px;
  background: var(--accent);
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: #eef3f8;
  color: var(--brand);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--brand);
  font-weight: 700;
  background: #eaf2f9;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.inner-main {
  padding-top: 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #b9c2cc;
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-description {
  max-width: var(--read);
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-intro,
.section-lead {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

/* ============ header / footer 共用组件 ============ */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

.footer-rule,
.footer-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

/* ============ 通用标签 / 状态 ============ */

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.7;
  background: #eef3f8;
  color: var(--brand);
  white-space: nowrap;
}

.tag-genre {
  background: #fdf0dd;
  color: #a8641a;
}

.tag-state,
.tag-status,
.tag-ongoing {
  background: #e6f5ee;
  color: var(--ok);
}

.tag-finished {
  background: #eef0f3;
  color: var(--done);
}

.tag-theme,
.tag-topic {
  background: #eaf2f9;
  color: var(--brand);
}

.status {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-ongoing,
.is-ongoing {
  background: #e6f5ee;
  color: var(--ok);
}

.status-finished,
.is-finished {
  background: #eef0f3;
  color: var(--done);
}

/* ============ 首页 ============ */

.home-main {
  padding-top: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px;
  align-items: start;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: #a8641a;
  background: #fdf0dd;
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 560px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-entries li {
  display: block;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.entry-link:hover,
.entry-link:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  text-decoration: none;
}

.entry-features {
  background: var(--card);
  color: var(--brand);
}

.entry-features:hover,
.entry-features:focus-visible {
  background: #eef3f8;
  color: var(--brand-dark);
}

.hero-note {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

.hero-visual {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.pick-label {
  display: inline-block;
  font-size: 12px;
  color: #a8641a;
  background: #fdf0dd;
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  margin-bottom: 8px;
}

.pick-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.pick-meta,
.pick-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pick-desc {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.pick-batch,
.pick-card-batch {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.topic-overview,
.recommend-updates,
.feature-entry,
.guide-summary,
.site-index {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-head h3 {
  margin-bottom: 6px;
}

.sub-title {
  font-size: 20px;
}

.section-desc {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.topic-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.6fr) minmax(0, 1.2fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.topic-row:hover {
  background: var(--card);
  border-left-color: var(--accent);
}

.topic-name {
  font-size: 17px;
  margin: 0;
}

.topic-trait,
.topic-scope {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.topic-rep {
  font-size: 14px;
  white-space: nowrap;
}

.recommend-updates {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 30px;
}

.recommend-column,
.updates-column {
  min-width: 0;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.pick-card:hover {
  border-color: #c9d6e2;
  box-shadow: var(--shadow-hover);
}

.pick-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: #eef3f8;
}

.pick-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.pick-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.pick-card-meta {
  gap: 6px;
  margin-bottom: 4px;
}

.batch-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.batch-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.batch-no {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.batch-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  border-color: #c9d6e2;
  box-shadow: var(--shadow-hover);
}

.feature-figure {
  background: #eef3f8;
}

.feature-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-name {
  font-size: 17px;
  margin: 14px 16px 6px;
}

.feature-angle,
.feature-scope {
  margin: 0 16px 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.feature-scope {
  margin-bottom: 16px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 10px;
}

.step-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.index-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.index-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.index-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ============ 题材分类页 ============ */

.topic-columns {
  margin-bottom: 34px;
}

.topic-column {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.topic-column-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef3f8;
}

.topic-column-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.topic-column-body {
  min-width: 0;
}

.topic-column-body .topic-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-column-body .topic-trait {
  color: var(--text);
}

.topic-column-body .topic-scope {
  margin-bottom: 10px;
}

.topic-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.topic-represent {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.field-summary {
  margin-bottom: 34px;
}

.field-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 11px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: #f1f5f9;
  color: var(--text);
  font-weight: 700;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.field-table td {
  color: var(--text-soft);
}

.path-guide {
  margin-bottom: 10px;
}

.path-guide .step-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.path-guide .step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.path-guide .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 14px;
}

.path-guide .step-body {
  min-width: 0;
}

.path-guide .step-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.aside-title {
  font-size: 18px;
  margin-bottom: 14px;
}

.aside-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.aside-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.aside-subtitle {
  font-size: 15px;
  margin-bottom: 6px;
}

.aside-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.aside-link-list {
  margin-top: 8px;
}

.aside-link-list li {
  margin-bottom: 6px;
}

.aside-link-list a {
  font-size: 14px;
}

/* ============ 更新记录页 ============ */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.batch-list {
  min-width: 0;
}

.batch-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.batch-heading {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.batch-items {
  display: grid;
  gap: 12px;
}

.batch-items .batch-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0;
  border-bottom: 0;
}

.batch-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef3f8;
}

.batch-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.batch-info {
  min-width: 0;
}

.batch-info .batch-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.batch-info .batch-meta {
  margin-bottom: 6px;
}

.batch-info .batch-progress {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.updates-aside {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.updates-aside .field-summary,
.updates-aside .path-guide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 0;
}

.updates-aside .section-title {
  font-size: 18px;
}

.updates-aside .section-intro {
  font-size: 14px;
  margin-bottom: 12px;
}

.updates-aside .field-table th,
.updates-aside .field-table td {
  padding: 9px 10px;
  font-size: 13px;
}

.field-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.path-list {
  display: grid;
  gap: 12px;
}

.path-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.path-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.path-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.path-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* ============ 专题合集页 ============ */

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-cover {
  background: #eef3f8;
}

.feature-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-body {
  padding: 14px 16px 18px;
}

.feature-body .feature-name {
  margin: 0 0 6px;
}

.feature-body .feature-angle,
.feature-body .feature-scope {
  margin: 0 0 6px;
}

.feature-body .feature-count {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.feature-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
}

.order-note {
  margin-top: 34px;
  margin-bottom: 34px;
}

.order-list {
  counter-reset: order;
  display: grid;
  gap: 12px;
}

.order-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.order-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.order-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.feature-cards .section-lead,
.order-note .section-lead,
.path-guide .section-lead {
  margin-bottom: 18px;
}

.path-guide .path-list {
  gap: 14px;
}

.path-guide .path-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.path-guide .path-item a {
  font-weight: 700;
  font-size: 15px;
}

.path-guide .path-item .path-desc {
  margin-top: 4px;
}

.aside-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.aside-list a {
  font-size: 14px;
}

/* ============ 阅读帮助页 ============ */

.guide-path,
.guide-faq,
.guide-feedback,
.guide-related {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.guide-path {
  padding-top: 0;
}

.guide-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 22px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.guide-path .step-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide-path .step-item {
  display: grid;
  gap: 6px;
  align-content: start;
}

.guide-path .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 14px;
}

.guide-path .step-title {
  font-size: 16px;
  margin: 0;
}

.guide-path .step-desc,
.guide-path .step-result,
.guide-path .step-check {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.guide-path .step-result {
  color: var(--text);
}

.guide-path .step-check {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-body {
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-reason,
.faq-fix {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.faq-fix {
  margin-bottom: 0;
  color: var(--text);
}

.feedback-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.feedback-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-desc {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.feedback-list {
  display: grid;
  gap: 8px;
}

.feedback-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-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(--card);
  font-size: 14px;
}

.related-links a:hover,
.related-links a:focus-visible {
  border-color: var(--brand);
  text-decoration: none;
}

/* ============ 404 ============ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
}

.error-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 620px;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.error-desc {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--brand);
  text-decoration: none;
}

.error-back {
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #ffffff;
  text-decoration: none;
}

/* ============ 滚动出现增强 ============ */

.reveal-ready .topic-overview,
.reveal-ready .recommend-updates,
.reveal-ready .feature-entry,
.reveal-ready .guide-summary,
.reveal-ready .site-index {
  transform: translateY(10px);
  transition: transform 0.45s ease;
}

.reveal-ready .is-revealed {
  transform: none;
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 24px;
  }

  .recommend-updates {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 22px;
  }

  .topic-row {
    grid-template-columns: 130px minmax(0, 1.5fr) minmax(0, 1.1fr) auto;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
  }

  .site-main {
    padding: 20px 16px 40px;
  }

  .page-title,
  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .page-layout,
  .layout-shell,
  .recommend-updates,
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-visual {
    order: 2;
  }

  .layout-aside,
  .updates-aside {
    margin-top: 4px;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .topic-row .topic-name {
    margin-bottom: 2px;
  }

  .topic-rep {
    white-space: normal;
  }

  .topic-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-column-media img {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 26px 16px 18px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 12px 16px 20px;
    flex-direction: column;
  }

  .field-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .field-table th,
  .field-table td {
    white-space: normal;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 16px 14px 36px;
  }

  .page-title,
  .hero-title {
    font-size: 24px;
  }

  .hero-entries {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    justify-content: center;
  }

  .pick-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .feature-cards,
  .feature-card-grid,
  .step-list,
  .guide-path .step-list,
  .path-guide .step-list,
  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-items .batch-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .batch-cover img {
    width: 64px;
    height: 86px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 34px;
  }
}
