*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background-color: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; }

:root {
  --bg: #0A0B0D;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --blue: #123A66;
  --blue-2: #2E6E9E;
  --green: #18E18F;
  --orange: #FF6D00;
  --text: #1A1D21;
  --text-light: #F8FAFC;
  --grid: #2A2D33;
  --grid-light: #E5E8EB;
  --muted: #7A8699;
  --font-head: 'Montserrat', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --rail-w: 260px;
  --ticker-h: 44px;
  --header-top-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .01em;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 78% 12%, rgba(46,110,158,0.20), transparent 480px),
    radial-gradient(circle at 20% 88%, rgba(24,225,143,0.05), transparent 360px),
    linear-gradient(rgba(42,45,51,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,45,51,0.28) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

body.menu-open { overflow: hidden; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: #0A0B0D; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--green);
  color: #0A0B0D;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(42,45,51,0.30) 0 1px, transparent 1px 40px);
  border-right: 1px solid var(--grid);
  isolation: isolate;
}

.header-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--grid);
  position: relative;
  z-index: 90;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  border-right: 2px solid var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.brand-meta { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .05em; color: var(--text-light); }
.brand-code { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: var(--muted); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle-bars i { display: block; width: 22px; height: 2px; background-color: var(--text-light); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.nav-toggle[data-open="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle[data-open="true"] .nav-toggle-label { color: var(--green); }

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0 8px;
  position: relative;
  z-index: 80;
  overflow-y: auto;
}
.nav-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 14px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
  border-bottom: 1px solid var(--grid);
}
.nav-rail-code { color: var(--green); }
.nav-list { display: flex; flex-direction: column; }
.nav-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 24px;
  border-left: 2px solid transparent;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--blue-2); min-width: 18px; }
.nav-item a:hover { background: rgba(46,110,158,0.14); border-left-color: var(--blue-2); color: #fff; transform: translateX(4px); }
.nav-item a[aria-current="page"] { border-left-color: var(--green); background: rgba(24,225,143,0.08); color: var(--green); }
.nav-item a[aria-current="page"] .nav-index { color: var(--green); }

.header-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: var(--bg);
  border-top: 1px solid var(--grid);
}
.status-signal { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.status-signal::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(24,225,143,0.45); border-radius: 50%; animation: pulse 2.4s ease-out infinite; }
.status-meta { display: flex; flex-direction: column; line-height: 1.3; }
.status-label { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.status-value { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--green); }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.header-ticker {
  --ticker-label-w: 76px;
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 95;
  height: var(--ticker-h);
  background-color: var(--bg);
  border-bottom: 1px solid var(--grid);
  overflow: hidden;
}
.header-ticker::before {
  content: "LIVE";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ticker-label-w);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #0A0B0D;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ticker-mask { position: absolute; top: 0; bottom: 0; left: var(--ticker-label-w); right: 0; overflow: hidden; }
.ticker-track { display: flex; align-items: center; width: max-content; height: 100%; animation: ticker 36s linear infinite; will-change: transform; }
.ticker-group { display: flex; align-items: center; height: 100%; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 32px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.ticker-item::before { content: "◆"; display: inline-block; margin-right: 8px; font-size: 6px; color: var(--green); vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-main { position: relative; min-height: 70vh; }
#main-content { scroll-margin-top: calc(var(--ticker-h) + 8px); }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: clamp(24px, 5vw, 72px); padding-right: clamp(24px, 5vw, 72px); }

.section { padding: clamp(40px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--grid); }
.section-index { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--green); }

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

.page-head { padding: clamp(32px, 6vw, 64px) 0 20px; border-bottom: 1px solid var(--grid); margin-bottom: 24px; }
.page-head::after { content: ""; display: block; width: 96px; height: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--green), transparent); }
.page-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--green); text-transform: uppercase; }
.page-title { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 200; line-height: 1.05; letter-spacing: -0.02em; color: var(--text-light); }
.page-title strong { font-weight: 800; }
.page-sub { margin-top: 10px; max-width: 640px; color: var(--muted); font-size: 14px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.breadcrumb a { color: var(--blue-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--grid); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 26px;
  background-color: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background-color: #0E2A4C; border-color: #0E2A4C; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(24,225,143,0.35); }
.btn-outline { background-color: transparent; color: var(--text-light); border-color: var(--blue-2); }
.btn-outline:hover { background-color: rgba(46,110,158,0.12); border-color: var(--green); color: var(--green); }

.card { background: var(--surface); color: var(--text); border: 1px solid var(--grid-light); border-radius: 0; padding: 32px; }
.card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.card-body { font-size: 14px; line-height: 1.75; color: var(--text); }

.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  background-color: #0B141F;
  background-image:
    radial-gradient(circle at 72% 26%, rgba(46,110,158,0.40), transparent 52%),
    linear-gradient(rgba(46,110,158,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,110,158,0.16) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 1px solid var(--grid);
}
.img-frame::before { content: attr(data-title); position: absolute; left: 0; bottom: 0; z-index: 1; padding: 8px 14px; background: rgba(10,11,13,0.9); color: var(--text-light); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; border-top: 1px solid var(--grid); border-right: 1px solid var(--grid); }
.img-frame::after { content: attr(data-index); position: absolute; top: 10px; right: 12px; z-index: 1; font-family: var(--font-mono); font-size: 11px; color: rgba(248,250,252,0.5); }

.site-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.site-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(42,45,51,0.22) 0 1px, transparent 1px 40px);
  border-top: 1px solid var(--grid);
}
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0%, transparent 16%, var(--blue-2) 40%, transparent 60%, var(--orange) 86%, transparent 100%); opacity: .75; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-trust { max-width: 460px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.footer-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); border-bottom: 1px solid var(--grid); }
.footer-index { color: var(--green); font-size: 11px; }
.footer-list li + li { margin-top: 10px; }
.footer-list a { color: var(--muted); font-size: 14px; transition: color .2s, padding-left .2s; }
.footer-list a:hover { color: var(--green); padding-left: 6px; }
.footer-contact-list li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 20px 0 28px; border-top: 1px solid var(--grid); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.green { color: var(--green); }
.orange { color: var(--orange); }

@media (min-width: 992px) {
  body { padding-left: var(--rail-w); }
  .site-main { padding-top: var(--ticker-h); }
}

@media (max-width: 991px) {
  :root { --ticker-h: 36px; }
  body { padding-left: 0; background-attachment: scroll; }

  .site-header { position: sticky; top: 0; width: 100%; height: auto; min-height: 0; border-right: none; border-bottom: 1px solid var(--grid); }
  .header-top { height: var(--header-top-h); padding: 0 20px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  .brand-title { font-size: 16px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    flex: none;
    padding: calc(var(--header-top-h) + 24px) 24px 48px;
    background-color: rgba(10,11,13,0.98);
    overflow-y: auto;
    border-top: 1px solid var(--grid);
  }
  .site-nav[data-open] { display: flex; flex-direction: column; }
  .nav-rail-head { padding: 0 4px 14px; }
  .nav-item a { min-height: 56px; padding: 0 16px; font-size: 18px; }

  .header-status { display: none; }

  .header-ticker {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    height: var(--ticker-h);
    --ticker-label-w: 64px;
  }
  .ticker-item { padding: 0 22px; font-size: 11px; }
  .ticker-track { animation-duration: 28s; }

  .site-main { padding-top: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@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;
  }
  .site-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none !important; }
  .status-signal::after { animation: none !important; }
  .skip-link { transition: none; }
}
