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

:root {
  --green-deep: #062D22;
  --green-mid: #0B6B3A;
  --lime-bright: #A6D33C;
  --orange-core: #F95A00;
  --amber-accent: #FFB020;
  --off-white: #F5F3EC;
  --dark-void: #0A1E18;
  --gray-line: #E2DED7;
  --ink: #111111;
  --text-mute: #4A4A4A;
  --white: #FFFFFF;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Alibaba PuHuiTi", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", Consolas, monospace;

  --container-max: 1400px;
  --container-pad: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

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

::selection {
  background: var(--lime-bright);
  color: var(--green-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 80px;
}

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

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-header {
  padding-block: 48px 24px;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.page-lead {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 720px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--orange-core);
  color: var(--white);
}

.btn-primary:hover {
  background: #E14E00;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--lime-bright);
  color: var(--lime-bright);
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: var(--off-white);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-dark {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  border-color: var(--green-deep);
}

.card-dark h1,
.card-dark h2,
.card-dark h3 {
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  padding-block: 12px;
}

.breadcrumb a {
  color: var(--green-mid);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--orange-core);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gray-line);
}

.media-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 45%, rgba(166, 211, 60, 0.12) 45%, rgba(166, 211, 60, 0.12) 50%, transparent 50%),
    linear-gradient(115deg, transparent 60%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.05) 65%, transparent 65%);
  animation: media-scan 3s linear infinite;
}

@keyframes media-scan {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--green-mid);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-lime {
  background: var(--lime-bright);
  color: var(--green-deep);
}

.badge-orange {
  background: var(--orange-core);
  color: var(--white);
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--gray-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--white);
  color: var(--text-mute);
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 300;
  padding: 8px 16px;
  background: var(--orange-core);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber-accent), var(--orange-core));
  transition: width 0.15s linear;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-core);
  color: var(--white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(249, 90, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #E14E00;
  transform: translateY(-3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--green-deep);
  border-bottom: 2px solid var(--orange-core);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--container-max);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.header-brand-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 30px;
}

.header-brand-line {
  display: block;
  height: 2px;
  border-radius: 2px;
}

.header-brand-line:nth-child(1) {
  width: 100%;
  background: var(--lime-bright);
}

.header-brand-line:nth-child(2) {
  width: 70%;
  background: var(--amber-accent);
}

.header-brand-line:nth-child(3) {
  width: 40%;
  background: var(--orange-core);
}

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

.header-brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.header-brand-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.header-update-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-bright);
  box-shadow: 0 0 0 0 rgba(166, 211, 60, 0.6);
  animation: header-pulse 2s infinite ease;
}

@keyframes header-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 211, 60, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(166, 211, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(166, 211, 60, 0);
  }
}

.header-update-text {
  line-height: 1.4;
}

.header-kbd {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--amber-accent);
}

.nav-label {
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  background-color: rgba(249, 90, 0, 0.16);
  color: var(--white);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-core);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  transition: background-color 0.2s ease;
}

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

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

.site-footer {
  margin-top: 80px;
  background: var(--dark-void);
  color: rgba(255, 255, 255, 0.65);
  border-top: 4px solid var(--orange-core);
}

.footer-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px var(--container-pad) 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
  padding-right: 16px;
}

.footer-brand-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.2;
  padding-left: 16px;
  position: relative;
}

.footer-brand-logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: var(--orange-core);
  border-radius: 2px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lime-bright);
  letter-spacing: 0.06em;
}

.footer-trust {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--lime-bright);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--amber-accent);
  padding-left: 4px;
}

.footer-info {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.footer-info .footer-heading {
  margin-bottom: 12px;
}

.footer-info-item {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
}

.footer-copy {
  font-size: 13px;
}

.footer-icp {
  font-size: 13px;
}

.footer-disclaimer {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
  .header-kbd {
    display: none;
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--green-deep);
    border-bottom: 2px solid var(--orange-core);
    padding: 16px 24px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .header-container {
    gap: 8px;
  }

  .header-brand-name {
    font-size: 18px;
  }

  .header-brand-sub {
    display: none;
  }

  .header-brand-mark {
    width: 24px;
  }

  .header-update-text {
    display: none;
  }

  .header-update {
    padding: 6px;
    border-radius: 50%;
  }

  .section {
    padding-block: 48px;
  }

  .page-header {
    padding-block: 32px 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-disclaimer {
    margin-left: 0;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .scroll-progress-bar {
    transition: none;
  }
}
