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

:root {
  --mint: #b4fde1;
  --mint-2: #7ceec4;
  --sky: #add8e6;
  --sky-2: #86c6de;
  --ink: #172620;
  --ink-2: #0b1a14;
  --night: #0f1e18;
  --light: #eafff5;
  --dim: #a8d9c7;
  --line: rgba(180, 253, 225, 0.3);
  --radius: 20px;
  --shadow-clay: inset -4px -4px 12px rgba(23, 38, 32, 0.2),
    inset 4px 4px 12px #ffffff, 8px 10px 0 rgba(3, 15, 10, 0.45);
  --font-hud: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--night);
  background-image: radial-gradient(680px 420px at 12% -6%, rgba(180, 253, 225, 0.16), transparent 70%),
    radial-gradient(560px 420px at 92% 8%, rgba(173, 216, 230, 0.14), transparent 72%),
    linear-gradient(180deg, #102019 0%, #0c1913 55%, #0a1510 100%);
  background-attachment: fixed;
  color: var(--light);
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: inherit;
}

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

/* ---------- 顶部 HUD ---------- */
.hud {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 24, 18, 0.97), rgba(10, 24, 18, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line);
}

.hud-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 3px solid var(--ink-2);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--mint) 0%, var(--sky) 100%);
  color: var(--ink);
  font-family: var(--font-hud);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 17px;
  text-decoration: none;
  box-shadow: inset -3px -3px 8px rgba(23, 38, 32, 0.28), 4px 5px 0 rgba(3, 15, 10, 0.6);
}

.brand.small {
  min-height: 40px;
  font-size: 16px;
}

.brand:active {
  transform: translateY(2px);
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.3), 1px 2px 0 rgba(3, 15, 10, 0.6);
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  object-fit: cover;
  border: 2px solid var(--ink-2);
  background: var(--ink);
}

.mark-ph {
  display: inline-block;
  background: linear-gradient(135deg, var(--ink) 0%, #2f5a49 100%);
}

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 3px solid var(--ink-2);
  border-radius: 999px;
  background: linear-gradient(150deg, var(--mint-2), var(--sky-2));
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset -3px -3px 8px rgba(23, 38, 32, 0.24), 4px 5px 0 rgba(3, 15, 10, 0.55);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cta:active {
  transform: translateY(2px);
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.3), 1px 2px 0 rgba(3, 15, 10, 0.55);
}

/* ---------- 抽屉菜单 ---------- */
.drawer {
  position: relative;
}

.drawer summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: rgba(180, 253, 225, 0.08);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.sum-bar {
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--mint);
}

.sum-t {
  margin-left: 3px;
}

.drawer[open] summary {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--ink-2);
}

.drawer[open] .sum-bar {
  background: var(--ink);
}

.drawer-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(78vw, 240px);
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 4px;
  background: linear-gradient(160deg, #dcfff2, #c6ecfb);
  border: 3px solid var(--ink-2);
  border-radius: 18px;
  box-shadow: inset -3px -3px 9px rgba(23, 38, 32, 0.16), 7px 9px 0 rgba(3, 15, 10, 0.6);
}

.drawer-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.drawer-menu a:hover {
  background: rgba(23, 38, 32, 0.11);
}

/* ---------- 锚点条 ---------- */
.ticker {
  border-top: 2px solid rgba(180, 253, 225, 0.16);
}

.ticker ul {
  display: flex;
  gap: 6px;
  margin: 0 auto;
  padding: 8px 16px;
  max-width: 1180px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ticker a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 2px solid rgba(180, 253, 225, 0.34);
  border-radius: 999px;
  color: #cdfbe8;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.ticker a:hover,
.ticker a[aria-current='true'] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 16px 46px;
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-hud);
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0.5px;
  color: #f1fffa;
  text-shadow: 0 0 22px rgba(180, 253, 225, 0.4);
}

.lede {
  margin: 0 0 18px;
  max-width: 34ch;
  color: var(--dim);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 3px solid var(--ink-2);
  border-radius: 999px;
  background: linear-gradient(150deg, var(--mint), var(--mint-2));
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset -3px -3px 9px rgba(23, 38, 32, 0.22), 5px 6px 0 rgba(3, 15, 10, 0.55);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn.ghost {
  background: rgba(173, 216, 230, 0.14);
  color: var(--sky);
  border-color: rgba(173, 216, 230, 0.55);
  box-shadow: inset -3px -3px 9px rgba(0, 0, 0, 0.3), 5px 6px 0 rgba(3, 15, 10, 0.45);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.3), 1px 2px 0 rgba(3, 15, 10, 0.55);
}

.hero-art {
  position: relative;
  height: 260px;
}

.art {
  position: absolute;
  width: 66%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border: 4px solid var(--ink-2);
  border-radius: 22px;
  box-shadow: inset -3px -3px 11px rgba(23, 38, 32, 0.45), 8px 10px 0 rgba(3, 15, 10, 0.5);
}

.art-a {
  left: 0;
  top: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.art-b {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.art.ph {
  background: linear-gradient(150deg, var(--mint), var(--sky));
}

.slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 13px;
  transform: skewY(-1.6deg);
  background: repeating-linear-gradient(115deg, var(--mint) 0 18px, var(--sky) 18px 36px);
  opacity: 0.85;
  border-radius: 4px;
}

/* ---------- 主体骨架 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 16px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.col {
  min-width: 0;
}

.paper {
  padding: clamp(18px, 3vw, 34px);
  border: 4px solid var(--ink-2);
  border-radius: 24px;
  background: linear-gradient(165deg, #edfff8 0%, #d6f2ff 100%);
  color: var(--ink);
  box-shadow: var(--shadow-clay);
  font-size: 17px;
}

.paper section[id] {
  scroll-margin-top: 148px;
  padding-top: 4px;
}

.paper section + section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 2px dashed rgba(23, 38, 32, 0.2);
}

.paper h2 {
  margin: 6px 0 12px;
  font-family: var(--font-hud);
  font-size: clamp(20px, 2.7vw, 26px);
  line-height: 1.28;
  letter-spacing: 0.3px;
  color: #0d2a20;
}

.paper h3 {
  margin: 22px 0 10px;
  font-family: var(--font-hud);
  font-size: 18px;
  line-height: 1.35;
  color: #12352a;
}

.paper h2 > span,
.paper h3 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 5px solid var(--sky-2);
}

.paper p {
  margin: 0 0 14px;
}

.paper ul,
.paper ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.paper li {
  margin: 0 0 8px;
}

.paper li::marker {
  color: #1e7a5e;
}

.paper a {
  color: #0a5c46;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper img {
  border: 3px solid var(--ink-2);
  border-radius: 18px;
  box-shadow: inset -2px -2px 8px rgba(23, 38, 32, 0.3), 5px 6px 0 rgba(3, 15, 10, 0.35);
  margin: 6px 0 14px;
}

.paper strong {
  color: #0a4a38;
}

.paper blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 6px solid var(--mint-2);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.66);
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 16px;
}

.rail-box {
  padding: 14px;
  border: 4px solid var(--ink-2);
  border-radius: 20px;
  background: linear-gradient(160deg, #dbfff2, #c8edfb);
  color: var(--ink);
  box-shadow: inset -3px -3px 10px rgba(23, 38, 32, 0.18), 6px 8px 0 rgba(3, 15, 10, 0.45);
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--font-hud);
  font-size: 16px;
  letter-spacing: 0.4px;
  color: #0d2a20;
}

.rail-h > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 4px solid var(--mint-2);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 2px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.rail-list a:hover {
  background: #ffffff;
  border-color: var(--ink-2);
}

.rail a[aria-current='true'] {
  background: var(--mint);
  border-color: var(--ink-2);
  font-weight: 700;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 4px solid var(--line);
  background: #0a1712;
}

.foot > * {
  max-width: 1180px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px;
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  color: #a9e2cd;
  font-size: 16px;
  text-decoration: none;
}

.foot-nav a:hover {
  background: rgba(180, 253, 225, 0.16);
  color: var(--mint);
}

.foot-legal p {
  margin: 0;
  color: #82bda8;
  font-size: 16px;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 26px;
  }

  .rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 20px;
    padding-bottom: 40px;
  }

  .hero-art {
    height: 220px;
    max-width: 480px;
  }

  .paper section[id] {
    scroll-margin-top: 168px;
  }
}

@media (max-width: 720px) {
  .hud-in {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .brand {
    padding: 4px 10px;
    font-size: 16px;
  }

  .cta {
    order: 3;
    margin-left: 0;
    flex: 1 1 auto;
    justify-content: center;
  }

  .drawer {
    margin-left: auto;
  }

  .ticker ul {
    padding: 8px 12px;
  }

  .hero {
    padding: 18px 12px 36px;
  }

  .hero-art {
    height: 186px;
  }

  .art {
    border-width: 3px;
    border-radius: 18px;
  }

  .wrap {
    padding: 22px 12px 46px;
  }

  .paper {
    padding: 16px 14px;
    border-width: 3px;
    border-radius: 20px;
  }

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

  .foot {
    padding: 16px 12px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn,
  .cta,
  .brand,
  .ticker a,
  .rail-list a {
    transition: none;
  }
}

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