:root {
  --bg: #0B0F19;
  --surface: #141C2B;
  --surface-alt: #1F2A3A;
  --accent: #FF6B35;
  --accent-2: #00C2FF;
  --jewel-green: #0F5A5B;
  --jewel-burgundy: #5B1A2A;
  --jewel-indigo: #3A2E6A;
  --text: #F5F7FA;
  --text-secondary: #9AA8B8;
  --border: #2A3441;
  --success: #2ECC71;
  --warning: #F1C40F;
  --font-head: "Arial Black", "Impact", "Noto Sans SC Black", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --display: clamp(2.8rem, 6vw, 4.5rem);
  --h1: clamp(2.2rem, 5vw, 3.5rem);
  --h2: clamp(1.6rem, 3vw, 2.2rem);
  --h3: clamp(1.2rem, 2vw, 1.5rem);
  --header-h: 72px;
  --container-w: 1240px;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 0 24px rgba(255, 107, 53, 0.25);
  --glow-blue: 0 0 24px rgba(0, 194, 255, 0.2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--body);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
  transform: skew(-2deg);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p {
  margin: 0 0 1rem;
}

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

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

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

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container-w));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--compact {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: var(--h2);
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--accent);
  transform: skew(-10deg);
  flex-shrink: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(0, 194, 255, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255, 107, 53, 0.14), transparent),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.display-hero {
  font-size: var(--display);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-accent);
  transform: translateY(-4px);
}

.panel--jewel-green {
  background: linear-gradient(135deg, var(--jewel-green), #083B3C);
  border-color: rgba(46, 204, 113, 0.4);
}

.panel--jewel-burgundy {
  background: linear-gradient(135deg, var(--jewel-burgundy), #310D18);
  border-color: rgba(231, 76, 60, 0.4);
}

.panel--jewel-indigo {
  background: linear-gradient(135deg, var(--jewel-indigo), #1D1540);
  border-color: rgba(142, 68, 173, 0.4);
}

.stat {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  text-shadow: var(--glow-accent);
}

.stat__label {
  color: var(--text-secondary);
  font-size: var(--small);
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: 2px;
}

.tag--accent {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.tag--blue {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(0, 194, 255, 0.08);
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.figure--hero { aspect-ratio: 16 / 9; }
.figure--wide { aspect-ratio: 21 / 9; }
.figure--card { aspect-ratio: 4 / 3; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--portrait { aspect-ratio: 3 / 4; }

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(0, 194, 255, 0.08) 100%);
  pointer-events: none;
}

.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text-secondary);
  line-height: 1.85;
}

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

.skew-band {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1.25rem;
  transform: skew(-6deg);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 1.5rem;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-secondary);
  margin-right: 0.375rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--accent-2);
  color: var(--bg);
}

.btn--blue:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.toc {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  box-shadow: var(--shadow);
}

.toc__title {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.toc__list {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.toc__link {
  display: block;
  padding: 0.375rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.toc__link.is-active {
  color: var(--accent-2);
  border-left-color: var(--accent-2);
  background: rgba(0, 194, 255, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.glow-accent {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.glow-blue {
  text-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.35);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 28, 43, 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-header.is-nav-open {
  background: rgba(20, 28, 43, 0.98);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  flex-shrink: 0;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.625rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  transform: skew(-6deg);
  box-shadow: var(--glow-accent);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transform: skew(-2deg);
}

.brand--footer .brand__mark {
  background: var(--accent-2);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.25);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.site-nav__link[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

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

.site-nav__link {
  text-align: left;
}

.site-nav__item + .site-nav__item {
  border-top: 1px solid var(--border);
}

.site-footer {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer__desc {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 46ch;
}

.footer__trust {
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 107, 53, 0.08);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
  transform: skew(-2deg);
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 0.375rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: inline-block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}

.footer__contact {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer__contact-label {
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 2.5em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__bottom p {
  margin: 0;
}

.to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  z-index: 90;
}

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

.to-top:hover {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

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

@media (max-width: 767px) {
  .header__inner {
    gap: 0.75rem;
  }

  .header__actions .btn {
    display: none;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__brand {
    grid-column: auto;
  }

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

  .to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .site-nav__item + .site-nav__item {
    border-top: none;
  }

  .site-nav__link {
    text-align: center;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
