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

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #d6e4ff;
  background-color: #0a1633;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fafcff;
}

h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  margin-bottom: 1rem;
}

:focus-visible {
  outline: 2px solid #b9ff5a;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #b9ff5a;
  color: #0a1633;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== CSS Variables ========== */
:root {
  --deep-space-900: #0a1633;
  --deep-space-800: #10204a;
  --ice-blue-100: #d6e4ff;
  --fluorescent-green: #b9ff5a;
  --signal-orange: #ff6b35;
  --data-cyan: #00e0ff;
  --paper-white: #fafcff;
  --ink-black: #0b1220;
  --line-blue: #3355aa;
  --success-green: #35d07f;

  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", monospace;

  --container-width: 1280px;
  --header-h: 72px;
  --radius: 6px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
}

/* ========== Layout Utilities ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.site-main {
  padding: 64px 0 96px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.grid-asym {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 32px;
}

.theme-band {
  width: 100%;
  margin: 64px 0;
  padding: 48px 0;
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}

.rule-line {
  height: 1px;
  background: var(--line-blue);
  border: none;
  margin: 24px 0;
  opacity: 0.6;
}

.text-highlight {
  color: var(--fluorescent-green);
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  z-index: 400;
  background: var(--fluorescent-green);
  color: var(--deep-space-900);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: 0;
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--fluorescent-green), var(--data-cyan));
  pointer-events: none;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-accent {
  background: var(--fluorescent-green);
  color: var(--deep-space-900);
}

.btn-accent:hover {
  background: #cdf58a;
  box-shadow: 0 0 0 4px rgba(185, 255, 90, 0.15);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-blue);
  color: var(--ice-blue-100);
}

.btn-outline:hover {
  border-color: var(--data-cyan);
  color: var(--data-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--ice-blue-100);
}

.btn-ghost:hover {
  background: rgba(16, 32, 74, 0.6);
  color: var(--fluorescent-green);
}

/* ========== Brand ========== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: var(--fluorescent-green);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(185, 255, 90, 0.3);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--deep-space-900);
  border-radius: 2px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper-white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--data-cyan);
  background: var(--deep-space-800);
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ========== Header ========== */
.site-header {
  position: relative;
  z-index: 100;
}

.header-announce {
  background: var(--deep-space-800);
  border-bottom: 1px solid var(--line-blue);
  color: var(--ice-blue-100);
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluorescent-green);
  animation: announce-pulse 2s infinite;
}

@keyframes announce-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 255, 90, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(185, 255, 90, 0); }
}

.announce-text {
  letter-spacing: 0.02em;
}

.announce-link {
  color: var(--fluorescent-green);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.announce-link:hover {
  border-bottom-color: var(--fluorescent-green);
}

.header-main {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 51, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-blue);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ========== Navigation ========== */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--ice-blue-100);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--fluorescent-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--paper-white);
  background: rgba(185, 255, 90, 0.06);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--fluorescent-green);
  background: rgba(185, 255, 90, 0.1);
}

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

.nav-link[aria-current="page"] .nav-index {
  color: var(--data-cyan);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--line-blue);
  letter-spacing: 0.05em;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========== Nav Toggle ========== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--deep-space-800);
  color: var(--ice-blue-100);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  transition: border-color var(--transition), color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--data-cyan);
  color: var(--paper-white);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ice-blue-100);
  margin-bottom: 32px;
}

.breadcrumb-link {
  color: var(--data-cyan);
  transition: color var(--transition);
}

.breadcrumb-link:hover {
  color: var(--fluorescent-green);
}

.breadcrumb-sep {
  color: var(--line-blue);
  font-family: var(--font-mono);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--paper-white);
  font-weight: 500;
}

/* ========== Section Headings ========== */
.section-head {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--fluorescent-green);
  margin-bottom: 48px;
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--data-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--paper-white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--ice-blue-100);
  font-size: 16px;
  line-height: 1.7;
  max-width: 680px;
  opacity: 0.85;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--data-cyan);
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  padding: 2px 12px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ========== Cards ========== */
.card {
  background: linear-gradient(160deg, var(--deep-space-800) 0%, #0c1839 100%);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 28px 28px 28px 36px;
  box-shadow: 0 4px 24px rgba(5, 10, 25, 0.35);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(185, 255, 90, 0.5);
  box-shadow: 0 8px 32px rgba(5, 10, 25, 0.5), 0 0 0 1px rgba(185, 255, 90, 0.15);
  transform: translateY(-2px);
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--fluorescent-green);
}

.card-offset {
  margin-top: 48px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--paper-white);
  line-height: 1.3;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--data-cyan);
  background: rgba(0, 224, 255, 0.08);
  border: 1px solid rgba(0, 224, 255, 0.3);
  border-radius: 2px;
  padding: 2px 10px;
  letter-spacing: 0.06em;
}

.card-body {
  color: var(--ice-blue-100);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== Data Components ========== */
.data-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--fluorescent-green);
  line-height: 1.2;
}

.data-label {
  font-size: 13px;
  color: var(--ice-blue-100);
  opacity: 0.8;
}

/* ========== Image Frames ========== */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep-space-800);
  border: 1px solid var(--line-blue);
}

.img-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.img-frame-4x3::before {
  padding-top: 75%;
}

.img-frame-square::before {
  padding-top: 100%;
}

.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  background-image:
    linear-gradient(rgba(51, 85, 170, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 85, 170, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 10px;
  background: linear-gradient(transparent, rgba(10, 22, 51, 0.95));
  color: var(--ice-blue-100);
  font-size: 13px;
  line-height: 1.4;
}

/* ========== Reveal Animation ========== */
.reveal-initial {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-initial.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-initial {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: var(--deep-space-900);
  border-top: 1px solid var(--line-blue);
  padding-top: 64px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fluorescent-green) 0%, var(--data-cyan) 50%, var(--signal-orange) 100%);
}

.footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 85, 170, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 85, 170, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.brand-footer .brand-mark {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 8px rgba(185, 255, 90, 0.3);
}

.brand-footer .brand-logo {
  font-size: 22px;
}

.footer-statement {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ice-blue-100);
  opacity: 0.75;
  max-width: 320px;
}

.footer-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success-green);
  background: rgba(53, 208, 127, 0.08);
  border: 1px solid rgba(53, 208, 127, 0.25);
  border-radius: 999px;
  padding: 4px 14px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: status-blink 2s infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper-white);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--fluorescent-green);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--data-cyan);
  opacity: 0.7;
}

.footer-contact-value {
  font-size: 14px;
  color: var(--ice-blue-100);
  line-height: 1.5;
  word-break: break-all;
}

.footer-reply-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--line-blue);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ice-blue-100);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-link:hover {
  color: var(--fluorescent-green);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line-blue);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ice-blue-100);
  opacity: 0.7;
  margin: 0;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ice-blue-100);
  opacity: 0.7;
  margin: 0;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-link-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  .header-inner {
    padding: 0 20px;
    height: 64px;
  }

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

  .nav-primary {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    background: rgba(10, 22, 51, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line-blue);
    padding: 96px 32px 40px;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .nav-primary[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 32px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    font-size: 18px;
    border-bottom: 1px solid rgba(51, 85, 170, 0.5);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-index {
    font-size: 12px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .grid-2,
  .grid-3,
  .grid-asym {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-offset {
    margin-top: 0;
  }

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  .header-announce {
    font-size: 12px;
    padding: 6px 16px;
    gap: 6px;
  }

  .announce-link {
    display: none;
  }

  .brand-suffix {
    display: none;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-logo {
    font-size: 20px;
  }

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

  .footer-link-col {
    grid-column: auto;
  }

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