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

:root{
  --ink:#0a140a;
  --deep:#122312;
  --panel:#1a2e1a;
  --neon:#69ff69;
  --cyan:#00ffff;
  --txt:#dcf2dc;
  --mut:#95b995;
  --line:rgba(105,255,105,.16);
  --r:18px;
}

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

html{
  scroll-behavior:smooth;
  color-scheme:dark;
  background:var(--ink);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--txt);
  background-image:
    radial-gradient(1100px 620px at 78% -140px,rgba(0,255,255,.11),transparent 68%),
    radial-gradient(900px 560px at 4% 6%,rgba(105,255,105,.10),transparent 70%);
  background-repeat:no-repeat;
}

img{max-width:100%}
::selection{background:var(--neon);color:#08170a}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
}

/* ---------- 顶部条 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px clamp(14px,4vw,38px);
  background:linear-gradient(180deg,rgba(20,38,20,.97),rgba(10,20,10,.92));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  flex:0 0 auto;
  text-decoration:none;
}

.brand .logo{
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
  filter:drop-shadow(0 0 8px rgba(105,255,105,.6));
}

.bt{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:20px;
  letter-spacing:.02em;
  background:linear-gradient(180deg,#f6fff6,#a9e6a9 40%,#e9ffe9 58%,#69ff69);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 8px rgba(105,255,105,.55));
  white-space:nowrap;
}

.spark{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 12px var(--cyan);
  animation:pulse 2.6s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{transform:scale(.75);opacity:.6}
  50%{transform:scale(1.15);opacity:1}
}

.navbar{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.navbar::-webkit-scrollbar{display:none}

.navbar ul{
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:n;
}

.navbar li{
  counter-increment:n;
  flex:0 0 auto;
}

.navbar li.off{display:none}

.navbar a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:0 13px;
  border-radius:14px;
  text-decoration:none;
  color:#cfebcf;
  font-size:16px;
  font-weight:500;
  white-space:nowrap;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.01));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  transition:color .18s,background .18s,box-shadow .18s;
}

.navbar a::before{
  content:counter(n,decimal-leading-zero);
  font-size:11px;
  letter-spacing:.1em;
  color:var(--cyan);
  opacity:.85;
}

.navbar a:hover,
.navbar a:focus-visible{
  color:#07180a;
  background:linear-gradient(180deg,#c2ffc2,#69ff69 55%,#a9ffa9);
  box-shadow:0 0 18px rgba(105,255,105,.55),inset 0 1px 0 #fff;
}
.navbar a:hover::before,
.navbar a:focus-visible::before{color:#0b2a12}

.sbox{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.sbox input{
  width:132px;
  min-height:44px;
  padding:0 15px;
  border-radius:22px;
  border:1px solid rgba(0,255,255,.36);
  background:rgba(0,255,255,.06);
  color:var(--txt);
  font:inherit;
  font-size:16px;
}
.sbox input::placeholder{color:#82b6ab}

.sbox button{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:22px;
  cursor:pointer;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#04180d;
  background:linear-gradient(180deg,#9bffff,#00ffff 52%,#63e6e6);
  box-shadow:0 0 14px rgba(0,255,255,.45),inset 0 1px 0 #fff;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:45vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:46px 20px 40px;
}

.hero .glow{
  position:absolute;
  inset:-40% -12% auto -12%;
  height:170%;
  z-index:-1;
  background-image:
    radial-gradient(closest-side,rgba(105,255,105,.26),transparent 70%),
    radial-gradient(closest-side,rgba(0,255,255,.22),transparent 70%);
  background-size:62% 92%,56% 82%;
  background-position:24% 42%,76% 32%;
  background-repeat:no-repeat;
  filter:blur(8px);
  will-change:transform;
}

.hero-in{max-width:900px}

.hero h1{
  margin:0 auto;
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(34px,7.4vw,72px);
  line-height:1.14;
  letter-spacing:.01em;
  color:#f4fff4;
  text-shadow:0 0 18px rgba(105,255,105,.5),0 0 46px rgba(0,255,255,.3);
}

/* ---------- 主体布局 ---------- */
.wrap{
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  gap:34px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:40px clamp(16px,4vw,38px) 70px;
}

.rail{
  position:sticky;
  top:88px;
  padding:18px 15px 16px;
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:0 16px 34px -22px rgba(0,0,0,.9);
}

.rh{
  margin:0 0 10px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:19px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--cyan);
  text-shadow:0 0 14px rgba(0,255,255,.45);
}

.rlist{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}

.rlist a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:4px 9px;
  border-radius:11px;
  text-decoration:none;
  color:#cfe9cf;
  font-size:16px;
  line-height:1.4;
  transition:background .18s,color .18s;
}
.rlist a:hover{background:rgba(105,255,105,.15);color:#f0fff0}

.col{min-width:0}

/* ---------- 正文 ---------- */
.prose{
  max-width:70ch;
  font-size:17.5px;
  line-height:1.85;
  color:#d9efd9;
}

.prose div{scroll-margin-top:104px}

.prose div + div{
  margin-top:52px;
  padding-top:46px;
  border-top:1px solid rgba(105,255,105,.14);
}

.prose h2{
  position:relative;
  margin:0 0 18px;
  padding-top:15px;
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(25px,3.4vw,36px);
  line-height:1.26;
  color:#efffef;
  text-shadow:0 0 18px rgba(105,255,105,.42);
}

.prose h2::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:48px;
  height:3px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--neon),var(--cyan));
  box-shadow:0 0 12px rgba(105,255,105,.8);
}

.prose h2 span{
  background:linear-gradient(92deg,#eaffea,#69ff69 58%,#0ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.prose h3{
  margin:30px 0 12px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(20px,2.4vw,25px);
  line-height:1.35;
  color:#e8ffe8;
}
.prose h3 span{color:var(--neon)}

.prose p{margin:0 0 18px}
.prose strong{color:#f4fff4;font-weight:600}
.prose em{color:var(--cyan);font-style:normal}

.prose a{
  color:var(--cyan);
  text-decoration:none;
  border-bottom:1px solid rgba(0,255,255,.45);
  padding-bottom:1px;
  transition:color .16s,border-color .16s;
}
.prose a:hover{color:#a8ffff;border-color:#a8ffff}

.prose ul,
.prose ol{
  margin:0 0 18px;
  padding-left:1.35em;
}
.prose li{margin:7px 0}
.prose li::marker{color:var(--neon)}

.prose blockquote{
  margin:24px 0;
  padding:16px 20px;
  border-radius:var(--r);
  background:var(--panel);
  border-left:4px solid var(--neon);
  color:#e8ffe8;
}
.prose blockquote p:last-child{margin:0}

.prose hr{
  border:0;
  height:1px;
  margin:34px 0;
  background:linear-gradient(90deg,transparent,rgba(105,255,105,.45),transparent);
}

.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:15px;
  padding:2px 6px;
  border-radius:7px;
  background:rgba(105,255,105,.13);
  color:#c9ffc9;
}

.prose img{
  display:block;
  height:auto;
  margin:22px 0;
  border-radius:var(--r);
}

.prose table{
  display:block;
  width:100%;
  min-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:22px 0;
  font-size:16px;
}
.prose th,
.prose td{
  padding:10px 13px;
  text-align:left;
  border-bottom:1px solid rgba(105,255,105,.16);
}
.prose th{
  background:rgba(105,255,105,.1);
  color:#eaffea;
  font-weight:600;
  white-space:nowrap;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:24px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(26,46,26,.62),rgba(10,20,10,.94));
}

.fcols{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:44px clamp(16px,4vw,38px) 26px;
}

.fh{
  margin:0 0 12px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:17px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(0,255,255,.35);
}

.fbrand{
  margin:0;
  font-family:"Playfair Display",Georgia,serif;
  font-size:22px;
  color:#eaffea;
}

.fcol ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:0;
}

.fcol a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#cfe9cf;
  font-size:16px;
  text-decoration:none;
  transition:color .16s;
}
.fcol a:hover{color:var(--neon)}

address{
  font-style:normal;
  display:grid;
  gap:4px;
  font-size:16px;
  color:#bfdcbf;
}
.address .ahost,
.ahost{color:var(--mut)}

.fbase{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:1180px;
  margin:0 auto;
  padding:16px clamp(16px,4vw,38px) 32px;
  border-top:1px solid rgba(105,255,105,.12);
}

.cp{
  margin:0;
  font-size:16px;
  color:var(--mut);
}

.flinks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.flinks a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border-radius:20px;
  text-decoration:none;
  font-size:16px;
  color:#d8f4d8;
  background:rgba(105,255,105,.13);
  transition:background .16s,color .16s;
}
.flinks a:hover{background:rgba(105,255,105,.28);color:#f2fff2}

/* ---------- 滚动揭示 ---------- */
.js .prose > div,
.js .fcol{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.js .prose > div.in,
.js .fcol.in{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .spark{animation:none}
  .js .prose > div,
  .js .fcol{opacity:1;transform:none;transition:none}
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .fcols{grid-template-columns:1fr 1fr;gap:22px}
}

@media (max-width:860px){
  .bar{flex-wrap:wrap;gap:8px}
  .navbar{order:3;flex-basis:100%}
  .sbox{order:2;flex:1 1 120px;margin-left:auto;justify-content:flex-end}
  .sbox input{width:100%;min-width:0}
  .hero{min-height:45vh;padding:36px 18px 32px}
}

@media (max-width:820px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:26px}
  .rail{position:static;top:auto;padding:14px}
  .rlist{grid-template-columns:1fr 1fr;gap:0 6px}
  .rh{margin-bottom:8px;font-size:17px}
  .prose div{scroll-margin-top:168px}
}

@media (max-width:600px){
  .fcols{grid-template-columns:1fr}
  .fbase{flex-direction:column;align-items:flex-start}
  .prose{font-size:17px}
  .bt{font-size:18px}
}

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