:root {
  --green-600: #00A651;
  --green-700: #008842;
  --green-900: #1B4D3E;
  --green-100: #D2E8C5;
  --red-600: #E30613;
  --orange-500: #F58220;
  --metal-400: #8C8C8C;
  --yellow-400: #FFC700;
  --ink-900: #1A1A1A;
  --paper: #FFFFFF;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --container-width: 1240px;
  --gap: 24px;
  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-float: 0 16px 40px rgba(20, 40, 30, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-height: 88px;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(255, 199, 0, .13), transparent 44%),
    radial-gradient(ellipse at 8% 20%, rgba(0, 166, 81, .07), transparent 40%),
    linear-gradient(115deg, transparent 46%, rgba(0, 166, 81, .045) 46% 50%, transparent 50%),
    linear-gradient(75deg, transparent 72%, rgba(227, 6, 19, .045) 72% 76%, transparent 76%),
    linear-gradient(90deg, rgba(27, 77, 62, .025) 1px, transparent 1px),
    linear-gradient(rgba(27, 77, 62, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, auto, 48px 48px, 48px 48px, auto;
  padding-top: var(--header-height);
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-height) + 8px);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: var(--green-600);
  color: var(--paper);
}

.container {
  width: min(100% - 48px, var(--container-width));
  margin-inline: auto;
}

/* ---------- 通用排版 ---------- */

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.section-title::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: .18em;
  margin-left: .15em;
  background: var(--green-600);
  transform: skew(-18deg);
}

.section-title mark {
  background: transparent;
  color: var(--red-600);
}

.section-subtitle {
  margin-top: 10px;
  color: var(--metal-400);
  font-size: 16px;
}

/* ---------- 通用网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--red {
  background: var(--red-600);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(227, 6, 19, .3);
}

.btn--green {
  background: var(--green-600);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(0, 166, 81, .3);
}

.btn--orange {
  background: var(--orange-500);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  border: 2px solid currentColor;
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--metal-400);
}

.breadcrumb a {
  color: var(--green-700);
  font-weight: 600;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--metal-400);
  font-family: var(--font-mono);
}

/* ---------- 图片容器 ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--green-100);
  border-radius: var(--radius-md);
}

.media > img,
.media > video,
.media > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--3x2 {
  aspect-ratio: 3 / 2;
}

.media--1x1 {
  aspect-ratio: 1;
}

.media--4x5 {
  aspect-ratio: 4 / 5;
}

.media--21x9 {
  aspect-ratio: 21 / 9;
}

/* ---------- 地图图例 / 数据组件 ---------- */

.map-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.map-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--metal-400);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--yellow-400);
  color: var(--ink-900);
}

/* ---------- 头部 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 14px;
  pointer-events: none;
  transition: padding-top .3s var(--ease-out);
}

.site-header.is-scrolled {
  padding-top: 8px;
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--red-600), var(--yellow-400));
  z-index: 5;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  max-width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  min-height: 64px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .09) 46%, transparent 62%),
    linear-gradient(112deg, rgba(27, 77, 62, .94) 0%, rgba(27, 77, 62, .9) 34%, rgba(0, 166, 81, .86) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 20px;
  transition: min-height .3s var(--ease-out), padding .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative;
}

.site-header.is-scrolled .nav-island {
  min-height: 52px;
  padding-block: 6px;
  box-shadow: 0 8px 26px rgba(20, 40, 30, .16);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--yellow-400);
  outline-offset: 2px;
}

/* ---------- 品牌标识 ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__copy strong {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--paper);
}

.brand__copy small {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--green-100);
  margin-top: 3px;
  white-space: nowrap;
}

.brand__crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
  border: 2px solid rgba(255, 255, 255, .6);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.brand__crest::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--paper);
  clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
  transform: translate(-50%, -50%) rotate(36deg);
}

.brand__crest::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  background: var(--red-600);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}

.brand--footer {
  margin-bottom: 20px;
}

/* ---------- 导航链接 ---------- */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links__link {
  position: relative;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.nav-links__link::before {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--yellow-400);
  vertical-align: 2px;
  margin-right: 4px;
}

.nav-links__link:nth-child(1)::before { content: "01"; }
.nav-links__link:nth-child(2)::before { content: "02"; }
.nav-links__link:nth-child(3)::before { content: "03"; }
.nav-links__link:nth-child(4)::before { content: "04"; }
.nav-links__link:nth-child(5)::before { content: "05"; }
.nav-links__link:nth-child(6)::before { content: "06"; }

.nav-links__link:hover {
  background: rgba(255, 255, 255, .14);
  color: var(--paper);
}

.nav-links__link[aria-current="page"] {
  background: var(--red-600);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(227, 6, 19, .35);
}

.nav-links__link[aria-current="page"]::before {
  color: var(--paper);
}

/* ---------- 头部操作区 ---------- */

.nav-island__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-600);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(227, 6, 19, .32);
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  white-space: nowrap;
}

.btn-match:hover {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(227, 6, 19, .4);
}

.btn-match__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-400);
  box-shadow: 0 0 0 0 rgba(255, 199, 0, .5);
  animation: heartbeat 1.6s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 199, 0, .5);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(255, 199, 0, 0);
  }
}

/* ---------- 移动导航按钮 ---------- */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background .2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .24);
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}

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

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

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

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .82);
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}

.site-footer__field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600) 0 45%, var(--red-600) 45% 70%, var(--yellow-400) 70%);
  z-index: 1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

.site-footer__slogan {
  font-size: 24px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 16px;
}

.site-footer__note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 420px;
}

.site-footer__heading {
  font-size: 15px;
  color: var(--green-100);
  letter-spacing: .12em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, .14);
}

.site-footer__linklist li + li,
.site-footer__contactlist li + li {
  margin-top: 12px;
}

.site-footer__linklist a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.site-footer__linklist a:hover {
  color: var(--paper);
  padding-left: 6px;
}

.site-footer__contactlist li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}

.site-footer__contactlist li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-top: 10px;
}

.site-footer__legal {
  margin-top: 24px;
  font-size: 14px;
}

.site-footer__legal a {
  color: var(--yellow-400);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__legal span {
  margin: 0 8px;
  opacity: .5;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  position: relative;
  z-index: 1;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, .64);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .nav-links__link {
    padding: 10px 9px;
    font-size: 14px;
  }

  .nav-links__link::before {
    display: none;
  }

  .btn-match {
    padding: 10px 14px;
  }
}

@media (max-width: 980px) {
  .nav-island {
    padding: 8px 8px 8px 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(27, 77, 62, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-float);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s ease, transform .25s var(--ease-out), visibility .25s;
  }

  .nav-links[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-links__link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .nav-links__link::before {
    display: inline-block;
    margin-right: 10px;
    font-size: 11px;
  }

  .nav-links__link[aria-current="page"] {
    background: var(--red-600);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 48px;
  }
}

@media (max-width: 520px) {
  .btn-match__label {
    display: none;
  }

  .btn-match {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .brand__copy small {
    display: none;
  }

  .brand__copy strong {
    font-size: 20px;
  }

  .nav-island {
    gap: 8px;
  }
}

/* ---------- 可访问性 ---------- */

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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