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

:root {
  --bg: #0a0e14;
  --panel: #101c2e;
  --panel-2: #16233f;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #00ffcc;
  --violet: #b388ff;
  --orange: #ff6b35;
  --green: #00cc88;
  --yellow: #ffcc00;
  --radius: 8px;
  --header-h: 64px;
  --max-w: 1200px;
  --font-display: "Space Grotesk", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--panel-2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  padding-top: calc(var(--header-h) + 28px);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

small {
  color: var(--muted);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(0, 255, 204, 0.2);
}

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

.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;
  clip-path: inset(50%);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  color: var(--accent);
}

.prose h2,
.prose h3 {
  margin-top: 2em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container--narrow {
  max-width: 860px;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: 32px;
}

.section-heading {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-heading .eyebrow {
  display: block;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  background: var(--accent);
  color: #062a24;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
  pointer-events: auto;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 250;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--orange));
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.5);
  transition: width 0.1s linear;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: min(1120px, 100%);
  padding: 8px 10px 8px 18px;
  background: rgba(22, 35, 63, 0.78);
  border: 1px solid rgba(0, 255, 204, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.14), rgba(179, 136, 255, 0.14));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(135deg, var(--accent) 45%, transparent 45%, transparent 55%, var(--violet) 55%);
  border-radius: 2px;
}

.brand-name {
  letter-spacing: 0.02em;
}

.site-nav {
  margin-inline: auto;
}

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

.site-nav-list a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.site-nav-list a:hover {
  color: var(--text);
  background: rgba(0, 255, 204, 0.08);
  text-decoration: none;
}

.site-nav-list a[aria-current="page"] {
  color: var(--accent);
  background: rgba(0, 255, 204, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 204, 0.28);
}

.lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
  user-select: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 204, 0.28);
  background: var(--panel-2);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

.nav-toggle-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-line:nth-child(1) {
  transform: translate(-50%, calc(-50% - 5px));
}

.nav-toggle-line:nth-child(3) {
  transform: translate(-50%, calc(-50% + 5px));
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

a.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #062a24;
}

.btn--primary:hover {
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(0, 255, 204, 0.5);
  color: var(--accent);
}

.btn--ghost:hover {
  background: rgba(0, 255, 204, 0.1);
}

.btn--orange {
  background: var(--orange);
  color: #1f0a00;
}

.btn--orange:hover {
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: #3d4650;
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 600;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 204, 0.25);
}

.card--accent {
  border-left: 3px solid var(--accent);
}

.card--accent:hover {
  border-left-color: var(--accent);
}

.card--violet {
  border-left: 3px solid var(--violet);
}

.card--violet:hover {
  border-left-color: var(--violet);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.stat-trend {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-trend--down {
  color: var(--orange);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge--accent {
  background: rgba(0, 255, 204, 0.1);
  color: var(--accent);
  border-color: rgba(0, 255, 204, 0.25);
}

.badge--orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
  border-color: rgba(255, 107, 53, 0.3);
}

.badge--violet {
  background: rgba(179, 136, 255, 0.12);
  color: var(--violet);
  border-color: rgba(179, 136, 255, 0.25);
}

.badge--success {
  background: rgba(0, 204, 136, 0.12);
  color: var(--green);
  border-color: rgba(0, 204, 136, 0.25);
}

.badge--warn {
  background: rgba(255, 204, 0, 0.1);
  color: var(--yellow);
  border-color: rgba(255, 204, 0, 0.25);
}

.tabs {
  margin-bottom: 24px;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.tabs__button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs__button:hover {
  color: var(--text);
  border-color: rgba(0, 255, 204, 0.4);
}

.tabs__button[aria-selected="true"] {
  background: rgba(0, 255, 204, 0.12);
  color: var(--accent);
  border-color: rgba(0, 255, 204, 0.45);
}

.tabs__panel[hidden] {
  display: none;
}

.image-placeholder {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.06), rgba(179, 136, 255, 0.06)), var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.image-placeholder::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  z-index: 2;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 255, 204, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 204, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}

.image-placeholder--wide {
  aspect-ratio: 16 / 9;
}

.image-placeholder--square {
  aspect-ratio: 1 / 1;
}

.image-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.site-footer {
  margin-top: clamp(56px, 10vw, 112px);
  background: radial-gradient(1200px 360px at 20% 0%, rgba(0, 255, 204, 0.06), transparent 60%), radial-gradient(800px 320px at 90% 10%, rgba(179, 136, 255, 0.05), transparent 55%), linear-gradient(180deg, var(--panel), #05080d);
  border-top: 1px solid rgba(0, 255, 204, 0.14);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 45%, var(--violet) 70%, transparent 95%);
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.07), transparent 65%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

.footer-brand-col {
  max-width: 420px;
}

.footer-brand-col .brand {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand-col .brand-glyph {
  width: 28px;
  height: 28px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.footer-trust {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 255, 204, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.footer-links {
  list-style: none;
  overflow: hidden;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

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

.footer-meta {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-meta-label {
  color: var(--accent);
  font-weight: 600;
  min-width: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0 20px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-icp {
  color: var(--muted);
  letter-spacing: 0.03em;
}

.brand--inverse {
  color: var(--text);
}

.brand--inverse:hover {
  color: var(--accent);
}

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 72px;
  }

  .site-header {
    padding: 8px 12px 0;
  }

  .nav-island {
    gap: 6px 10px;
    padding: 6px 6px 6px 14px;
    border-radius: 20px;
  }

  .lang-label {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    margin: 2px 0 0;
    padding: 12px 8px 8px;
    border-top: 1px solid rgba(0, 255, 204, 0.14);
  }

  .site-nav[data-open] {
    display: block;
  }

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

  .site-nav-list a {
    display: block;
    padding: 12px 14px;
    text-align: center;
  }

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

  .footer-brand-col {
    max-width: none;
  }
}

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

@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;
  }
}
