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

:root{
  --neon:#87ff71;
  --sun:#ffce5c;
  --ink:#192617;
  --ink-deep:#0e170d;
  --text:#eaf6e3;
  --muted:#b6ccad;
  --line:rgba(135,255,113,.3);
  --glass:rgba(255,255,255,.06);
  --head:'Lexend','Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --body:'Source Sans 3','Lexend','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.78;
  color:var(--text);
  background-color:var(--ink);
  background-image:
    repeating-linear-gradient(135deg,rgba(135,255,113,.045) 0 2px,rgba(0,0,0,0) 2px 17px),
    radial-gradient(rgba(255,206,92,.14) 1px,rgba(0,0,0,0) 1.7px);
  background-size:auto, 28px 28px;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--head);
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.01em;
  margin:0 0 .5em;
}

p{margin:0 0 1.1em;max-width:70ch}

a{
  color:var(--sun);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}
a:hover{color:var(--neon)}

img{max-width:100%;height:auto}

:focus-visible{outline:2px dashed var(--sun);outline-offset:3px}

/* 底部固定导航条 */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px clamp(12px,3vw,28px);
  background:rgba(14,23,13,.94);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border-top:2px dashed var(--line);
  transition:box-shadow .25s ease,border-color .25s ease;
}
.dock.is-stuck{
  border-top-color:var(--neon);
  box-shadow:0 -12px 34px rgba(0,0,0,.5);
}
.dock-brand{
  flex:0 0 auto;
  margin:0;
  font-family:var(--head);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.02em;
  color:var(--neon);
  white-space:nowrap;
}
.dock-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:thin;
}
.dock-nav ul{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.dock-nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 12px;
  font-size:1rem;
  color:#dff3d6;
  text-decoration:none;
  white-space:nowrap;
  border:1px dashed rgba(135,255,113,.22);
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.dock-nav a:hover,
.dock-nav a:focus-visible{
  color:var(--ink);
  background:var(--neon);
  border-color:var(--neon);
  transform:translateY(-3px) rotate(-1.2deg);
}
.dock-nav a[aria-current="true"]{
  color:var(--ink);
  background:var(--sun);
  border-color:var(--sun);
}
.ico{
  width:9px;
  height:9px;
  flex:0 0 auto;
  background:var(--sun);
  transform:rotate(45deg);
  transition:background .18s ease;
}
.dock-nav a:hover .ico,
.dock-nav a[aria-current="true"] .ico{background:var(--ink)}

/* 两栏骨架：正文左、侧栏右 */
.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:0 clamp(20px,3vw,44px);
  align-items:start;
  max-width:1440px;
  margin:0 auto;
  padding:0 clamp(16px,3vw,44px);
}

main{min-width:0}
div{min-width:0;overflow-wrap:break-word}

/* 首屏 */
.hero{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  grid-template-areas:"media text";
  align-items:center;
  gap:clamp(20px,4vw,56px);
  min-height:calc(100vh - 116px);
  padding:clamp(28px,5vw,56px) 0;
}
.hero-text{
  grid-area:text;
  text-align:center;
}
.hero-media{
  grid-area:media;
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  background:
    repeating-linear-gradient(45deg,rgba(135,255,113,.35) 0 10px,rgba(25,38,23,.92) 10px 20px);
  clip-path:polygon(0 0,100% 5%,100% 100%,0 95%);
}
.hero-media::after{
  content:"";
  position:absolute;
  right:-18%;
  bottom:-18%;
  width:62%;
  aspect-ratio:1;
  background:var(--sun);
  mix-blend-mode:hard-light;
  transform:rotate(18deg);
  pointer-events:none;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.04);
}
.hero-text h1{
  margin:0;
  font-size:clamp(2rem,4.6vw,3.6rem);
  color:#fff;
  text-shadow:4px 4px 0 rgba(135,255,113,.28);
}
.hero-text h1::after{
  content:"";
  display:block;
  width:88px;
  height:8px;
  margin:22px auto 0;
  background:var(--sun);
  transform:rotate(-2deg);
}

/* 正文区块（来自 page.content） */
div > section:not(.hero){
  position:relative;
  padding:clamp(34px,5vw,64px) 0;
  border-top:2px dashed var(--line);
  scroll-margin-top:24px;
}
div > section:not(.hero)::before{
  content:"";
  position:absolute;
  top:-7px;
  left:0;
  width:14px;
  height:14px;
  background:var(--neon);
  transform:rotate(45deg);
}
div h2{
  font-size:clamp(1.5rem,2.8vw,2.15rem);
  color:var(--neon);
  margin:0 0 .55em;
}
div > section:nth-of-type(even) h2{color:var(--sun)}
div h3{
  font-size:1.2rem;
  color:#fff;
  margin:1.6em 0 .5em;
}
div ul,div ol{padding-left:1.25em;margin:0 0 1.1em}
div li{margin:.3em 0}
div li::marker{color:var(--sun)}
div blockquote{
  margin:1.4em 0;
  padding:14px 18px;
  border-left:4px solid var(--sun);
  background:var(--glass);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
div blockquote p:last-child{margin-bottom:0}
div figure{
  margin:1.4em 0;
  padding:12px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,.16);
}
div figcaption{font-size:1rem;color:var(--muted);margin-top:8px}
div hr{border:0;border-top:2px dashed var(--line);margin:2em 0}
div table{
  width:100%;
  border-collapse:collapse;
  margin:1.4em 0;
  font-size:1rem;
}
div th,div td{
  border:1px dashed rgba(255,255,255,.22);
  padding:9px 10px;
  text-align:left;
}
div th{background:rgba(135,255,113,.12);color:var(--neon)}
div code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  background:rgba(0,0,0,.35);
  padding:1px 5px;
}
div strong{color:#fff}

/* 右侧目录栏（玻璃拟态，直角） */
.rail{
  position:sticky;
  top:18px;
  margin:clamp(24px,4vw,44px) 0 44px;
  padding:20px 18px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.16);
  border-left:4px solid var(--neon);
  border-radius:0;
}
.rail h2{
  margin:0 0 .25em;
  font-size:1.05rem;
  color:var(--neon);
  letter-spacing:.08em;
}
.rail .subtitle{
  margin:0 0 14px;
  font-family:var(--head);
  font-size:1rem;
  color:var(--sun);
}
.rail ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rail a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 6px;
  font-size:1rem;
  color:#dcefd4;
  text-decoration:none;
  border-bottom:1px dotted rgba(255,255,255,.14);
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}
.rail a:hover{color:var(--ink);background:var(--neon);padding-left:12px}
.rail .ico{background:var(--neon)}
.rail a:hover .ico{background:var(--ink)}

/* 页脚 */
footer{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px 40px;
  margin-top:56px;
  padding:clamp(40px,5vw,60px) clamp(16px,3vw,44px) clamp(96px,12vh,124px);
  background:rgba(14,23,13,.96);
  border-top:3px solid var(--neon);
}
footer::before{
  content:"";
  position:absolute;
  top:0;left:0;
  width:100%;
  height:8px;
  background:repeating-linear-gradient(45deg,var(--sun) 0 12px,rgba(0,0,0,0) 12px 24px);
  pointer-events:none;
}
.foot-brand{flex:1 1 320px;min-width:0}
.brand-big{
  margin:0 0 .35em;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1;
  letter-spacing:-.02em;
  color:var(--neon);
}
.foot-desc{
  margin:0;
  max-width:44ch;
  font-size:1rem;
  color:var(--muted);
}
.foot-nav{flex:0 1 auto}
.foot-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:4px 6px;
  margin:0;
  padding:0;
  list-style:none;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:8px 10px;
  font-size:1rem;
  color:#cfe4c6;
  text-decoration:none;
  border:1px dashed rgba(135,255,113,.2);
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.foot-nav a:hover{
  color:var(--ink);
  background:var(--sun);
  border-color:var(--sun);
  transform:translateY(-2px);
}
.copy{
  flex:0 0 auto;
  margin:0;
  padding-top:10px;
  font-size:1rem;
  color:var(--muted);
  white-space:nowrap;
}

/* 入场：逐块浮起 */
@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}
div > section{animation:rise .55s cubic-bezier(.22,.7,.3,1) both}
div > section:nth-of-type(1){animation-delay:.05s}
div > section:nth-of-type(2){animation-delay:.11s}
div > section:nth-of-type(3){animation-delay:.17s}
div > section:nth-of-type(4){animation-delay:.23s}
div > section:nth-of-type(5){animation-delay:.29s}
div > section:nth-of-type(6){animation-delay:.35s}
div > section:nth-of-type(7){animation-delay:.41s}
div > section:nth-of-type(8){animation-delay:.47s}

@media (max-width:1000px){
  .grid{grid-template-columns:minmax(0,1fr);gap:0}
  .rail{position:static;order:2;margin:36px 0 0;border-left:1px solid rgba(255,255,255,.16);border-top:4px solid var(--neon)}
  .hero{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"text" "media";
    min-height:0;
    gap:26px;
    padding:34px 0 10px;
  }
  .hero-media{aspect-ratio:16/11}
  footer{flex-direction:column}
  .foot-brand,.foot-nav,.copy{flex:1 1 100%}
  .copy{padding-top:0;white-space:normal}
}

@media (max-width:640px){
  .dock{padding:6px 10px;gap:8px}
  .dock-nav ul{justify-content:flex-start}
  .dock-nav a{padding:10px}
  .hero-text h1{text-shadow:3px 3px 0 rgba(135,255,113,.25)}
  div > section:not(.hero){padding:30px 0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-delay:0ms!important;
    transition-duration:.001ms!important;
  }
}

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