@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: #192617;
  --deep: #0d1610;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --text: #dcf2e2;
  --muted: #9fc0a9;
  --radius: 28px;
  --line: rgba(135, 255, 113, 0.26);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 62% at 50% -12%, rgba(185, 103, 255, 0.45), rgba(255, 113, 206, 0.2) 40%, rgba(13, 22, 16, 0) 70%),
    linear-gradient(180deg, rgba(1, 205, 254, 0.12), rgba(13, 22, 16, 0) 34%),
    repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.09) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(135, 255, 113, 0.07) 0 1px, transparent 1px 70px);
  background-attachment: fixed;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  opacity: 0.6;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

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

img {
  max-width: 100%;
}

/* 顶部品牌行 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(13, 22, 16, 0.94), rgba(13, 22, 16, 0.74));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-in {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  text-decoration: none;
  color: #eefff2;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.brand-name {
  text-shadow:
    0 0 12px rgba(135, 255, 113, 0.8),
    0 0 34px rgba(1, 205, 254, 0.55);
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--neon), var(--cyan) 55%, var(--violet));
  box-shadow: 0 0 18px rgba(1, 205, 254, 0.6);
}

.brand-pic {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

/* 侧栏 + 主区 */
.stage {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 32px 0 72px;
}

.rail {
  position: sticky;
  top: 92px;
  padding: 16px 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(37, 56, 38, 0.96), rgba(19, 31, 21, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(135, 255, 113, 0.18),
    0 20px 44px rgba(0, 0, 0, 0.42);
}

.rail nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 16px;
  color: #d3eeda;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.rail nav a:hover,
.rail nav a:focus-visible {
  background: rgba(135, 255, 113, 0.15);
  box-shadow: inset 0 0 0 1px rgba(135, 255, 113, 0.5);
  color: #f2fff5;
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--neon), var(--cyan));
  color: #0b1a10;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(135, 255, 113, 0.42);
}

.main {
  min-width: 0;
}

.post {
  min-width: 0;
}

/* hero */
.hero {
  padding: 22px 0 4px;
  text-align: left;
}

.hero.has-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 34px;
  align-items: center;
  min-height: 45vh;
}

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

h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 5.8vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  background: linear-gradient(100deg, #f6fff5, var(--neon) 44%, var(--cyan) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(135, 255, 113, 0.4));
}

.hero-sub {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-art {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(1, 205, 254, 0.55), rgba(185, 103, 255, 0.6) 56%, rgba(255, 113, 206, 0.55));
  box-shadow: 0 0 36px rgba(1, 205, 254, 0.32);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.route-title {
  margin: 34px 0 10px;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #eafff0;
}

hr {
  height: 1px;
  margin: 0 0 24px;
  border: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 46%, rgba(185, 103, 255, 0));
  box-shadow: 0 0 12px rgba(1, 205, 254, 0.55);
}

/* 正文 */
.body {
  min-width: 0;
  overflow-wrap: break-word;
}

.body article[id] {
  scroll-margin-top: 104px;
}

.body h2[id],
.body h3[id] {
  scroll-margin-top: 104px;
}

.body h2 {
  margin: 50px 0 12px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.32;
  color: #f0fff3;
}

.body h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  vertical-align: middle;
  transform: translateY(-3px);
}

.body h2 + hr {
  margin: 0 0 20px;
}

.body h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--neon);
}

.body p {
  margin: 0 0 18px;
}

.body ul,
.body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.body li {
  margin: 0 0 10px;
}

.body strong {
  color: #f4fff6;
}

.body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(1, 205, 254, 0.11);
  color: #e2f2ff;
}

.body figure {
  margin: 0 0 20px;
}

.body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  border-radius: 20px;
}

.body table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 16px;
}

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

.body code,
.body pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 15px;
}

.body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(1, 205, 254, 0.1);
}

.body article[id] {
  margin-bottom: 10px;
}

/* 页脚 */
.foot {
  margin-top: 24px;
  padding: 54px 0 46px;
  background: linear-gradient(180deg, rgba(13, 22, 16, 0), rgba(1, 205, 254, 0.08) 42%, rgba(185, 103, 255, 0.16));
}

.foot-in {
  text-align: center;
}

.foot-cta {
  padding: 38px 20px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(135, 255, 113, 0.16), rgba(1, 205, 254, 0.16) 55%, rgba(185, 103, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(135, 255, 113, 0.28);
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 36px;
  border-radius: 26px;
  background: var(--neon);
  color: #10230f;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(135, 255, 113, 0.5);
}

.foot-addr {
  margin: 28px 0 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ccead4;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--cyan);
  font-size: 16px;
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--neon);
  text-decoration: underline;
}

.foot-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

.rail nav li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rail.ready nav li {
  opacity: 1;
  transform: none;
}

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

  .reveal,
  .rail nav li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 移动端 */
@media (max-width: 900px) {
  .wrap {
    width: min(1180px, 100% - 30px);
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0 56px;
  }

  .rail {
    position: static;
    padding: 14px 12px 16px;
  }

  .rail nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail nav a {
    padding: 8px 12px;
    font-size: 16px;
  }

  .hero.has-art {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
  }

  .hero-art {
    max-width: 300px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .body h2 {
    margin-top: 40px;
  }

  .foot {
    padding: 40px 0 36px;
  }

  .foot-cta {
    padding: 28px 14px;
  }
}

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