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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-900);
}

p {
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

main {
  display: block;
  min-height: 60vh;
}

.num {
  font-family: var(--font-numbers);
  font-weight: 500;
  font-feature-settings: "tnum";
}

/* ===== Variables ===== */
:root {
  --blue-900: #0A1428;
  --blue-700: #12294A;
  --blue-500: #1E3A5F;
  --yellow: #FFC400;
  --green: #00FF88;
  --light: #F5F7FA;
  --text-dark: #0A1428;
  --text-muted: #5A6B7C;
  --white: #FFFFFF;
  --warning: #FF5722;
  --data-blue: #2196F3;
  --data-purple: #9C27B0;

  --font-headline: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-numbers: "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-caption: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--blue-900);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  left: 0;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue-900);
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(10, 20, 40, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(30, 58, 95, 0.55), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 100% 44px;
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 0;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand .brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand .brand-mark {
  font-family: var(--font-caption);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--yellow);
  text-transform: uppercase;
}

.brand-slogan {
  flex: 1;
  margin: 0;
  text-align: center;
  font-family: var(--font-caption);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.header-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.08);
  font-family: var(--font-numbers);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--green);
  flex-shrink: 0;
}

.header-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.6s ease-in-out infinite;
}

.header-live-num {
  line-height: 1;
}

.header-live-num::after {
  content: " 更新";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* ===== Nav toggle ===== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nav-toggle-line {
  width: 22px;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.2s ease;
}

/* ===== Main nav ===== */
.main-nav {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.8rem 0.25rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--white);
  border-bottom-color: var(--green);
}

.nav-list a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ===== Speedline ===== */
.header-speedline {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-bottom: 0.875rem;
}

.speedline {
  height: 2px;
  flex: 1;
}

.speedline-main {
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--yellow) 100%);
}

.speedline-accent {
  flex: 0 0 min(200px, 28%);
  background: var(--green);
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: var(--blue-900);
  color: var(--light);
  padding-top: 2.5rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 40px, 40px 100%;
  pointer-events: none;
}

.footer-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 35%, var(--yellow) 35% 65%, var(--blue-500) 65% 100%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.1;
}

.footer-brand-link .brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-brand-link .brand-mark {
  font-family: var(--font-caption);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--yellow);
  text-transform: uppercase;
}

.footer-slogan {
  font-family: var(--font-caption);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-trust {
  max-width: 32rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--yellow);
  padding-left: 0.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--white);
  text-transform: uppercase;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--yellow);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact .footer-note {
  color: var(--green);
}

.footer-contact .footer-phone,
.footer-contact .footer-address {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-caption);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-sep {
  opacity: 0.5;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--blue-900);
  font-family: var(--font-numbers);
  font-size: 1.25rem;
  line-height: 1;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.4);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
}

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

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

/* ===== Section header ===== */
.section-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-numbers);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-500);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--green);
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--blue-900);
}

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

.btn-primary {
  background: var(--yellow);
  color: var(--blue-900);
  border-color: var(--yellow);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-left: 2rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 196, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border: 1px solid var(--blue-500);
}

.btn-ghost:hover {
  border-color: var(--blue-900);
  background: rgba(10, 20, 40, 0.05);
}

/* ===== Badge ===== */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 999px;
  font-family: var(--font-numbers);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue-900);
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.6s ease-in-out infinite;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-caption);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--blue-900);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--blue-500);
}

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

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Card ===== */
.card {
  background: var(--white);
  border: 1px solid rgba(10, 20, 40, 0.08);
  box-shadow: 0 4px 16px rgba(10, 20, 40, 0.06);
  padding: 1.5rem;
}

.card:hover {
  border-color: var(--blue-500);
}

/* ===== Media frame ===== */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 1px solid rgba(10, 20, 40, 0.1);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

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

.media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 20, 40, 0.75);
  color: var(--light);
  font-family: var(--font-caption);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ===== Keyframes ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 767px) {
  .brand-slogan {
    display: none;
  }

  .header-live {
    display: none;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav[data-open="true"] {
    display: block;
  }

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

  .nav-list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list a {
    display: block;
    padding: 0.9rem 0.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-list a:hover {
    border-left-color: var(--green);
  }

  .nav-list a[aria-current="page"] {
    border-bottom: none;
    border-left-color: var(--yellow);
  }

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

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

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===== 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;
  }
}
