/* ========== Reset & Variables ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #1B3B6F #121212;
  scrollbar-width: thin;
}
body {
  min-height: 100vh;
  font-family: "Open Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #F5F5F0;
  background-color: #121212;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.012) 0 8px, transparent 8px 16px),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 24px 24px, 24px 24px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #B0C4DE; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #39FF14; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: "Arial Black", "Impact", "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F5F5F0;
}
:focus-visible {
  outline: 3px solid #39FF14;
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: #39FF14; color: #121212; }

/* ========== CSS Variables ========== */
:root {
  --c-primary: #1B3B6F;
  --c-neon: #39FF14;
  --c-accent: #FF6B35;
  --c-bg: #121212;
  --c-card: #0E1E36;
  --c-text: #F5F5F0;
  --c-dim: #A8A29E;
  --c-success: #4A7C59;
  --c-warning: #C77B5A;
  --c-light: #B0C4DE;
  --font-heading: "Arial Black", "Impact", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-data: "Courier New", "Roboto Mono", monospace;
  --font-body: "Open Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-top-h: 38px;
  --header-main-h: 72px;
  --header-total: calc(var(--header-top-h) + var(--header-main-h));
  --container-w: 1240px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 32px;
  --sp-xl: 64px;
  --radius: 4px;
}

/* ========== Container & Grid ========== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
#main-content {
  padding-top: var(--header-total);
  position: relative;
}

/* ========== Accessibility utilities ========== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 24px;
  background: #39FF14;
  color: #121212;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  color: #121212;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 3000;
  background: linear-gradient(90deg, #39FF14 0%, #FF6B35 100%);
  box-shadow: 0 0 12px rgba(57,255,20,0.4);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  font-family: var(--font-body);
}
.header-topbar {
  background: linear-gradient(90deg, #1B3B6F 0%, #0E1E36 100%);
  border-bottom: 1px solid rgba(57,255,20,0.25);
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.header-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-top-h);
  height: 4px;
  background: linear-gradient(90deg, #39FF14 0%, rgba(57,255,20,0) 45%, #FF6B35 100%);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 60% 0, 55% 100%, 50% 0, 45% 100%, 38% 0, 0 0);
  opacity: 0.7;
  pointer-events: none;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #B0C4DE;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #39FF14;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(57,255,20,0.6);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(57,255,20,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(57,255,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,255,20,0); }
}
.quick-entry {
  display: flex;
  align-items: center;
  gap: 4px;
}
.quick-entry-link {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #F5F5F0;
  border: 1px solid rgba(245,245,240,0.2);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.quick-entry-link:hover {
  border-color: #39FF14;
  color: #39FF14;
  background: rgba(57,255,20,0.06);
}
.btn-entry-cn {
  margin-left: 10px;
  padding: 3px 12px;
  font-size: 12px;
}
.site-header-main {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  height: var(--header-main-h);
  display: flex;
  align-items: center;
}
.site-header.is-scrolled .site-header-main {
  background: linear-gradient(180deg, rgba(14,30,54,0.98) 0%, rgba(18,18,18,0.96) 100%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(57,255,20,0.2);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-cn {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  color: #F5F5F0;
  letter-spacing: 0.04em;
}
.brand-line {
  width: 34px;
  height: 4px;
  background: linear-gradient(90deg, #39FF14, #FF6B35);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  align-self: center;
}
.brand-en {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #A8A29E;
  text-transform: uppercase;
}
.site-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F5F5F0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  background: #39FF14;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover {
  color: #39FF14;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: #39FF14;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-toggle:hover {
  border-color: #39FF14;
}
.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #39FF14;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-neon {
  background: #39FF14;
  color: #0a0a0a;
  border-color: #39FF14;
  box-shadow: 0 0 18px rgba(57,255,20,0.25);
}
.btn-neon:hover {
  background: #2ee60e;
  border-color: #2ee60e;
  box-shadow: 0 0 28px rgba(57,255,20,0.45);
  transform: translateY(-2px);
  color: #0a0a0a;
}
.btn-accent {
  background: #FF6B35;
  color: #121212;
  border-color: #FF6B35;
}
.btn-accent:hover {
  background: #e55524;
  border-color: #e55524;
  box-shadow: 0 0 24px rgba(255,107,53,0.4);
  transform: translateY(-2px);
  color: #121212;
}
.btn-ghost {
  background: transparent;
  color: #F5F5F0;
  border-color: rgba(245,245,240,0.35);
}
.btn-ghost:hover {
  border-color: #39FF14;
  color: #39FF14;
  background: rgba(57,255,20,0.05);
  transform: translateY(-1px);
}

/* ========== Tags & Status ========== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(27,59,111,0.6);
  border: 1px solid rgba(176,196,222,0.3);
  color: #B0C4DE;
  border-radius: 2px;
  text-transform: uppercase;
}
.tag-hot {
  background: rgba(255,107,53,0.15);
  border-color: rgba(255,107,53,0.6);
  color: #FF6B35;
}
.tag-neon {
  background: rgba(57,255,20,0.1);
  border-color: rgba(57,255,20,0.5);
  color: #39FF14;
}

/* ========== Sections ========== */
.section {
  position: relative;
  padding: 72px 0;
}
.section-dark {
  background: #0E1E36;
}
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}
.section-index {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: #39FF14;
  border: 1px solid rgba(57,255,20,0.4);
  padding: 4px 10px;
  line-height: 1.2;
  white-space: nowrap;
  transform: skewX(-12deg);
}
.section-index span {
  display: inline-block;
  transform: skewX(12deg);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 16px;
  color: #A8A29E;
  max-width: 560px;
  margin-top: 4px;
}
.slice-line {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #39FF14 0%, #1B3B6F 60%, #FF6B35 100%);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  border: none;
  margin: 24px 0;
  opacity: 0.85;
}
.slice-line-light {
  height: 4px;
  background: linear-gradient(90deg, rgba(57,255,20,0.6), rgba(255,107,53,0.6));
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

/* ========== Cards ========== */
.data-card {
  position: relative;
  background: linear-gradient(160deg, #0E1E36 0%, #132a4d 100%);
  border: 1px solid rgba(57,255,20,0.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #39FF14 0%, rgba(57,255,20,0) 70%);
  clip-path: polygon(0 0, 55% 0, 40% 100%, 0 100%);
}
.data-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57,255,20,0.4);
  box-shadow: 0 16px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(57,255,20,0.1), 0 0 22px rgba(57,255,20,0.08);
}
.data-value {
  font-family: var(--font-data);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: #39FF14;
  letter-spacing: -0.02em;
  display: block;
}
.data-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #A8A29E;
  font-weight: 700;
  margin-top: 6px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ========== Media Frame ========== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: #0E1E36;
  min-height: 200px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.media-frame:hover img {
  transform: scale(1.04);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #A8A29E;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: #B0C4DE;
  font-weight: 600;
}
.breadcrumb a:hover {
  color: #39FF14;
}
.breadcrumb .breadcrumb-current {
  color: #39FF14;
  font-weight: 700;
}
.breadcrumb-sep {
  color: #A8A29E;
  margin: 0 2px;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0a0d16 0%, #121212 100%);
  border-top: 1px solid rgba(57,255,20,0.15);
  padding-top: 56px;
  overflow: hidden;
}
.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #39FF14 0%, #1B3B6F 45%, #FF6B35 100%);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  opacity: 0.9;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  color: #F5F5F0;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.footer-logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: #39FF14;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.footer-logo:hover {
  color: #39FF14;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #FF6B35;
  letter-spacing: 0.14em;
}
.footer-trust {
  margin-top: 14px;
  font-size: 13px;
  color: #A8A29E;
  line-height: 1.7;
  max-width: 340px;
}
.footer-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #B0C4DE;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, #39FF14, transparent);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.footer-list li {
  margin-bottom: 10px;
}
.footer-list a {
  font-size: 14px;
  color: #A8A29E;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-list a:hover {
  color: #39FF14;
  padding-left: 4px;
}
.footer-contact {
  margin-top: 18px;
  font-size: 13px;
  color: #A8A29E;
  line-height: 1.6;
  border-left: 3px solid rgba(57,255,20,0.4);
  padding-left: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(245,245,240,0.08);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #A8A29E;
}
.footer-copy, .footer-icp, .footer-address {
  margin: 0;
}
.footer-icp {
  color: #B0C4DE;
  font-weight: 600;
}

/* ========== Reveal Animation ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .section {
    padding: 56px 0;
  }
}
@media (max-width: 768px) {
  :root {
    --header-top-h: 34px;
    --header-main-h: 62px;
    --header-total: calc(var(--header-top-h) + var(--header-main-h));
  }
  .header-topbar-inner {
    gap: 8px;
  }
  .quick-entry-link {
    display: none;
  }
  .btn-entry-cn {
    display: inline-flex !important;
    margin-left: 0;
    padding: 2px 10px;
    font-size: 11px;
  }
  .live-status {
    font-size: 11px;
  }
  .site-header-inner {
    gap: 12px;
  }
  .brand-cn {
    font-size: 24px;
  }
  .brand-line {
    width: 24px;
    height: 3px;
  }
  .brand-en {
    font-size: 9px;
  }
  .site-nav {
    position: fixed;
    top: var(--header-total);
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: rgba(14,30,54,0.97);
    backdrop-filter: blur(10px);
    border-left: 3px solid #39FF14;
    box-shadow: -16px 0 48px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin-left: 0;
    z-index: 1999;
    overflow-y: auto;
  }
  .site-nav[data-open="true"] {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
    gap: 0;
  }
  .nav-link {
    padding: 16px 28px;
    font-size: 16px;
    border-bottom: 1px solid rgba(245,245,240,0.08);
    text-align: left;
  }
  .nav-link::after {
    left: 28px;
    right: auto;
    width: 28px;
    bottom: 6px;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0 22px;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 480px) {
  .btn-entry-cn .btn-text {
    display: none;
  }
  .btn-entry-cn::after {
    content: "进入";
  }
  .brand-en {
    display: none;
  }
}

/* ========== Reduced Motion ========== */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .live-dot {
    animation: none;
    box-shadow: none;
  }
  .scroll-progress {
    transition: none;
  }
  .data-card:hover {
    transform: none;
  }
  .nav-link::after {
    transition: none;
  }
}
