:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --text-main: #1f2328;
  --text-sub: #5b6470;
  --accent: #2f6fd0;
  --accent-dark: #235aad;
  --state-warn: #d9822b;
  --state-alert: #c0453c;
  --line: #e3e6ea;
  --radius: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --content-width: 1120px;
  --body-text-width: 720px;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-factbar,
.site-fact-bar,
.fact-bar {
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
}

.site-factbar {
  padding: 7px 20px;
  text-align: center;
}

.site-fact-bar,
.fact-bar {
  padding: 7px 20px;
}

.site-fact-bar p,
.fact-bar p {
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-copy {
  max-width: var(--content-width);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
}

/* ==========================================================================
   components — header / nav
   ========================================================================== */

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.nav-toggle::before {
  content: "\2630";
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 15px;
  min-height: 44px;
  line-height: 28px;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  background: #f0f4fb;
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 700;
  background: #eaf1fc;
}

/* ==========================================================================
   components — breadcrumb / page header
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  padding: 4px 0 16px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #aeb5bf;
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-description {
  color: var(--text-sub);
  max-width: var(--body-text-width);
}

.page-description a {
  color: var(--accent);
}

/* ==========================================================================
   components — section basics
   ========================================================================== */

.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-lead,
.section-intro,
.section-lede {
  color: var(--text-sub);
  max-width: var(--body-text-width);
  margin-bottom: 20px;
}

.section-intro a,
.section-lede a {
  color: var(--accent);
}

/* ==========================================================================
   components — tags / status
   ========================================================================== */

.tag,
.tag-genre,
.tag-status,
.tag-batch,
.tag-state,
.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.tag,
.tag-genre {
  background: #eaf1fc;
  color: var(--accent);
}

.tag-status,
.status {
  background: #f2f4f7;
  color: var(--text-sub);
}

.tag-batch {
  background: #fdf2e3;
  color: var(--state-warn);
}

.tag-state {
  background: #f2f4f7;
  color: var(--text-sub);
}

.status-ongoing {
  background: #eaf1fc;
  color: var(--accent);
}

.status-done {
  background: #eef4ee;
  color: #3d7a44;
}

.status-paused {
  background: #fdf2e3;
  color: var(--state-warn);
}

.status-active {
  background: #eaf1fc;
  color: var(--accent);
}

.status-steady {
  background: #f2f4f7;
  color: var(--text-sub);
}

/* ==========================================================================
   components — buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 24px;
  min-height: 44px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #eaf1fc;
  text-decoration: none;
}

/* ==========================================================================
   components — footer
   ========================================================================== */

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--text-sub);
  font-size: 14px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: var(--text-sub);
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus {
  color: var(--accent);
}

/* ==========================================================================
   pages — index
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0 40px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--text-sub);
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.path-link {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 14px;
  min-height: 44px;
  line-height: 24px;
}

.path-link:hover,
.path-link:focus {
  border-color: var(--accent);
  background: #eaf1fc;
  text-decoration: none;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.hero-genre-index {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-index-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.genre-index-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.genre-index-list a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 14px;
  min-height: 44px;
  line-height: 22px;
}

.genre-index-list a:hover,
.genre-index-list a:focus {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* 题材方向总览 */
.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.genre-scope {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 12px;
}

.genre-count {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 14px;
}

.genre-count .mono {
  color: var(--text-main);
  font-weight: 600;
}

.genre-enter {
  margin-top: auto;
  font-size: 14px;
  color: var(--accent);
}

/* 双栏并列区 */
.home-split {
  margin-bottom: 40px;
}

.split-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.split-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.col-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.col-lead {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 18px;
}

.col-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
}

/* 封面条目网格 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cover-card {
  min-width: 0;
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover img {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(47, 111, 208, 0.16);
}

.cover-name {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

.cover-meta {
  color: var(--text-sub);
  font-size: 12px;
  margin-top: 4px;
}

/* 更新批次列表 */
.batch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.batch-item {
  border-left: 3px solid var(--state-warn);
  padding: 2px 0 2px 14px;
}

.batch-id {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.batch-meta {
  color: var(--text-sub);
  font-size: 13px;
}

.batch-note {
  color: var(--text-sub);
  font-size: 13px;
  margin-top: 4px;
}

/* 位次列表 */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  flex: 0 0 26px;
  color: var(--text-sub);
  font-weight: 600;
}

.rank-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-main);
}

/* 字段口径摘要 */
.field-summary dt {
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}

.field-summary dt:first-child {
  margin-top: 0;
}

.field-summary dd {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 14px;
}

/* 查阅路径三步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-no {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: #eaf1fc;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-action {
  font-size: 14px;
  margin-bottom: 8px;
}

.step-result {
  font-size: 13px;
  color: var(--text-sub);
}

.feedback-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
}

/* 站内栏目索引 */
.directory-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.directory-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.directory-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.directory-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.directory-link {
  margin-top: auto;
  font-size: 14px;
}

/* ==========================================================================
   pages — inner shared layout
   ========================================================================== */

.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;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.aside-text {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 12px;
}

.aside-fact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-fact {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.aside-fact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  color: var(--text-sub);
}

.fact-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.aside-link {
  margin-top: 12px;
  font-size: 14px;
}

/* ==========================================================================
   pages — genre
   ========================================================================== */

.genre-overview {
  margin-bottom: 36px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.genre-figure {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.genre-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.genre-caption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.genre-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.genre-meta dt {
  font-weight: 600;
  color: var(--text-main);
}

.genre-meta dd {
  margin: 0;
}

.genre-list-section {
  margin-bottom: 36px;
}

.genre-list-group {
  margin-bottom: 26px;
}

.list-group-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(47, 111, 208, 0.12);
}

.entry-thumb {
  flex: 0 0 84px;
}

.entry-thumb img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.entry-body {
  min-width: 0;
  flex: 1 1 auto;
}

.entry-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.entry-meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-note {
  color: var(--text-sub);
  font-size: 13px;
}

.genre-related {
  margin-bottom: 36px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.related-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  min-height: 44px;
  line-height: 26px;
}

.related-link:hover,
.related-link:focus {
  border-color: var(--accent);
  text-decoration: none;
}

.feedback-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feedback-text {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 10px;
}

.feedback-link {
  font-size: 14px;
}

/* ==========================================================================
   pages — updates
   ========================================================================== */

.updates-status {
  margin-bottom: 36px;
}

.updates-status-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 18px;
}

.updates-status-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.updates-status-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.batch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.batch-bar-item {
  font-size: 13px;
  color: var(--text-sub);
  padding: 4px 12px;
  background: #f2f4f7;
  border-radius: 4px;
}

.batch-bar-code {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 600;
  background: #eaf1fc;
}

.batch-bar-state {
  color: var(--state-warn);
  background: #fdf2e3;
}

.batch-bar-note {
  font-size: 13px;
  color: var(--text-sub);
}

.batch-bar-note strong {
  color: var(--text-main);
}

.updates-list {
  margin-bottom: 36px;
}

.batch-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.batch-group-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.batch-group-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.batch-group-meta {
  font-size: 13px;
  color: var(--text-sub);
}

.batch-record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.batch-record {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.batch-record img {
  flex: 0 0 72px;
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.batch-record-body {
  min-width: 0;
}

.batch-record-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.batch-record-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.batch-note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 36px;
}

.batch-note p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 10px;
  max-width: var(--body-text-width);
}

.batch-note p:last-child {
  margin-bottom: 0;
}

.updates-links {
  margin-bottom: 36px;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-group a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  min-height: 44px;
  line-height: 26px;
}

.link-group a:hover,
.link-group a:focus {
  border-color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   pages — ranking
   ========================================================================== */

.rank-section {
  margin-bottom: 36px;
}

.rank-list .rank-item {
  gap: 14px;
  padding: 12px 0;
  align-items: flex-start;
}

.rank-thumb {
  flex: 0 0 56px;
}

.rank-thumb img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.rank-body {
  min-width: 0;
  flex: 1 1 auto;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.rank-move {
  font-size: 12px;
  font-weight: 600;
}

.move-up {
  color: var(--state-warn);
}

.move-down {
  color: var(--state-alert);
}

.move-flat {
  color: var(--text-sub);
}

.rank-compare {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}

.rank-compare p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 12px;
  max-width: var(--body-text-width);
}

.rank-compare p:last-child {
  margin-bottom: 0;
}

.rank-scope h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.rank-scope h3:first-of-type {
  margin-top: 4px;
}

.rank-scope p {
  font-size: 14px;
  color: var(--text-sub);
}

.scope-figure {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.scope-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
}

.scope-list li {
  padding-left: 14px;
  position: relative;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   pages — fields
   ========================================================================== */

.field-section {
  margin-bottom: 36px;
}

.field-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 20px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.field-summary::-webkit-details-marker {
  display: none;
}

.field-summary::after {
  content: "\FF0B";
  margin-left: auto;
  color: var(--text-sub);
  font-size: 15px;
}

.field-item[open] .field-summary::after {
  content: "\FF0D";
}

.field-summary:hover {
  background: #f7f9fc;
}

.field-name {
  font-size: 16px;
  font-weight: 600;
}

.field-value {
  font-size: 13px;
  color: var(--text-sub);
}

.field-body {
  padding: 4px 20px 18px;
  border-top: 1px solid var(--line);
}

.field-body p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 12px;
  max-width: var(--body-text-width);
}

.field-read {
  color: var(--text-main);
}

.field-read strong {
  color: var(--accent);
}

.field-usage-section {
  margin-bottom: 36px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.usage-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.usage-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.usage-block > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.usage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.usage-list li {
  padding-left: 16px;
  position: relative;
}

.usage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.usage-link {
  margin-top: 14px;
  font-size: 14px;
}

.misread-section {
  margin-bottom: 36px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  background: #fdf7ef;
  border: 1px solid #f0ddc2;
  border-left: 4px solid var(--state-warn);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.notice-head {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.notice-body {
  font-size: 14px;
  color: var(--text-sub);
  max-width: var(--body-text-width);
}

.feedback-section {
  margin-bottom: 36px;
}

.feedback-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feedback-body > p {
  font-size: 14px;
  color: var(--text-sub);
  max-width: var(--body-text-width);
}

.feedback-steps {
  counter-reset: feedback-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.feedback-step {
  counter-increment: feedback-step;
  position: relative;
  padding-left: 34px;
  font-size: 14px;
}

.feedback-step::before {
  content: counter(feedback-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #eaf1fc;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.feedback-body .feedback-note {
  margin-top: 0;
  margin-bottom: 12px;
}

.feedback-body .feedback-link {
  font-size: 14px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  padding-top: 48px;
}

.error-block {
  text-align: center;
  padding: 40px 20px 48px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-text {
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.error-links-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.error-link-list a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  min-height: 44px;
  line-height: 22px;
}

.error-link-list a:hover,
.error-link-list a:focus {
  border-color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 28px 0 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .genre-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-columns {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .directory-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid {
    grid-template-columns: 1fr;
  }

  .usage-grid {
    grid-template-columns: 1fr;
  }

  .error-link-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .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(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    min-height: 44px;
    line-height: 24px;
  }

  .site-main {
    padding: 0 14px 44px;
  }

  .inner-main {
    padding-top: 14px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 20px 18px;
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-paths {
    flex-direction: column;
    align-items: stretch;
  }

  .path-link {
    text-align: center;
  }

  .genre-index-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-columns {
    grid-template-columns: 1fr;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-col {
    padding: 18px;
  }

  .directory-columns {
    grid-template-columns: 1fr;
  }

  .step-block {
    padding: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .entry-item {
    flex-direction: column;
    gap: 12px;
  }

  .entry-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .batch-group {
    padding: 18px;
  }

  .batch-record {
    flex-direction: column;
  }

  .batch-record img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    flex: none;
  }

  .rank-list .rank-item {
    gap: 10px;
  }

  .rank-thumb img {
    width: 48px;
    height: 64px;
  }

  .rank-no {
    flex: 0 0 22px;
  }

  .field-summary {
    padding: 14px 16px;
  }

  .field-body {
    padding: 4px 16px 16px;
  }

  .usage-block {
    padding: 18px;
  }

  .feedback-body {
    padding: 18px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-link-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 32px 14px 20px;
  }
}
