:root{
  --ink:#192617;
  --ink-deep:#0d160e;
  --neon:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --purple:#b967ff;
  --line:rgba(135,255,113,.26);
  --line-soft:rgba(1,205,254,.22);
  --paper:rgba(17,29,18,.74);
  --text:#dcecd6;
  --rail:272px;
  --pad-x:clamp(1rem,5vw,3rem);
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:"Lato","Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.01em;
  overflow-x:hidden;
  overflow-wrap:break-word;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 84% 4%, rgba(255,113,206,.20), transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(185,103,255,.20), transparent 55%),
    linear-gradient(180deg, rgba(1,205,254,.10), rgba(25,38,23,0) 40%),
    repeating-linear-gradient(0deg, rgba(135,255,113,.09) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(135,255,113,.09) 0 1px, transparent 1px 46px),
    var(--ink);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.22;
  background:repeating-linear-gradient(0deg, rgba(0,0,0,.42) 0 1px, transparent 1px 3px);
}

img{max-width:100%}

a{color:var(--neon)}

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

/* ---------- 左侧竖排导航 ---------- */

.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail);
  z-index:40;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:1rem;
  padding:1.6rem 1rem;
  background:
    linear-gradient(180deg, rgba(255,113,206,.16), rgba(1,205,254,.12) 48%, rgba(185,103,255,.18)),
    rgba(12,21,13,.93);
  border-right:1px solid var(--line);
  backdrop-filter:blur(10px);
}

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

.rail-nav a{
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  padding:.3rem .6rem;
  border:1px solid transparent;
  border-radius:8px;
  color:#d8ecd2;
  font-size:16px;
  text-decoration:none;
  transition:color .18s ease, border-color .18s ease, background .18s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible{
  color:#f5fff1;
  border-color:var(--line);
  background:rgba(135,255,113,.09);
  text-shadow:0 0 12px rgba(135,255,113,.65);
}

.pip{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  border:1px solid var(--neon);
  box-shadow:0 0 8px rgba(135,255,113,.7);
}

.rail-nav a:hover .pip,
.rail-nav a:focus-visible .pip{background:var(--neon)}

.rail-brand{text-align:center}

.brand{
  display:inline-block;
  padding:.4rem .2rem;
  font-family:"EB Garamond",Georgia,"Songti SC",serif;
  font-size:1.5rem;
  font-weight:600;
  line-height:1.2;
  color:#f6fff3;
  text-decoration:none;
  text-shadow:0 0 12px rgba(1,205,254,.6), 0 0 26px rgba(255,113,206,.45);
}

/* ---------- 主区 ---------- */

.stage{
  margin-left:var(--rail);
  min-height:100vh;
}

.sheet{
  padding:0 var(--pad-x) 3rem;
}

.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:100vh;
  min-height:100svh;
  margin-inline:calc(var(--pad-x) * -1);
  padding:clamp(1.5rem,5vw,4rem);
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 76% 16%, rgba(255,113,206,.55), transparent 58%),
    linear-gradient(168deg, rgba(185,103,255,.52), rgba(1,205,254,.34) 46%, #0f1c10 84%);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  background-image:radial-gradient(rgba(135,255,113,.5) 1.2px, transparent 1.2px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.12), #000);
  mask-image:linear-gradient(180deg, rgba(0,0,0,.12), #000);
}

.veil{
  position:absolute;
  inset:0;
  z-index:1;
}

.veil-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.62;
  filter:saturate(1.15) hue-rotate(-6deg);
}

.veil::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(13,22,14,.30), rgba(15,28,16,.86) 76%, #0f1c10);
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:min(760px,100%);
  animation:rise .9s ease-out both;
}

@keyframes rise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:none}
}

.hero-title{
  margin:0;
  font-family:"EB Garamond",Georgia,"Songti SC",serif;
  font-weight:600;
  font-size:clamp(2.1rem,6.4vw,4.4rem);
  line-height:1.05;
  color:#f6fff3;
  text-shadow:
    0 0 10px rgba(135,255,113,.55),
    0 0 34px rgba(1,205,254,.45),
    0 3px 0 rgba(13,22,14,.5);
}

.hero-lead{
  margin:1rem 0 0;
  max-width:46ch;
  font-size:1.02rem;
  color:#e9f7e3;
  text-shadow:0 1px 6px rgba(0,0,0,.65);
}

/* ---------- 正文区块 ---------- */

.sheet > section{
  max-width:880px;
  margin:0 auto 1.75rem;
  padding:clamp(1.2rem,3vw,2.2rem);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  scroll-margin-top:1.5rem;
}

.sheet > section:first-of-type{
  margin-top:clamp(1.5rem,4vw,2.5rem);
}

.sheet small{
  display:block;
  margin:0 0 .3rem;
  font-family:"Lato",Arial,sans-serif;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.26em;
  color:var(--cyan);
  text-shadow:0 0 10px rgba(1,205,254,.45);
}

.sheet h2,
.sheet h3{
  margin:1.6rem 0 .7rem;
  font-family:"EB Garamond",Georgia,"Songti SC",serif;
  font-weight:600;
  line-height:1.25;
  color:#f2fff0;
  text-shadow:0 0 14px rgba(135,255,113,.3);
}

.sheet h2{font-size:clamp(1.5rem,3.2vw,2.05rem)}
.sheet h3{font-size:clamp(1.2rem,2.4vw,1.5rem)}

.sheet small + h2,
.sheet small + h3{margin-top:0}

.sheet p{margin:0 0 1rem}

.sheet ul,
.sheet ol{
  margin:0 0 1.1rem;
  padding-left:1.25rem;
}

.sheet li{margin:.35rem 0}

.sheet li::marker{color:var(--neon)}

.sheet a{
  color:var(--neon);
  text-decoration:underline;
  text-decoration-color:rgba(135,255,113,.45);
  text-underline-offset:3px;
}

.sheet a:hover{text-decoration-color:var(--neon)}

.sheet img{
  height:auto;
  border-radius:8px;
  border:1px solid var(--line-soft);
}

.sheet blockquote{
  margin:1.2rem 0;
  padding:.2rem 0 .2rem 1rem;
  border-left:2px solid var(--cyan);
  color:#cfe6cb;
}

.sheet strong{color:#f2fff0}

/* ---------- 页脚 ---------- */

.foot{
  margin-left:var(--rail);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.6rem 1.4rem;
  padding:1.2rem var(--pad-x);
  border-top:1px solid var(--line);
  background:rgba(12,21,13,.88);
}

.foot-brand a{
  font-family:"EB Garamond",Georgia,"Songti SC",serif;
  font-size:clamp(1.35rem,3vw,2rem);
  font-weight:600;
  color:#f4fff0;
  text-decoration:none;
  text-shadow:0 0 16px rgba(255,113,206,.45);
}

.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.1rem .9rem;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:15px;
  color:#cfe4c9;
  text-decoration:none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible{color:var(--neon)}

.foot-copy{
  font-size:14px;
  color:#9dba97;
}

/* ---------- 移动端 ---------- */

@media (max-width:900px){
  :root{--pad-x:1rem}

  .rail{
    top:0;
    left:0;
    right:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:.15rem .5rem;
    padding:.35rem .5rem .4rem;
    border-right:0;
    border-bottom:1px solid var(--line);
    z-index:60;
  }

  .rail-brand{
    order:-1;
    flex:1 0 100%;
    text-align:left;
  }

  .brand{
    padding:.1rem .2rem;
    font-size:1.05rem;
  }

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

  .rail-nav::-webkit-scrollbar{display:none}

  .rail-nav ul{
    flex-direction:row;
    gap:.15rem;
    padding-bottom:.1rem;
  }

  .rail-nav a{
    min-height:44px;
    padding:.2rem .45rem;
    font-size:15px;
    white-space:nowrap;
  }

  .stage{margin-left:0}

  .hero{
    min-height:100svh;
    padding-top:104px;
    padding-right:1rem;
    padding-left:1rem;
  }

  .sheet{padding-bottom:2rem}

  .sheet > section{scroll-margin-top:118px}

  .foot{
    margin-left:0;
    justify-content:flex-start;
    padding:1rem var(--pad-x) 1.4rem;
  }

  .foot-copy{width:100%}
}

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

  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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