:root {
  --bg-primary: #0A1628;
  --bg-secondary: #1B3A5C;
  --bg-deep: #07111F;
  --star-gold: #F2C94C;
  --aurora-green: #00D4AA;
  --warm-paper: #F4E9D8;
  --ink-black: #0D0D0D;
  --iron-gray: #A0AAB5;
  --cosmic-violet: #7B5EA7;
  --font-display: "Noto Sans CJK SC Heavy", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans CJK SC Light", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --header-h: auto;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--warm-paper);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--aurora-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--star-gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 900;
}

:focus-visible {
  outline: 2px solid var(--star-gold);
  outline-offset: 2px;
}

::selection {
  background: var(--star-gold);
  color: var(--ink-black);
}

#main-content:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2.5rem;
  }
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--star-gold);
  color: var(--ink-black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--ink-black);
}

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

.btn-primary {
  background: linear-gradient(135deg, #F2C94C 0%, #E5B33D 100%);
  color: var(--ink-black);
  border-color: rgba(242, 201, 76, 0.6);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.15), 0 4px 16px rgba(242, 201, 76, 0.15);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFD75E 0%, #F2C94C 100%);
  color: var(--ink-black);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.25), 0 8px 24px rgba(242, 201, 76, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--star-gold);
  border-color: rgba(242, 201, 76, 0.5);
}

.btn-secondary:hover {
  background: rgba(242, 201, 76, 0.08);
  border-color: var(--star-gold);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(1px 1px at 30% 40%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 72% 62%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 52% 24%, rgba(242, 201, 76, 0.3), transparent),
    radial-gradient(1px 1px at 88% 20%, rgba(0, 212, 170, 0.2), transparent),
    linear-gradient(180deg, #0C1D34 0%, #0A1628 100%);
  border-bottom: 1px solid rgba(160, 170, 181, 0.15);
  backdrop-filter: blur(10px);
}

.header-top {
  border-bottom: 1px solid rgba(160, 170, 181, 0.08);
}

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.875rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 1.375rem;
  line-height: 1;
  color: var(--star-gold);
  text-shadow: 0 0 12px rgba(242, 201, 76, 0.45), 0 0 28px rgba(242, 201, 76, 0.15);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--warm-paper);
  line-height: 1.2;
}

.brand-ver {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--star-gold);
  background: rgba(242, 201, 76, 0.1);
  border: 1px solid rgba(242, 201, 76, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 999px;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-green);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--aurora-green);
  letter-spacing: 0.06em;
}

.btn-entry {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(160, 170, 181, 0.35);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--star-gold);
  background: rgba(242, 201, 76, 0.06);
}

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

.nav-toggle[data-open] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[data-open] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[data-open] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-command {
  background: rgba(7, 17, 31, 0.6);
}

.nav-command-inner {
  display: flex;
  align-items: stretch;
}

.nav-link {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--iron-gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link + .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(160, 170, 181, 0.15);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--star-gold);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-label {
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--warm-paper);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index {
  opacity: 1;
  color: var(--aurora-green);
}

.nav-link[aria-current="page"] {
  color: var(--warm-paper);
  border-bottom-color: var(--star-gold);
  background: linear-gradient(180deg, rgba(242, 201, 76, 0.08), transparent 80%);
}

.nav-link[aria-current="page"] .nav-index {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--star-gold), var(--aurora-green));
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(242, 201, 76, 0.4);
}

.site-footer {
  background:
    radial-gradient(1px 1px at 20% 85%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(242, 201, 76, 0.12), transparent),
    radial-gradient(1.5px 1.5px at 60% 40%, rgba(123, 94, 167, 0.15), transparent),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(242, 201, 76, 0.12);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand-link {
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--iron-gray);
  max-width: 52ch;
  margin-top: 1rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star-gold);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(242, 201, 76, 0.2);
}

.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(160, 170, 181, 0.08);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--star-gold);
  opacity: 0.7;
}

.contact-value {
  font-size: 0.875rem;
  color: var(--warm-paper);
  opacity: 0.85;
  word-break: break-all;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--iron-gray);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--star-gold);
  padding-left: 0.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(160, 170, 181, 0.1);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(160, 170, 181, 0.6);
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(160, 170, 181, 0.5);
  text-align: right;
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--iron-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(160, 170, 181, 0.4);
}

.breadcrumb-link {
  color: var(--star-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--aurora-green);
  text-decoration: underline;
}

.breadcrumb-item.is-current {
  color: var(--warm-paper);
}

.page-head {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(160, 170, 181, 0.08);
  margin-bottom: 2rem;
}

.page-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-green);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--warm-paper);
  letter-spacing: 0.02em;
}

.page-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--iron-gray);
  max-width: 60ch;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora-green);
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--warm-paper);
  margin-top: 0.25rem;
}

.section-desc {
  color: var(--iron-gray);
  margin-top: 0.5rem;
  max-width: 65ch;
}

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

@media (min-width: 768px) {
  .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: linear-gradient(180deg, rgba(27, 58, 92, 0.4), rgba(27, 58, 92, 0.12));
  border: 1px solid rgba(160, 170, 181, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(242, 201, 76, 0.35);
  background-color: rgba(27, 58, 92, 0.28);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--warm-paper);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--iron-gray);
}

.tabs {
  margin-bottom: 2rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(160, 170, 181, 0.2);
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  color: var(--iron-gray);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--warm-paper);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn[aria-selected="true"] {
  color: var(--star-gold);
  border-bottom-color: var(--star-gold);
  background: rgba(242, 201, 76, 0.05);
}

.tab-panel {
  padding: 1.5rem;
  background: rgba(27, 58, 92, 0.25);
  border: 1px solid rgba(160, 170, 181, 0.12);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.tab-panel[hidden] {
  display: none;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  background: rgba(27, 58, 92, 0.3);
  border: 1px solid rgba(160, 170, 181, 0.12);
  border-top: 2px solid var(--star-gold);
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--aurora-green);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--iron-gray);
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.media {
  position: relative;
  overflow: hidden;
  background-color: #0D1B2D;
  background-image:
    radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 75% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 45% 75%, rgba(242, 201, 76, 0.4), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(0, 212, 170, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, rgba(123, 94, 167, 0.45), transparent),
    linear-gradient(160deg, rgba(27, 58, 92, 0.25), rgba(10, 22, 40, 0.7));
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 170, 181, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 170, 181, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, transparent 25%, black 100%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 25%, black 100%);
  pointer-events: none;
}

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

.media-square {
  aspect-ratio: 1 / 1;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].js-reveal-init {
  opacity: 0;
  transform: translateY(24px);
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .header-top-inner {
    gap: 0.875rem;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-ver {
    display: none;
  }

  .live-text {
    display: none;
  }

  .header-status {
    padding: 0.375rem;
  }

  .live-dot {
    width: 8px;
    height: 8px;
  }

  .btn-entry {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

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

  .nav-command {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: linear-gradient(180deg, #0C1D34 0%, #0A1628 100%);
    border-bottom: 1px solid rgba(242, 201, 76, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding-inline: 1.25rem;
  }

  .nav-command[data-open] {
    max-height: 480px;
    opacity: 1;
  }

  .nav-command-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 0.5rem;
    gap: 0;
  }

  .nav-link {
    flex: none;
    justify-content: flex-start;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(160, 170, 181, 0.08);
    border-radius: 0;
  }

  .nav-link + .nav-link::before {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(242, 201, 76, 0.05);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 0.9375rem;
  }

  .btn-entry {
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
  }

  .header-top-inner {
    gap: 0.625rem;
  }
}

@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;
    transition-delay: 0s !important;
  }

  .live-dot {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  [data-reveal],
  [data-reveal].js-reveal-init,
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .card:hover {
    transform: none;
  }
}
