/* ============ 1. Reset & Tokens ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #F5F0E6;
  --ink: #1E1E1E;
  --grass: #3CB371;
  --orange: #FF6B35;
  --navy: #004E89;
  --light-green: #E8F5E9;
  --deep-green: #2E7D32;
  --warm-gray: #9E9E9E;
  --white: #FFFFFF;

  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(30, 30, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 30, 30, 0.10);

  --container-max: 1200px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ 2. Base ============ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--grass);
  color: var(--white);
}

/* ============ 3. Typography ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  text-transform: uppercase;
}

/* ============ 4. Layout ============ */
.container {
  width: min(var(--container-max), 100% - 48px);
  margin-inline: auto;
}

/* ============ 5. Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(245, 240, 230, 0.82) 55%, transparent 100%);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 230, 0.97);
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.06), 0 8px 24px rgba(30, 30, 30, 0.05);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--grass), var(--orange));
  transition: width 0.1s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--grass);
  border-top-color: transparent;
  transform: rotate(30deg);
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark::before {
  transform: rotate(230deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 11px;
  color: var(--warm-gray);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Nav */
.site-nav {
  position: relative;
  z-index: 2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  background: var(--grass);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 24px;
}

.nav-link[aria-current="page"] {
  color: var(--deep-green);
  font-weight: 700;
}

.nav-index {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 101;
  transition: background 0.25s ease;
}

.nav-toggle:hover {
  background: var(--light-green);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  margin: auto;
}

.nav-toggle-bars .bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.no-scroll {
  overflow: hidden;
}

/* ============ 6. Footer ============ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.footer-orbit {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.09;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--grass);
  border-radius: 50%;
}

.orbit-ring-1 {
  transform: scaleY(0.6) scaleX(1.2) rotate(-28deg);
}

.orbit-ring-2 {
  inset: 50px;
  border-color: var(--orange);
}

.orbit-ball {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  top: 40px;
  right: 70px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 10px;
}

.footer-logo:hover {
  color: var(--grass);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.6);
  margin-bottom: 6px;
}

.footer-version {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--grass);
  border-radius: 2px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 15px;
  color: rgba(245, 240, 230, 0.85);
  transition: color 0.2s ease, padding-left 0.25s var(--ease-out);
  padding-left: 0;
}

.footer-list a:hover {
  color: var(--grass);
  padding-left: 6px;
}

.footer-contact-line {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.75);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.contact-label {
  font-family: var(--font-head);
  font-size: 11px;
  color: rgba(245, 240, 230, 0.4);
  letter-spacing: 0.1em;
  min-width: 32px;
}

.footer-trust-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.7);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.footer-copyright,
.footer-icp {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.5);
}

/* ============ 7. Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grass);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ============ 8. Breadcrumb ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--warm-gray);
  padding: 0 0 24px;
}

.breadcrumb a {
  color: var(--navy);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--deep-green);
  text-decoration: underline;
}

.breadcrumb .breadcrumb-sep {
  color: var(--warm-gray);
  opacity: 0.5;
}

/* ============ 9. Page Hero ============ */
.page-hero {
  padding: 170px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--light-green), transparent 70%);
  top: -100px;
  right: -80px;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 2px solid rgba(60, 179, 113, 0.2);
  border-radius: 50%;
  bottom: -140px;
  left: -60px;
  z-index: 0;
}

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

.page-hero-title {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 720px;
}

.page-hero-desc {
  font-size: 17px;
  max-width: 620px;
  color: rgba(30, 30, 30, 0.75);
}

/* ============ 10. Sections ============ */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--grass);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: rgba(30, 30, 30, 0.72);
  max-width: 640px;
  margin-bottom: 32px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--light-green);
  color: var(--deep-green);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
}

/* ============ 11. Map Grid ============ */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.map-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 30, 30, 0.04);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.map-card::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--light-green);
  top: -16px;
  right: -16px;
  opacity: 0.8;
  transition: transform 0.35s var(--ease-out);
}

.map-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  top: 18px;
  right: 18px;
  opacity: 0.5;
}

.map-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: var(--shadow-md);
}

.map-card:hover::before {
  transform: scale(1.1) rotate(12deg);
}

.map-card-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
}

.map-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(30, 30, 30, 0.7);
  margin-bottom: 16px;
}

.map-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: gap 0.25s ease, color 0.2s ease;
}

.map-card-link:hover {
  color: var(--deep-green);
  gap: 10px;
}

/* ============ 12. Content Strip ============ */
.content-strip {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--grass) transparent;
}

.content-strip::-webkit-scrollbar {
  height: 6px;
}

.content-strip::-webkit-scrollbar-thumb {
  background: var(--grass);
  border-radius: 3px;
}

.content-strip-inner {
  display: flex;
  gap: 20px;
  min-width: min-content;
}

.content-strip-item {
  flex: 0 0 280px;
  background: var(--light-green);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.content-strip-item:hover {
  background: var(--white);
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

/* ============ 13. Stats ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-item {
  background: var(--light-green);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: "";
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(60, 179, 113, 0.14);
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--deep-green);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(30, 30, 30, 0.7);
  margin-top: 8px;
  font-family: var(--font-head);
}

/* ============ 14. Legend ============ */
.legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grass);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15);
}

.legend-item--orange .legend-dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.legend-item--navy .legend-dot {
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.15);
}

/* ============ 15. Filter ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(30, 30, 30, 0.14);
  background: transparent;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--grass);
  color: var(--deep-green);
}

.filter-btn[data-active] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

/* ============ 16. Skip Link ============ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ============ 17. Focus & Reduced Motion ============ */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 18. Responsive ============ */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 380px);
    height: 100vh;
    background: var(--paper);
    z-index: 100;
    padding: 110px 32px 48px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out), visibility 0.45s;
    visibility: hidden;
    border-left: 1px solid rgba(30, 30, 30, 0.08);
    overflow-y: auto;
    box-shadow: 0 0 0 transparent;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -20px 0 50px rgba(30, 30, 30, 0.14);
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav .nav-link {
    display: flex;
    align-items: baseline;
    padding: 14px 16px;
    font-size: 17px;
    border-radius: var(--radius-md);
  }

  .site-nav .nav-link:hover::after,
  .site-nav .nav-link[aria-current="page"]::after {
    width: 0;
  }

  .site-nav .nav-link[aria-current="page"] {
    background: var(--light-green);
    color: var(--deep-green);
  }

  .site-nav .nav-index {
    font-size: 12px;
    min-width: 28px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .brand-name {
    font-size: 17px;
  }

  .page-hero {
    padding: 140px 0 44px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-tagline {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

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

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-number {
    font-size: 38px;
  }

  .breadcrumb {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
