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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #08110c;
  --panel: #0f1e15;
  --edge: rgba(105, 255, 105, .24);
  --line: rgba(105, 255, 105, .14);
  --text: #d8f0e0;
  --muted: #a9c6b6;
  --chrome: linear-gradient(150deg, #f4fff7 0%, #b7cbbf 24%, #ffffff 44%, #7d9788 60%, #e6f8ec 80%, #93b09d 100%);
  --glow: 0 0 18px rgba(105, 255, 105, .35);
}

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

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

body {
  margin: 0;
  padding-bottom: 96px;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  background-color: #08110c;
  background-image:
    radial-gradient(circle at 14% 4%, rgba(0, 255, 255, .14), transparent 44%),
    radial-gradient(circle at 86% 0%, rgba(105, 255, 105, .16), transparent 46%),
    radial-gradient(rgba(105, 255, 105, .16) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  background-attachment: fixed, fixed, fixed;
}

body.lock { overflow: hidden; }

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

img { max-width: 100%; }

h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 角落品牌 ---------- */
.mark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  background: var(--chrome);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .4);
  border-radius: 0;
}

.mark img { display: block; width: 26px; height: 26px; object-fit: contain; }

/* ---------- 汉堡 ---------- */
.burger {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 80;
  width: 50px;
  height: 46px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  background: var(--chrome);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .35);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0c1a12;
  transition: transform .22s ease, opacity .22s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 全屏菜单 ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: rgba(6, 14, 9, .96);
  background-image: radial-gradient(rgba(0, 255, 255, .18) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.screen.on { opacity: 1; visibility: visible; }

.screen-nav { width: 100%; max-width: 520px; }
.screen-nav ol { list-style: none; margin: 0; padding: 0; }

.screen-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 16px;
  font-size: clamp(19px, 4.6vw, 26px);
  font-weight: 600;
  color: #e6fff0;
  border-bottom: 1px solid var(--line);
}

.screen-nav a:hover,
.screen-nav a:focus-visible {
  color: var(--neon);
  text-shadow: 0 0 16px rgba(105, 255, 105, .7);
  background: rgba(105, 255, 105, .07);
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 30px;
  min-height: 45vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--edge);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.hero-in.plain { grid-template-columns: 1fr; }

.hero-txt h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.16;
  color: #f2fff7;
  text-shadow: 0 0 22px rgba(105, 255, 105, .38), 0 0 3px rgba(0, 255, 255, .5);
}

.lead {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--muted);
  font-weight: 400;
}

.hero-act { margin: 0; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--ink);
  font-weight: 700;
  background: var(--chrome);
  box-shadow: var(--glow), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.hero-cta:hover { color: #06120b; filter: brightness(1.08); }

.collage { position: relative; min-height: 258px; }

.frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid rgba(0, 255, 255, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}

.frame .shot,
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-a {
  top: 0;
  left: 0;
  width: 62%;
  height: 64%;
  transform: rotate(-2.5deg);
  border-color: rgba(105, 255, 105, .6);
}

.frame-b {
  right: 0;
  bottom: 0;
  width: 58%;
  height: 58%;
  transform: rotate(2deg);
}

.frame-a::after,
.frame-b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 255, 255, .18), transparent 55%, rgba(105, 255, 105, .16));
  pointer-events: none;
}

/* ---------- 主体两栏 ---------- */
.cols {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 26px;
  padding: 32px 0 40px;
  align-items: start;
}

.side {
  position: sticky;
  top: 78px;
  background: var(--panel);
  padding: 16px 14px 20px;
  border-top: 3px solid var(--neon);
  box-shadow: inset 0 0 0 1px rgba(105, 255, 105, .12);
}

.side h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .06em;
  color: #eafff0;
}

.side hr {
  border: 0;
  height: 2px;
  margin: 0 0 12px;
  background: var(--chrome);
  opacity: .85;
}

.side-list { list-style: none; margin: 0; padding: 0; }

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  font-size: 16px;
  color: #cfe9d8;
  border-bottom: 1px dashed var(--line);
}

.side-list a:hover,
.side-list a:focus-visible {
  color: #f2fff7;
  background: rgba(105, 255, 105, .1);
}

.col-body { min-width: 0; }

.content { background: var(--panel); }

.prose {
  padding: clamp(18px, 3vw, 34px);
  border-top: 3px solid var(--cyan);
  background: var(--panel);
}

.prose h2 {
  position: relative;
  margin: 36px 0 0;
  padding-left: 15px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.35;
  color: #f0fff7;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 5px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(105, 255, 105, .8);
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  color: var(--cyan);
}

.prose hr {
  border: 0;
  height: 2px;
  margin: 12px 0 20px;
  background: var(--chrome);
  opacity: .7;
}

.prose p { margin: 0 0 16px; color: #cbe4d4; }

.prose div { scroll-margin-top: 92px; }

.prose > div + div {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prose > div:first-child > h2:first-child { margin-top: 0; }

.prose a { color: var(--cyan); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #cbe4d4; }
.prose li::marker { color: var(--neon); }

.prose blockquote {
  margin: 20px 0;
  padding: 14px 16px;
  background: #0c1a12;
  border-left: 3px solid var(--neon);
  color: #dff3e5;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose strong { color: #f2fff7; }

.prose img { height: auto; border: 2px solid rgba(0, 255, 255, .35); }

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

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

.prose th { background: #12251a; color: var(--neon); white-space: nowrap; }

.prose code {
  padding: 1px 5px;
  background: #0b1710;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
}

.prose pre {
  margin: 0 0 18px;
  padding: 14px;
  overflow-x: auto;
  background: #0b1710;
  border-left: 3px solid var(--cyan);
}

.prose pre code { padding: 0; background: none; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  background: #0b1a11;
  border-top: 3px solid var(--neon);
}

.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #eafff0;
  font-weight: 700;
}

.f-brand img { width: 22px; height: 22px; object-fit: contain; }

.f-brand span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
  font-size: 13px;
  background: var(--chrome);
}

.f-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 16px;
}

.f-nav a:hover { color: var(--neon); }

.f-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 600;
  background: var(--chrome);
}

.f-copy { color: #8fae9c; font-size: 16px; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(9, 20, 13, .95);
  border-top: 1px solid var(--edge);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .55);
}

.dock ol {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock ol::-webkit-scrollbar { height: 0; }

.dock a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 16px;
  color: #c2ddcd;
  border-right: 1px solid var(--line);
}

.dock ol a:hover { color: var(--neon); background: rgba(105, 255, 105, .08); }

.dock-cta {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 0 16px !important;
  color: var(--ink) !important;
  font-weight: 700;
  background: var(--chrome);
  border-right: 0 !important;
  box-shadow: 0 0 14px rgba(105, 255, 105, .35);
}

.dock-cta:hover { filter: brightness(1.1); }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-in { gap: 22px; }
  .collage { min-height: 220px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 92px; }
  .wrap { padding: 0 14px; }
  .hero { padding-top: 76px; min-height: 0; }
  .hero-in,
  .hero-in.plain { grid-template-columns: 1fr; }
  .lead { max-width: none; }
  .collage { min-height: 210px; margin-top: 6px; }
  .frame-a { width: 60%; height: 74%; }
  .frame-b { width: 56%; height: 66%; }
  .cols { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .side { position: static; }
  .side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .foot {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 6px 16px;
  }
  .f-nav { grid-column: 1 / -1; order: 3; }
  .f-copy { text-align: right; }
  .dock a { padding: 0 11px; }
}

@media (max-width: 400px) {
  .side-list { grid-template-columns: 1fr; }
  .dock-cta { padding: 0 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .screen, .burger span { transition: none; }
}

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