:root {
  --bg: #f4f7f8;
  --ink: #1f2a2e;
  --ink-soft: #4a5a5f;
  --ink-mute: #6f8085;
  --brand: #2f8f83;
  --brand-dark: #226b62;
  --brand-soft: #e2f0ee;
  --accent: #e08a4b;
  --accent-soft: #fbeadd;
  --card: #ffffff;
  --line: #d9e2e3;
  --line-strong: #c3d2d4;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 46, 0.05);
  --shadow-md: 0 6px 18px rgba(31, 42, 46, 0.08);
  --container: 1180px;
  --gap: 24px;
}

/* ========== base ========== */

*,
*::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, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ========== layout ========== */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover {
  color: var(--brand-dark);
}

.brand-mark {
  font-size: 20px;
  color: var(--brand);
  letter-spacing: 0;
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  line-height: 24px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-link:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-link.is-current {
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 14px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-mute);
}

.page-header {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-description {
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-lead,
.section-intro,
.section-desc {
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 18px;
}

.section-head {
  margin-bottom: 22px;
}

.section-more,
.section-foot,
.block-more {
  margin: 18px 0 0;
}

.text-link {
  font-weight: 700;
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

/* ========== components ========== */

.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tag-link {
  display: inline-block;
  padding: 6px 14px;
  min-height: 34px;
  line-height: 22px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.tag-link:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

/* ========== header fact bar ========== */

.fact-bar {
  margin: 0;
  padding: 8px 24px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #cfe4e1;
}

/* ========== home hero ========== */

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy figure"
    "copy side";
  gap: 28px;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.hero-copy {
  grid-area: copy;
  align-self: start;
}

.hero-title {
  font-size: 34px;
  line-height: 1.32;
  margin-bottom: 16px;
}

.hero-summary {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-figure {
  grid-area: figure;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.hero-side {
  grid-area: side;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.side-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.fact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.fact-list dt {
  color: var(--ink-mute);
}

.fact-list dd {
  margin: 0;
  color: var(--ink);
}

/* ========== theme index ========== */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.theme-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-name {
  font-size: 17px;
  color: var(--brand-dark);
}

.theme-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.theme-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.theme-picks li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pick-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.pick-meta {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ========== split sections ========== */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
}

.cover-wall,
.update-list {
  min-width: 0;
}

.block-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.block-lead {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.cover-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.cover-figure {
  flex: 0 0 88px;
}

.cover-figure img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cover-name {
  font-size: 16px;
  font-weight: 700;
}

.cover-field {
  font-size: 13px;
  color: var(--ink-soft);
}

.cover-status {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.update-list .update-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-list .update-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas:
    "date name progress"
    "date theme progress";
  gap: 2px 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.update-list .update-item:hover {
  background: var(--card);
}

.update-list .update-date {
  grid-area: date;
  font-size: 13px;
  color: var(--ink-mute);
  align-self: center;
}

.update-list .update-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.update-list .update-theme {
  grid-area: theme;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-list .update-progress {
  grid-area: progress;
  font-size: 13px;
  color: var(--brand-dark);
  align-self: center;
  white-space: nowrap;
}

/* ========== column index ========== */

.column-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.column-cell {
  min-width: 0;
}

.column-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.column-link:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--ink);
}

.column-name {
  font-weight: 700;
  color: var(--brand-dark);
}

.column-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ========== footer ========== */

.site-footer {
  background: #223034;
  color: #cfdbdd;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  font-size: 15px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #b9c8cb;
  font-size: 14px;
  display: inline-block;
  min-height: 24px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-text {
  font-size: 14px;
  color: #b9c8cb;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #33454a;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #9fb0b4;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}

.footer-nav a {
  color: #b9c8cb;
  font-size: 13px;
}

.footer-nav a:hover {
  color: #fff;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #455a5f;
  border-radius: var(--radius-sm);
  color: #cfdbdd;
  font-size: 13px;
}

.back-to-top:hover {
  color: #fff;
  border-color: #6d858a;
}

/* ========== tema page ========== */

.tema-intro .direction-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tema-intro .direction-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.tema-intro .direction-name {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.tema-intro .direction-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.tema-filter .tema-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.tema-filter .tema-tab {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
}

.tema-filter .tema-tab:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.tema-filter .tema-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.tema-list .direction-group {
  margin-bottom: 32px;
}

.tema-list .group-head {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 16px;
}

.tema-list .group-name {
  font-size: 19px;
  margin-bottom: 6px;
}

.tema-list .group-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.tema-list .entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.tema-list .entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tema-list .entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.tema-list .entry-cover img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--brand-soft);
}

.tema-list .entry-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tema-list .entry-title {
  font-size: 15px;
}

.tema-list .entry-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.tema-list .entry-field {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

.tema-list .entry-status {
  font-size: 13px;
  font-weight: 700;
  margin: auto 0 0;
}

.tema-list .entry-status.is-ongoing {
  color: var(--brand-dark);
}

.tema-list .entry-status.is-finished {
  color: var(--ink-mute);
}

.tema-list .entry-status.is-paused {
  color: var(--accent);
}

.tema-fields .field-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.tema-fields .field-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.tema-fields .field-table th,
.tema-fields .field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tema-fields .field-table thead th {
  background: #eef4f5;
  color: var(--ink);
  font-size: 14px;
}

.tema-fields .field-table tbody th {
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.tema-fields .field-table tbody tr:last-child th,
.tema-fields .field-table tbody tr:last-child td {
  border-bottom: none;
}

.tema-fields .field-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ========== gengxin page ========== */

.update-scope .scope-body p {
  max-width: 760px;
  color: var(--ink-soft);
}

.update-timeline .update-day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.update-timeline .day-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.update-timeline .day-title time {
  color: var(--brand-dark);
}

.update-timeline .day-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}

.update-timeline .update-list {
  display: flex;
  flex-direction: column;
}

.update-timeline .update-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.18s ease;
}

.update-timeline .update-row:last-child {
  border-bottom: none;
}

.update-timeline .update-row:hover {
  background: #f7fafb;
}

.update-timeline .update-thumb {
  flex: 0 0 52px;
}

.update-timeline .update-thumb img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.update-timeline .update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-timeline .update-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.update-timeline .update-name:hover {
  color: var(--brand-dark);
}

.update-timeline .update-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.status-legend .legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.status-legend .legend-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.status-legend .legend-name {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.status-legend .legend-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.status-legend .legend-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.status-legend .legend-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.status-legend .legend-table th,
.status-legend .legend-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.status-legend .legend-table thead th {
  background: #eef4f5;
}

.status-legend .legend-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== bangdan page ========== */

.header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-item {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a55f28;
  font-size: 13px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.rank-section {
  min-width: 0;
}

.rank-section .rank-top {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rank-section .rank-top:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.rank-section .rank-cover {
  flex: 0 0 92px;
}

.rank-section .rank-cover img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.rank-section .rank-top-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-section .rank-pos {
  margin: 0;
}

.rank-section .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.rank-section .rank-name {
  font-size: 17px;
}

.rank-section .rank-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.rank-section .rank-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.rank-section .rank-list {
  border-top: 1px solid var(--line);
}

.rank-section .rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 130px;
  grid-template-areas:
    "num name meta"
    "num note note";
  gap: 2px 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-section .rank-row .rank-num {
  grid-area: num;
  background: transparent;
  color: var(--accent);
  min-width: 0;
  height: auto;
  padding: 0;
  justify-content: flex-start;
  font-size: 15px;
}

.rank-section .rank-row .rank-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
}

.rank-section .rank-row .rank-meta {
  grid-area: meta;
  text-align: right;
  align-self: center;
}

.rank-section .rank-row .rank-note {
  grid-area: note;
  font-size: 13px;
  color: var(--ink-mute);
}

.rank-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.rank-aside .dimension-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0 0 18px;
  font-size: 14px;
}

.rank-aside .dimension-list dt {
  color: var(--ink-mute);
  white-space: nowrap;
}

.rank-aside .dimension-list dd {
  margin: 0;
  color: var(--ink);
}

.rank-aside .cycle-box {
  background: #f1f7f6;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rank-aside .cycle-title {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.rank-aside .cycle-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.rank-aside .aside-foot {
  margin: 16px 0 0;
  font-size: 14px;
}

.topic-section .topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-section .topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-section .topic-name {
  font-size: 17px;
  color: var(--brand-dark);
}

.topic-section .topic-scope,
.topic-section .topic-items {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.topic-section .topic-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
}

.reading-section .step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reading-section .step-node {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.reading-section .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.reading-section .step-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.reading-section .step-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ========== shuoming page ========== */

.content-section {
  margin-bottom: 48px;
}

.section-fields .fields-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.section-fields .fields-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-fields .fields-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--brand-soft);
}

.section-fields .fields-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.section-fields .field-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.section-fields .field-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.section-fields .field-table th,
.section-fields .field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.section-fields .field-table thead th {
  background: #eef4f5;
  color: var(--ink);
  font-size: 14px;
}

.section-fields .field-table tbody tr:last-child td {
  border-bottom: none;
}

.section-fields .field-details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 12px;
}

.section-fields .field-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
  min-height: 32px;
  line-height: 32px;
}

.section-fields .field-details p {
  margin: 10px 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-scope .scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-scope .scope-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.section-scope .scope-subtitle {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.section-scope .scope-block p {
  color: var(--ink-soft);
  font-size: 14px;
}

.section-scope .scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.section-scope .scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-scope .scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 2px;
  background: var(--brand);
}

.section-feedback .feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.section-feedback .feedback-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-feedback .feedback-subtitle {
  font-size: 16px;
  color: var(--brand-dark);
}

.section-feedback .feedback-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.section-feedback .feedback-meta {
  color: var(--ink-mute);
  font-size: 13px;
}

.section-feedback .feedback-path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.section-feedback .feedback-path > p {
  color: var(--ink-soft);
  font-size: 14px;
}

.section-feedback .feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.section-feedback .feedback-links a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  line-height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.section-feedback .feedback-links a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ========== 404 page ========== */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 12px;
}

.error-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  max-width: 640px;
  margin: 0 auto;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.error-link-list a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.error-link-list a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* ========== responsive ========== */

@media (max-width: 1024px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .column-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "figure"
      "side";
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-section .topic-grid,
  .reading-section .step-flow,
  .section-feedback .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-fields .fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-fields .fields-figure img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
  }

  .fact-bar {
    padding: 8px 16px;
    font-size: 12px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 24px 0 32px;
    margin-bottom: 32px;
    gap: 20px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 200px;
  }

  .page-header {
    padding: 8px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .section {
    margin-bottom: 36px;
  }

  .theme-grid,
  .column-grid,
  .topic-section .topic-grid,
  .reading-section .step-flow,
  .section-feedback .feedback-grid,
  .section-scope .scope-grid,
  .status-legend .legend-grid,
  .tema-intro .direction-notes,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card {
    gap: 12px;
  }

  .cover-figure {
    flex-basis: 72px;
  }

  .cover-figure img {
    width: 72px;
    height: 98px;
  }

  .update-list .update-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name progress"
      "theme theme"
      "date date";
    gap: 4px 12px;
  }

  .rank-section .rank-top {
    flex-direction: column;
  }

  .rank-section .rank-cover {
    flex: 0 0 auto;
  }

  .rank-section .rank-cover img {
    width: 100%;
    height: 180px;
  }

  .rank-section .rank-row {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "num name"
      "num meta"
      "num note";
  }

  .rank-section .rank-row .rank-meta {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
    gap: 12px;
  }

  .footer-nav {
    margin-left: 0;
  }

  .tema-fields .field-table,
  .status-legend .legend-table,
  .section-fields .field-table {
    font-size: 13px;
  }

  .tema-fields .field-table th,
  .tema-fields .field-table td,
  .status-legend .legend-table th,
  .status-legend .legend-table td,
  .section-fields .field-table th,
  .section-fields .field-table td {
    padding: 10px 12px;
  }

  .section-fields .fields-figure img {
    height: 200px;
  }

  .error-hero {
    margin-bottom: 32px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-title {
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .update-list .update-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "theme"
      "date"
      "progress";
  }

  .update-list .update-progress {
    white-space: normal;
  }

  .cover-card {
    flex-direction: column;
  }

  .cover-figure {
    flex-basis: auto;
  }

  .cover-figure img {
    width: 100%;
    height: 160px;
  }
}
