/* ===== 燕云十六声攻略站 · MVP 样式 ===== */
:root {
  --ink: #0c0f14;
  --ink-soft: #141a22;
  --ink-card: #1a222d;
  --ink-border: #2a3544;
  --paper: #e8e0d4;
  --paper-dim: #a89f92;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --cinnabar: #b54a3a;
  --cinnabar-soft: rgba(181, 74, 58, 0.15);
  --jade: #5a8f7b;
  --mist: rgba(232, 224, 212, 0.06);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ----- Version bar ----- */
.version-bar {
  background: rgba(201, 169, 98, 0.1);
  border-bottom: 1px solid rgba(201, 169, 98, 0.25);
  font-size: 13px;
}

.version-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 8px 0;
  color: var(--paper-dim);
}

.version-live {
  color: var(--jade);
  font-weight: 600;
}

.version-divider {
  opacity: 0.4;
}

#version-season {
  color: var(--gold-light);
  font-weight: 600;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  color: var(--paper-dim);
  transition: color 0.2s;
  white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 13px;
  }
}

.main-nav a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s, opacity 0.2s;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 98, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(181, 74, 58, 0.08), transparent),
    linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--paper-dim);
  font-size: 17px;
}

.search-box {
  display: flex;
  max-width: 520px;
  margin: 0 auto 24px;
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink-card);
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--paper);
  background: transparent;
  border: none;
  outline: none;
}

.search-box input::placeholder {
  color: var(--paper-dim);
  opacity: 0.7;
}

.search-box button {
  padding: 0 24px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.search-box button:hover {
  filter: brightness(1.08);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-chips a {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--paper-dim);
  background: var(--mist);
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.hero-chips a:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.4);
}

@media (min-width: 769px) {
  .hero-chips {
    display: none;
  }
}

.search-results {
  max-width: 520px;
  margin: 0 auto 16px;
  text-align: left;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-hit {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-border);
  transition: background 0.2s;
}

.search-hit:last-child {
  border-bottom: none;
}

.search-hit:hover {
  background: var(--mist);
}

.search-hit strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.search-hit span {
  font-size: 12px;
  color: var(--paper-dim);
}

.search-empty {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  color: var(--paper-dim);
  text-align: center;
}

/* ----- Quick deep links (not taxonomy cards) ----- */
.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-border);
}

.quick-list li {
  border-bottom: 1px solid var(--ink-border);
  border-right: 1px solid var(--ink-border);
}

.quick-list li:nth-child(2n) {
  border-right: none;
}

.quick-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px 14px;
  padding: 18px 16px;
  color: var(--paper);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.quick-list a:hover {
  background: rgba(201, 169, 98, 0.06);
}

.quick-list a:hover .quick-title {
  color: var(--gold);
}

.quick-cat {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-family: var(--font-serif);
}

.quick-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.quick-desc {
  font-size: 12px;
  color: var(--paper-dim);
  justify-self: end;
}

@media (min-width: 900px) {
  .quick-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-list li {
    border-right: 1px solid var(--ink-border);
  }

  .quick-list li:nth-child(2n) {
    border-right: 1px solid var(--ink-border);
  }

  .quick-list li:nth-child(4n) {
    border-right: none;
  }

  .quick-list a {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 18px;
    min-height: 100%;
  }

  .quick-desc {
    justify-self: start;
  }
}

/* ----- Home return (progress + latest) ----- */
.home-return {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-return-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .home-return-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
  }
}

.home-return-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.home-return-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.home-return-latest .home-return-title {
  margin-bottom: 12px;
}

.home-return-note {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.explore-strip-total {
  margin-bottom: 16px;
}

.explore-strip-nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.explore-strip-label {
  font-size: 13px;
  color: var(--paper-dim);
}

.explore-strip-nums strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.explore-strip-nums strong span {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--paper-dim);
}

.explore-strip-maps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
  margin-bottom: 14px;
}

.explore-map {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 16px;
  color: var(--paper);
  text-decoration: none;
  border-right: 1px solid var(--ink-border);
  transition: background 0.2s;
}

.explore-map:last-child {
  border-right: none;
}

.explore-map:hover {
  background: rgba(201, 169, 98, 0.06);
}

.explore-map:hover .explore-map-name {
  color: var(--gold);
}

.explore-map-name {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  transition: color 0.2s;
}

.explore-map-count {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.explore-map-count span {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--paper-dim);
}

.explore-map-bar {
  display: block;
  height: 3px;
  margin-top: 4px;
  background: var(--ink-border);
  border-radius: 999px;
  overflow: hidden;
}

.explore-map-bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.explore-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  margin-bottom: 14px;
  font-size: 13px;
}

.explore-more-label {
  margin-right: 8px;
  color: var(--paper-dim);
  flex: 0 0 auto;
}

.explore-more a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.explore-more a:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.08);
}

.explore-more a span {
  opacity: 0.7;
  font-size: 12px;
}

.home-week-tip {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.home-week-tip a {
  color: var(--gold);
  text-decoration: none;
}

.home-week-tip a:hover {
  text-decoration: underline;
}

.home-latest-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--ink-border);
}

.home-latest-list li {
  border-bottom: 1px solid var(--ink-border);
}

.home-latest-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  color: var(--paper);
  text-decoration: none;
}

.home-latest-list a:hover span {
  color: var(--gold);
}

.home-latest-list time {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

.home-latest-list span {
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s;
}

.home-latest-more {
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
}

.home-latest-more:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .explore-strip-maps {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-map:nth-child(2n) {
    border-right: none;
  }

  .explore-map:nth-child(-n+2) {
    border-bottom: 1px solid var(--ink-border);
  }
}

/* ----- Filter tabs ----- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--paper-dim);
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-tab:hover {
  color: var(--paper);
  border-color: rgba(201, 169, 98, 0.35);
}

.filter-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
}

.guide-toolbar {
  margin-bottom: 32px;
}

.guide-section-block {
  margin-bottom: 40px;
}

.guide-section-block:last-child {
  margin-bottom: 0;
}

.guide-block-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--paper-dim);
}

/* ----- Sections ----- */
.section {
  padding: 72px 0;
}

.section:nth-child(even) {
  background: var(--ink-soft);
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

/* ----- Guide cards ----- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  border-color: rgba(201, 169, 98, 0.4);
  box-shadow: var(--shadow);
}

.guide-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-cat {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cinnabar);
  background: var(--cinnabar-soft);
  border-radius: 4px;
}

.guide-version {
  padding: 3px 8px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  border-radius: 4px;
}

.guide-expired {
  padding: 3px 8px;
  font-size: 11px;
  color: var(--paper-dim);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.guide-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
}

.guide-summary {
  flex: 1;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--paper-dim);
}

.guide-card time {
  font-size: 12px;
  color: var(--paper-dim);
  opacity: 0.7;
}

/* ----- Tier table ----- */
.tier-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: var(--ink-card);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tier-table th,
.tier-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ink-border);
}

.tier-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  background: rgba(0, 0, 0, 0.2);
}

.tier-table tbody tr:last-child td {
  border-bottom: none;
}

.tier-table tbody tr:hover {
  background: var(--mist);
}

.tier-label {
  display: inline-block;
  min-width: 48px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
}

.tier-row.t0 .tier-label {
  color: #fff;
  background: linear-gradient(135deg, #c9a962, #a07830);
}

.tier-row.t1 .tier-label {
  color: var(--paper);
  background: #4a5568;
}

.tier-row.t2 .tier-label {
  color: var(--paper);
  background: #3d4f5f;
}

.tier-row.t3 .tier-label {
  color: var(--paper-dim);
  background: var(--ink-border);
}

.tier-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--paper-dim);
  text-align: center;
}

.guides-wiki {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-border);
}

.guides-wiki-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.guides-wiki-head .guide-block-title {
  margin: 0;
}

.guides-wiki .wiki-search-wrap {
  margin: 0;
  max-width: 280px;
  flex: 1 1 200px;
}

.season-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.season-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.season-highlights {
  margin: 0 0 20px;
  padding: 16px 20px;
  list-style: none;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
}

.season-highlights li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.season-highlights li::before {
  content: "▸ ";
  color: var(--gold);
}

.systems-panel {
  padding: 24px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.systems-panel h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 16px;
}

.systems-note {
  margin: -8px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--paper-dim);
}

.systems-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.systems-table th,
.systems-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--ink-border);
}

.systems-table th {
  font-size: 11px;
  color: var(--paper-dim);
}

.systems-table tbody tr:last-child td {
  border-bottom: none;
}

.systems-table strong {
  color: var(--gold-light);
}

.inline-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--gold-light);
}

/* ----- School cards ----- */
.school-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.school-card {
  padding: 0;
  overflow: hidden;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.school-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  background:
    linear-gradient(120deg, rgba(201, 169, 98, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border-bottom: 1px solid var(--ink-border);
}

.school-card-visual .school-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
}

.school-card.accent-crimson .school-mark { background: linear-gradient(145deg, #e8a090, #c45c4a); }
.school-card.accent-jade .school-mark { background: linear-gradient(145deg, #9dcfb8, #5a8f7b); }
.school-card.accent-amber .school-mark { background: linear-gradient(145deg, #e8d5a3, #c9a962); }
.school-card.accent-slate .school-mark { background: linear-gradient(145deg, #b8c4d4, #7a8fa3); }
.school-card.accent-bronze .school-mark { background: linear-gradient(145deg, #d4b896, #a67c52); }
.school-card.accent-mist .school-mark { background: linear-gradient(145deg, #d8dde8, #9aa3b5); }
.school-card.accent-ember .school-mark { background: linear-gradient(145deg, #e8b080, #c4783a); }

.school-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 16px 20px 0;
}

.school-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
}

.school-card .school-weapon,
.school-card .school-pick-line,
.school-card .school-fit,
.school-card .card-more {
  padding-left: 20px;
  padding-right: 20px;
}

.school-card .card-more {
  display: inline-block;
  padding-bottom: 18px;
  margin-top: 4px;
}

.school-pick-line {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--paper);
  line-height: 1.45;
}

.school-tag {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  border-radius: 4px;
  white-space: nowrap;
}

.school-weapon {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--paper-dim);
}

.school-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.6;
}

.school-fit {
  margin: 0;
  font-size: 13px;
}

/* ----- Glossary ----- */
.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
}

.glossary-item {
  padding: 18px 20px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.glossary-item dt {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
}

.glossary-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
  line-height: 1.6;
}

/* ----- Tool links ----- */
.tool-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-link-card {
  display: block;
  padding: 20px 22px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.tool-link-card:hover {
  border-color: rgba(201, 169, 98, 0.4);
  transform: translateY(-2px);
}

.tool-link-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 16px;
}

.tool-link-card p {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

/* ----- Season ----- */
.season-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 999px;
}

.season-info h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.season-info > p {
  margin: 0 0 24px;
  color: var(--paper-dim);
  line-height: 1.7;
}

.season-checklist {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.season-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--ink-border);
}

.season-checklist .check {
  font-weight: 700;
  color: var(--paper-dim);
}

.season-checklist .check.done {
  color: var(--jade);
}

.season-timeline {
  padding: 28px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.season-timeline h3 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 16px;
}

.season-timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.season-timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-left: 2px solid var(--ink-border);
  margin-left: 8px;
  padding-left: 20px;
  position: relative;
}

.season-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.season-timeline li.upcoming::before {
  background: var(--ink-border);
}

.season-timeline time {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.season-timeline span {
  font-size: 14px;
  color: var(--paper-dim);
}

/* ----- Tools ----- */
.tools-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tools-layout-wide {
  grid-template-columns: 1.1fr 0.9fr;
}

.tools-col-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-bar {
  height: 6px;
  margin-top: 0;
  background: var(--ink-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  border-radius: 999px;
  transition: width 0.3s;
}

.wiki-search-wrap {
  max-width: 400px;
  margin: 16px auto 0;
}

.wiki-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--paper);
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  outline: none;
}

.wiki-search:focus {
  border-color: rgba(201, 169, 98, 0.45);
}

.guide-filter-empty {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--paper-dim);
}

.school-card-link {
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.school-card-link:hover {
  border-color: rgba(201, 169, 98, 0.4);
  transform: translateY(-2px);
}

.card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gold);
}

.patch-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gold);
}

.patch-link:hover {
  color: var(--gold-light);
}

.search-hit-term {
  border-left: 2px solid var(--jade);
}

.explore-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.explore-type-tabs {
  margin-bottom: 0;
}

.explore-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.explore-region-head h3 {
  margin: 0;
}

.region-progress {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.checklist-panel {
  padding: 28px;
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.week-board-section {
  padding-top: 36px;
}

.week-board {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  padding: 22px 22px 20px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(201, 169, 98, 0.14), transparent 50%),
    linear-gradient(165deg, #1a211c 0%, #12161c 60%, #1a1612 100%);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: var(--radius);
}

.week-board-main .checklist {
  margin: 12px 0;
}

.week-board-side {
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.jingyuan-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.jingyuan-nums {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.jingyuan-nums strong {
  color: var(--gold-light);
}

.jingyuan-note {
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.5;
}

.week-board-side a {
  color: var(--gold);
  font-size: 13px;
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.checklist-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.checklist-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--paper-dim);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.checklist-progress {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.checklist-progress strong {
  color: var(--gold-light);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ----- Patches ----- */
.patch-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.patch-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-border);
}

.patch-item:first-child {
  padding-top: 0;
}

.patch-item:last-child {
  border-bottom: none;
}

.patch-item time {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.patch-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.patch-item p {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.tool-card {
  position: relative;
  padding: 28px 24px;
  text-align: center;
  background: var(--ink-card);
  border: 1px dashed var(--ink-border);
  border-radius: var(--radius);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  border-radius: 12px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tool-card p {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.soon-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--paper-dim);
  background: var(--mist);
  border-radius: 4px;
}

/* ----- CTA ----- */
.cta-box {
  padding: 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.08), rgba(181, 74, 58, 0.06));
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.cta-box p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--paper-dim);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: filter 0.2s, background 0.2s;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--ink-border);
}

.btn-ghost:hover {
  border-color: rgba(201, 169, 98, 0.4);
  color: var(--gold-light);
}

/* ----- Footer ----- */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--ink-border);
  background: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.footer-trust {
  margin-top: 4px !important;
  font-size: 12px !important;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--paper-dim);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--paper-dim);
  opacity: 0.6;
  text-align: center;
}

.footer-beian {
  width: 100%;
  margin: 0;
  padding: 0 0 28px;
  font-size: 12px;
  text-align: center;
  color: var(--paper-dim);
  opacity: 0.7;
}

.footer-support {
  padding: 18px 0 4px;
  margin-top: 8px;
}

.footer-support:empty {
  display: none;
  padding: 0;
  margin: 0;
}

.footer-support-inner {
  text-align: center;
  padding: 16px 18px 8px;
  border-top: 1px solid rgba(201, 169, 98, 0.22);
}

.footer-support-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.footer-support-disclaimer {
  margin: 0 auto 12px;
  max-width: 36em;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 6px;
}

.footer-support-msg {
  margin: 0 auto 14px;
  max-width: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper-dim);
  white-space: nowrap;
}

.footer-support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 720px) {
  .footer-support-msg {
    white-space: normal;
    max-width: 22em;
  }
}

.btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-like:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.btn-like:active {
  transform: scale(0.98);
}

.btn-like-icon {
  flex: 0 0 auto;
}

body.donate-modal-open {
  overflow: hidden;
}

.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.donate-modal[hidden] {
  display: none !important;
}

.donate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
}

.donate-modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  text-align: center;
  background: var(--ink-soft);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.donate-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--paper-dim);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.donate-modal-close:hover {
  color: var(--paper);
}

.donate-modal-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-light);
}

.donate-modal-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--paper-dim);
}

.donate-modal-disclaimer {
  margin: 12px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 6px;
  text-align: left;
}

.donate-modal-disclaimer[hidden] {
  display: none;
}

.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.donate-amount-btn {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 10px 8px;
  font: inherit;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.donate-amount-btn:hover {
  border-color: rgba(201, 169, 98, 0.55);
}

.donate-amount-btn.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.donate-amount-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.donate-amount-unit {
  font-size: 12px;
  opacity: 0.85;
}

.donate-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.donate-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.donate-pay-btn:not(:disabled):hover {
  filter: brightness(1.05);
}

.donate-modal-status {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--paper-dim);
}

.donate-modal-status.is-error {
  color: #e0a090;
}

.donate-back-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--gold-light);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.donate-modal-qr {
  width: min(220px, 68vw);
  height: auto;
  max-height: 58vh;
  margin: 0 auto 8px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

/* ----- Mobile nav ----- */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--ink-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--ink-border);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 56px 0 64px;
  }

  .section {
    padding: 48px 0;
  }

  .season-inner {
    grid-template-columns: 1fr;
  }

  .season-side {
    order: -1;
  }

  .school-cards {
    grid-template-columns: 1fr;
  }

  .glossary-list {
    grid-template-columns: 1fr;
  }

  .tools-layout,
  .tools-layout-wide {
    grid-template-columns: 1fr;
  }

  .week-board {
    grid-template-columns: 1fr;
  }

  .explore-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .patch-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quick-list {
    grid-template-columns: 1fr;
  }

  .quick-list li,
  .quick-list li:nth-child(2n) {
    border-right: none;
  }

  .quick-list a {
    grid-template-columns: auto 1fr auto;
    gap: 10px 12px;
    padding: 16px 4px;
  }

  .cta-box {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .container {
    width: min(1120px, 100%);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .version-bar {
    font-size: 12px;
  }

  .version-bar-inner {
    padding: 6px 0;
    gap: 6px 10px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .version-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .search-box input {
    font-size: 16px; /* 避免 iOS 聚焦放大 */
    padding: 14px 16px;
  }

  .search-box button {
    padding: 0 18px;
    min-height: 48px;
  }

  .hero-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-chips::-webkit-scrollbar {
    display: none;
  }

  .hero-chips a {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .filter-tabs {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .filter-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    min-height: 40px;
    font-size: 13px;
  }

  .guide-card {
    padding: 16px;
  }

  .checklist label {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .tool-link-card {
    padding: 18px 16px;
  }

  .tool-link-card h3 {
    font-size: 1.05rem;
  }

  .wiki-search {
    font-size: 16px;
    min-height: 44px;
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .footer-beian,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav {
    top: calc(64px + env(safe-area-inset-top, 0px));
    max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .main-nav a {
    padding: 14px 8px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 48px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 1.35rem;
  }
}
