:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-alt: #f5f4f1;
  --muted: #6b6b6b;
  --accent: #b03a2e;
  --line: #111111;
  --line-soft: #d8d5cf;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --wrap: 1120px;
  --gap: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ============ layout ============ */

.site-body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  border-bottom: 3px double var(--line);
  background: var(--paper);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-bottom-color: var(--line-soft);
}

.nav-list a.is-current {
  font-weight: 700;
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  border-top: 3px double var(--line);
  margin-top: 24px;
  background: var(--paper-alt);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  min-height: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 32px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* ============ shared components ============ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-soft);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 20px 0 26px;
  border-bottom: 3px double var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
}

.page-description {
  margin-top: 12px;
  max-width: 820px;
  font-size: 16px;
  color: var(--muted);
}

.section-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
}

.section-lead,
.section-intro,
.section-note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 820px;
}

.section-lead a,
.section-intro a,
.section-note a,
.section-desc a,
.section-foot a,
.stream-foot a,
.aside-note a {
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
}

.section-lead a:hover,
.section-intro a:hover,
.section-note a:hover,
.section-desc a:hover,
.section-foot a:hover,
.stream-foot a:hover,
.aside-note a:hover {
  border-bottom-color: var(--accent);
}

.aside-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}

.aside-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 6px 4px 0;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--muted);
}

.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}

.status-ongoing {
  color: var(--accent);
  border-color: var(--accent);
}

.status-completed {
  color: var(--ink);
  border-color: var(--ink);
}

.status-hiatus {
  color: var(--muted);
  border-style: dashed;
}

.field-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.field-list dt {
  font-weight: 700;
  font-size: 15px;
  padding-top: 14px;
}

.field-list dd {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: var(--gap);
  align-items: start;
}

.col-main {
  min-width: 0;
}

.col-side {
  min-width: 0;
}

/* ============ index page ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 44px 0 40px;
  border-bottom: 3px double var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.hero-media img:hover {
  border-color: var(--accent);
}

.hero-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 26px;
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 820px;
}

.tema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.tema-block {
  min-width: 0;
  padding: 20px 20px 22px;
  border-right: 1px solid var(--line-soft);
}

.tema-block:last-child {
  border-right: none;
}

.tema-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.tema-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.tema-items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tema-items a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  border-left: 3px solid var(--line-soft);
  padding-left: 10px;
}

.tema-items a:hover,
.tema-items a:focus-visible {
  border-left-color: var(--accent);
  color: var(--accent);
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.1fr) 90px minmax(0, 1.6fr) 84px;
  gap: 16px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.update-date {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--muted);
}

.update-name {
  font-weight: 700;
}

.update-tema {
  color: var(--muted);
  font-size: 13px;
}

.update-detail {
  color: var(--muted);
}

.update-status {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}

.update-status.is-running {
  color: var(--accent);
  border-color: var(--accent);
}

.update-status.is-done {
  color: var(--ink);
  border-color: var(--ink);
}

.update-status.is-paused {
  border-style: dashed;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: var(--gap);
  align-items: start;
}

.rank-main {
  min-width: 0;
}

.rank-list {
  border-top: 1px solid var(--line);
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 56px minmax(0, 1.4fr) 90px 84px;
  gap: 14px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.rank-no {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.rank-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.rank-name {
  font-weight: 700;
  min-width: 0;
}

.rank-tema {
  font-size: 13px;
  color: var(--muted);
}

.rank-status {
  justify-self: end;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.rank-aside {
  min-width: 0;
  background: var(--paper-alt);
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.editor-pick {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.editor-pick:first-of-type {
  padding-top: 0;
}

.editor-pick:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pick-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.pick-reason {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.pick-tags {
  margin-top: 8px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: var(--gap);
  align-items: start;
}

.guide-main {
  min-width: 0;
}

.guide-subtitle {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-main p {
  margin-bottom: 12px;
  color: var(--muted);
}

.guide-aside {
  min-width: 0;
  background: var(--paper-alt);
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.section-index .section-head {
  margin-bottom: 20px;
}

.site-index {
  border-top: 1px solid var(--line);
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.index-item {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.index-item:last-child {
  border-right: none;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  min-height: 88px;
  font-weight: 700;
}

.index-item a:hover,
.index-item a:focus-visible {
  background: var(--paper-alt);
  color: var(--accent);
}

.index-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ============ tema page ============ */

.genre-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.genre-bar-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
}

.genre-bar-list li {
  flex: 0 0 auto;
}

.genre-bar-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  white-space: nowrap;
}

.genre-bar-list a:hover,
.genre-bar-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.genre-catalog {
  margin-bottom: 44px;
}

.genre-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.genre-block-head {
  margin-bottom: 16px;
}

.genre-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.genre-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.genre-cover {
  margin-bottom: 18px;
}

.genre-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.genre-cover figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.entry-list {
  border-top: 1px solid var(--line-soft);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1.2fr) 100px;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.entry-name {
  font-weight: 700;
}

.entry-status {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.entry-update {
  color: var(--muted);
}

.entry-tag {
  justify-self: end;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 1px 8px;
  white-space: nowrap;
}

.field-note,
.browse-tip {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.field-note .field-list {
  margin-top: 20px;
}

.tip-columns {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.tip-col {
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-soft);
}

.tip-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip-col p {
  font-size: 14px;
  color: var(--muted);
}

/* ============ gengxin page ============ */

.content-wrap {
  display: block;
}

.update-stream {
  margin-bottom: 44px;
}

.date-group {
  margin-top: 28px;
}

.date-heading {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid var(--line);
}

.update-stream .update-list {
  border-top: none;
}

.update-stream .update-row {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 4px;
}

.cover-thumb {
  width: 72px;
  height: 96px;
  margin: 0;
}

.cover-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.update-body {
  min-width: 0;
}

.update-stream .update-name {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.update-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.update-meta .tag-theme {
  margin-right: 8px;
}

.update-content {
  font-size: 14px;
  color: var(--muted);
}

.update-body .status {
  margin-top: 6px;
}

.stream-foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field-guide,
.status-guide,
.browse-tips {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.field-guide .field-list {
  margin-top: 20px;
}

.status-cols {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.status-col {
  min-width: 0;
  padding: 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.status-col h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-col p {
  font-size: 14px;
  color: var(--muted);
}

.tips-cols {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.tips-col {
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-soft);
}

.tips-col p {
  font-size: 14px;
  color: var(--muted);
}

.tips-col p + p {
  margin-top: 10px;
}

/* ============ bangdan page ============ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-bottom: 44px;
}

.ranking-section {
  min-width: 0;
}

.ranking-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-item-top {
  padding: 18px 4px;
}

.ranking-no {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1.4;
}

.ranking-cover,
.ranking-thumb {
  margin: 0;
}

.ranking-cover img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ranking-thumb img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.ranking-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.ranking-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.section-foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.editor-pick {
  min-width: 0;
  background: var(--paper-alt);
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.pick-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.pick-card:first-of-type {
  padding-top: 0;
}

.pick-card:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pick-cover {
  margin: 0 0 10px;
}

.pick-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.editor-pick .pick-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.pick-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.pick-meta .status {
  margin-left: 6px;
}

.editor-pick .pick-reason {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.rank-rule-section,
.rank-tip-section {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rule-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.rule-item {
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-soft);
}

.rule-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-text {
  font-size: 14px;
  color: var(--muted);
}

.rank-tip-section .tip-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tip-col-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip-text {
  font-size: 14px;
  color: var(--muted);
}

/* ============ shuoming page ============ */

.section-browse .section-title,
.section-fields .section-title,
.section-status .section-title,
.section-feedback .section-title,
.section-next .section-title {
  margin-bottom: 6px;
}

.section-body {
  margin-top: 22px;
}

.col-main p {
  margin-bottom: 12px;
  color: var(--muted);
}

.figure-structure {
  margin: 0 0 16px;
}

.figure-structure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.figure-structure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.structure-list {
  border-top: 1px solid var(--line-soft);
}

.structure-list dt {
  font-weight: 700;
  font-size: 14px;
  padding-top: 10px;
}

.structure-list dd {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.section-fields .field-list,
.section-status .status-grid {
  margin-top: 22px;
}

.field-item dt {
  font-weight: 700;
  font-size: 15px;
  padding-top: 14px;
}

.field-item dd {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.status-item {
  min-width: 0;
  padding: 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.status-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-desc {
  font-size: 14px;
  color: var(--muted);
}

.feedback-layout {
  margin-top: 22px;
}

.sub-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feedback-steps {
  margin-bottom: 14px;
}

.feedback-steps li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.feedback-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.faq-list {
  border-top: 1px solid var(--line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.next-links {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.next-links li {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.next-links li:last-child {
  border-right: none;
}

.next-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  font-weight: 700;
}

.next-links a:hover,
.next-links a:focus-visible {
  background: var(--paper-alt);
  color: var(--accent);
}

/* ============ 404 page ============ */

.error-main {
  padding-top: 40px;
}

.error-hero {
  padding-bottom: 36px;
  border-bottom: 3px double var(--line);
  margin-bottom: 36px;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.error-hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

.error-text {
  margin-top: 12px;
  max-width: 720px;
  color: var(--muted);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 22px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.error-routes {
  padding-bottom: 40px;
}

.error-routes h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.error-route-list li {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.error-route-list li:last-child {
  border-right: none;
}

.error-route-list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  font-weight: 700;
}

.error-route-list a:hover,
.error-route-list a:focus-visible {
  background: var(--paper-alt);
  color: var(--accent);
}

/* ============ responsive ============ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    height: 280px;
  }

  .tema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tema-block {
    border-bottom: 1px solid var(--line-soft);
  }

  .tema-block:nth-child(2n) {
    border-right: none;
  }

  .rank-layout,
  .guide-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-item {
    border-bottom: 1px solid var(--line-soft);
  }

  .index-item:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 22px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .site-main {
    padding: 0 18px 48px;
  }

  .page-header {
    padding: 16px 0 20px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 27px;
  }

  .hero {
    padding: 30px 0 28px;
  }

  .hero-title {
    font-size: 29px;
  }

  .hero-media img {
    height: 220px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .update-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .update-name,
  .update-tema,
  .update-detail {
    grid-column: 2;
  }

  .update-status {
    grid-column: 2;
    justify-self: start;
  }

  .rank-row {
    grid-template-columns: 32px 48px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-thumb {
    width: 48px;
    height: 64px;
  }

  .rank-tema,
  .rank-status {
    grid-column: 3;
    justify-self: start;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 6px 12px;
  }

  .entry-update,
  .entry-tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ranking-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-cover img,
  .ranking-thumb img {
    width: 56px;
    height: 78px;
  }

  .tip-columns,
  .status-cols,
  .rule-list,
  .status-grid,
  .rank-tip-section .tip-columns,
  .tips-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .next-links,
  .error-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-links li,
  .error-route-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .next-links li:nth-child(2n),
  .error-route-list li:nth-child(2n) {
    border-right: none;
  }

  .footer-inner {
    padding: 28px 18px 18px;
    gap: 24px;
  }

  .footer-copy {
    padding: 14px 18px 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .tema-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tema-block {
    border-right: none;
  }

  .index-list,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-item,
  .footer-group {
    border-right: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .error-code {
    font-size: 44px;
  }
}
