:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1f2430;
  --ink-soft: #5b6472;
  --accent: #5b5bd6;
  --accent-soft: #ecebfb;
  --warm: #e08a3c;
  --warm-soft: #fbeee0;
  --line: #e3e6ec;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 36, 48, 0.04), 0 4px 12px rgba(31, 36, 48, 0.05);
  --sidebar-w: 224px;
  --content-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #4343b8;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

dl, dd, dt {
  margin: 0;
}

/* ============ layout ============ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  display: block;
  width: 100%;
}

.page-layout {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.sidebar-left {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .sidebar-left {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    gap: 32px;
  }
}

.site-sidebar,
.side-directory {
  display: block;
  align-self: start;
}

@media (min-width: 1024px) {
  .site-sidebar,
  .side-directory {
    position: sticky;
    top: 82px;
  }
}

.site-main {
  min-width: 0;
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nav-list a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-list a.is-current {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle::before {
  content: "☰";
}

.nav-toggle[aria-expanded="true"]::before {
  content: "✕";
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ sidebar ============ */

.sidebar-title,
.side-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-list,
.side-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-list li,
.side-list li {
  flex: 1 1 100%;
}

.sidebar-list a,
.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.sidebar-list a:hover,
.side-list a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-list a.is-current,
.side-list a.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar-note {
  margin-top: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============ fact bar ============ */

.site-factbar,
.fact-bar {
  padding: 10px 24px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.site-factbar p,
.fact-bar {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ============ breadcrumb & page header ============ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.page-description a {
  color: var(--accent);
}

.page-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.page-meta a {
  color: var(--ink-soft);
}

.page-meta a:hover {
  color: var(--accent);
}

/* ============ sections ============ */

.section {
  margin-bottom: 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-lead,
.section-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 72ch;
}

.section-note,
.section-outro {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.section-note a,
.section-outro a {
  color: var(--accent);
  margin-right: 12px;
}

.section-text {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 72ch;
}

/* ============ hero workbench ============ */

.hero-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hero-workbench {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-intro {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-summary {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.path-item {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.path-item:hover {
  border-color: var(--accent);
}

.path-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.path-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-visual figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ theme directions ============ */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.direction-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.direction-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.direction-scope {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.direction-entry {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============ pair columns ============ */

.pair-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .pair-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
}

.pair-column {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.column-lead {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.column-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============ cover cards ============ */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cover-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.cover-figure {
  min-width: 0;
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cover-name a {
  color: var(--ink);
}

.cover-name a:hover {
  color: var(--accent);
}

.cover-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-direction {
  color: var(--accent);
  background: var(--accent-soft);
}

.tag-theme {
  color: var(--warm);
  background: var(--warm-soft);
}

.tag-state {
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
}

/* ============ update list ============ */

.update-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.update-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: none;
}

.update-time {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 52px;
}

.update-name {
  font-weight: 600;
  color: var(--ink);
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover {
  color: var(--accent);
}

/* ============ rank list ============ */

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-index {
  flex: 0 0 auto;
  min-width: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm);
  text-align: center;
}

.rank-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.rank-name a {
  color: var(--ink);
}

.rank-name a:hover {
  color: var(--accent);
}

/* ============ field summary ============ */

.field-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-summary .field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-summary .field-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ guide & feedback ============ */

.guide-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .guide-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
  }
}

.guide-steps {
  min-width: 0;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .step-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.step-name,
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.step-desc,
.step-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.step-text a {
  color: var(--accent);
}

.guide-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.feedback-block {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feedback-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.feedback-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============ site columns index ============ */

.columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.column-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.column-cell:hover {
  border-color: var(--accent);
}

.cell-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cell-desc {
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.cell-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============ footer ============ */

.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px 24px 24px;
}

.footer-groups {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-brand {
  width: 100%;
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-about {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ categories page ============ */

.direction-index .direction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direction-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.direction-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.direction-tab-name {
  font-weight: 600;
}

.direction-tab-count {
  font-size: 12px;
  color: var(--ink-soft);
}

.direction-block .cover-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.switch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switch-links li {
  display: block;
}

.switch-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.switch-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ updates page ============ */

.criteria-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .criteria-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.criteria-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.criteria-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.record-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .record-feature {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }
}

.record-cover {
  min-width: 0;
}

.record-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.record-cover-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.record-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-time {
  font-size: 13px;
  color: var(--ink-soft);
}

.record-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.record-name a {
  color: var(--ink);
}

.record-name a:hover {
  color: var(--accent);
}

.record-tag {
  font-size: 13px;
  color: var(--accent);
}

.record-state {
  font-size: 13px;
  color: var(--warm);
}

.record-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.record-row:last-child {
  border-bottom: none;
}

.record-row .record-time {
  min-width: 52px;
}

.record-row .record-name {
  font-size: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.record-row .record-tag {
  font-size: 12px;
}

.record-row .record-state {
  font-size: 12px;
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direction-tag a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.direction-tag a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ ranking page ============ */

.scope-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .scope-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.scope-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ranking-list .rank-row {
  padding: 10px 0;
}

.ranking-list .rank-row-featured {
  display: grid;
  grid-template-columns: 32px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-list .rank-row-featured .rank-cover {
  min-width: 0;
}

.ranking-list .rank-row-featured .rank-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.board-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.board-note a {
  color: var(--accent);
  margin-right: 12px;
}

.cross-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cross-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cross-item a:hover {
  border-color: var(--accent);
}

.cross-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cross-note a {
  color: var(--accent);
  margin-right: 12px;
}

/* ============ fields page ============ */

.entry-figure {
  min-width: 0;
}

.entry-figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.entry-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.field-item:last-child {
  border-bottom: none;
}

.field-item .field-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-item .field-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--warm);
  border-radius: 50%;
}

.boundary-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.feedback-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.feedback-item a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ guide page ============ */

.guide-figure {
  min-width: 0;
  margin-bottom: 18px;
}

.guide-figure img {
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.guide-steps .step-list {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .guide-steps .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.guide-steps .step-item {
  flex-direction: column;
  align-items: flex-start;
}

.scene-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .scene-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.scene-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.scene-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.scene-text a {
  color: var(--accent);
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feedback-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.feedback-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  color: var(--ink-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ 404 ============ */

.error-main {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.error-panel {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-paths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.error-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.error-paths a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-actions {
  font-size: 14px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

.error-home:hover {
  background: #4343b8;
  color: #fff;
}

/* ============ responsive ============ */

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 16px 16px 40px;
    gap: 20px;
  }

  .site-header {
    padding: 8px 16px;
  }

  .site-factbar,
  .fact-bar {
    padding: 8px 16px;
  }

  .hero-workbench {
    padding: 18px;
  }

  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .column-title,
  .direction-name,
  .feedback-title,
  .record-name,
  .step-name,
  .step-title,
  .scene-title,
  .criteria-name,
  .scope-name,
  .cell-name,
  .cover-name {
    font-size: 16px;
  }

  .cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .direction-block .cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .ranking-list .rank-row-featured {
    grid-template-columns: 26px 60px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-list .rank-row-featured .rank-cover img {
    width: 60px;
    height: 80px;
  }

  .record-feature {
    padding: 14px;
  }

  .error-panel {
    padding: 24px 16px;
  }

  .error-code {
    font-size: 32px;
  }

  .site-footer {
    padding: 24px 16px 20px;
  }
}

/* 首页与内页统一容器宽度与主内容最小宽度 */
.home-main,
.inner-main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .home-main,
  .inner-main {
    min-width: 520px;
  }
}
