:root {
  --bg-page: #f7f4ee;
  --bg-card: #fffdf9;
  --bg-soft: #f1ece2;
  --ink: #23201c;
  --ink-soft: #6b6459;
  --ink-faint: #948c7e;
  --line: #e2dbcd;
  --line-strong: #cfc6b4;
  --accent: #c4633c;
  --accent-dark: #a24e2c;
  --tag-green: #7a9a8b;
  --tag-purple: #8a7fa6;
  --tag-gold: #c08a3e;
  --tag-blue: #5f7e9e;
  --tag-red: #b5604f;
  --tag-mystery: #6f6a86;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(35, 32, 28, 0.05);
  --shadow-lift: 0 6px 16px rgba(35, 32, 28, 0.09);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  --wrap: 1080px;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ layout ============ */

.site-header {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.3;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background-color: var(--bg-soft);
  border-color: var(--line);
}

.nav-link.is-current {
  color: var(--accent-dark);
  font-weight: 600;
  background-color: #f6e9e1;
  border-color: #e8d3c6;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.home-main {
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 820px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-desc,
.section-sub,
.section-intro {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 800px;
}

.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-strong);
  margin-top: 0;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 320px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}

.footer-copy,
.footer-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ============ components ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  line-height: 1.3;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #fffaf6;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fffaf6;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent);
  background-color: #fbf3ee;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
}

.tag,
.cover-tag,
.update-tag,
.update-state {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-red,
.cover-tag.tag-red,
.update-tag.tag-red {
  color: #8f4436;
  background-color: #f7e6e1;
  border-color: #eccfc6;
}

.tag-green,
.cover-tag.tag-green {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.tag-purple,
.cover-tag.tag-purple {
  color: #5f5679;
  background-color: #ece8f4;
  border-color: #d9d1e8;
}

.tag-gold,
.cover-tag.tag-gold {
  color: #8a6224;
  background-color: #f6eddb;
  border-color: #e8d9ba;
}

.tag-blue,
.cover-tag.tag-blue {
  color: #43607c;
  background-color: #e5ecf3;
  border-color: #cbdae7;
}

.tag-daily,
.cover-tag.tag-daily {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.tag-fantasy,
.cover-tag.tag-fantasy {
  color: #5f5679;
  background-color: #ece8f4;
  border-color: #d9d1e8;
}

.tag-mystery,
.cover-tag.tag-mystery {
  color: #55506e;
  background-color: #e9e7f0;
  border-color: #d3d0e2;
}

.tag-battle,
.cover-tag.tag-battle {
  color: #8f4436;
  background-color: #f7e6e1;
  border-color: #eccfc6;
}

.tag-healing,
.cover-tag.tag-healing {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.tag-scifi,
.cover-tag.tag-scifi {
  color: #43607c;
  background-color: #e5ecf3;
  border-color: #cbdae7;
}

.tag-wuxia,
.cover-tag.tag-wuxia {
  color: #8a6224;
  background-color: #f6eddb;
  border-color: #e8d9ba;
}

.tag-ri-chang,
.cover-tag.tag-ri-chang {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.tag-xuan-huan,
.cover-tag.tag-xuan-huan {
  color: #5f5679;
  background-color: #ece8f4;
  border-color: #d9d1e8;
}

.tag-xuan-yi,
.cover-tag.tag-xuan-yi {
  color: #55506e;
  background-color: #e9e7f0;
  border-color: #d3d0e2;
}

.update-state {
  color: var(--ink-soft);
  background-color: var(--bg-soft);
  border-color: var(--line);
}

.status-new {
  color: #8f4436;
  background-color: #f7e6e1;
  border-color: #eccfc6;
}

.status-continue {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.status-pause {
  color: #8a6224;
  background-color: #f6eddb;
  border-color: #e8d9ba;
}

.status-finish {
  color: #43607c;
  background-color: #e5ecf3;
  border-color: #cbdae7;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  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-lift);
}

.cover-media,
.cover-figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.cover-media img,
.cover-figure img,
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.cover-card .cover-tag {
  align-self: flex-start;
}

.field-table {
  width: 100%;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  background-color: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
}

.field-table tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--ink);
  background-color: #fbf8f2;
}

.field-table tbody td {
  color: var(--ink-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.figure-caption,
.section-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.7;
  margin-top: 8px;
}

.section-figure {
  margin: 0 0 24px;
  width: 100%;
}

.section-figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ============ pages: home ============ */

.home-hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-card);
}

.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-section {
  border-bottom: 1px solid var(--line);
}

.home-section:last-of-type {
  border-bottom: 0;
}

.home-section .section-head {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 38px 24px 0;
}

.home-section .section-head .section-sub {
  margin-top: 6px;
}

.section-timan .timan-list {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 34px;
  display: flex;
  flex-direction: column;
}

.timan-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 8px 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.timan-row:last-child {
  border-bottom: 0;
}

.timan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.timan-trait,
.timan-struct {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.timan-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  justify-self: end;
}

.timan-link:hover,
.timan-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.section-fengmian .cover-grid {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 8px;
}

.section-more {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 34px;
}

.section-gengxin .update-groups {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.update-group {
  min-width: 0;
}

.update-month,
.month-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
}

.update-list .update-row:last-child {
  border-bottom: 0;
}

.update-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 130px;
}

.section-bangdan .rank-columns {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rank-block {
  min-width: 0;
  padding: 18px 18px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rank-basis {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  counter-reset: rank;
}

.rank-item {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  counter-increment: rank;
}

.rank-item::before {
  content: counter(rank);
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dark);
  background-color: #f6e9e1;
  border-radius: 3px;
}

.section-shuoming .shuoming-columns {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.shuoming-fields,
.shuoming-boundary {
  min-width: 0;
}

.sub-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.shuoming-boundary p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.shuoming-boundary .section-more {
  padding: 14px 0 0;
  max-width: none;
}

.section-index .index-columns {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.index-col {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-list .text-link {
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 0;
  padding-bottom: 0;
}

.index-list .text-link:hover,
.index-list .text-link:focus-visible {
  text-decoration: underline;
}

/* ============ pages: inner shared ============ */

.section {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.section .section-title {
  margin-bottom: 8px;
}

.section .section-desc {
  margin-bottom: 20px;
}

.section-more {
  margin-top: 6px;
}

/* ============ pages: timanfenlei ============ */

.section-timan-table .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.data-table {
  width: 100%;
  min-width: 620px;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}

.data-table thead th {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--bg-soft);
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 18%;
  white-space: nowrap;
}

.data-table tbody td {
  color: var(--ink-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-timan-picks .cover-grid {
  margin-bottom: 4px;
}

.section-timan-standard .rule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: rule;
}

.rule-item {
  position: relative;
  padding: 16px 18px 16px 52px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: rule;
}

.rule-item::before {
  content: counter(rule);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fffaf6;
  background-color: var(--accent);
  border-radius: 3px;
}

.rule-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rule-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ pages: zuijingengxin ============ */

.update-log .section-desc {
  margin-bottom: 22px;
}

.update-log .update-month {
  margin-top: 26px;
}

.update-log .update-month:first-of-type {
  margin-top: 0;
}

.update-log .update-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.4fr) auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.update-log .update-list .update-row:last-child {
  border-bottom: 1px dashed var(--line);
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.update-log .update-name {
  flex: none;
}

.update-figure {
  margin: 26px 0 0;
  width: 100%;
}

.update-figure img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.field-guide .field-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.field-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-faint);
  padding-bottom: 10px;
}

.follow-guide .follow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.follow-step {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.follow-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: #f6e9e1;
  border-radius: 3px;
}

.step-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ pages: bangdan ============ */

.bangdan-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.bangdan-block {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bangdan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.bangdan-rule {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.bangdan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: bangdan;
}

.bangdan-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: bangdan;
}

.bangdan-cover {
  margin: 0;
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
}

.bangdan-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bangdan-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bangdan-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

.bangdan-item-title::before {
  content: counter(bangdan) ". ";
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.bangdan-tag {
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.bangdan-tag.tag-ri-chang {
  color: #4f6b5d;
  background-color: #e7efe9;
  border-color: #cfe0d5;
}

.bangdan-tag.tag-xuan-huan {
  color: #5f5679;
  background-color: #ece8f4;
  border-color: #d9d1e8;
}

.bangdan-tag.tag-xuan-yi {
  color: #55506e;
  background-color: #e9e7f0;
  border-color: #d3d0e2;
}

.section-paixu-yiju .paixu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: paixu;
}

.paixu-item {
  position: relative;
  padding: 16px 18px 16px 52px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: paixu;
}

.paixu-item::before {
  content: counter(paixu);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fffaf6;
  background-color: var(--accent);
  border-radius: 3px;
}

.paixu-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.paixu-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-guanlian .guanlian-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.guanlian-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.guanlian-text a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============ pages: yuedushuoming ============ */

.content-section {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-section .section-intro {
  margin-bottom: 18px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: boundary;
}

.boundary-item {
  position: relative;
  padding: 15px 18px 15px 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: boundary;
}

.boundary-item::before {
  content: counter(boundary);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: #f6e9e1;
  border-radius: 3px;
}

.boundary-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.browse-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: browse;
}

.browse-item {
  position: relative;
  padding: 15px 18px 15px 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: browse;
}

.browse-item::before {
  content: counter(browse);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fffaf6;
  background-color: var(--accent);
  border-radius: 3px;
}

.browse-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.browse-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.browse-item p a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.section-tail {
  margin-top: 18px;
}

.section-faq .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.section-faq .faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 12px 18px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ============ pages: 404 ============ */

.error-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-block {
  max-width: 620px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ responsive ============ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 20px 34px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
    max-width: 560px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 30px 20px 20px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section .section-head,
  .section-timan .timan-list,
  .section-fengmian .cover-grid,
  .section-more,
  .section-gengxin .update-groups,
  .section-bangdan .rank-columns,
  .section-shuoming .shuoming-columns,
  .section-index .index-columns {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-gengxin .update-groups,
  .section-bangdan .rank-columns,
  .section-shuoming .shuoming-columns,
  .section-index .index-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cover-grid,
  .bangdan-columns,
  .follow-guide .follow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-main {
    padding: 20px 20px 48px;
  }

  .footer-bottom {
    padding: 14px 20px 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 0 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .timan-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 2px;
  }

  .timan-link {
    justify-self: start;
  }

  .cover-grid,
  .bangdan-columns,
  .follow-guide .follow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .update-log .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .cover-grid,
  .bangdan-columns,
  .follow-guide .follow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
  }

  .field-table tbody th {
    width: 38%;
  }

  .bangdan-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .bangdan-cover {
    width: 48px;
  }
}
