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

:root {
  --ink: #192617;
  --lime: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --text: #e2f2e3;
  --mute: #a2bfa6;
  --line: rgba(135, 255, 113, .18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 100px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px);
  opacity: .5;
}

/* 角落品牌图标 */
.mark {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(135, 255, 113, .45);
  background: rgba(18, 29, 17, .72);
  color: var(--lime);
  text-decoration: none;
  overflow: hidden;
}
.mark-glyph { font-weight: 700; font-size: 20px; line-height: 1; }
.mark-img { width: 100%; height: 100%; object-fit: cover; }

/* 底部固定胶囊导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 27, 16, .88);
  border-top: 1px solid rgba(1, 205, 254, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dock ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock ol::-webkit-scrollbar { display: none; }
.dock li { flex: 0 0 auto; }

.dock-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 113, .3);
  color: #d4ecd7;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dock-link:hover,
.dock-link:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  color: #12200f;
}

@media (min-width: 860px) {
  .dock ol { justify-content: center; }
}

/* 首屏 */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16vh 6vw 20vh;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, #101a10 0%, #1d2f1b 32%, #2b2a46 56%, #6b2a5c 74%, #3a2350 88%, #192617 100%);
}

.stage-art {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.sun {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(54vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  opacity: .5;
  filter: blur(.5px);
  background: linear-gradient(180deg, #ffe08a 0%, #ff71ce 44%, #b967ff 72%, #01cdfe 100%);
  box-shadow: 0 0 90px rgba(255, 113, 206, .45);
}
.sun::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: repeating-linear-gradient(180deg, #192617 0 5px, transparent 5px 13px);
}

.grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -6%;
  height: 58%;
  opacity: .45;
  background-image:
    linear-gradient(rgba(1, 205, 254, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 113, 206, .45) 1px, transparent 1px);
  background-size: 100% 46px, 54px 100%;
  transform: perspective(320px) rotateX(66deg);
  transform-origin: 50% 100%;
}

.ghost {
  position: absolute;
  left: 50%;
  bottom: 21%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: clamp(3.2rem, 18vw, 13rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(135, 255, 113, .3);
  pointer-events: none;
}

.stage-core {
  position: relative;
  z-index: 3;
  max-width: 62ch;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 8.6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
  color: #f4fff4;
  text-shadow:
    3px 0 rgba(255, 113, 206, .55),
    -3px 0 rgba(1, 205, 254, .55),
    0 0 34px rgba(135, 255, 113, .4);
  animation: glitch 7s steps(1) infinite;
}

@keyframes glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
}

.lede {
  margin: 1.4rem auto 0;
  max-width: 46ch;
  font-size: 17px;
  color: #d3e8d6;
}

/* 正文与右栏 */
.body-split {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.2rem clamp(18px, 5vw, 48px) 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}

@media (min-width: 960px) {
  .body-split {
    grid-template-columns: minmax(0, 1fr) 266px;
    gap: 3.2rem;
  }
}

.prose article {
  padding: 2.4rem 0 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.4rem;
}
.prose article:first-child { border-top: 0; padding-top: .6rem; }

.prose h2 {
  margin: .2rem 0 .1rem;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  color: var(--lime);
  text-shadow: 0 0 22px rgba(135, 255, 113, .22);
}
.prose h3 {
  margin: 1.6rem 0 .1rem;
  font-size: 1.22rem;
  color: #d9ffe2;
}
.prose h2 + hr,
.prose h3 + hr {
  border: 0;
  height: 2px;
  width: 76px;
  margin: .35rem 0 1.35rem;
  background: linear-gradient(90deg, var(--lime), var(--cyan), transparent);
}
.prose p { margin: 0 0 1.1rem; color: #dbeddd; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: #f2fff3; }
.prose blockquote {
  margin: 1.4rem 0;
  padding: .5rem 0 .5rem 1.1rem;
  border-left: 3px solid var(--pink);
  color: #cbe0ce;
}

/* 右栏 */
.rail { order: 2; }
@media (min-width: 960px) {
  .rail { position: sticky; top: 1.6rem; align-self: start; }
}

.rail-inner {
  border: 1px solid rgba(1, 205, 254, .3);
  border-radius: 28px;
  padding: 1.3rem 1.2rem 1rem;
  background: rgba(28, 44, 28, .55);
}
.rail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--cyan);
}
.rail-title + hr {
  border: 0;
  height: 1px;
  margin: .75rem 0 1rem;
  background: rgba(1, 205, 254, .35);
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .4rem .15rem;
  font-size: 16px;
  color: #d2e8d5;
  text-decoration: none;
  border-bottom: 1px solid rgba(135, 255, 113, .1);
}
.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { color: var(--lime); }

/* 页脚 */
footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 113, 206, .3);
  background: linear-gradient(180deg, rgba(20, 31, 19, .25), rgba(11, 18, 11, .92));
  padding: 3rem clamp(18px, 5vw, 48px) 1.4rem;
}

.foot-top {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .foot-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 3rem;
  }
}

.foot-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(135, 255, 113, .4);
  color: var(--lime);
  font-weight: 700;
}
.foot-name {
  margin: .7rem 0 .4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lime);
}
.foot-desc { margin: 0; max-width: 34ch; color: var(--mute); font-size: 16px; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.foot-cols dl { margin: 0; }
.foot-cols dt {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.foot-cols dd { margin: 0; }
.foot-cols a {
  display: inline-block;
  padding: .5rem 0;
  min-height: 40px;
  font-size: 16px;
  color: #d2e8d5;
  text-decoration: none;
}
.foot-cols a:hover { color: var(--lime); }

.foot-form {
  max-width: 1160px;
  margin: 2.4rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(135, 255, 113, .24);
  border-radius: 28px;
  background: rgba(25, 38, 23, .5);
}
.foot-form label { font-size: 16px; color: var(--lime); letter-spacing: .06em; }
.foot-form input {
  flex: 1 1 190px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 205, 254, .35);
  background: rgba(9, 16, 9, .75);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.foot-form input::placeholder { color: #85a189; }
.foot-form button {
  min-height: 44px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  color: #10210f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.foot-base {
  max-width: 1160px;
  margin: 1.8rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(135, 255, 113, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 16px;
}
.foot-base p { margin: 0; }
.foot-base a {
  display: inline-block;
  min-height: 40px;
  padding: .5rem 0;
  color: var(--lime);
  text-decoration: none;
}

/* 入场 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

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