:root {
  --ink: #0f1115;
  --ink-soft: #5a6270;
  --line: #e8eaee;
  --surface: #f7f8fa;
  --accent: #1f5eff;
  --mark: #c2410c;
  --shell: 1120px;
  --prose: 760px;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   layout — shell, header, nav, main, footer
   ============================================================ */

.fact-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
}

.fact-bar-text {
  max-width: var(--shell);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--mark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   components — shared blocks
   ============================================================ */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.section-no,
.section-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
  flex-shrink: 0;
}

.section-desc,
.section-lead {
  max-width: var(--prose);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-lead a {
  color: var(--accent);
}

.section-more {
  margin-top: 20px;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid rgba(31, 94, 255, 0.35);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.media-figure {
  margin: 0;
}

.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.media-figure figcaption,
.media-caption,
.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.media-wide {
  margin-top: 32px;
}

.media-wide img {
  width: 100%;
  max-height: 320px;
}

.field-table {
  font-size: 14px;
  line-height: 1.7;
}

.field-table-caption,
.field-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

.field-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.field-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 8px;
}

.entry-link {
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid rgba(31, 94, 255, 0.35);
  padding-bottom: 1px;
}

.entry-link:hover,
.entry-link:focus-visible {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.column-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.column-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.column-item {
  min-width: 0;
}

.column-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.column-link:hover,
.column-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   pages — home
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0 8px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-summary {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero-note {
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-entries {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-entries-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.entry-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
  flex-shrink: 0;
}

.entry-link {
  font-size: 15px;
  line-height: 1.6;
}

.hero-figure {
  grid-column: 1 / -1;
  margin: 24px 0 40px;
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.hero-caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.section-topics .topic-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.topic-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--mark);
  padding-top: 2px;
}

.topic-body {
  min-width: 0;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
}

.topic-scope {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.topic-field {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.topic-more {
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}

.topic-figure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.topic-figure-row .media-figure img {
  height: 220px;
}

.section-updates .batch-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.batch-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.batch-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
}

.batch-date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.entry-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.65;
}

.entry-name {
  font-weight: 500;
  color: var(--ink);
}

.entry-topic,
.entry-progress,
.entry-status {
  color: var(--ink-soft);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rank-list-col,
.field-table-col {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.rank-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
}

.rank-name {
  font-weight: 500;
  color: var(--ink);
}

.rank-topic {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.col-more {
  margin-top: 16px;
  font-size: 15px;
}

.section-guide .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.step-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--mark);
  flex-shrink: 0;
  padding-top: 2px;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.col-title-index {
  margin-top: 32px;
}

/* ============================================================
   pages — inner shared
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.page-description {
  max-width: var(--prose);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============================================================
   pages — topic
   ============================================================ */

.direction-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.direction-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.direction-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
}

.direction-name {
  font-weight: 600;
  color: var(--ink);
}

.direction-scope {
  color: var(--ink-soft);
}

.section-topic-entries {
  display: block;
}

.direction-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.direction-block:last-child {
  border-bottom: 0;
}

.direction-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 20px;
}

.direction-figure {
  margin: 0 0 20px;
}

.direction-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.section-topic-entries .entry-list {
  border-top: 1px solid var(--line);
}

.section-topic-entries .entry-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.section-topic-entries .entry-row:last-child {
  border-bottom: 0;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.compare-col {
  min-width: 0;
}

.compare-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.compare-col p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-topic-links .entry-links {
  margin-top: 16px;
}

/* ============================================================
   pages — updates
   ============================================================ */

.updates-intro {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.updates-intro .section-title {
  margin-bottom: 24px;
}

.updates-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.updates-intro-grid .media-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.updates-intro-text {
  min-width: 0;
}

.updates-intro-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.updates-intro-text p:last-child {
  margin-bottom: 0;
}

.updates-batches {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.updates-batches .section-title {
  margin-bottom: 14px;
}

.batch-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.batch-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.updates-batches .batch-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.batch-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
}

.updates-batches .batch-date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.batch-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
}

.batch-item:last-child {
  border-bottom: 0;
}

.item-name {
  font-weight: 500;
  color: var(--ink);
}

.item-topic,
.item-progress,
.item-note {
  color: var(--ink-soft);
}

.updates-fields {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.updates-fields .section-title {
  margin-bottom: 14px;
}

.updates-fields .field-table {
  margin-top: 20px;
}

.updates-links {
  padding: 48px 0 0;
}

.updates-links .section-title {
  margin-bottom: 24px;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.link-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.link-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.link-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.link-card-action {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid rgba(31, 94, 255, 0.35);
  padding-bottom: 1px;
}

.link-card-action:hover,
.link-card-action:focus-visible {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   pages — ranking
   ============================================================ */

.ranking-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-no {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--mark);
  padding-top: 2px;
}

.ranking-cover {
  margin: 0;
}

.ranking-cover img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field-key {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

.ranking-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.method-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.method-col {
  min-width: 0;
}

.method-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.method-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.method-text:last-child {
  margin-bottom: 0;
}

.section-fields .field-table {
  margin-top: 20px;
}

.section-entry .entry-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.section-entry .entry-item {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.section-entry .entry-link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.entry-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-guide {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.entry-guide a {
  margin-right: 18px;
}

/* ============================================================
   pages — guide
   ============================================================ */

.guide-path {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.guide-path .section-title {
  margin-bottom: 14px;
}

.guide-figure {
  margin: 24px 0 32px;
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.guide-path .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.guide-path .step-item {
  display: block;
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.guide-path .step-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mark);
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-fields {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.guide-fields .section-title {
  margin-bottom: 14px;
}

.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.field-col {
  min-width: 0;
}

.field-list {
  border-top: 1px solid var(--line);
}

.field-list .field-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding-top: 12px;
}

.field-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--mark);
}

.guide-faq {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.guide-faq .section-title {
  margin-bottom: 14px;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 14px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--mark);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  max-width: var(--prose);
  padding: 0 40px 18px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.guide-index {
  padding: 48px 0 0;
}

.guide-index .section-title {
  margin-bottom: 14px;
}

.guide-index .column-index {
  margin-top: 24px;
}

.column-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

.feedback-note {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feedback-text {
  max-width: var(--prose);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.feedback-text:last-child {
  margin-bottom: 0;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 64px;
}

.error-block {
  max-width: var(--prose);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--mark);
  margin-bottom: 12px;
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-home {
  display: inline-block;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.6;
}

.error-home:hover,
.error-home:focus-visible {
  background: #1a4fd8;
  text-decoration: none;
}

.error-hint {
  padding-top: 40px;
}

.error-hint-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}

.error-hint-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-hint-link {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.error-hint-link:hover,
.error-hint-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .column-index,
  .column-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .error-hint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .fact-bar {
    padding: 10px 16px;
  }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 44px;
    padding: 11px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--mark);
    padding-left: 12px;
  }

  .site-main {
    padding: 0 16px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .topic-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .topic-more {
    grid-column: 2 / 3;
    padding-top: 6px;
  }

  .topic-figure-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rank-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .section-guide .step-list,
  .guide-path .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .direction-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .direction-scope {
    grid-column: 2 / 3;
  }

  .section-topic-entries .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .compare-columns,
  .method-columns,
  .field-columns,
  .link-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .updates-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .batch-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .ranking-item {
    grid-template-columns: 36px 80px minmax(0, 1fr);
    gap: 14px;
  }

  .ranking-cover img {
    width: 80px;
    height: 108px;
  }

  .section-entry .entry-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .column-index,
  .column-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 16px 24px;
  }

  .footer-copy {
    padding: 0 16px 28px;
  }

  .error-main {
    padding-top: 40px;
  }

  .error-hint-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 15px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-figure img {
    height: 190px;
  }

  .topic-figure-row .media-figure img,
  .updates-intro-grid .media-figure img,
  .guide-figure img,
  .direction-figure img {
    height: 200px;
  }

  .ranking-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-cover {
    grid-column: 2 / 3;
    max-width: 96px;
  }

  .ranking-cover img {
    width: 96px;
    height: 128px;
  }

  .ranking-body {
    grid-column: 2 / 3;
  }

  .column-index,
  .column-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
