:root {
  --ink: #18211d;
  --muted: #657069;
  --paper: #fbfaf4;
  --paper-strong: #fffdf7;
  --moss: #315841;
  --water: #236a7a;
  --rice: #d7a934;
  --clay: #b45f3d;
  --mulberry: #6c3f5b;
  --line: #d8d0bf;
  --shadow: 0 18px 46px rgba(24, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--clay);
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(216, 208, 191, 0.78);
  background: rgba(251, 250, 244, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 152px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--moss);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 4px;
}

.primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #354039;
  border-radius: 6px;
  font-size: 0.94rem;
}

.primary-nav a:hover {
  background: rgba(49, 88, 65, 0.09);
  color: var(--moss);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 116px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 18, 14, 0.78), rgba(9, 18, 14, 0.34) 52%, rgba(9, 18, 14, 0.08)),
    linear-gradient(0deg, rgba(9, 18, 14, 0.76), rgba(9, 18, 14, 0.06) 48%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 42px;
}

.eyebrow,
.section-kicker,
.resource-label,
.route-audience {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d878;
}

.hero h1 {
  margin: 0;
  font-size: 6.5rem;
  line-height: 0.95;
  font-weight: 900;
}

.hero-lede {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.72rem;
  line-height: 1.35;
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

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

.button {
  min-width: 148px;
  padding: 0 20px;
}

.button-primary {
  color: var(--ink);
  background: var(--rice);
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(740px, 100%);
  margin: 42px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts div {
  padding: 16px;
  background: rgba(9, 18, 14, 0.2);
}

.hero-facts dt {
  font-weight: 800;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.ticker-band {
  border-bottom: 1px solid var(--line);
  background: #f0eadc;
}

.ticker-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
}

.ticker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-list li {
  color: #39453e;
  font-size: 0.92rem;
}

.ticker-list time {
  display: block;
  color: var(--water);
  font-weight: 800;
}

.section {
  padding: 88px 0;
}

.section h2 {
  margin: 0;
  max-width: 820px;
  font-size: 2.6rem;
  line-height: 1.15;
}

.section h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

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

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.intro-grid,
.seasons-grid,
.taste-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.intro-grid p,
.taste-layout p,
.seasons-grid p {
  max-width: 720px;
}

.position-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--water);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.position-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.position-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.position-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.position-list strong {
  font-size: 1.12rem;
}

.position-list span {
  color: var(--muted);
}

.section-resources {
  background: #eef4ef;
}

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

.resource-card {
  min-height: 445px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 29, 0.14);
  border-radius: 8px;
  background: var(--paper-strong);
}

.resource-media {
  min-height: 160px;
  background-image:
    linear-gradient(0deg, rgba(24, 33, 29, 0.16), rgba(24, 33, 29, 0)),
    url("assets/hero-lukou.png");
  background-size: 420% auto;
  background-repeat: no-repeat;
}

.resource-card-forest .resource-media {
  background-position: 14% 46%;
}

.resource-card-spring .resource-media {
  background-position: 72% 52%;
}

.resource-card-rice .resource-media {
  background-position: 92% 56%;
}

.resource-card-flower .resource-media {
  background-position: 38% 66%;
}

.resource-card-ip .resource-media {
  background-position: 58% 42%;
}

.resource-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.resource-body p:last-child {
  margin-bottom: 0;
}

.resource-card-forest .resource-label {
  color: var(--moss);
}

.resource-card-spring .resource-label {
  color: var(--water);
}

.resource-card-rice .resource-label {
  color: #9a7116;
}

.resource-card-flower .resource-label {
  color: var(--mulberry);
}

.resource-card-ip .resource-label {
  color: var(--clay);
}

.section-routes {
  background: var(--paper);
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 0.68fr);
  gap: 34px;
  align-items: start;
}

.routes-layout .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.route-tabs {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 90px;
}

.route-tab,
.season-tab {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-strong);
  cursor: pointer;
}

.route-tab {
  justify-content: flex-start;
  padding: 0 16px;
  text-align: left;
}

.route-tab.is-active,
.season-tab.is-active {
  color: white;
  border-color: var(--moss);
  background: var(--moss);
}

.route-panel {
  min-height: 350px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.route-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.route-panel ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: #3b453f;
}

.route-audience {
  color: var(--water);
}

.section-seasons {
  background: #f5f0e4;
}

.season-switcher {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.season-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.season-tab {
  padding: 0 8px;
  font-weight: 800;
}

.season-panel {
  min-height: 196px;
  padding: 28px;
}

.season-panel h3 {
  font-size: 1.7rem;
}

.section-culture {
  background: var(--ink);
  color: white;
}

.section-culture .section-kicker {
  color: #f4d878;
}

.section-culture p {
  color: rgba(255, 255, 255, 0.74);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.culture-item {
  min-height: 260px;
  padding: 24px;
  background: #1f2b25;
}

.culture-item span {
  display: block;
  margin-bottom: 34px;
  color: var(--rice);
  font-weight: 900;
}

.section-taste {
  background: #fffaf0;
}

.taste-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taste-list li {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-left: 5px solid var(--rice);
  border-radius: 8px;
  background: var(--paper-strong);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(24, 33, 29, 0.08);
}

.taste-list li:nth-child(2) {
  border-color: var(--moss);
}

.taste-list li:nth-child(3) {
  border-color: var(--clay);
}

.taste-list li:nth-child(4) {
  border-color: var(--mulberry);
}

.taste-list li:nth-child(5) {
  border-color: var(--water);
}

.section-sources {
  background: var(--paper);
  padding-top: 64px;
}

.source-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 28px rgba(24, 33, 29, 0.06);
}

.source-details summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
}

.source-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 24px 24px 46px;
  color: var(--muted);
}

.source-list a {
  color: var(--water);
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: white;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .resource-grid,
  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-card {
    min-height: 390px;
  }

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

@media (max-width: 860px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: min(640px, calc(100svh - 126px));
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .hero-lede {
    font-size: 1.42rem;
  }

  .section h2 {
    font-size: 2.05rem;
  }

  .ticker-grid,
  .intro-grid,
  .seasons-grid,
  .taste-layout,
  .routes-layout {
    grid-template-columns: 1fr;
  }

  .route-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: auto;
  }

  .hero {
    min-height: min(610px, calc(100svh - 132px));
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-facts {
    display: none;
  }

  .button {
    width: 100%;
  }

  .resource-grid,
  .culture-grid,
  .taste-list,
  .route-tabs {
    grid-template-columns: 1fr;
  }

  .resource-card,
  .culture-item {
    min-height: auto;
  }

  .route-panel,
  .position-panel,
  .season-panel {
    padding: 22px;
  }

  .route-panel h3,
  .season-panel h3 {
    font-size: 1.45rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
