:root {
  --space-deep: #0B1D33;
  --space-deep-2: #071426;
  --neon: #00FF87;
  --gold: #D4AF37;
  --gui-zhou: #1E8C5A;
  --ice: #D9F2F2;
  --slate: #2A3B4C;
  --orange: #FF6B00;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 18px 40px rgba(0, 0, 0, 0.4);
  --skew: -5deg;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --header-w: 160px;
  --font-ui: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-num: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ice);
  background-color: var(--space-deep);
  background-image:
    radial-gradient(ellipse 75vw 52vh at 88% 0%, rgba(30, 140, 90, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 45vw 38vh at 5% 100%, rgba(0, 255, 135, 0.08) 0%, transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--white);
  line-height: 1.2;
  font-weight: 800;
  font-family: var(--font-ui);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

button {
  font-family: inherit;
  color: inherit;
}

#main-content {
  display: block;
  min-height: 70vh;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

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

.grid > * {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .grid > .span-3 { grid-column: span 3; }
  .grid > .span-4 { grid-column: span 4; }
  .grid > .span-6 { grid-column: span 6; }
  .grid > .span-8 { grid-column: span 8; }
  .grid > .span-12 { grid-column: span 12; }
}

.section-index {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin: 6px 0 16px;
  line-height: 1.12;
}

.skew-text {
  display: inline-block;
  transform: skew(var(--skew));
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--neon);
  font-size: 1.08em;
}

.num--gold {
  color: var(--gold);
}

::selection {
  background: rgba(0, 255, 135, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--space-deep-2);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 135, 0.3);
  border-radius: 8px;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  z-index: 100;
  background: rgba(11, 29, 51, 0.88);
  border-bottom: 1px solid rgba(0, 255, 135, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(7, 20, 38, 0.97);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 135, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 135, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  opacity: 0.6;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--neon);
  color: var(--space-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

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

.brand-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-decoration: none;
  color: var(--white);
}

.brand-name {
  display: inline-block;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transform: skew(var(--skew));
  color: var(--white);
}

.brand-name-accent {
  color: var(--neon);
}

.brand-domain {
  display: none;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(217, 242, 242, 0.6);
  text-transform: lowercase;
  white-space: nowrap;
}

.rail-decoration {
  display: none;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: rgba(0, 255, 135, 0.45);
  margin-top: 2px;
  transform: skew(-10deg);
}

.nav-panel {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 12px;
  right: 12px;
  z-index: 110;
  padding: 16px;
  background: rgba(7, 20, 38, 0.98);
  border: 1px solid rgba(0, 255, 135, 0.18);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.nav-item {
  list-style: none;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ice);
  text-decoration: none;
  background: rgba(217, 242, 242, 0.06);
  border: 1px solid rgba(217, 242, 242, 0.1);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-link::after {
  content: "→";
  opacity: 0;
  font-size: 14px;
  transition: opacity 0.25s, transform 0.25s;
}

.nav-link:hover {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.35);
  color: #fff;
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.nav-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--neon), var(--gui-zhou));
  border-color: transparent;
  color: var(--space-deep);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 255, 135, 0.25);
}

.nav-link[aria-current="page"]::after {
  opacity: 1;
}

.rail-status {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.status-text {
  font-family: var(--font-num);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.28);
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.3s;
  position: relative;
  z-index: 1;
}

.nav-toggle:hover {
  background: rgba(0, 255, 135, 0.16);
}

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

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

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

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

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 255, 135, 0.35);
  background: rgba(7, 20, 38, 0.9);
  color: var(--neon);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

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

.back-to-top:hover {
  background: rgba(0, 255, 135, 0.15);
  color: var(--white);
}

@media (min-width: 768px) {
  .site-header {
    height: 72px;
    padding: 0 24px;
  }

  .brand-domain {
    display: block;
  }

  .nav-panel {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(217, 242, 242, 0.05);
    border: 1px solid rgba(217, 242, 242, 0.08);
    border-radius: var(--radius-pill);
  }

  .nav-link {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
  }

  #main-content {
    margin-left: var(--header-w);
  }

  .site-header {
    width: var(--header-w);
    height: 100vh;
    top: 0;
    left: 0;
    right: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 28px 18px 22px;
    border-bottom: none;
    border-right: 1px solid rgba(0, 255, 135, 0.18);
  }

  .site-header[data-scrolled] {
    background: rgba(7, 20, 38, 0.98);
  }

  .brand-rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rail-decoration {
    display: block;
  }

  .nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 13px;
  }

  .rail-status {
    display: flex;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--space-deep) 0%, var(--space-deep-2) 100%);
  border-top: 1px solid rgba(0, 255, 135, 0.12);
  padding: 52px 0 20px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon) 20%, var(--gui-zhou) 60%, var(--gold) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-wordmark {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  transform: skew(var(--skew));
  margin: 0 0 6px;
}

.footer-wordmark-accent {
  color: var(--neon);
}

.footer-domain {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(217, 242, 242, 0.6);
}

.footer-icp {
  font-size: 12px;
  color: rgba(217, 242, 242, 0.45);
  margin: 8px 0 0;
}

.footer-trust {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(217, 242, 242, 0.7);
  max-width: 42em;
  border-left: 2px solid rgba(0, 255, 135, 0.4);
  padding-left: 14px;
}

.footer-links {
  display: grid;
  align-content: start;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer-link-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(217, 242, 242, 0.8);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--neon);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-contact-item {
  display: block;
  font-size: 14px;
  color: rgba(217, 242, 242, 0.8);
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 242, 242, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(217, 242, 242, 0.4);
  position: relative;
  z-index: 1;
}

.footer-copy {
  color: rgba(217, 242, 242, 0.4);
}

.footer-note {
  font-family: var(--font-num);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding-top: 56px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    margin-left: var(--header-w);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.6fr;
    gap: 48px;
  }
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transform: skew(var(--skew));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn > * {
  transform: skew(5deg);
}

.btn-action {
  background: linear-gradient(135deg, var(--neon), var(--gui-zhou));
  color: var(--space-deep);
  box-shadow: 0 6px 18px rgba(0, 255, 135, 0.25);
}

.btn-action:hover {
  color: var(--space-deep);
  transform: skew(var(--skew)) translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 255, 135, 0.35);
}

.btn-ghost {
  background: rgba(217, 242, 242, 0.04);
  border-color: rgba(0, 255, 135, 0.35);
  color: var(--neon);
}

.btn-ghost:hover {
  background: rgba(0, 255, 135, 0.1);
  color: var(--neon);
  transform: skew(var(--skew)) translateY(-2px);
}

.card {
  position: relative;
  background: linear-gradient(160deg, #1E2A3B 0%, #0F2136 100%);
  border: 1px solid rgba(217, 242, 242, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--gui-zhou));
}

.glass-panel {
  background: rgba(217, 242, 242, 0.05);
  border: 1px solid rgba(217, 242, 242, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
}

.data-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 255, 135, 0.1);
  color: var(--neon);
  border: 1px solid rgba(0, 255, 135, 0.25);
}

.data-tag--gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: rgba(217, 242, 242, 0.55);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 12px;
  color: rgba(0, 255, 135, 0.5);
}

.breadcrumb a {
  color: var(--neon);
}

.breadcrumb a:hover {
  color: #fff;
}

.img-holder {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(217, 242, 242, 0.08);
  background:
    linear-gradient(135deg, var(--space-deep) 0%, #163352 60%, var(--gui-zhou) 130%);
  aspect-ratio: 16 / 9;
  min-height: 120px;
}

.img-holder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(0, 255, 135, 0.1) 42% 45%, transparent 45% 100%);
  pointer-events: none;
}

.img-holder--portrait {
  aspect-ratio: 3 / 4;
}

.img-holder--wide {
  aspect-ratio: 21 / 9;
}

.img-holder--tilt::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0, 255, 135, 0.03) 14px 15px);
  pointer-events: none;
  z-index: 1;
}

.img-holder > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 滚动显现 ===== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ===== 无障碍与降级动效 ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
