/* ===== 设计变量 ===== */
:root {
  --c-bg: #0A0E27;
  --c-panel: #131736;
  --c-text: #E8EAF6;
  --c-muted: #A0A7C8;
  --c-green: #C6FF00;
  --c-orange: #FF6D00;
  --c-line: #3D5AFE;
  --c-purple: #7A2EFF;
  --c-red: #FF4D6D;
  --c-ink: #050814;

  --font-head: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Helvetica Neue", "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --header-meta-h: 36px;
  --header-bar-h: 72px;
  --header-total-h: calc(var(--header-meta-h) + var(--header-bar-h));

  --container-w: 1200px;
  --shadow-hard: 8px 8px 0 rgba(61, 90, 254, 0.18);
  --border-base: 2px solid var(--c-line);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 12% -12%, rgba(61, 90, 254, 0.16), transparent 42%),
    linear-gradient(rgba(61, 90, 254, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 90, 254, 0.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(198, 255, 0, 0.28);
  color: var(--c-text);
}

/* ===== 焦点与无障碍 ===== */
:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--c-green);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(5, 8, 20, 0.5);
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0;
}

/* ===== 容器与基础排版 ===== */
.container {
  width: min(100% - 2rem, var(--container-w));
  margin-inline: auto;
}

.site-main {
  padding-top: var(--header-total-h);
}

#main-content,
[id] {
  scroll-margin-top: var(--header-total-h);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 900;
}

.display-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.display-index {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.3em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.data-text {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.site-hero-bleed {
  margin-top: calc(var(--header-total-h) * -1);
  padding-top: calc(var(--header-total-h) + clamp(2rem, 6vw, 4rem));
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--c-green);
  color: var(--c-ink);
  border-color: var(--c-green);
}
.btn--primary:hover {
  box-shadow: 0 0 24px rgba(198, 255, 0, 0.4);
  transform: translateY(-2px);
}
.btn--secondary {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-text);
}
.btn--secondary:hover {
  color: var(--c-green);
  border-color: var(--c-green);
}
.btn--orange {
  background: var(--c-orange);
  color: var(--c-ink);
  border-color: var(--c-orange);
}
.btn--orange:hover {
  box-shadow: 0 0 24px rgba(255, 109, 0, 0.4);
  transform: translateY(-2px);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--c-line);
  font-family: var(--font-data);
}
.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--c-green);
}
.breadcrumb__item:last-child {
  color: var(--c-text);
  font-weight: 700;
}

/* ===== 基础组件 ===== */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--c-panel);
  border: var(--border-base);
  box-shadow: var(--shadow-hard);
  padding: 1.625rem 1.5rem;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(198, 255, 0, 0.4);
}
.card--accent-orange::before {
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 109, 0, 0.4);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-panel);
  border: var(--border-base);
  box-shadow: 6px 6px 0 rgba(61, 90, 254, 0.16);
}
.media-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.media-frame > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--square::before {
  padding-top: 100%;
}
.media-frame--portrait::before {
  padding-top: 133.33%;
}
.media-frame--ph {
  background:
    linear-gradient(rgba(61, 90, 254, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 90, 254, 0.1) 1px, transparent 1px),
    linear-gradient(45deg, transparent 48%, rgba(61, 90, 254, 0.16) 50%, transparent 52%),
    var(--c-panel);
  background-size: 24px 24px, 24px 24px, 32px 32px, auto;
}
.media-frame--ph img {
  display: none;
}

/* ===== 首屏框景 ===== */
.hero-frame {
  position: relative;
  border: 3px solid var(--c-line);
  box-shadow: 12px 12px 0 rgba(122, 46, 255, 0.12), -4px -4px 0 rgba(198, 255, 0, 0.12);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(19, 23, 54, 0.72);
}
.hero-frame::before {
  content: "";
  position: absolute;
  top: -3px;
  left: clamp(1.5rem, 4vw, 3rem);
  width: 64px;
  height: 3px;
  background: var(--c-green);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.6);
}
.hero-frame__index {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-green);
  margin-bottom: 1rem;
  display: block;
}
.hero-frame__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}
.hero-frame__desc {
  color: var(--c-muted);
  font-size: 1rem;
  max-width: 42em;
  line-height: 1.8;
}
.hero-frame--orange::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 40px;
  height: 3px;
  background: var(--c-orange);
  box-shadow: 0 0 12px rgba(255, 109, 0, 0.5);
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 39, 0.94);
  border-bottom-color: rgba(61, 90, 254, 0.35);
  box-shadow: 0 8px 32px rgba(5, 8, 20, 0.55);
}

.site-header__progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-green), var(--c-orange));
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.5);
  z-index: 10;
  pointer-events: none;
}

.site-header__meta {
  background: rgba(5, 8, 20, 0.72);
  border-bottom: 1px solid rgba(61, 90, 254, 0.24);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-header.is-scrolled .site-header__meta {
  background: rgba(5, 8, 20, 0.95);
  border-bottom-color: rgba(61, 90, 254, 0.18);
}

.site-header__meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-meta-h);
}

.site-header__meta-msg {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-data);
  font-size: 0.71875rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.site-header__pulse {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  animation: header-pulse 2s ease-out infinite;
}
@keyframes header-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(198, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 0, 0);
  }
}

.site-header__meta-tag {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--c-green);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__bar {
  position: relative;
}

.site-header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-bar-h);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  position: relative;
  padding-left: 0.875rem;
  white-space: nowrap;
}
.site-brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--c-green);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.65);
}
.site-brand__text {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--c-text);
}
.site-brand__suffix {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--c-muted);
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid var(--c-line);
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.125rem;
  height: 2px;
  background: var(--c-green);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav__link[aria-current="page"] {
  color: var(--c-green);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 0.875rem;
  border: 1.5px solid var(--c-orange);
  color: var(--c-orange);
  font-family: var(--font-body);
  font-size: 0.78125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.site-header__cta:hover {
  background: var(--c-orange);
  color: var(--c-ink);
  box-shadow: 0 0 20px rgba(255, 109, 0, 0.35);
}
.site-header__cta-label {
  line-height: 1;
}
.site-header__cta-caret {
  font-family: var(--font-data);
  font-size: 1em;
  line-height: 1;
}

.site-nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(19, 23, 54, 0.8);
  border: 1px solid var(--c-line);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-nav-toggle:hover {
  border-color: var(--c-green);
  background: rgba(198, 255, 0, 0.08);
}
.site-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--c-green);
}
.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--c-green);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-ink);
  color: var(--c-muted);
  font-family: var(--font-body);
  border-top: 1px solid rgba(61, 90, 254, 0.3);
}

.site-footer__signal {
  height: 4px;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-line) 40%, var(--c-orange) 72%, transparent 100%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.1fr 1.3fr;
  gap: 2.5rem 2rem;
  padding: 3.5rem 0 2.75rem;
}

.site-footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.site-footer__brand-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(198, 255, 0, 0.5);
  vertical-align: baseline;
}
.site-footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 34em;
}

.site-footer__title {
  position: relative;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green);
  line-height: 1.4;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.site-footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.1em;
  background: var(--c-green);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.site-footer__link-item {
  line-height: 1.4;
}
.site-footer__link {
  color: var(--c-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer__link:hover {
  color: var(--c-green);
  padding-left: 0.25rem;
}

.site-footer__col--download {
  background: rgba(255, 109, 0, 0.05);
  border-left: 2px solid var(--c-orange);
  padding-left: 1rem;
}
.site-footer__col--download .site-footer__title {
  color: var(--c-orange);
}
.site-footer__col--download .site-footer__title::before {
  background: var(--c-orange);
}

.site-footer__link--strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-orange);
  font-weight: 800;
}
.site-footer__link--strong:hover {
  color: var(--c-green);
  padding-left: 0.25rem;
}
.site-footer__download-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--c-orange);
  font-family: var(--font-data);
  font-size: 0.875rem;
  line-height: 1;
}

.site-footer__col--contact {
  padding-left: 1rem;
  border-left: 1px solid rgba(61, 90, 254, 0.3);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__contact-item {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-muted);
  word-break: break-word;
}
.site-footer__contact-item--note {
  font-family: var(--font-body);
  color: var(--c-orange);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(61, 90, 254, 0.25);
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.site-footer__copyright {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  font-family: var(--font-body);
}
.site-footer__icp {
  font-family: var(--font-data);
  font-size: 0.75rem;
  opacity: 0.7;
}
.site-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__legal-link {
  color: var(--c-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__legal-link:hover {
  color: var(--c-green);
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .site-nav__link {
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }
  .site-brand__suffix {
    display: none;
  }
  .site-header__bar-inner {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-meta-h: 30px;
    --header-bar-h: 62px;
  }

  .site-header__cta {
    display: none;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.97);
    border-bottom: 2px solid var(--c-green);
    box-shadow: 0 24px 48px rgba(5, 8, 20, 0.7);
    padding: 0.625rem 1rem 1.125rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.3s ease;
    max-height: calc(100vh - var(--header-total-h));
    overflow-y: auto;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.125rem;
  }
  .site-nav__link {
    display: block;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    border-radius: 0;
  }
  .site-nav__link::after {
    display: none;
  }
  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .site-nav__link[aria-current="page"] {
    border-left-color: var(--c-green);
    color: var(--c-green);
    background: rgba(198, 255, 0, 0.07);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    padding: 3rem 0 2.5rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.75rem 0 2rem;
  }
  .site-footer__brand {
    grid-column: auto;
  }
  .site-footer__col--contact {
    border-left: none;
    padding-left: 0;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header__meta-tag {
    display: none;
  }
  .site-brand__text {
    font-size: 1.25rem;
  }
}

/* ===== 减动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
