/* ==========================================================================
   age动漫 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2328;
  --text-soft: #5c6570;
  --border: #e3e6ea;
  --accent: #3b6ef5;
  --accent-soft: #eaf0ff;
  --status: #2e9e6b;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.05);
  --shadow-hover: 0 6px 16px rgba(31, 35, 40, 0.09);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  --wrap: 1200px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.site-body a {
  color: var(--accent);
  text-decoration: none;
}

.site-body a:hover,
.site-body a:focus-visible {
  text-decoration: underline;
}

.site-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-body p {
  margin: 0 0 12px;
}

.site-body ul,
.site-body ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.site-body button {
  font: inherit;
}

.site-body :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 页头 / 主容器 / 页脚骨架
   -------------------------------------------------------------------------- */
.fact-bar {
  margin: 0;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: #2c4a9b;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #d8e2ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  padding: 10px 0;
  min-height: 44px;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.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: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle-icon {
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.nav-toggle-text {
  font-size: 14px;
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #a8b0ba;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.page-description {
  margin: 0;
  max-width: 820px;
  color: var(--text-soft);
  font-size: 15px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 16px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 16px 26px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 通用区块头 / 卡片 / 列表 / 字段
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 760px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead,
.section-intro,
.section-note {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 16px;
  max-width: 820px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-tags li {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

.field-list {
  margin: 0;
}

.field-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.field-item:last-child {
  border-bottom: none;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.field-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-path {
  min-width: 0;
}

.hero-path a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hero-path a:hover,
.hero-path a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.hero-path-name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.hero-path-desc {
  font-size: 13px;
  color: var(--text-soft);
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.hero-visual figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.theme-overview {
  min-width: 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.theme-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.theme-name {
  font-size: 17px;
}

.theme-trait {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.theme-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.cover-wall,
.update-list {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cover-card {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cover-name {
  font-size: 14px;
  margin: 8px 0 2px;
  overflow-wrap: anywhere;
}

.cover-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.update-items {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  min-width: 0;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  flex: 0 0 auto;
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-theme {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}

.update-batch {
  font-size: 12px;
  color: var(--status);
  margin-left: auto;
}

.rank-preview {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.rank-items {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  min-width: 0;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-theme {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

.rank-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.field-summary {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.site-index {
  min-width: 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.index-col a {
  font-size: 15px;
  font-weight: 600;
  min-height: 24px;
}

.index-col p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.theme-tags {
  margin-bottom: 32px;
}

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
}

.tag-link:hover,
.tag-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.theme-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.theme-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.theme-group-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.theme-group-name {
  font-size: 19px;
  margin-bottom: 6px;
}

.theme-group-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 820px;
}

.theme-group-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 24px;
}

.theme-group-meta,
.theme-group-entries {
  min-width: 0;
}

.meta-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: none;
  margin-bottom: 10px;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-tags li {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
}

.entry-link {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.entry-note {
  font-size: 13px;
  color: var(--text-soft);
}

.theme-samples {
  margin-bottom: 36px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sample-card {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sample-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.sample-card figcaption {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sample-name {
  font-size: 15px;
  font-weight: 600;
}

.sample-dir {
  font-size: 13px;
  color: var(--text-soft);
}

.theme-guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.updates-batch {
  margin-bottom: 36px;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 14px;
}

.batch-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.batch-name {
  font-size: 17px;
  margin-bottom: 10px;
}

.batch-meta {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.batch-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
}

.batch-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.batch-note a {
  margin-right: 10px;
}

.updates-list {
  margin-bottom: 36px;
}

.updates-list .update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.updates-list .update-item:last-child {
  border-bottom: none;
}

.update-cover {
  margin: 0;
  grid-row: span 4;
  min-width: 0;
}

.update-cover img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.update-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.updates-list .update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
}

.updates-list .update-name {
  font-size: 17px;
  margin: 0;
}

.updates-list .update-name a {
  color: var(--text);
}

.updates-list .update-name a:hover,
.updates-list .update-name a:focus-visible {
  color: var(--accent);
}

.update-direction {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.updates-list .update-batch {
  margin: 0;
  font-size: 13px;
  color: var(--status);
}

.updates-more {
  margin: 16px 0 0;
  font-size: 14px;
}

.updates-more a {
  margin-right: 12px;
}

.updates-fields {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

/* --------------------------------------------------------------------------
   pages · 人气位次
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: var(--gap);
  align-items: start;
}

.ranking-scope,
.ranking-list-section,
.rank-reason {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.ranking-scope h2,
.ranking-list-section h2,
.rank-reason h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ranking-scope p {
  color: var(--text-soft);
  font-size: 14px;
}

.scope-list {
  margin: 12px 0 0;
}

.scope-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.scope-item:last-child {
  border-bottom: none;
}

.scope-item dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.scope-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.section-note a {
  margin-right: 12px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  min-width: 0;
}

.ranking-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.rank-body {
  min-width: 0;
}

.rank-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.rank-meta {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.rank-body .rank-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  flex: none;
}

.rank-figure {
  margin: 0 0 20px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg);
}

.rank-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.reason-item {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
}

.reason-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.reason-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.rank-aside {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 82px;
}

.rank-aside h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.rank-aside p {
  font-size: 14px;
  color: var(--text-soft);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.aside-links a:hover,
.aside-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */
.guide-section {
  margin-bottom: 32px;
}

.guide-fields {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.field-figure {
  margin: 0;
  min-width: 0;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.field-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.guide-fields .field-list {
  min-width: 0;
}

.scope-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.subsection-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.scope-included .subsection-title {
  color: var(--status);
}

.scope-excluded .subsection-title {
  color: #b4552f;
}

.scope-column .scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-column .scope-list li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 14px;
  position: relative;
}

.scope-column .scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.scope-included .scope-list li::before {
  background: var(--status);
}

.scope-excluded .scope-list li::before {
  background: #d8a08a;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.path-index {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.path-body {
  min-width: 0;
}

.path-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.path-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin: 0;
  padding: 12px 0 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-top: 1px dashed var(--border);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  justify-content: center;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

.error-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 460px;
  margin: 0 auto 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2f5ee0;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.error-links {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: left;
}

.error-links-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 断点 1024px / 768px / 420px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .fact-bar {
    font-size: 12px;
    padding: 8px 14px;
  }

  .header-inner {
    min-height: 56px;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 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(--border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    padding: 0 12px;
    border-radius: var(--radius-sm);
  }

  .site-main {
    padding: 20px 16px 36px;
  }

  .home-main {
    gap: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    gap: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title {
    font-size: 18px;
  }

  .theme-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-wall,
  .update-list,
  .rank-preview,
  .field-summary {
    padding: 18px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-group-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .sample-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .updates-list .update-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .update-cover img {
    width: 72px;
    height: 96px;
  }

  .field-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-item,
  .path-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-scope,
  .ranking-list-section,
  .rank-reason,
  .rank-aside,
  .guide-fields,
  .updates-fields,
  .theme-guide {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px 16px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-paths {
    gap: 8px;
  }

  .error-panel {
    padding: 28px 18px;
  }
}
