:root {
  color-scheme: light;
  --ink: #1f2723;
  --muted: #6f7268;
  --line: #ded8cd;
  --paper: #fbf4e8;
  --panel: #ffffff;
  --forest: #24614d;
  --forest-dark: #163e34;
  --terra: #b85835;
  --gold: #d89838;
  --rose: #d97c64;
  --sky: #e5f0ee;
  --mist: #f3eadb;
  --shadow: 0 24px 70px rgba(52, 45, 34, 0.15);
  --display-font: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --body-font: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 247, 230, 0.96), rgba(238, 246, 241, 0.92)),
    var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(31, 39, 35, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 39, 35, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(82, 68, 48, 0.1);
  background: rgba(253, 246, 234, 0.82);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand,
.top-nav,
.hero-actions,
.result-bar,
.library-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: 1.08rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px 50% 50% 50%;
  background:
    linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, 0.82) 48%),
    linear-gradient(135deg, var(--terra), var(--gold) 45%, var(--forest));
  box-shadow: 0 9px 20px rgba(184, 88, 53, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transform: rotate(-12deg);
}

.top-nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--forest-dark);
}

.top-nav a[aria-current="page"] {
  color: var(--forest-dark);
  font-weight: 780;
}

.section-band,
.section {
  padding-inline: clamp(18px, 4vw, 52px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(250px, 360px);
  align-items: end;
  gap: 40px;
  padding-block: clamp(80px, 12vw, 150px) 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 34, 28, 0.76), rgba(38, 44, 35, 0.2) 58%, rgba(38, 44, 35, 0.04)),
    linear-gradient(0deg, rgba(184, 88, 53, 0.24), rgba(22, 62, 52, 0.02) 42%),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2400&q=88")
      center 46%/cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(251, 244, 232, 0.98));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 204, 130, 0.26), transparent 22%),
    radial-gradient(circle at 78% 58%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd98f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 6rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-family: var(--display-font);
  font-weight: 720;
}

h2 {
  margin-bottom: 0;
  font-size: 2.75rem;
  line-height: 1.12;
  letter-spacing: 0;
  font-family: var(--display-font);
  font-weight: 720;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 740;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--forest), #2d7a5d);
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 97, 77, 0.2);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ghost-button {
  border: 1px solid rgba(36, 97, 77, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest-dark);
}

.text-button {
  background: transparent;
  color: var(--forest);
  font-weight: 740;
}

.hero-stats {
  display: grid;
  gap: 12px;
  align-self: end;
  margin-bottom: 30px;
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
}

.hero-stats strong {
  font-size: 2rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  max-width: 1500px;
  margin: 0 auto;
  padding-block: 76px;
}

.page-main {
  min-height: calc(100vh - 70px);
}

.page-hero {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(54px, 9vw, 110px) clamp(18px, 4vw, 52px) 34px;
  overflow: hidden;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 20px;
  width: min(38vw, 520px);
  height: 190px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(251, 244, 232, 0.08), rgba(251, 244, 232, 0.72)),
    url("https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1100&q=82") center/cover;
  box-shadow: 0 28px 80px rgba(66, 60, 44, 0.11);
  opacity: 0.9;
  z-index: -1;
}

.page-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: 5.1rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading h2,
.page-hero h1,
.hero-copy h1 {
  text-wrap: balance;
}

.hero-copy,
.hero-stats,
.category-card,
.ranking-card,
.item-card,
.library-card,
.home-split > *,
.page-hero > * {
  animation: riseIn 0.72s ease both;
}

.hero-stats {
  animation-delay: 0.12s;
}

.category-card:nth-child(2),
.ranking-card:nth-child(2),
.item-card:nth-child(2) {
  animation-delay: 0.04s;
}

.category-card:nth-child(3),
.ranking-card:nth-child(3),
.item-card:nth-child(3) {
  animation-delay: 0.08s;
}

.category-card:nth-child(4),
.ranking-card:nth-child(4),
.item-card:nth-child(4) {
  animation-delay: 0.12s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.page-section {
  padding-top: 48px;
}

.section-panel {
  max-width: none;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(229, 240, 238, 0.72)),
    #edf1ec;
}

.section-panel > * {
  max-width: 1396px;
  margin-inline: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading.compact {
  align-items: start;
  flex-direction: column;
  gap: 0;
}

.category-grid,
.ranking-grid,
.item-grid,
.library-grid {
  display: grid;
  gap: 20px;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.category-card,
.ranking-card,
.item-card,
.library-card,
.empty-state,
.filters,
.library-summary {
  border: 1px solid rgba(82, 68, 48, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(29, 37, 37, 0.03), 0 18px 44px rgba(80, 65, 42, 0.06);
}

.category-card {
  position: relative;
  min-height: 176px;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 63, 54, 0.08), rgba(18, 63, 54, 0.78)),
    var(--image) center/cover;
  display: flex;
  flex-direction: column;
  justify-content: end;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  pointer-events: none;
}

.category-card:hover,
.ranking-card:hover,
.item-card:hover,
.library-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-card h3 {
  position: relative;
  margin-bottom: 4px;
  font-family: var(--display-font);
  font-size: 1.35rem;
}

.category-card span,
.item-meta,
.library-meta,
.ranking-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-card span {
  color: rgba(255, 255, 255, 0.78);
}

.ranking-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.ranking-grid-wide {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.ranking-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.ranking-card h3 {
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.18;
}

.featured-rankings .ranking-card:first-child {
  grid-column: span 2;
  background:
    linear-gradient(120deg, rgba(31, 50, 42, 0.18), rgba(18, 63, 54, 0.78)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1400&q=84") center/cover;
  color: #fff;
}

.featured-rankings .ranking-card:first-child p,
.featured-rankings .ranking-card:first-child strong {
  color: rgba(255, 255, 255, 0.86);
}

.ranking-card strong {
  color: var(--terra);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(82, 68, 48, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 94, 79, 0.12);
}

.result-bar {
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
}

.item-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.item-card,
.library-card {
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.library-card {
  cursor: default;
}

.item-card:focus-visible,
.starred-item:focus-visible,
.discover-season-card:focus-visible,
.ranking-row:focus-visible {
  outline: 3px solid rgba(196, 106, 53, 0.34);
  outline-offset: 4px;
}

.item-card figure,
.library-card figure {
  margin: 0;
  aspect-ratio: 1.18;
  background: #dfe6e3;
  overflow: hidden;
}

.item-card img,
.library-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.item-card:hover img {
  transform: scale(1.04);
}

.item-card .small-button,
.starred-item .small-button,
.discover-season-card .small-button,
.ranking-row .small-button {
  cursor: pointer;
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  font-family: var(--display-font);
  font-size: 1.22rem;
  line-height: 1.22;
}

.card-body p:not(.item-meta):not(.library-meta) {
  color: #59625d;
}

.item-tags,
.dialog-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: linear-gradient(135deg, #eef5f2, #f7ead9);
  color: #38554d;
  font-size: 0.78rem;
  font-weight: 740;
}

.card-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.small-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(82, 68, 48, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 740;
  text-align: center;
  text-decoration: none;
}

.small-button.active {
  border-color: var(--forest);
  background: linear-gradient(135deg, var(--forest), #2d7a5d);
  color: #fff;
}

.province-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.province-cloud.vertical {
  align-content: start;
  max-height: 680px;
  overflow: auto;
}

.province-pill {
  border: 1px solid rgba(82, 68, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 13px;
  color: var(--forest-dark);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.province-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 88, 53, 0.28);
  background: #fff7e9;
}

.province-pill.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: 42px;
}

.home-split p {
  max-width: 640px;
  color: var(--muted);
}

.mini-map-card,
.china-map {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(82, 68, 48, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 35%, rgba(216, 152, 56, 0.2), transparent 24%),
    radial-gradient(circle at 66% 68%, rgba(36, 97, 77, 0.18), transparent 26%),
    linear-gradient(135deg, #f7ead9, #dfebe6);
  box-shadow: 0 28px 80px rgba(66, 60, 44, 0.11);
}

.mini-map-card::before,
.china-map::before {
  content: "";
  position: absolute;
  inset: 12% 9% 10% 8%;
  border-radius: 46% 54% 42% 58% / 34% 38% 62% 66%;
  background:
    linear-gradient(135deg, rgba(36, 97, 77, 0.22), rgba(216, 152, 56, 0.22)),
    #f7f6f1;
  box-shadow: inset 0 0 0 1px rgba(31, 94, 79, 0.18);
  transform: rotate(-7deg);
}

.mini-map-card span {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(217, 124, 100, 0.14), 0 8px 22px rgba(184, 88, 53, 0.18);
}

.region-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
}

.province-panel,
.region-detail,
.china-map {
  border: 1px solid rgba(82, 68, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.province-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
}

.region-main {
  display: grid;
  gap: 18px;
}

.china-map {
  min-height: 540px;
}

.china-map-surface {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 32%, rgba(216, 152, 56, 0.18), transparent 24%),
    radial-gradient(circle at 68% 65%, rgba(36, 97, 77, 0.16), transparent 28%),
    linear-gradient(135deg, #fff5e4, #e8f0ec);
}

.china-map-shape {
  position: absolute;
  inset: 12% 8% 10%;
  border-radius: 46% 54% 42% 58% / 34% 38% 62% 66%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(36, 97, 77, 0.16)),
    #f8ead7;
  box-shadow:
    inset 0 0 0 1px rgba(36, 97, 77, 0.18),
    0 30px 80px rgba(66, 60, 44, 0.12);
  transform: rotate(-7deg);
}

.china-map.province-mode {
  background: transparent;
  padding: 0;
}

.china-map.province-mode::before {
  display: none;
}

.map-star {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: var(--terra);
  cursor: pointer;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 2px rgba(29, 37, 37, 0.2));
}

.map-star span {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 760;
}

.map-star.active {
  color: var(--gold);
  font-size: 1.75rem;
}

.region-detail {
  padding: 22px;
}

.region-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.region-header p {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.guide-card {
  min-height: 110px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0, #edf5f1);
  padding: 16px;
}

.guide-card.wide {
  grid-column: span 2;
}

.guide-card span,
.starred-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 740;
}

.guide-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.guide-card p {
  margin: 8px 0 0;
  color: var(--ink);
}

.province-intro p {
  line-height: 1.82;
}

.starred-list {
  display: grid;
  gap: 10px;
}

.starred-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(82, 68, 48, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.starred-item:hover {
  border-color: rgba(196, 106, 53, 0.28);
  background: rgba(255, 250, 240, 0.92);
  transform: translateY(-1px);
}

.starred-item p {
  margin: 5px 0;
  color: var(--muted);
}

.library-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
}

.summary-cell {
  padding: 18px;
  background: #fff;
}

.summary-cell strong {
  display: block;
  font-size: 1.8rem;
}

.summary-cell span {
  color: var(--muted);
  font-size: 0.88rem;
}

.library-tabs {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 740;
}

.tab-button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.library-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.library-card {
  position: relative;
}

.library-status {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 44px 20px;
}

.empty-state.visible {
  display: block;
}

.item-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.item-dialog::backdrop {
  background: rgba(12, 20, 19, 0.54);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-hero {
  min-height: 320px;
  display: flex;
  align-items: end;
  padding: 34px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.66)), var(--image) center/cover;
  color: #fff;
}

.dialog-hero h2 {
  max-width: 680px;
  font-size: 3.7rem;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 28px;
}

.dialog-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-cell {
  padding: 12px;
  border-radius: 8px;
  background: #f4f6f2;
}

.info-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.dialog-side {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfbf8;
}

.guide-section {
  margin-top: 22px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-facts div,
.itinerary-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfbf8;
}

.guide-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.guide-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.guide-list li + li {
  margin-top: 8px;
}

.itinerary-list {
  display: grid;
  gap: 12px;
}

.itinerary-list strong {
  color: var(--ink);
}

.prep-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prep-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f5f3ec;
}

.prep-card strong {
  color: var(--ink);
}

.prep-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.prep-card li + li {
  margin-top: 8px;
}

.warning-list li {
  color: #8a4e18;
}

.form-dialog {
  width: min(560px, calc(100vw - 28px));
}

.custom-form {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.home-season-section {
  padding-top: 68px;
}

.discover-season-section {
  padding-top: 28px;
  padding-bottom: 34px;
}

.discover-season-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.discover-season-head h2 {
  max-width: 760px;
}

.discover-season-head p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.season-switcher {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.season-choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(82, 68, 48, 0.16);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(80, 65, 42, 0.06);
}

.season-choice-group button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
}

.season-choice-group button.active {
  background: linear-gradient(135deg, #fff4dc, #f1dcc0);
  color: var(--terra);
  box-shadow: 0 10px 24px rgba(128, 89, 43, 0.12);
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.season-card {
  min-height: 260px;
  border: 1px solid rgba(82, 68, 48, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(247, 234, 217, 0.72)),
    #fff;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(80, 65, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.season-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.season-card h3 {
  margin: 18px 0 8px;
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1.18;
}

.season-card p {
  color: var(--muted);
}

.discover-season-card {
  min-height: 310px;
  cursor: pointer;
}

.discover-season-card .card-actions {
  margin-top: 16px;
}

.weather-section {
  padding-top: 28px;
}

.weather-updated {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.weather-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.weather-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.weather-column h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.weather-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #fbfbf8;
}

.weather-card + .weather-card {
  margin-top: 12px;
}

.weather-card.best {
  border-left: 4px solid #2f8f6b;
}

.weather-card.avoid {
  border-left: 4px solid #c46a35;
}

.weather-verdict {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(36, 97, 77, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.weather-card.avoid .weather-verdict {
  background: rgba(196, 106, 53, 0.12);
  color: #a84d21;
}

.weather-card p,
.weather-card strong {
  color: var(--muted);
  font-size: 0.94rem;
}

.season-mark {
  align-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4dc;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 780;
}

.compact-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.compact-filters label {
  min-width: 150px;
  flex: 1;
}

.compact-filters select {
  min-height: 38px;
  padding: 8px 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(82, 68, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 740;
}

.page-button.active {
  background: var(--forest);
  color: #fff;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.compact-page-hero {
  padding-bottom: 12px;
}

.compact-page-hero::after {
  height: 130px;
  opacity: 0.45;
}

.ranking-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-summary,
.ranking-row {
  border: 1px solid rgba(82, 68, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(80, 65, 42, 0.06);
}

.ranking-summary {
  padding: 18px;
}

.ranking-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ranking-summary-head h2 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.ranking-summary-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.small-link {
  white-space: nowrap;
  color: var(--forest);
  font-weight: 780;
}

.top-three-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-three-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #fbf7ef;
}

.top-three-list li > strong,
.ranking-index {
  color: var(--terra);
  font-family: var(--display-font);
  font-size: 1.25rem;
}

.top-three-list a {
  display: block;
  font-weight: 780;
}

.top-three-list span,
.ranking-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.ranking-row:hover {
  border-color: rgba(196, 106, 53, 0.28);
  background: rgba(255, 250, 240, 0.94);
  transform: translateY(-1px);
}

.ranking-row h3 {
  margin-bottom: 4px;
  font-family: var(--display-font);
  font-size: 1.2rem;
}

.ranking-row p {
  margin-bottom: 4px;
  color: var(--muted);
}

.ranking-row-actions {
  display: flex;
  gap: 8px;
}

.province-map-surface {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(216, 152, 56, 0.18), transparent 24%),
    radial-gradient(circle at 70% 70%, rgba(36, 97, 77, 0.15), transparent 28%),
    linear-gradient(135deg, #fff5e4, #e8f0ec);
}

.leaflet-surface {
  background: #e8efe8;
}

.life-leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 540px;
}

.leaflet-surface .map-toolbar,
.leaflet-surface .map-note {
  z-index: 500;
}

.life-map-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--body-font);
}

.life-map-marker.city {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(33, 99, 86, 0.85);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(28, 44, 39, 0.18);
}

.life-map-marker.city.province {
  width: 24px;
  height: 24px;
  border-color: rgba(191, 103, 48, 0.9);
}

.life-map-marker.trip {
  width: 32px;
  height: 32px;
  color: #b55d2e;
  font-size: 1.35rem;
  text-shadow: 0 2px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 5px 10px rgba(64, 43, 30, 0.24));
}

.life-map-marker strong {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 760;
  box-shadow: 0 5px 14px rgba(38, 36, 30, 0.1);
}

.life-map-marker.city strong {
  top: 20px;
  color: var(--forest-dark);
}

.map-popup {
  max-width: 220px;
}

.map-popup p {
  margin: 6px 0 10px;
  color: #5f6a61;
  line-height: 1.55;
}

.weather-panel,
.route-sketch-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(82, 68, 48, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 22% 18%, rgba(191, 103, 48, 0.12), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(33, 99, 86, 0.12), transparent 32%);
}

.weather-panel strong {
  display: block;
  color: var(--forest-dark);
  margin-bottom: 8px;
}

.route-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.route-card-head strong {
  color: var(--forest-dark);
}

.route-card-head em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.weather-panel p,
.route-sketch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.weather-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.weather-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px;
  border-radius: 7px;
  background: rgba(238, 231, 212, 0.62);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.25;
}

.weather-strip b {
  color: var(--terra);
}

.weather-strip em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.66rem;
}

.route-sketch-card svg {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  margin: 8px 0 6px;
}

.route-sketch-card rect {
  fill: rgba(249, 246, 238, 0.9);
  stroke: rgba(82, 68, 48, 0.12);
}

.route-sketch-card text {
  fill: var(--ink);
  font-size: 4.2px;
  font-weight: 760;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.8px;
}

.route-segment {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 5 4;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.route-distance {
  fill: #2f3130;
  font-size: 4px;
  font-weight: 820;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.8px;
  paint-order: stroke;
}

.route-terrain {
  fill: none;
  stroke: rgba(117, 128, 128, 0.22);
  stroke-width: 8;
  stroke-linecap: round;
}

.route-terrain.ridge-b {
  stroke-width: 7;
}

.route-river {
  fill: none;
  stroke: rgba(86, 158, 183, 0.28);
  stroke-width: 3;
  stroke-linecap: round;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.route-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.province-map-viewport {
  position: absolute;
  inset: 56px 18px 42px;
  overflow: auto;
  border-radius: 8px;
}

.province-map-canvas {
  position: relative;
  width: 100%;
  min-width: 720px;
  height: 430px;
  transform: scale(var(--map-scale));
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.province-svg {
  position: absolute;
  inset: 2% 4%;
  width: 92%;
  height: 92%;
  filter: drop-shadow(0 30px 70px rgba(66, 60, 44, 0.12));
}

.province-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 26px 58px rgba(66, 60, 44, 0.16));
}

.province-outline {
  fill: rgba(255, 250, 240, 0.9);
  stroke: rgba(36, 97, 77, 0.42);
  stroke-width: 1.4;
}

.province-outline-glow {
  fill: rgba(36, 97, 77, 0.08);
  stroke: rgba(216, 152, 56, 0.34);
  stroke-width: 0.7;
  transform: translate(1px, 1px);
}

.province-map-title {
  position: absolute;
  left: 8%;
  top: 8%;
  color: rgba(31, 39, 35, 0.16);
  font-family: var(--display-font);
  font-size: 5rem;
  font-weight: 760;
  pointer-events: none;
}

.province-map-canvas.has-image .province-map-title {
  display: none;
}

.map-toolbar {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(66, 60, 44, 0.1);
  backdrop-filter: blur(12px);
}

.map-control {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(82, 68, 48, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 780;
}

.map-control.wide {
  min-width: 78px;
  padding-inline: 10px;
}

.map-control:hover {
  border-color: var(--forest);
}

.map-zoom-readout {
  position: absolute;
  z-index: 4;
  left: 16px;
  top: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest-dark);
  font-size: 0.82rem;
  font-weight: 780;
}

.map-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.destination-star {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: var(--terra);
  cursor: pointer;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 2px rgba(29, 37, 37, 0.2));
}

.destination-star span {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 760;
}

.destination-star:hover {
  color: var(--gold);
}

.library-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.summary-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fffaf0;
}

.summary-cell strong {
  font-size: 1.05rem;
}

.summary-cell span {
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .page-hero h1 {
    font-size: 4.2rem;
  }

  .dialog-hero h2 {
    font-size: 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .ranking-grid,
  .item-grid,
  .library-grid,
  .season-grid,
  .weather-board,
  .ranking-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-layout,
  .home-split,
  .discover-season-head {
    grid-template-columns: 1fr;
  }

  .province-panel {
    position: static;
  }

  .filters,
  .library-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-text,
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .page-hero::after {
    display: none;
  }

  .dialog-hero h2 {
    font-size: 2.35rem;
  }

  .site-header {
    align-items: start;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .ghost-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 720px;
    padding-top: 70px;
    align-items: end;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .hero-stats div {
    display: grid;
    gap: 2px;
    padding: 10px;
  }

  .hero-stats strong {
    font-size: 1.45rem;
  }

  .hero-stats span {
    font-size: 0.78rem;
  }

  .section {
    padding-block: 48px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .ranking-grid,
  .item-grid,
  .library-grid,
  .season-grid,
  .weather-board,
  .guide-facts,
  .prep-grid,
  .ranking-overview,
  .filters,
  .dialog-body,
  .dialog-info {
    grid-template-columns: 1fr;
  }

  .compact-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-filters label {
    min-width: 0;
  }

  .discover-season-card {
    min-height: 260px;
  }

  .featured-rankings .ranking-card:first-child,
  .guide-card.wide {
    grid-column: span 1;
  }

  .china-map {
    min-height: 430px;
  }

  .region-header,
  .starred-item,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .province-map-surface {
    min-height: 430px;
  }

  .china-map-surface {
    min-height: 430px;
  }

  .province-map-viewport {
    inset: 54px 12px 52px;
  }

  .province-map-canvas {
    min-width: 620px;
    height: 320px;
  }

  .province-map-title {
    font-size: 3.4rem;
  }

  .map-note {
    font-size: 0.78rem;
  }
}
