/* ==========================================================================
   风车动漫 · 全站样式表
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与重置
   -------------------------------------------------------------------------- */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1c1f26;
  --ink-soft: #5a6270;
  --accent: #c0392b;
  --ok: #2f6f5e;
  --line: #d9dde3;
  --line-strong: #b9c0ca;
  --radius: 6px;
  --wrap: 1120px;
  --read: 720px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 0.9em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--accent);
  border-radius: 2px;
  vertical-align: baseline;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-list > li > a:hover {
  color: var(--ink);
}

.nav-list > li > a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  bottom: 16px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-description {
  max-width: var(--read);
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.page-description a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.page-layout {
  display: block;
}

.layout-shell {
  display: block;
}

.section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-intro,
.section-lead {
  max-width: var(--read);
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px 30px;
}

.footer-return {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 20px;
  font-size: 13px;
}

.footer-return a {
  color: var(--ink-soft);
}

.footer-return a:hover {
  color: var(--accent);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
  font-size: 13px;
}

.footer-list a {
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-about {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: #eef0f3;
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}

.status-ongoing,
.status-paused,
.status-finished,
.status-active,
.status-done,
.status-complete {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.status-ongoing {
  color: var(--ok);
}

.status-paused {
  color: #9a6b1f;
}

.status-finished,
.status-complete {
  color: var(--ink-soft);
}

.status-active {
  color: var(--ok);
}

.status-done {
  color: var(--ink-soft);
}

.data-table {
  width: 100%;
  font-size: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f0f2f5;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafbfc;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-caption {
  caption-side: top;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.section-more {
  margin: 16px 0 0;
  font-size: 14px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-note {
  max-width: var(--read);
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-answer {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: var(--read);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-list li a {
  display: block;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.related-list li a:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.boundary-list {
  padding-left: 0;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.boundary-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.boundary-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.boundary-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 60px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: var(--read);
}

.step-text a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #e9ebef;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 36px;
  align-items: start;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  max-width: var(--read);
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-link {
  display: inline-block;
  padding: 9px 16px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  line-height: 24px;
}

.entry-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-media {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9ebef;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.genre-table caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  background: #fafbfc;
}

.cover-figure {
  aspect-ratio: 3 / 4;
  background: #e9ebef;
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-meta {
  padding: 12px 14px 14px;
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cover-tags {
  margin: 0 0 6px;
}

.cover-status {
  margin: 0;
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.update-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.update-month {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.update-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.update-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.update-tags {
  margin: 0 0 2px;
}

.update-status {
  margin: 0;
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ranking-basis {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ranking-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-title {
  font-size: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brief-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.brief-col {
  min-width: 0;
}

.brief-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.brief-boundary p {
  color: var(--ink-soft);
  font-size: 15px;
}

.field-table caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.index-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.index-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.index-name a {
  color: var(--ink);
}

.index-name a:hover {
  color: var(--accent);
}

.index-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.dimension-table caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.section-genre-catalog {
  display: block;
}

.genre-entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.genre-entry:hover {
  border-color: var(--line-strong);
}

.genre-figure {
  aspect-ratio: 3 / 4;
  background: #e9ebef;
  border-radius: 4px;
  overflow: hidden;
}

.genre-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-body {
  min-width: 0;
}

.genre-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.genre-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 0 10px;
  font-size: 14px;
}

.genre-meta dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 2px;
}

.genre-meta dd {
  margin: 0;
  color: var(--ink);
}

.genre-rep {
  margin: 0 0 8px;
  font-size: 13px;
}

.genre-link {
  margin: 0;
  font-size: 14px;
}

.genre-link a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.path-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.path-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.path-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 1px;
}

.section-related {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   pages · 作品索引
   -------------------------------------------------------------------------- */
.fields-table caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.catalog-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.group-title {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.entry-list {
  display: block;
}

.entry-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px 96px 110px;
  gap: 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row:hover {
  background: #fafbfc;
}

.entry-thumb {
  width: 56px;
  aspect-ratio: 3 / 4;
  background: #e9ebef;
  border-radius: 3px;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-main {
  min-width: 0;
}

.entry-name {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.entry-name:hover {
  color: var(--accent);
}

.entry-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-tags {
  margin: 0;
}

.entry-status {
  margin: 0;
}

.entry-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.content-wrap {
  display: block;
}

.method-body {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.method-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.method-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9ebef;
}

.method-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.method-list {
  min-width: 0;
}

.method-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.method-item:first-child {
  padding-top: 0;
}

.method-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.method-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.method-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--read);
}

.month-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.month-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section-update-monthly .update-list {
  display: block;
}

.section-update-monthly .update-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.section-update-monthly .update-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-cover {
  width: 52px;
  aspect-ratio: 3 / 4;
  background: #e9ebef;
  border-radius: 3px;
  overflow: hidden;
}

.update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-meta {
  min-width: 0;
}

.update-meta .update-name {
  margin-bottom: 2px;
}

.update-meta .update-tags {
  margin: 0 0 2px;
}

.update-meta .update-status {
  margin: 0;
}

.field-table {
  width: 100%;
  font-size: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f0f2f5;
  white-space: nowrap;
}

.field-table tbody th {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.tips-list {
  display: grid;
  gap: 12px;
}

.tips-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 编辑推荐榜
   -------------------------------------------------------------------------- */
.ranking-basis .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ranking-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.ranking-block-head {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ranking-rule {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.ranking-audience {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.ranking-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ranking-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ranking-entry:hover {
  border-color: var(--line-strong);
  background: #fafbfc;
}

.entry-cover {
  width: 48px;
  aspect-ratio: 3 / 4;
  background: #e9ebef;
  border-radius: 3px;
  overflow: hidden;
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
}

.entry-body .entry-name {
  margin-bottom: 2px;
}

.entry-body .entry-tags {
  margin: 0 0 2px;
}

.entry-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.scope-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.scope-lead {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink);
}

.scope-points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--line-strong);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
}

.page-toc-label {
  color: var(--ink-soft);
}

.page-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-toc-list a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
}

.page-toc-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-section {
  margin-bottom: 44px;
  scroll-margin-top: 76px;
}

.guide-section > h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-figure {
  max-width: 420px;
  margin: 0 0 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9ebef;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.field-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.field-group-title {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 15px;
}

.field-list dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
}

.field-list dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: var(--read);
}

.path-steps {
  display: grid;
  gap: 12px;
}

.path-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 60px;
}

.step-index {
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.path-step .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--read);
}

.path-step p a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.boundary-do {
  border-left: 3px solid var(--ok);
}

.boundary-dont {
  border-left: 3px solid var(--accent);
}

.guide-faq details.faq-item {
  padding: 0;
}

.guide-faq summary {
  padding: 14px 44px 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.guide-faq details[open] summary::after {
  content: "−";
}

.guide-faq details > p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--read);
}

.guide-feedback p {
  max-width: var(--read);
  color: var(--ink-soft);
  font-size: 15px;
}

.guide-related {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.guide-related h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.error-panel {
  max-width: var(--read);
  margin: 0 auto;
  padding: 56px 0 40px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.error-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-text {
  color: var(--ink-soft);
  font-size: 15px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.error-links a:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0 36px;
  }

  .hero-media {
    max-width: 520px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .brief-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .method-figure {
    max-width: 520px;
  }

  .entry-row {
    grid-template-columns: 56px minmax(0, 1fr) 130px;
    row-gap: 6px;
  }

  .entry-row .entry-status,
  .entry-row .entry-updated {
    grid-column: 2 / -1;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    padding: 12px 10px;
    min-height: 44px;
    font-size: 16px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-list > li > a.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }

  .topbar-text {
    padding: 8px 16px;
    font-size: 12px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 40px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 24px;
  }

  .section-title,
  .section-head h2,
  .guide-section > h2 {
    font-size: 19px;
  }

  .hero {
    padding: 24px 0 28px;
    margin-bottom: 32px;
  }

  .hero-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    text-align: center;
  }

  .section {
    margin-bottom: 34px;
  }

  .page-header {
    padding: 12px 0 20px;
    margin-bottom: 26px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .update-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-cols,
  .scope-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-entry {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }

  .genre-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .genre-meta dt {
    padding-top: 6px;
  }

  .entry-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 2px;
  }

  .entry-row .entry-tags,
  .entry-row .entry-status,
  .entry-row .entry-updated {
    grid-column: 2 / -1;
  }

  .entry-thumb {
    width: 48px;
  }

  .section-update-monthly .update-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .update-cover {
    width: 44px;
  }

  .ranking-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-list dt {
    padding-top: 8px;
  }

  .step-item,
  .path-step {
    padding: 14px 16px 14px 52px;
  }

  .step-item::before,
  .step-index {
    left: 14px;
    top: 14px;
  }

  .footer-inner {
    padding: 22px 16px 26px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .error-panel {
    padding: 36px 0 28px;
  }

  .error-code {
    font-size: 34px;
  }
}
