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

:root {
  --bg: #192617;
  --bg-deep: #101c12;
  --neon: #87ff71;
  --ice: #01cdfe;
  --pink: #ff71ce;
  --fg: #d8f3df;
  --dim: #8fb79c;
  --line: rgba(135, 255, 113, .22);
  --rail: 250px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.8 "Quicksand", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .15) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  opacity: .5;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--ice); }
a:focus-visible { outline: 2px dashed var(--neon); outline-offset: 3px; }

.ann {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(90deg, var(--neon), var(--ice) 52%, var(--pink));
  color: #12200f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.ann span {
  display: block;
  animation: slide 14s linear infinite;
}

@keyframes slide {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  padding-top: 34px;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 34px;
  align-self: start;
  height: calc(100vh - 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 18px 30px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(1, 205, 254, .12), rgba(25, 38, 23, 0) 62%),
    var(--bg-deep);
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: #f2fff0;
}

.mark img { width: 44px; height: 44px; object-fit: cover; }

.mark-t {
  font-family: "Caveat", "Quicksand", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  text-shadow: 0 0 14px rgba(135, 255, 113, .55), 2px 0 0 rgba(1, 205, 254, .55);
}

.rail-h {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--dim);
}

.rail-h > span { display: inline-block; }

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

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  border-left: 2px solid transparent;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #0f1c10;
  background: var(--neon);
  border-left-color: var(--ice);
  transform: translateX(3px);
}

.col { min-width: 0; }

main { padding-bottom: 8px; }

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 64px 26px 38px;
  background: radial-gradient(120% 90% at 50% 110%, rgba(255, 113, 206, .22), rgba(25, 38, 23, 0) 70%);
}

.hero h1 {
  margin: 0 auto 14px;
  max-width: 20ch;
  font-family: "Caveat", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(2.1rem, 7vw, 3.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  color: #f6fff2;
  text-shadow:
    0 0 18px rgba(135, 255, 113, .55),
    3px 0 0 rgba(1, 205, 254, .55),
    -3px 0 0 rgba(255, 113, 206, .5);
  animation: flick 6s ease-in-out infinite;
}

@keyframes flick {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: .82; }
  98% { opacity: 1; }
}

.hero-d {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: #bfe8cb;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 190px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, #1d2b19 0%, #3a2a4d 38%, #7d3570 66%, var(--pink) 84%, var(--ice) 100%);
}

.hero-media {
  position: relative;
  z-index: 3;
  width: 100%;
  max-height: 44vh;
  object-fit: cover;
  filter: saturate(1.15) hue-rotate(-6deg);
}

.sun {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 148px;
  height: 148px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe9a8, var(--pink) 55%, #ff9f6b);
  box-shadow: 0 0 60px 22px rgba(255, 113, 206, .35);
  z-index: 1;
}

.grid-floor {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 52%;
  background-image:
    linear-gradient(rgba(1, 205, 254, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 113, .4) 1px, transparent 1px);
  background-size: 100% 24px, 46px 100%;
  transform: perspective(190px) rotateX(58deg);
  transform-origin: bottom center;
  opacity: .7;
  animation: crawl 5s linear infinite;
}

@keyframes crawl {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 24px, 0 0; }
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.prose div {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}

.prose div:first-child { border-top: 0; padding-top: 46px; }

.prose h2 {
  margin: 0 0 20px;
  font-family: "Caveat", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(1.6rem, 4.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.24;
  color: #f2fff0;
  letter-spacing: .01em;
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  position: relative;
}

.prose h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--ice) 60%, var(--pink));
  box-shadow: 0 0 12px rgba(1, 205, 254, .6);
}

.prose h3 {
  margin: 30px 0 14px;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: .02em;
}

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--ice); }

.prose strong { color: #f6fff2; }
.prose a { text-decoration-color: rgba(1, 205, 254, .5); text-underline-offset: 3px; }
.prose a:hover { color: var(--neon); }

.prose blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  background: rgba(1, 205, 254, .1);
  border-left: 4px solid var(--ice);
}

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

.prose figure { margin: 22px 0; }
.prose figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }

.prose img { border-radius: 0; }

.site-foot {
  display: grid;
  grid-template-columns: 1.4fr auto auto;
  gap: 18px 26px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  border-top: 1px solid rgba(1, 205, 254, .3);
  background: linear-gradient(180deg, rgba(1, 205, 254, .06), rgba(25, 38, 23, 0));
}

.site-foot p { margin: 0; }

.foot-mark {
  font-family: "Caveat", "Quicksand", system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f4fff0;
  text-shadow: 0 0 16px rgba(135, 255, 113, .55), 2px 0 0 rgba(255, 113, 206, .5);
}

.foot-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--neon);
  color: #12200f;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .18s, transform .18s;
}

.foot-back a:hover { background: var(--ice); transform: translateY(-2px); }

.foot-copy { font-size: 13px; color: var(--dim); letter-spacing: .04em; }

@media (max-width: 860px) {
  .shell { display: block; }

  .rail {
    position: sticky;
    top: 34px;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 28, 18, .96);
    backdrop-filter: blur(6px);
  }

  .rail-h { display: none; }
  .mark { min-height: 40px; flex: 0 0 auto; }
  .mark img { width: 34px; height: 34px; }
  .mark-t { font-size: 20px; }

  .rail-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .rail-nav::-webkit-scrollbar { display: none; }

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

  .rail-nav a {
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .rail-nav a:hover,
  .rail-nav a:focus-visible { transform: none; border-bottom-color: var(--ice); }

  .hero { min-height: 58vh; }
  .hero-copy { padding: 40px 20px 30px; }
  .hero-d { font-size: 15px; }
  .prose { padding: 0 20px; }
  .prose div { padding: 40px 0; scroll-margin-top: 90px; }
  .sun { width: 108px; height: 108px; }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 20px 40px;
    justify-items: start;
  }
}

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

.js .prose > div,
.js .site-foot {
  opacity: 0;
  transform: translateY(16px);
}

.js .prose > div.in,
.js .site-foot.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

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