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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --bg: #07110c;
  --panel: #0c1a12;
  --line: rgba(105, 255, 105, 0.24);
  --line2: rgba(0, 255, 255, 0.2);
  --text: #e2ffee;
  --dim: #a8ccb8;
  --rad: 28px;
  --chrome: linear-gradient(168deg, #ffffff, #a9f3c6 22%, #ffffff 44%, #57c388 62%, #eafff2 88%);
  --candy: linear-gradient(135deg, #69ff69, #00ffff 55%, #a5ffd0);
  --tick: 36px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--tick) + 18px);
}

body {
  margin: 0;
  padding: var(--tick) 0 0 208px;
  background:
    radial-gradient(circle, rgba(0, 255, 255, 0.10) 1.3px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(120% 80% at 90% 0%, rgba(105, 255, 105, 0.13), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(0, 255, 255, 0.10), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: 'Chakra Petch', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, .brand, .toc i {
  font-family: 'Russo One', 'Chakra Petch', "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

a { color: var(--cyan); }

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--tick);
  z-index: 70;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--candy);
  border-bottom: 2px solid #05170e;
  color: #052013;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ticker-track {
  display: flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
  animation: slide 26s linear infinite;
}

.ticker-track span { padding: 0 14px; }
.ticker-track .st { color: #0b3a20; font-size: 13px; }

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

/* ---------- 左侧固定头 ---------- */
.sitehead {
  position: fixed;
  left: 0;
  top: var(--tick);
  bottom: 0;
  width: 208px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px;
  background: linear-gradient(180deg, #0b1a11, #060f0a 82%);
  border-right: 2px solid var(--line);
  overflow: hidden;
  transition: width 0.24s ease, padding 0.24s ease;
}

.sitehead::after {
  content: "✦ ✧ ✦";
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(0, 255, 255, 0.35);
  letter-spacing: 0.5em;
  font-size: 13px;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(105, 255, 105, 0.5));
  letter-spacing: 0.06em;
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 14px;
  border: 2px solid var(--neon);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(105, 255, 105, 0.18), rgba(0, 255, 255, 0.12));
  color: var(--neon);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 0 18px -4px rgba(105, 255, 105, 0.6);
  transition: background 0.2s ease, color 0.2s ease;
}

.burger:hover { background: var(--candy); color: #05200f; }

.bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.sitehead nav { display: none; }

.sitehead nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitehead nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 4px;
  font-family: 'Russo One', sans-serif;
  font-size: clamp(22px, 2.6vw, 38px);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 255, 255, 0.14);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.sitehead nav a::before {
  content: "✦";
  margin-right: 12px;
  font-size: 0.55em;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sitehead nav a:hover,
.sitehead nav a:focus-visible {
  color: var(--neon);
  padding-left: 8px;
}

.sitehead nav a:hover::before,
.sitehead nav a:focus-visible::before { opacity: 1; }

.sitehead.open {
  width: 100%;
  top: 0;
  padding: clamp(18px, 4vw, 52px) clamp(18px, 5vw, 64px);
  gap: 26px;
  overflow: auto;
  border-right: 0;
  z-index: 90;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0, 255, 255, 0.16), transparent 60%),
    radial-gradient(90% 70% at 5% 100%, rgba(105, 255, 105, 0.18), transparent 62%),
    #06100b;
}

.sitehead.open::after { bottom: 18px; }
.sitehead.open nav { display: block; width: 100%; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 2px solid var(--line2);
  background-image:
    linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(105, 255, 105, 0.06) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  background-position: 0 0, 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.6), rgba(105, 255, 105, 0.35) 40%, rgba(0, 255, 255, 0.22) 70%, transparent 78%);
  filter: blur(6px);
  pointer-events: none;
}

.spark {
  position: absolute;
  color: var(--cyan);
  font-size: 22px;
  filter: drop-shadow(0 0 10px #00ffff);
  animation: float 4s ease-in-out infinite;
}

.sp-a { left: 8%; top: 22%; }
.sp-b { left: 20%; bottom: 18%; color: var(--neon); font-size: 16px; animation-delay: 1.4s; }

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

.hero-side { flex: none; order: 1; }

.hero-art {
  display: block;
  width: clamp(120px, 15vw, 200px);
  height: auto;
  border-radius: var(--rad);
  border: 2px solid var(--line2);
  box-shadow: 0 0 40px -8px rgba(0, 255, 255, 0.6);
}

.orb {
  display: block;
  width: clamp(110px, 14vw, 170px);
  height: clamp(110px, 14vw, 170px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff, #c8ffdd 20%, #69ff69 46%, #00ffff 76%, #0b3a26);
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.45), inset -14px -18px 36px rgba(0, 0, 0, 0.4);
}

.hero-txt {
  order: 2;
  position: relative;
  text-align: right;
  max-width: 640px;
}

.hero-txt h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.4vw, 64px);
  line-height: 1.16;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, 0.45)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55));
}

.hero-txt .lead {
  margin: 0 0 26px auto;
  max-width: 42ch;
  color: var(--dim);
  font-size: 17px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid #05170e;
  background: var(--candy);
  color: #04190d;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(0, 255, 255, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(105, 255, 105, 0.95); }
.btn .star { font-size: 13px; }
.btn-lg { min-height: 56px; padding: 16px 42px; font-size: 19px; }

/* ---------- 主体 ---------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 36px);
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(26px, 4vw, 56px) 0;
  align-items: start;
}

.prose {
  font-size: 17px;
  line-height: 1.85;
  min-width: 0;
}

.prose > section {
  padding: 8px 0 34px;
  border-bottom: 2px dashed rgba(105, 255, 105, 0.16);
  scroll-margin-top: calc(var(--tick) + 18px);
}

.prose > section:last-child { border-bottom: 0; }

.prose h2 {
  margin: 26px 0 14px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.32;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.4);
}

.prose h2 > span { display: inline; }

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

.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 255, 255, 0.4);
}

.prose a:hover { border-bottom-color: var(--neon); color: var(--neon); }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rad);
  border: 2px solid var(--line2);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 20px;
  border-left: 4px solid var(--neon);
  border-radius: 0 var(--rad) var(--rad) 0;
  background: rgba(105, 255, 105, 0.07);
  color: var(--dim);
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: calc(var(--tick) + 22px);
  height: max-content;
  padding: 16px 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--rad);
  background: linear-gradient(170deg, rgba(105, 255, 105, 0.09), rgba(0, 255, 255, 0.06) 70%, transparent);
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-h {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--cyan);
}

.hd { display: inline-flex; align-items: center; gap: 8px; }
.hd .dot { font-size: 11px; color: var(--neon); }

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

.toc li {
  animation: pop 0.46s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes pop {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.toc a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 8px;
  border-radius: 14px;
  color: #cdeed9;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.toc a:hover { background: rgba(0, 255, 255, 0.14); color: #f2fffa; }
.toc i { font-style: normal; font-size: 12px; letter-spacing: 0.1em; color: var(--neon); }

/* ---------- 尾部大块 ---------- */
.cta {
  margin: 12px 0 clamp(34px, 5vw, 62px);
  padding: clamp(30px, 5vw, 56px) clamp(18px, 4vw, 40px);
  border-radius: var(--rad);
  border: 2px solid var(--line2);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(0, 255, 255, 0.18), transparent 60%),
    radial-gradient(80% 120% at 92% 100%, rgba(105, 255, 105, 0.2), transparent 62%),
    #0a1811;
  text-align: center;
  box-shadow: 0 30px 60px -34px rgba(0, 255, 255, 0.7);
}

.cta-h {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.4vw, 40px);
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.42));
}

/* ---------- 页脚 ---------- */
.sitefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 3.4vw, 36px);
  border-top: 2px solid var(--line);
  background: rgba(6, 16, 11, 0.85);
  font-size: 16px;
  color: var(--dim);
}

.sitefoot p { margin: 0; }
.sitefoot small { display: flex; gap: 6px; }

.sitefoot small a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 8px;
  color: var(--dim);
  text-decoration: none;
}

.sitefoot small a:hover { color: var(--neon); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  body { padding: var(--tick) 0 0 0; }

  .sitehead {
    top: var(--tick);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .sitehead::after { display: none; }
  .sitehead.open { height: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .brand { font-size: 18px; }

  .board { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .side { position: static; order: 2; }

  .hero {
    min-height: auto;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 18px 36px;
    gap: 18px;
  }

  .hero-txt { max-width: 100%; }
  .hero-side { align-self: flex-end; }
  .sp-a { left: 6%; top: 12%; }
  .sp-b { display: none; }
}

@media (max-width: 420px) {
  .hero-txt h1 { font-size: 32px; }
  .sitefoot { justify-content: center; }
  .sitefoot small { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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