:root {
  --banana: #F2B705;
  --banana-dark: #D9A404;
  --ink: #1C1B18;
  --paper: #FBFAF7;
  --line: #E6E3DC;
  --muted: #6B6862;
  --card: #FFFFFF;
  --radius: 8px;
  --radius-sm: 6px;
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ============================================================
   base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--banana-dark);
  outline-offset: 2px;
}

/* ============================================================
   layout — shell
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
}

.brand::before {
  content: "";
  width: 10px;
  height: 20px;
  margin-right: 9px;
  border-radius: 3px;
  background: var(--banana);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(242, 183, 5, 0.14);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  background: rgba(242, 183, 5, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: #F5F3EE;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-list a:hover {
  color: var(--banana-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 22px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   layout — inner pages
   ============================================================ */
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: var(--banana-dark);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  max-width: 720px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.page-description a {
  color: var(--ink);
  border-bottom: 1px solid var(--banana);
}

.page-description a:hover {
  color: var(--banana-dark);
}

.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-layout.layout-main-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-layout.layout-with-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
}

.page-content {
  min-width: 0;
}

/* ============================================================
   components — shared
   ============================================================ */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc,
.section-lead,
.section-intro {
  max-width: 720px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head .section-desc {
  margin-bottom: 0;
}

.section-more,
.section-note {
  margin-top: 20px;
  font-size: 14px;
}

.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--banana);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: var(--banana-dark);
  border-color: var(--banana-dark);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--banana);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.18s ease;
}

.btn-primary:hover {
  background: var(--banana-dark);
}

.col-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.aside-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-intro {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.field-table {
  width: 100%;
  font-size: 14px;
}

.field-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.field-table thead th {
  background: #F5F3EE;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table td {
  color: var(--muted);
}

.field-table tr:last-child th,
.field-table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================
   pages — index
   ============================================================ */
.fact-bar {
  background: var(--ink);
  color: #F5F3EE;
}

.fact-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.home-main {
  padding-bottom: 8px;
}

/* hero */
.hero {
  border-bottom: 1px solid var(--line);
  background: #F7F5F0;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-lead {
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 15.5px;
  color: #4A4740;
  line-height: 1.8;
  margin-bottom: 22px;
}

.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.anchor-link:hover {
  border-color: var(--banana);
  background: rgba(242, 183, 5, 0.16);
}

.hero-cta {
  margin: 0;
}

.hero-media {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--line);
}

.hero-media img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.hero-media img:not(:first-child) {
  aspect-ratio: 3 / 4;
}

.hero-media figcaption {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* tema overview */
.tema-overview .tema-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tema-col {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tema-col .tema-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tema-col .tema-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.tema-col .tema-works li + li {
  margin-top: 8px;
}

.tema-col .tema-works a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tema-col .tema-works a:hover {
  border-color: var(--banana);
  background: rgba(242, 183, 5, 0.12);
}

/* cover wall */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cover-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cover-link:hover {
  border-color: var(--banana);
  transform: translateY(-2px);
}

.cover-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--line);
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px 4px;
}

.cover-meta {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* update log */
.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1.2fr) minmax(0, 0.8fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background-color 0.18s ease;
}

.update-row:hover {
  background: rgba(242, 183, 5, 0.1);
}

.update-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.update-name {
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.update-tema {
  color: var(--muted);
}

.update-status {
  justify-self: end;
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(242, 183, 5, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* rank + editor */
.rank-editor-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.rank-col,
.editor-col {
  min-width: 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-col .rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-col .rank-item:last-child {
  border-bottom: 0;
}

.rank-col .rank-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--banana-dark);
}

.rank-col .rank-name {
  font-weight: 600;
  min-width: 0;
}

.rank-col .rank-tema {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.editor-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FCFBF8;
}

.editor-card + .editor-card {
  margin-top: 14px;
}

.editor-name {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.editor-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.editor-works {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
}

/* field + read */
.field-read-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.field-col,
.read-col {
  min-width: 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.read-col .read-steps {
  counter-reset: read-step;
}

.read-col .read-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.read-col .read-step:last-child {
  border-bottom: 0;
}

.read-col .read-step .step-name {
  counter-increment: read-step;
  font-size: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(242, 183, 5, 0.28);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.read-col .read-step .step-name::before {
  content: counter(read-step);
  font-size: 13px;
}

.read-col .read-step .step-desc {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.7;
}

.read-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* site index */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  min-width: 0;
}

.index-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.index-link:hover {
  border-color: var(--banana);
  background: rgba(242, 183, 5, 0.1);
}

.index-name {
  font-size: 15px;
  font-weight: 600;
}

.index-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   pages — tema
   ============================================================ */
.category-index {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 88px;
}

.category-index-list li + li {
  margin-top: 6px;
}

.category-index-list a {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.category-index-list a:hover {
  color: var(--ink);
  background: rgba(242, 183, 5, 0.14);
}

.tema-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tema-group {
  min-width: 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 88px;
}

.tema-group .tema-name {
  margin-bottom: 8px;
}

.tema-trait {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 10px;
}

.tema-scope {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.tema-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tema-tags li {
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  padding: 3px 11px;
}

.tema-work-block + .tema-work-block {
  margin-top: 30px;
}

.tema-work-heading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--banana);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  min-width: 0;
}

.work-card-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.work-card-link:hover {
  border-color: var(--banana);
  transform: translateY(-2px);
}

.work-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--line);
}

.work-name {
  font-size: 15px;
  font-weight: 600;
  padding: 11px 13px 2px;
}

.work-meta {
  padding: 0 13px 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.work-status {
  display: inline-block;
  margin: 0 13px 13px;
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(242, 183, 5, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.method-step {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-step .step-name {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.method-step .step-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.field-note {
  padding: 20px;
  background: #F5F3EE;
  border-radius: var(--radius);
}

.field-note-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-note-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.field-note-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--banana);
}

.field-note-text a:hover {
  color: var(--banana-dark);
}

/* ============================================================
   pages — gengxin
   ============================================================ */
.update-log .section-intro,
.follow-guide .section-intro {
  margin-bottom: 22px;
}

.update-group + .update-group {
  margin-top: 28px;
}

.update-group .update-date {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--banana);
}

.update-log .update-list {
  border-top: 0;
}

.update-log .update-row {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 4px;
}

.update-thumb {
  width: 76px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-log .update-name {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.update-tag {
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(242, 183, 5, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
}

.follow-guide {
  margin-top: 48px;
}

.follow-guide .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.follow-guide .step-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.follow-guide .step-name {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.follow-guide .step-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.update-aside .aside-block {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-aside .aside-block + .aside-block {
  margin-top: 20px;
}

.update-aside .field-table {
  font-size: 13.5px;
}

.update-aside .field-table th,
.update-aside .field-table td {
  padding: 9px 10px;
}

/* ============================================================
   pages — bangdan
   ============================================================ */
.rank-section {
  min-width: 0;
}

.rank-section .rank-list {
  border-top: 1px solid var(--line);
}

.rank-section .rank-item {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-section .rank-no {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--banana-dark);
  padding-top: 2px;
}

.rank-thumb {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rank-note {
  font-size: 13.5px;
  color: #4A4740;
  line-height: 1.7;
}

.aside-panel {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-rule .field-table {
  display: block;
  font-size: 13.5px;
}

.rank-rule .field-name {
  font-weight: 600;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rank-rule .field-name:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rank-rule .field-value {
  margin: 0;
  padding-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.topic-section {
  margin-top: 56px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.topic-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-media {
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.topic-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-scope {
  font-size: 13px;
  color: var(--banana-dark);
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 10px;
}

.topic-pick {
  margin-top: auto;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.65;
}

/* ============================================================
   pages — shuoming
   ============================================================ */
.field-figure {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
}

.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--banana-dark);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 4px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 720px;
}

.section-feedback .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-feedback .step-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-feedback .step-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-feedback .step-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-fields {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-fields-list {
  font-size: 13.5px;
}

.aside-fields-list dt {
  font-weight: 600;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.aside-fields-list dt:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.aside-fields-list dd {
  margin: 0;
  padding-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-links {
  margin-top: 20px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-link-list li + li {
  margin-top: 6px;
}

.aside-link-list a {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.aside-link-list a:hover {
  color: var(--ink);
  background: rgba(242, 183, 5, 0.14);
}

/* ============================================================
   pages — 404
   ============================================================ */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.error-panel {
  padding: 72px 0 64px;
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--banana-dark);
  margin-bottom: 12px;
}

.error-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 40px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--banana);
  color: var(--ink);
  font-weight: 600;
  transition: background-color 0.18s ease;
}

.error-button:hover {
  background: var(--banana-dark);
}

.error-link {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--banana);
}

.error-link:hover {
  color: var(--banana-dark);
}

.error-hint {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-hint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.error-hint-list li + li {
  margin-top: 8px;
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--banana);
}

/* ============================================================
   motion — enhancement only
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes section-rise {
    from {
      transform: translateY(10px);
    }
    to {
      transform: translateY(0);
    }
  }

  .section {
    animation: section-rise 0.42s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 22%;
  }
}

/* ============================================================
   responsive — 900px
   ============================================================ */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 18px;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 36px 18px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-copy {
    padding: 14px 18px 20px;
  }

  .inner-main {
    padding: 0 18px 8px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-layout.sidebar-left,
  .page-layout.layout-main-aside,
  .page-layout.layout-with-aside,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .category-index,
  .layout-aside {
    position: static;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 18px 44px;
    gap: 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .tema-overview .tema-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-editor-cols,
  .field-read-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tema-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .follow-guide .step-list,
  .section-feedback .step-list,
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-log .update-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .update-thumb {
    width: 68px;
    height: 90px;
  }

  .rank-section .rank-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    width: 64px;
    height: 86px;
  }
}

/* ============================================================
   responsive — 640px
   ============================================================ */
@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .fact-bar p {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 22px;
  }

  .footer-copy {
    padding: 14px 16px 20px;
    font-size: 12.5px;
  }

  .inner-main {
    padding: 0 16px 8px;
  }

  .breadcrumb {
    padding-top: 18px;
    font-size: 12.5px;
  }

  .page-header {
    padding: 14px 0 20px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 26px;
  }

  .section {
    margin-bottom: 42px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-inner {
    padding: 32px 16px 36px;
  }

  .hero-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tema-overview .tema-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-name {
    font-size: 14.5px;
    padding: 10px 11px 3px;
  }

  .cover-meta {
    padding: 0 11px 11px;
    font-size: 12px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 2px;
  }

  .update-date {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .update-tema {
    font-size: 12.5px;
  }

  .update-status {
    font-size: 12px;
  }

  .update-log .update-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb {
    width: 60px;
    height: 80px;
  }

  .rank-col,
  .editor-col,
  .field-col,
  .read-col {
    padding: 18px;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .tema-group,
  .aside-panel,
  .aside-fields,
  .aside-links,
  .update-aside .aside-block,
  .category-index {
    padding: 18px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rank-section .rank-item {
    grid-template-columns: 30px 56px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 2px;
  }

  .rank-thumb {
    width: 56px;
    height: 76px;
  }

  .rank-body .rank-name {
    font-size: 14.5px;
  }

  .field-table th,
  .field-table td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .error-panel {
    padding: 48px 0 44px;
  }

  .error-title {
    font-size: 26px;
  }

  .error-actions {
    gap: 12px 18px;
    margin-bottom: 30px;
  }
}
