@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ink: #172617;
  --mint: #69ff69;
  --cyan: #00ffff;
  --pink: #ff5fd2;
  --bg: #0a1310;
  --txt: #dcf3e4;
  --muted: #9dbfaa;
  --line: rgba(105, 255, 105, 0.2);
  --chrome: linear-gradient(148deg, #ffffff, #c9e6d8 28%, #ffffff 46%, #93b3a4 60%, #eafff6);
  --r: 18px;
}

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

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--txt);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 640px at 88% -8%, rgba(0, 255, 255, 0.17), transparent 62%),
    radial-gradient(900px 560px at 4% 6%, rgba(255, 95, 210, 0.15), transparent 60%),
    radial-gradient(760px 720px at 50% 112%, rgba(105, 255, 105, 0.14), transparent 62%),
    var(--bg);
}

::selection {
  background: var(--pink);
  color: #12100f;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 顶部条 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px clamp(14px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(10, 19, 16, 0.97), rgba(10, 19, 16, 0.84));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(0, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #ecfff4;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand:active { transform: translateY(1px); }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chrome);
  color: #0c1a12;
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 20px rgba(0, 255, 255, 0.55);
}

.brand-name { font-size: 17px; }

/* ---------- 汉堡 / 全屏遮罩菜单 ---------- */
.menu-wrap { position: relative; }

.burger {
  list-style: none;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b1a11;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 26px -12px rgba(0, 255, 255, 0.95);
  user-select: none;
}

.burger::-webkit-details-marker { display: none; }

.b-close { display: none; }

.menu-wrap[open] .burger {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.menu-wrap[open] .b-open { display: none; }
.menu-wrap[open] .b-close { display: inline; }

.menu-list {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 92px clamp(18px, 6vw, 72px) 44px;
  list-style: none;
  display: grid;
  align-content: center;
  gap: 2px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  background:
    radial-gradient(720px 520px at 82% 8%, rgba(0, 255, 255, 0.24), transparent 62%),
    radial-gradient(620px 520px at 8% 92%, rgba(255, 95, 210, 0.24), transparent 60%),
    rgba(7, 15, 12, 0.97);
  backdrop-filter: blur(16px) saturate(1.3);
}

.menu-wrap[open] .menu-list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-list li { border-bottom: 1px solid rgba(105, 255, 105, 0.16); }

.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 6px;
  text-decoration: none;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.menu-list a span {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 255, 255, 0.35));
}

.menu-list a::after {
  content: "✦";
  font-size: 0.55em;
  color: var(--pink);
  filter: drop-shadow(0 0 10px currentColor);
}

.menu-list a:hover span,
.menu-list a:focus-visible span {
  background: linear-gradient(100deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(26px, 7vw, 70px) clamp(16px, 5vw, 48px) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  z-index: 0;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(58px, 17vw, 190px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(105, 255, 105, 0.3);
  will-change: transform;
}

.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  z-index: 0;
  font-size: clamp(18px, 3.6vw, 40px);
  filter: drop-shadow(0 0 14px currentColor);
  animation: drift 7.5s ease-in-out infinite;
}

.hero::before {
  top: 15%;
  right: 9%;
  color: var(--cyan);
}

.hero::after {
  top: 44%;
  left: 5%;
  color: var(--pink);
  animation-delay: -3.4s;
}

@keyframes drift {
  50% { transform: translateY(-15px) rotate(14deg); }
}

.hero-top {
  position: relative;
  z-index: 1;
  max-width: min(1000px, 100%);
  padding-top: clamp(10px, 4vw, 40px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 7.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  background: linear-gradient(118deg, #ffffff, #c9ffe0 32%, var(--mint) 58%, var(--cyan) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(0, 255, 255, 0.34));
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #1c2d24, #0d1a14);
  box-shadow: inset 0 -26px 60px -34px rgba(0, 255, 255, 0.8);
}

.hero-media:empty { display: none; }

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

/* ---------- 主体骨架 ---------- */
main {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 48px) clamp(46px, 8vw, 92px);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
  }
}

.content { min-width: 0; }

.prose { max-width: 70ch; }

.prose article {
  scroll-margin-top: 96px;
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid rgba(105, 255, 105, 0.16);
}

.prose article:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose article:last-child { padding-bottom: 0; }

.prose h2 {
  margin: 0 0 0.62em;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.26;
  letter-spacing: -0.012em;
  font-weight: 800;
  color: #eefff5;
}

.prose h2 span {
  background: linear-gradient(100deg, var(--mint), var(--cyan) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 16px rgba(0, 255, 255, 0.28));
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.35;
  font-weight: 800;
  color: #e6fff0;
}

.prose h3 span { color: var(--cyan); }

.prose p { margin: 0 0 1.05em; }

.prose strong { color: #ffffff; }

.prose a {
  color: var(--mint);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--cyan); }

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

.prose li { margin: 0.34em 0; }

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(0, 255, 255, 0.07);
  color: #e9fff5;
}

.prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* ---------- 右侧栏 ---------- */
.rail {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: 0 26px 52px -34px rgba(0, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

@media (min-width: 960px) {
  .rail {
    position: sticky;
    top: 92px;
  }
}

.rail-title,
.rail-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #b9e8ca;
}

.rail-sub { margin-top: 4px; }

.rail-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: idx;
  display: grid;
  gap: 2px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
  color: #d9f7e5;
}

.rail-nav a::before {
  counter-increment: idx;
  content: counter(idx, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.rail-nav a:hover {
  background: rgba(105, 255, 105, 0.13);
  color: #ffffff;
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #0b1a11;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 12px 28px -14px rgba(0, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ---------- 页脚 ---------- */
.ft {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(0, 255, 255, 0.12), transparent 65%),
    radial-gradient(700px 340px at 85% 100%, rgba(255, 95, 210, 0.13), transparent 65%),
    #0b1611;
}

.ft-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) clamp(16px, 5vw, 48px) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
}

.cta-h {
  margin: 0;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f3fff8;
}

.cta-h span {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(255, 255, 255, 0.28));
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #0d1a13;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 16px 36px -16px rgba(255, 95, 210, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ft-row {
  max-width: 1180px;
  margin: clamp(22px, 4vw, 38px) auto 0;
  padding: 16px clamp(16px, 5vw, 48px) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #eafff2;
}

.ft-mark { color: var(--pink); }

.ft-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

.ft-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: #c9eed9;
}

.ft-nav a:hover {
  background: rgba(105, 255, 105, 0.15);
  color: #ffffff;
}

.ft-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 移动端 ---------- */
@media (max-width: 959px) {
  .hero { min-height: 92vh; }
  .prose { max-width: 100%; }
  .rail { order: 2; }
  .ft-nav { margin-left: 0; width: 100%; }
  .ft-copy { width: 100%; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-bg { bottom: 32%; }
  .cta-btn { width: 100%; justify-content: center; }
}

@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;
  }
}

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