:root {
  --green: #0daa33;
  --green-light: #10c43b;
  --dark-900: #0a0a0a;
  --dark-800: #111111;
  --dark-700: #1a1a1a;
  --dark-600: #222222;
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #b0b0b0;
  --gray-400: #888888;
  --gray-500: #666666;
  --font-en: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

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

html {
  background: var(--dark-900);
  color: var(--white);
  font-family: var(--font-zh);
  scroll-behavior: smooth;
}

html[lang="en"] {
  font-family: var(--font-en);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 60px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
}

.nav-logo img {
  display: block;
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--white);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-300);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.lang-toggle .active-lang {
  color: var(--green);
  font-weight: 600;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

main {
  position: relative;
  padding: 128px 60px 80px;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(13, 170, 51, 0.16), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(13, 170, 51, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--dark-900);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero {
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.page-hero h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.meta-pill {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray-300);
  font-size: 13px;
}

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

.legal-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  color: var(--gray-300);
  font-size: 15px;
  line-height: 1.9;
}

.legal-card p + p,
.legal-card ul,
.legal-card ol {
  margin-top: 14px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-card strong {
  color: var(--white);
}

.single-column {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(13, 170, 51, 0.22);
  background: rgba(13, 170, 51, 0.1);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.action-link:hover {
  transform: translateY(-1px);
  background: rgba(13, 170, 51, 0.16);
}

.muted-link {
  color: var(--gray-300);
}

footer {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 36px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-logo img {
  display: block;
  height: 32px;
  width: auto;
  opacity: 0.55;
}

.footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-sitemap a {
  color: var(--gray-400);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-sitemap a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-text {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.8;
}

.footer-text a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--gray-200);
}

.error-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 208px);
  text-align: center;
}

.error-card {
  max-width: 720px;
  padding: 48px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.error-code {
  color: rgba(13, 170, 51, 0.75);
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 700;
  line-height: 0.95;
}

.error-card h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.error-card p {
  margin-top: 18px;
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    flex-direction: column;
    align-items: flex-start;
    width: min(320px, 84vw);
    height: calc(100vh - 64px);
    padding: 28px 24px;
    background: rgba(10, 10, 10, 0.98);
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  main {
    padding: 112px 24px 64px;
  }

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

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

@media (max-width: 640px) {
  .page-hero p,
  .legal-card p,
  .legal-card li,
  .error-card p {
    font-size: 15px;
  }

  .legal-card {
    padding: 24px;
  }

  .action-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
