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

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

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

body{
  margin:0;
  overflow-x:clip;
  background:#000;
  color:#E7E7E7;
  font-family:"Plus Jakarta Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  padding-bottom:calc(96px + env(safe-area-inset-bottom));
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;line-height:1.15;font-weight:700}
:focus-visible{outline:2px solid #3DF2A4;outline-offset:3px}

/* 底部胶囊导航 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px max(12px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));
  background:rgba(0,0,0,.93);
  border-top:1px solid #1A1A1A;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.dock-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 10px 0 2px;
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
}

.dock-list{
  flex:1 1 auto;
  display:flex;
  gap:8px;
  margin:0;
  padding:2px 2px 2px 0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.dock-list::-webkit-scrollbar{display:none}
.dock-list li{flex:0 0 auto;scroll-snap-align:start}

.dock-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 15px;
  border-radius:999px;
  background:#141414;
  color:#D8D8D8;
  font-size:15px;
  line-height:1.4;
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}
.dock-list a:hover{background:#1F1F1F;color:#fff;transform:translateY(-1px)}
.dock-list a[aria-current="true"]{background:#3DF2A4;color:#000;font-weight:600}

/* 首屏 */
.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:100svh;
  max-width:1180px;
  margin:0 auto;
  padding:92px 24px 56px;
}

.hero-media{position:absolute;inset:0;pointer-events:none}

.art{
  position:absolute;
  margin:0;
  overflow:hidden;
  background:#0C0C0C;
}
.art-a{
  top:9vh;
  right:6%;
  width:min(38vw,340px);
  aspect-ratio:3/4;
  transform:rotate(-2.4deg);
  box-shadow:0 34px 90px rgba(0,0,0,.85),0 0 70px rgba(89,201,255,.1);
}
.art-b{
  top:34vh;
  right:27%;
  width:min(25vw,222px);
  aspect-ratio:4/5;
  transform:rotate(3.2deg);
  opacity:.95;
  box-shadow:0 26px 70px rgba(0,0,0,.8);
}
.art-img{width:100%;height:100%;object-fit:cover}
.art-empty{background:linear-gradient(160deg,#161616,#000 72%)}
.art-a.art-empty{background:linear-gradient(160deg,rgba(89,201,255,.24),#0A0A0A 64%)}
.art-b.art-empty{background:linear-gradient(160deg,rgba(61,242,164,.2),#0A0A0A 64%)}

.band{
  position:absolute;
  left:-10%;
  right:-10%;
  top:62vh;
  height:110px;
  transform:rotate(-13deg);
  background:linear-gradient(90deg,rgba(61,242,164,0),rgba(61,242,164,.3) 34%,rgba(89,201,255,.2) 62%,rgba(185,140,255,0));
}

.hero-text{position:relative;z-index:2;max-width:640px}

.eyebrow{
  margin:0 0 14px;
  font-size:14px;
  font-weight:500;
  letter-spacing:.3em;
  color:#3DF2A4;
  text-shadow:0 0 16px rgba(61,242,164,.5);
}

.hero h1{
  font-size:clamp(40px,7.2vw,76px);
  line-height:1.02;
  letter-spacing:-.02em;
  color:#fff;
  text-shadow:0 0 34px rgba(0,0,0,.9);
}

/* 主体：左目录 + 右正文 */
.shell{
  display:grid;
  grid-template-columns:222px minmax(0,1fr);
  gap:52px;
  max-width:1180px;
  margin:0 auto;
  padding:40px 24px 40px;
}

.side{
  position:sticky;
  top:28px;
  align-self:start;
  background:#121212;
  padding:18px 14px 16px;
}

.side-title{
  font-size:14px;
  font-weight:600;
  letter-spacing:.24em;
  color:#8A8A8A;
  margin:0 0 10px;
}
.side-title span{display:inline-block}

.toc{margin:0;padding:0;list-style:none}
.toc a{
  display:block;
  padding:11px 8px;
  min-height:44px;
  font-size:15px;
  line-height:1.5;
  color:#8F8F8F;
  border-top:1px solid #1D1D1D;
  transition:color .2s ease,background .2s ease;
}
.toc li:first-child a{border-top:0}
.toc a:hover{color:#fff;background:#181818}
.toc a[aria-current="true"]{background:#3DF2A4;color:#000;font-weight:600}

/* 正文 */
.body{min-width:0}

.body > article{
  padding:8px 0 50px;
  scroll-margin-top:34px;
}
.body > article + article{
  border-top:1px solid #1B1B1B;
  padding-top:46px;
}

.body h2{
  font-size:clamp(24px,2.8vw,33px);
  letter-spacing:-.01em;
  color:#fff;
  margin:0 0 16px;
}
.body h2 span{
  display:inline-block;
  padding-left:14px;
  border-left:3px solid #3DF2A4;
}

.body h3{font-size:20px;color:#fff;margin:26px 0 10px}
.body h3 span{color:#3DF2A4}

.body p{margin:0 0 1.05em;color:#CFCFCF}
.body ul,.body ol{padding-left:1.3em;margin:0 0 1.1em;color:#CFCFCF}
.body li{margin:.35em 0}
.body strong{color:#fff;font-weight:600}
.body a{color:#3DF2A4;border-bottom:1px solid rgba(61,242,164,.35)}
.body a:hover{color:#9BFFD3}
.body blockquote{margin:1.2em 0;padding:14px 18px;background:#121212;color:#B6B6B6}
.body blockquote p:last-child{margin:0}
.body img{margin:1.2em 0;width:100%}
.body table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:16px}
.body th,.body td{padding:10px 12px;text-align:left;border-bottom:1px solid #1E1E1E;color:#CFCFCF}
.body th{color:#fff;background:#121212;font-weight:600}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:38px;
  border-top:1px solid #1C1C1C;
  background:#0A0A0A;
  padding:46px max(24px,calc((100vw - 1180px)/2 + 24px)) 26px;
}

.foot h2{font-size:14px;font-weight:600;letter-spacing:.22em;color:#8A8A8A;margin:0 0 14px}
.foot h2 span{display:inline-block}
.foot-brand h2{
  font-size:clamp(20px,2.6vw,28px);
  letter-spacing:-.01em;
  color:#fff;
  line-height:1.2;
}
.foot-brand h2 span{padding-left:12px;border-left:3px solid #3DF2A4}

.foot-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 14px;
  margin:0;
  padding:0;
  list-style:none;
}
.foot-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 2px;
  font-size:15px;
  color:#B4B4B4;
  transition:color .2s ease;
}
.foot-list a:hover{color:#3DF2A4}

.copy{
  grid-column:1/-1;
  margin:8px 0 0;
  padding-top:16px;
  border-top:1px solid #191919;
  font-size:14px;
  color:#7C7C7C;
}

/* 动效 */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s cubic-bezier(.22,.7,.3,1)}
.reveal.in{opacity:1;transform:none}

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

@media (max-width:1024px){
  .hero{min-height:94svh;padding:78px 18px 46px}
  .art-a{top:70px;right:-9%;width:58vw;max-width:300px}
  .art-b{top:232px;right:36%;width:42vw;max-width:220px}
  .band{top:auto;bottom:16vh;height:84px}
  .hero-text{margin-top:auto;max-width:100%}
  .shell{grid-template-columns:1fr;gap:26px;padding:26px 18px 34px}
  .side{position:static;padding:16px 14px}
  .toc{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
  .toc li:first-child a{border-top:0}
  .foot{grid-template-columns:1fr;gap:26px;padding:38px 18px 24px}
  .foot-list{grid-template-columns:1fr 1fr}
}

@media (max-width:560px){
  body{font-size:16px}
  .dock-brand{font-size:13px;padding-right:6px}
  .dock-list a{font-size:14px;padding:6px 12px}
  .hero h1{font-size:clamp(34px,10vw,48px)}
  .eyebrow{font-size:13px;letter-spacing:.24em}
  .body h2{font-size:23px}
  .body > article{padding-bottom:40px}
}

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