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

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

body{
  margin:0;
  background:#000;
  color:#f2f2f2;
  font-family:Merriweather,Georgia,"Songti SC","Noto Serif SC",serif;
  font-size:1.125rem;
  line-height:1.78;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:"Abril Fatface","Songti SC",Georgia,serif;
  font-weight:400;
  line-height:1.12;
  letter-spacing:.01em;
  margin:0 0 .7em;
}

p{margin:0 0 1.1em}

a{color:#00ff80;text-decoration:underline;text-underline-offset:3px}
a:hover{background:#00ff80;color:#000;text-decoration:none}

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

strong{color:#00ff80;font-weight:700}

blockquote{
  margin:1.6em 0;
  padding:.9rem 1.1rem;
  border-left:6px solid #0000ff;
  background:#0b0b0b;
  color:#e2e2e2;
}

ul,ol{padding-left:1.3em}

/* ---------- 顶栏 ---------- */
.hd{
  position:fixed;
  top:0;left:0;right:0;
  z-index:80;
  height:64px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 .9rem;
  background:#000;
  border-bottom:3px solid #00ff80;
}

.mt{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

.burger{
  grid-column:1;
  justify-self:start;
  position:relative;
  z-index:90;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .8rem;
  background:#000;
  border:2px solid #00ff80;
  color:#00ff80;
  font-size:1rem;
  letter-spacing:.24em;
  cursor:pointer;
  user-select:none;
}

.burger .cl{display:none}
.mt:checked ~ .burger .op{display:none}
.mt:checked ~ .burger .cl{display:inline}
.burger:hover{background:#00ff80;color:#000}
.mt:focus-visible ~ .burger{outline:3px solid #0000ff;outline-offset:2px}

.brand{
  grid-column:2;
  justify-self:center;
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 .6rem;
  color:#00ff80;
  text-decoration:none;
  font-family:"Abril Fatface","Songti SC",Georgia,serif;
  font-size:1.3rem;
  letter-spacing:.08em;
}

.brand:hover{background:#00ff80;color:#000;text-decoration:none}
.brand img{max-height:30px;width:auto}

/* ---------- 全屏遮罩菜单 ---------- */
.nav{
  position:fixed;
  inset:0;
  z-index:70;
  display:none;
  padding:84px 1.1rem 2rem;
  background:#000;
  overflow:auto;
}

.mt:checked ~ .nav{display:grid;align-content:start;gap:1.4rem;grid-template-columns:1fr}

.nav p{margin:0;display:flex;flex-direction:column}

.nav a{
  display:flex;
  align-items:center;
  min-height:58px;
  padding:.3rem .4rem;
  color:#f2f2f2;
  text-decoration:none;
  font-family:"Abril Fatface","Songti SC",Georgia,serif;
  font-size:clamp(1.35rem,4.4vw,2.4rem);
  border-bottom:2px solid #191919;
}

.nav a:hover{background:#0000ff;color:#00ff80}

@media (min-width:840px){
  .mt:checked ~ .nav{
    grid-template-columns:1fr 1fr;
    align-content:center;
    gap:0 3rem;
    padding:96px clamp(2rem,9vw,8rem) 3rem;
  }
  .nav p:last-of-type a{justify-content:flex-end;text-align:right}
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  align-items:center;
  padding:96px 1.2rem 130px;
  overflow:hidden;
  border-bottom:4px solid #00ff80;
}

.hero-in{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  gap:2.2rem;
  text-align:center;
}

.hero-txt{min-width:0}

.hero-h1{
  font-size:clamp(2.4rem,8vw,5.2rem);
  margin-bottom:.35em;
  word-break:break-word;
}

.hero-desc{
  max-width:46ch;
  margin:0 auto 1.7rem;
  color:#c9c9c9;
  font-size:1.1rem;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 1.7rem;
  background:#00ff80;
  border:3px solid #00ff80;
  color:#000;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.16em;
}

.cta:hover{background:#000;color:#00ff80;border-color:#0000ff;text-decoration:none}

.hero-art{
  position:relative;
  display:grid;
  place-items:center;
  border:3px solid #00ff80;
  background:#0a0a0a;
  aspect-ratio:4/3;
  overflow:hidden;
}

.hero-img{width:100%;height:100%;object-fit:cover}

.slash{
  position:absolute;
  left:0;right:0;bottom:0;
  height:86px;
  background:#0000ff;
  clip-path:polygon(0 72%,100% 0,100% 100%,0 100%);
  pointer-events:none;
}

@media (min-width:900px){
  .hero-in{grid-template-columns:1.08fr .92fr;align-items:center;gap:3.4rem}
  .hero{padding-bottom:120px}
}

/* ---------- 版心 ---------- */
.wrap{
  max-width:1240px;
  margin:0 auto;
  padding:3rem 1.2rem 4.4rem;
  display:grid;
  gap:2.6rem;
}

@media (min-width:960px){
  .wrap{grid-template-columns:minmax(0,1fr) 18rem;gap:3.2rem;align-items:start}
}

.body{min-width:0}

.body div{
  scroll-margin-top:90px;
  border-top:3px solid #00ff80;
  padding-top:2rem;
  margin-top:2.4rem;
}

.body div:first-child{border-top:0;padding-top:0;margin-top:0}

.body h2{
  font-size:clamp(1.6rem,4.2vw,2.5rem);
  padding-bottom:.4rem;
  border-bottom:2px solid #0000ff;
  display:inline-block;
}

.body h3{font-size:clamp(1.25rem,3vw,1.7rem);color:#00ff80}
.body h3 + p{margin-top:.6em}
.body p{max-width:66ch}
.body li{margin-bottom:.5em}

.body a:hover{background:#00ff80;color:#000}

.body table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:1rem}
.body th,.body td{border:2px solid #2b2b2b;padding:.6rem .7rem;text-align:left}
.body th{background:#0000ff;color:#fff;font-weight:700}

/* ---------- 侧栏 ---------- */
.side{
  border:3px solid #00ff80;
  background:#080808;
  padding:1.1rem 1rem 1.3rem;
  display:grid;
  gap:1rem;
  align-content:start;
}

.side h2{
  margin:0;
  font-family:Merriweather,Georgia,serif;
  font-size:1rem;
  letter-spacing:.3em;
  color:#00ff80;
}

.side h2 span{border-bottom:2px solid #0000ff;padding-bottom:.15rem;display:inline-block}

.toc{list-style:none;margin:0;padding:0}
.toc li + li{border-top:1px solid #232323}

.toc a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 .3rem;
  color:#e8e8e8;
  text-decoration:none;
  font-size:1rem;
}

.toc a:hover{background:#0000ff;color:#00ff80;text-decoration:none}

.totop{margin:0}

.totop a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .3rem;
  color:#00ff80;
  font-size:1rem;
}

@media (min-width:960px){
  .side{position:sticky;top:88px}
}

/* ---------- 页脚 ---------- */
.ft{
  border-top:4px solid #0000ff;
  background:#000;
  padding:2.4rem 1.2rem 1.8rem;
  display:grid;
  gap:1.1rem;
  grid-template-columns:1fr;
}

.ft p{margin:0}

.ft-cta{
  grid-column:1/-1;
  margin-bottom:.4rem;
  font-family:"Abril Fatface","Songti SC",Georgia,serif;
  font-size:clamp(1.7rem,6vw,3.2rem);
  line-height:1.05;
}

.ft-cta a{
  display:inline-block;
  min-height:52px;
  padding:.12rem .3rem;
  color:#00ff80;
  text-decoration:none;
}

.ft-cta a:hover{background:#00ff80;color:#000;text-decoration:none}

.ft-c1{color:#00ff80;font-weight:700;letter-spacing:.14em}

.ft-c2,.ft-c3{display:flex;flex-wrap:wrap;gap:0 .35rem}

.ft-c2 a,.ft-c3 a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 .3rem;
  color:#dcdcdc;
  text-decoration:none;
  font-size:1rem;
}

.ft-c2 a:hover,.ft-c3 a:hover{background:#0000ff;color:#00ff80;text-decoration:none}

.ft-copy{
  grid-column:1/-1;
  margin-top:.9rem;
  padding-top:.9rem;
  border-top:1px solid #2a2a2a;
  color:#9c9c9c;
  font-size:1rem;
}

.ft-copy small{display:inline-block;margin-left:.4rem;color:#6a6a6a}

@media (min-width:760px){
  .ft{grid-template-columns:repeat(3,1fr);column-gap:2rem;padding-inline:2rem}
  .ft-c2,.ft-c3{flex-direction:column}
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    from{opacity:0;transform:translateY(18px)}
    to{opacity:1;transform:none}
  }

  .hero-txt > *{animation:rise .4s steps(4,end) both}
  .hero-txt > *:nth-child(2){animation-delay:.1s}
  .hero-txt > *:nth-child(3){animation-delay:.2s}
  .hero-art{animation:rise .5s steps(4,end) .15s both}
  .slash{animation:rise .5s steps(4,end) .3s both}

  .body > div{animation:rise .45s steps(4,end) both}
  .body > div:nth-child(1){animation-delay:.02s}
  .body > div:nth-child(2){animation-delay:.07s}
  .body > div:nth-child(3){animation-delay:.12s}
  .body > div:nth-child(4){animation-delay:.17s}
  .body > div:nth-child(5){animation-delay:.22s}
  .body > div:nth-child(6){animation-delay:.27s}
  .body > div:nth-child(7){animation-delay:.32s}
  .body > div:nth-child(n+8){animation-delay:.36s}

  .side > *{animation:rise .4s steps(4,end) both}
  .side > *:nth-child(2){animation-delay:.06s}
  .side > *:nth-child(3){animation-delay:.12s}
  .side > *:nth-child(4){animation-delay:.18s}

  .ft > *{animation:rise .4s steps(4,end) both}
  .ft > *:nth-child(2){animation-delay:.06s}
  .ft > *:nth-child(3){animation-delay:.12s}
}

/* ---------- 窄屏微调 ---------- */
@media (max-width:600px){
  .hero{padding-top:88px;padding-bottom:118px}
  .hero-h1{font-size:clamp(2.1rem,9vw,3rem)}
  .hero-desc{font-size:1.05rem}
  .cta{min-height:52px;letter-spacing:.1em}
  .brand{font-size:1.15rem}
  .body div{padding-top:1.6rem;margin-top:1.9rem}
  .slash{height:64px}
}

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