@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #001e3c;
  --ink-deep: #00152a;
  --ink-lift: #022a4e;
  --mint: #99ffcc;
  --neon: #00ff41;
  --fg: #e8fff4;
  --dim: #a7c8bd;
  --line: rgba(153, 255, 204, 0.18);
  --pad: clamp(16px, 4vw, 40px);
  --font: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.72;
  color: var(--fg);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 620px at 88% -8%, rgba(0, 255, 65, 0.16), transparent 64%),
    radial-gradient(720px 520px at -6% 34%, rgba(153, 255, 204, 0.1), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--neon);
}

/* 顶部细条 */
.ticker {
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(0, 255, 65, 0.14);
  border-bottom: 1px solid var(--line);
}

.ticker-run {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 30s linear infinite;
}

.ticker-run span {
  margin-right: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--mint);
}

@keyframes ticker-slide {
  to { transform: translateX(-50%); }
}

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
  background: rgba(0, 30, 60, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.mark img { width: 36px; height: 36px; object-fit: contain; }

.dot {
  width: 26px;
  height: 26px;
  background: var(--neon);
  border-radius: 50% 42% 58% 48% / 50% 56% 44% 50%;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
  animation: breathe 6s ease-in-out infinite;
}

.burger {
  position: relative;
  z-index: 70;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--neon);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  user-select: none;
}

.burger::-webkit-details-marker { display: none; }
.burger:hover { background: var(--mint); }
.b-close { display: none; }
.drawer[open] .b-open { display: none; }
.drawer[open] .b-close { display: inline; }

/* 全屏菜单 */
.drawer > menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  margin: 0;
  padding: 92px var(--pad) 48px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background:
    radial-gradient(120% 90% at 12% 0%, #00365f 0%, #001428 58%, #000a13 100%);
}

.drawer[open] > menu { animation: veil 0.36s ease both; }
.drawer[open] > menu li {
  animation: rise 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}

@keyframes veil {
  from { opacity: 0; transform: translateY(-2%); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.drawer > menu a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 4px 0;
  font-size: clamp(24px, 5.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s ease, transform 0.25s ease;
}

.drawer > menu a:hover,
.drawer > menu a:focus-visible {
  color: var(--neon);
  transform: translateX(8px);
}

/* 主体网格 */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: clamp(20px, 3.4vw, 48px);
}

/* Hero */
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: min(70vh, 620px);
  padding: clamp(28px, 6vw, 76px) 0 clamp(24px, 5vw, 56px);
  position: relative;
}

.hero-copy { min-width: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 4px 14px;
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero h1 {
  margin: 0 0 0.34em;
  font-size: clamp(36px, 8.4vw, 104px);
  line-height: 1.02;
  color: var(--mint);
  word-break: break-word;
}

.lede {
  max-width: 46ch;
  margin: 0;
  color: var(--dim);
  font-size: clamp(16px, 1.5vw, 19px);
}

.art { min-width: 0; }

.art svg {
  width: 100%;
  height: auto;
  filter: blur(0.4px) drop-shadow(0 0 70px rgba(0, 255, 65, 0.28));
}

.art .p1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 9s ease-in-out infinite;
}

.art .p2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 13s ease-in-out infinite;
}

.art .p3 {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 17s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

/* 正文 */
section { grid-column: 1; min-width: 0; }

section > article[id] {
  padding: clamp(30px, 5.4vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

section > article[id]:first-of-type { border-top: 0; padding-top: 8px; }

section h2 {
  margin: 0 0 0.55em;
  font-size: clamp(26px, 4.2vw, 44px);
  color: var(--mint);
}

section h3 {
  margin: 1.5em 0 0.4em;
  font-size: clamp(19px, 2.3vw, 25px);
}

section p { margin: 0 0 1.15em; }

section ul,
section ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

section li { margin: 0 0 0.5em; }

section a { border-bottom: 1px solid rgba(153, 255, 204, 0.45); }
section a:hover { border-bottom-color: var(--neon); }

section strong { color: var(--neon); font-weight: 700; }

section img { margin: 1.4em 0; }

section blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--neon);
  color: var(--mint);
  font-size: 1.06em;
}

section table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

section th,
section td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

section th { color: var(--mint); }

section hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 右侧栏 */
.rail {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 84px;
  padding-top: clamp(30px, 5.4vw, 64px);
}

.rail h3 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.rail-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: block;
  padding: 10px 0 10px 12px;
  border-left: 2px solid rgba(153, 255, 204, 0.22);
  font-size: 14px;
  line-height: 1.4;
  color: var(--dim);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rail-list a:hover,
.rail-list a.on {
  background: var(--neon);
  border-left-color: var(--neon);
  color: var(--ink);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.to-top:hover { border-color: var(--neon); }

/* 页脚 */
footer {
  margin-top: clamp(32px, 6vw, 64px);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.foot-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad) 0;
}

.foot-top strong {
  display: block;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--mint);
}

.foot-cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--pad) 34px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 26px;
}

address {
  font-style: normal;
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 14px;
  color: var(--dim);
}

.addr-name { color: var(--mint); font-weight: 600; }
.addr-host { word-break: break-all; }

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--dim);
}

footer ul a:hover { color: var(--neon); }

.sub { display: grid; gap: 8px; align-content: start; }

.sub label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--mint);
}

.sub input {
  min-height: 46px;
  padding: 0 12px;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

.sub input:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }

.sub button {
  min-height: 46px;
  border: 0;
  background: var(--neon);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.22em;
  cursor: pointer;
}

.sub button:hover { background: var(--mint); }

.foot-base {
  border-top: 1px solid var(--line);
  padding: 16px var(--pad);
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.foot-base p { margin: 0; }

/* 滚动出现 */
.anim section > article[id] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim section > article[id].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(22px, 7vw, 44px);
  }

  .art { max-width: 380px; margin-top: 8px; }

  section,
  .rail { grid-column: 1; grid-row: auto; }

  .rail {
    position: static;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

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

@media (max-width: 480px) {
  .ticker-run span { font-size: 10px; margin-right: 22px; letter-spacing: 0.24em; }
  .hero h1 { font-size: clamp(32px, 10.5vw, 54px); }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim section > article[id] { opacity: 1; transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
