:root {
  --deep-space-blue: #0A1A2F;
  --mineral-slate: #2A3B4C;
  --mineral-moss: #5C6B4D;
  --mineral-terracotta: #C47E5A;
  --mineral-cream: #F2E9D8;
  --electric-gold: #FFD700;
  --neon-purple: #8A2BE2;
  --alert-red: #E63946;
  --text-muted: #A9B8C6;
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --font-display: "Orbitron", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container-max: 1280px;
  --content-max: 1120px;
  --gap: clamp(20px, 3.2vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--deep-space-blue);
  color: var(--mineral-cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--mineral-cream);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--mineral-cream);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

button {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

::selection {
  background: var(--neon-purple);
  color: var(--mineral-cream);
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 12px 24px;
  background: var(--neon-purple);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 26, 47, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-stroke);
}

.header-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--electric-gold);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(10, 26, 47, 0.55));
  border: 1px solid var(--glass-stroke);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.22);
  letter-spacing: 0.04em;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-type-cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--mineral-cream);
}

.brand-type-en {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-gold);
  margin-top: 2px;
}

.masthead-meta {
  flex-shrink: 0;
}

.current-draw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--glass-stroke);
  border-radius: 999px;
  background: rgba(42, 59, 76, 0.4);
  font-family: var(--font-mono);
}

.current-draw-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.current-draw-number {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--electric-gold);
}

.current-draw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert-red);
  box-shadow: 0 0 10px var(--alert-red);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--glass-stroke);
  border-bottom: 1px solid var(--glass-stroke);
  min-height: 48px;
}

.primary-nav {
  width: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 28px);
  flex-wrap: wrap;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 15px 6px 13px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mineral-cream);
  opacity: 0.85;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 2px;
  background: var(--electric-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--electric-gold);
  opacity: 1;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--glass-stroke);
  border-radius: 8px;
  padding: 14px 12px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--mineral-cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  min-width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-gold), var(--neon-purple));
  z-index: 4;
  pointer-events: none;
}

.site-footer {
  background: #08131F;
  border-top: 1px solid var(--glass-stroke);
  margin-top: clamp(64px, 10vh, 120px);
}

.footer-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 48px) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--mineral-cream);
}

.footer-brand-en {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-gold);
  margin-top: 4px;
}

.footer-trust {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 44em;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mineral-cream);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-stroke);
  margin-bottom: 16px;
}

.footer-sitemap ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col ul a:hover {
  color: var(--electric-gold);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.footer-note {
  font-size: 0.78rem !important;
  color: var(--text-muted);
  opacity: 0.78;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--glass-stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.site-main {
  min-height: 70vh;
}

.page-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 48px);
}

.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section--tight {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 60ch;
}

.page-header {
  margin-bottom: clamp(32px, 6vw, 56px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-stroke);
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-gold);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.05;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 62ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--electric-gold);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
  opacity: 0.7;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

.glass-card {
  background: rgba(42, 59, 76, 0.38);
  border: 1px solid var(--glass-stroke);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(20px, 3vw, 28px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.cut-panel {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--electric-gold);
  color: #0A1A2F;
}

.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.25);
  color: #0A1A2F;
}

.btn-ghost {
  background: rgba(42, 59, 76, 0.3);
  border-color: var(--glass-stroke);
  color: var(--mineral-cream);
}

.btn-ghost:hover {
  border-color: var(--electric-gold);
  color: var(--electric-gold);
  background: rgba(255, 215, 0, 0.08);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-stroke);
  color: var(--text-muted);
}

.tag--moss {
  background: rgba(92, 107, 77, 0.25);
  border-color: rgba(92, 107, 77, 0.45);
  color: var(--mineral-cream);
}

.tag--terracotta {
  background: rgba(196, 126, 90, 0.2);
  border-color: rgba(196, 126, 90, 0.45);
  color: var(--mineral-cream);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--electric-gold);
}

.index-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.divider {
  border: 0;
  border-top: 1px solid var(--glass-stroke);
  margin: 32px 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10243A, #0A1A2F);
  border: 1px solid var(--glass-stroke);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.media-frame::before {
  content: attr(data-placeholder);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
  padding: 16px;
}

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

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

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

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-stroke);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(138, 43, 226, 0.09);
}

.data-table td {
  font-family: var(--font-mono);
  color: var(--mineral-cream);
}

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

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

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

@media (max-width: 880px) {
  .nav-row {
    min-height: 0;
    padding: 10px 0;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    right: 0;
    top: auto;
    transform: none;
  }

  .primary-nav {
    flex-basis: 100%;
    display: none;
  }

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

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

  .nav-list a {
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-stroke);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .nav-list a::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .brand-type-cn {
    font-size: 1.1rem;
  }

  .brand-type-en {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .current-draw-label {
    display: none;
  }

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

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

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

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

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

  html {
    scroll-behavior: auto;
  }
}
