@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root{
  --neon:#87ff71;
  --mustard:#ffce5c;
  --ink:#192617;
  --deep:#0f1a0e;
  --txt:#e9f6e2;
  --dim:#a9bfa1;
  --line:rgba(135,255,113,.26);
  --edge:rgba(135,255,113,.34);
  --glass:rgba(255,255,255,.055);
  --stroke:3px solid var(--edge);
}

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

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

body{
  margin:0;
  padding-bottom:112px;
  background-color:var(--ink);
  background-image:
    radial-gradient(rgba(135,255,113,.15) 1px, transparent 1px),
    radial-gradient(rgba(255,206,92,.10) 1px, transparent 1px);
  background-size:24px 24px, 24px 24px;
  background-position:0 0, 12px 12px;
  color:var(--txt);
  font:400 16px/1.7 system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  overflow-x:hidden;
}

h1,h2,h3,h4,p,ol,ul,figure{margin:0;padding:0}
ol,ul{list-style:none}
img{max-width:100%;display:block}
a{color:inherit}

h1,h2,h3,h4{
  font-family:'Space Grotesk',system-ui,'PingFang SC','Microsoft YaHei',sans-serif;
  font-weight:700;
  line-height:1.14;
  letter-spacing:-.01em;
}

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

main{display:block}

.wrap{
  max-width:1148px;
  margin:0 auto;
  padding:clamp(14px,3vw,30px) clamp(14px,4vw,32px) 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:clamp(16px,3vw,30px);
  align-items:start;
}

.column{min-width:0}

.sheet{
  border:var(--stroke);
  border-radius:4px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  box-shadow:8px 8px 0 rgba(0,0,0,.35);
  overflow:hidden;
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,40%);
  gap:clamp(14px,3vw,26px);
  align-items:center;
  min-height:45vh;
  padding:clamp(22px,4vw,46px) clamp(18px,3vw,38px);
  border-bottom:3px dashed var(--line);
  overflow:hidden;
  isolation:isolate;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-40% 46% 40% -20%;
  background:radial-gradient(circle at 40% 50%, rgba(255,206,92,.22), transparent 62%);
  z-index:0;
}

.hero-ghost{
  position:absolute;
  left:-4px;
  bottom:-10px;
  z-index:0;
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-weight:700;
  font-size:clamp(46px,12.5vw,146px);
  line-height:.78;
  letter-spacing:-.03em;
  color:transparent;
  -webkit-text-stroke:2px rgba(135,255,113,.17);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
}

.hero-copy{position:relative;z-index:2;text-align:center}

.kicker{
  display:inline-block;
  margin-bottom:14px;
  padding:5px 14px;
  border-radius:999px;
  background:var(--mustard);
  color:var(--ink);
  font-weight:700;
  font-size:15px;
  letter-spacing:.08em;
  transform:rotate(-2deg);
  box-shadow:3px 3px 0 rgba(0,0,0,.4);
}

.hero h1{
  font-size:clamp(28px,6vw,58px);
  text-wrap:balance;
  text-shadow:0 2px 0 rgba(0,0,0,.35);
}

.hero-art{
  position:relative;
  z-index:1;
  aspect-ratio:1/1;
  border-radius:4px;
  background:linear-gradient(135deg,var(--neon) 0%,var(--mustard) 100%);
  background-image:
    repeating-linear-gradient(45deg, rgba(25,38,23,.16) 0 6px, transparent 6px 14px),
    linear-gradient(135deg,var(--neon),var(--mustard));
  clip-path:polygon(8% 0,100% 5%,95% 90%,22% 100%,0 68%);
  overflow:hidden;
  transform:rotate(-2deg);
  animation:sway 9s ease-in-out infinite;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  mix-blend-mode:multiply;
}

.shape{position:absolute;display:block}
.sh-a{
  top:8%;
  left:10%;
  width:38%;
  height:32%;
  background:var(--ink);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  opacity:.85;
}
.sh-b{
  right:8%;
  bottom:14%;
  width:44%;
  height:26%;
  background:rgba(25,38,23,.7);
  clip-path:polygon(0 100%,50% 0,100% 100%);
  transform:rotate(180deg);
}
.sh-c{
  left:14%;
  bottom:12%;
  width:22%;
  height:22%;
  border:4px dotted rgba(25,38,23,.75);
  border-radius:50%;
}

@keyframes sway{
  0%,100%{transform:rotate(-2deg)}
  50%{transform:rotate(2deg)}
}

/* ---------- 正文（page.content 内的区块） ---------- */
.sheet > article{
  padding:clamp(22px,3.4vw,42px) clamp(18px,3vw,38px);
  border-top:3px dashed var(--line);
  scroll-margin-block:24px;
  position:relative;
}

.sheet > article:first-of-type{border-top:0}

.sheet > article:nth-of-type(odd){background:rgba(255,255,255,.022)}

.sheet h2{
  font-size:clamp(21px,3.4vw,29px);
  color:var(--neon);
  margin-bottom:14px;
  padding-left:22px;
  position:relative;
}

.sheet h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.4em;
  width:13px;
  height:13px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}

.sheet h3{
  font-size:clamp(18px,2.4vw,22px);
  color:var(--mustard);
  margin:22px 0 10px;
}

.sheet p{max-width:68ch;margin:0 0 14px}

.sheet a{
  color:var(--mustard);
  text-decoration:underline dotted;
  text-underline-offset:3px;
}

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

.sheet ul,.sheet ol{max-width:68ch;margin:0 0 16px;padding-left:6px}

.sheet ul > li,.sheet ol > li{
  position:relative;
  padding-left:20px;
  margin-bottom:8px;
}

.sheet ul > li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.66em;
  width:9px;
  height:9px;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.sheet ol{counter-reset:step}
.sheet ol > li::before{
  counter-increment:step;
  content:counter(step);
  position:absolute;
  left:0;
  top:0;
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  color:var(--mustard);
}

.sheet blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-left:5px solid var(--neon);
  border-radius:4px;
  background:rgba(135,255,113,.08);
}

.sheet blockquote p:last-child{margin-bottom:0}

.sheet img{border-radius:4px;border:2px solid var(--edge);margin:12px 0}

.sheet table{width:100%;border-collapse:collapse;margin:16px 0;font-size:16px}
.sheet th,.sheet td{border:2px dotted var(--line);padding:9px 11px;text-align:left}
.sheet th{background:rgba(135,255,113,.1);color:var(--neon)}

.sheet time{color:var(--dim);font-size:15px}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:18px;
  display:grid;
  gap:14px;
  align-content:start;
}

.rail-card{
  border:var(--stroke);
  border-radius:4px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  box-shadow:5px 5px 0 rgba(0,0,0,.32);
  padding:14px 16px 16px;
}

.rail-card--tight{padding-bottom:16px}

.rail h2{
  font-size:16px;
  letter-spacing:.06em;
  color:var(--neon);
  margin-bottom:10px;
}

.ttl{display:inline-flex;align-items:center;gap:8px}

.dot{
  width:10px;
  height:10px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.tick{
  width:10px;
  height:10px;
  background:var(--neon);
  border-radius:50%;
}

.rail-list{display:grid;gap:2px}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 2px;
  border-bottom:2px dotted rgba(255,255,255,.16);
  text-decoration:none;
  font-size:16px;
  color:var(--txt);
  transition:color .18s ease,transform .18s ease;
}

.rail-list li:last-child a{border-bottom:0}

.rail-list a:hover{color:var(--mustard);transform:translateX(3px)}

.to-top{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:999px;
  border:2px solid var(--neon);
  background:var(--neon);
  color:var(--ink);
  font-weight:700;
  text-decoration:none;
  font-size:16px;
  transition:transform .18s ease,background .18s ease;
}

.to-top:hover{background:var(--mustard);border-color:var(--mustard);transform:translateY(-2px)}

/* ---------- 页脚 ---------- */
footer{
  max-width:1148px;
  margin:clamp(26px,5vw,58px) auto 0;
  padding:20px clamp(14px,4vw,32px) 0;
  border-top:3px dotted var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:16px;
}

footer p{color:var(--txt)}
footer small{color:var(--dim)}

/* ---------- 底部导航条 ---------- */
.dock{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px clamp(10px,3vw,22px);
  background:rgba(15,26,14,.86);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-top:3px solid var(--neon);
  box-shadow:0 -8px 24px rgba(0,0,0,.45);
}

.mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:4px;
  border:3px solid var(--mustard);
  overflow:hidden;
  transform:rotate(-4deg);
  transition:transform .25s ease;
}

.mark:hover{transform:rotate(4deg) scale(1.05)}
.mark img,.mark svg{width:100%;height:100%;object-fit:cover}

.dock nav{flex:1 1 auto;min-width:0}

.dock nav ol{
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
  padding:2px;
  -ms-overflow-style:none;
}

.dock nav ol::-webkit-scrollbar{display:none}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 15px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.06);
  color:var(--txt);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
  transition:border-color .18s ease,background .18s ease,color .18s ease;
}

.pill:hover,.pill:focus-visible{
  border-color:var(--neon);
  background:rgba(135,255,113,.16);
  color:var(--neon);
}

.pill[aria-current="true"]{
  border-color:var(--mustard);
  color:var(--mustard);
}

.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:999px;
  border:2px solid var(--neon);
  background:var(--neon);
  color:var(--ink);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .18s ease,background .18s ease;
}

.cta:hover{background:var(--mustard);border-color:var(--mustard);transform:translateY(-2px)}

/* ---------- 响应式 ---------- */
@media (max-width:880px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:18px}
  .rail{position:static}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding-bottom:clamp(18px,5vw,26px);
  }
  .hero-art{aspect-ratio:5/3;margin-top:6px;order:2}
  .hero-copy{order:1}
  .hero-ghost{font-size:clamp(40px,16vw,110px);bottom:-4px}
}

@media (max-width:560px){
  body{padding-bottom:104px}
  .dock{gap:8px;padding:8px 10px}
  .mark{width:40px;height:40px}
  .pill{padding:8px 12px}
  .cta{padding:8px 12px}
  .sheet{box-shadow:5px 5px 0 rgba(0,0,0,.35)}
  footer{font-size:16px}
}

@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}
