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

:root{
  --ink:#192617;
  --ink2:#22331d;
  --neon:#87ff71;
  --gold:#ffce5c;
  --paper:#eef5e6;
  --line:rgba(135,255,113,.28);
  --r:18px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  background-color:var(--ink);
  background-image:radial-gradient(rgba(135,255,113,.13) 1px,transparent 1px);
  background-size:22px 22px;
  color:#e6f0dd;
  font:400 17px/1.7 Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:var(--neon);text-decoration:none}
p{margin:0 0 1em}
ul{margin:0 0 1em;padding-left:1.2em}

h1,h2,h3,h4{
  margin:0 0 .5em;
  font-weight:700;
  line-height:1.22;
  letter-spacing:-.02em;
}

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

/* ---------- 顶部 ---------- */
.top{
  position:relative;
  z-index:20;
  padding:14px clamp(14px,4vw,40px) 0;
  background:var(--ink2);
  border-bottom:3px solid var(--neon);
}

.brandrow{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.brand{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:4px 24px 6px;
  background:var(--gold);
  color:var(--ink);
  font-size:28px;
  font-weight:700;
  letter-spacing:.05em;
  clip-path:polygon(0 0,100% 0,95% 100%,5% 100%);
  transform:rotate(-1.4deg);
}

.search{
  flex:1 1 160px;
  max-width:300px;
  margin-left:auto;
}

.search input{
  width:100%;
  min-height:44px;
  padding:8px 14px;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:rgba(135,255,113,.07);
  border:2px dashed var(--line);
  border-radius:14px;
}

.search input::placeholder{color:rgba(238,245,230,.62)}
.search input:focus{border-style:solid;border-color:var(--neon)}

.menu{margin-top:12px}

.menu p{
  display:flex;
  flex-wrap:wrap;
  gap:4px 6px;
  margin:0;
  padding:0 0 6px;
}

.menu a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 13px;
  font-size:16px;
  font-weight:500;
  color:var(--paper);
  border-bottom:4px solid transparent;
  border-radius:12px 12px 0 0;
}

.menu a:hover,.menu a:focus-visible{
  color:var(--gold);
  background:rgba(255,206,92,.16);
  border-bottom-color:var(--gold);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:52vh;
  padding:clamp(44px,8vw,96px) 20px;
  overflow:hidden;
  text-align:center;
  border-bottom:3px dashed rgba(255,206,92,.45);
  background-image:
    repeating-linear-gradient(45deg,rgba(135,255,113,.055) 0 12px,transparent 12px 24px),
    radial-gradient(rgba(255,206,92,.22) 1.6px,transparent 1.8px);
  background-size:auto,26px 26px;
}

.hero h1{
  position:relative;
  z-index:2;
  max-width:15em;
  margin:0;
  font-size:clamp(2rem,7.2vw,4.6rem);
  line-height:1.12;
  color:var(--paper);
  text-wrap:balance;
}

.hero h1 span{
  display:inline-block;
  padding:0 .08em;
  background:linear-gradient(transparent 64%,rgba(135,255,113,.5) 64%);
}

.shapes{position:absolute;inset:0;margin:0;pointer-events:none;z-index:0}
.shapes i{position:absolute;display:block;opacity:.9}

.s1{
  width:130px;height:130px;border-radius:50%;
  background:var(--neon);top:6%;left:3%;
  mix-blend-mode:screen;
  animation:spin 26s linear infinite;
}

.s2{
  width:124px;height:124px;right:5%;bottom:8%;
  background:var(--gold);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  animation:bob 9s ease-in-out infinite;
}

.s3{
  width:92px;height:92px;top:14%;right:11%;
  background:var(--neon);
  clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  animation:spin 18s linear infinite reverse;
}

.s4{
  width:170px;height:44px;left:7%;bottom:17%;
  border:4px dotted var(--gold);
  border-radius:24px;
  transform:rotate(-8deg);
}

.s5{
  width:76px;height:76px;right:31%;bottom:34%;
  border-radius:8px;
  background-image:radial-gradient(var(--gold) 3px,transparent 3.4px);
  background-size:14px 14px;
  transform:rotate(19deg);
}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bob{
  0%,100%{transform:rotate(12deg) translateY(0)}
  50%{transform:rotate(5deg) translateY(-16px)}
}

/* ---------- 正文区 ---------- */
.body{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(24px,5vw,52px) clamp(16px,4vw,40px);
}

.body-main{min-width:0}

/* 侧栏 */
.side{
  padding:16px 16px 18px;
  background:var(--ink2);
  border:3px solid var(--neon);
  border-radius:var(--r);
  box-shadow:9px 9px 0 rgba(135,255,113,.22);
  transform:rotate(-1deg);
}

.side-h{
  margin:0 0 12px;
  font-size:18px;
  letter-spacing:.2em;
  color:var(--gold);
}

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

.side li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  font-size:16px;
  color:var(--paper);
  border-left:4px solid rgba(255,206,92,.32);
  border-radius:0 10px 10px 0;
}

.side li a:hover,.side li a:focus-visible{
  color:var(--neon);
  background:rgba(135,255,113,.13);
  border-left-color:var(--neon);
}

/* 装饰条 */
.patch{
  display:flex;
  align-items:center;
  gap:10px;
  height:56px;
  margin:0 0 26px;
  padding:0 16px;
  overflow:hidden;
  background:var(--ink2);
  border:2px dashed rgba(255,206,92,.5);
  border-radius:14px;
}

.patch i{flex:0 0 auto;width:26px;height:26px}
.patch i:nth-child(1){background:var(--neon);clip-path:polygon(50% 0,100% 100%,0 100%)}
.patch i:nth-child(2){background:var(--gold);border-radius:50%}
.patch i:nth-child(3){background:var(--neon);transform:rotate(45deg)}
.patch i:nth-child(4){background:var(--gold);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.patch i:nth-child(5){border:3px dotted var(--gold);border-radius:50%}
.patch i:nth-child(6){background:repeating-linear-gradient(45deg,var(--neon) 0 4px,transparent 4px 9px)}

/* 正文小节 */
.body-main div{
  position:relative;
  margin:0 0 24px;
  padding:clamp(18px,3.4vw,34px);
  background:rgba(34,51,29,.6);
  border:2px solid rgba(135,255,113,.2);
  border-radius:var(--r);
  box-shadow:0 22px 46px -34px #000;
}

.body-main div:nth-of-type(even){
  border-color:rgba(255,206,92,.34);
  border-style:dashed;
}

.body-main div h2{
  font-size:clamp(1.32rem,3.1vw,1.8rem);
  color:var(--gold);
}

.body-main div h3{
  font-size:1.14rem;
  color:var(--neon);
}

.body-main div h2 span,.body-main div h3 span{
  display:inline-block;
  border-bottom:4px solid rgba(135,255,113,.4);
}

.body-main div a{
  color:var(--gold);
  border-bottom:2px dotted var(--gold);
}

.body-main div a:hover{color:var(--neon);border-bottom-color:var(--neon)}

.body-main div blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  border-left:6px solid var(--neon);
  background:rgba(135,255,113,.08);
  border-radius:0 14px 14px 0;
}

.body-main div ul li,.body-main div ol li{margin-bottom:.4em}

.body-main div figure{margin:1.2em 0}
.body-main div img{border-radius:14px;border:2px solid rgba(135,255,113,.3)}

main [id]{scroll-margin-top:24px}

/* 滚动显现 */
.rv{opacity:0;transform:translateY(20px);transition:opacity .55s ease,transform .55s ease}
.rv.in{opacity:1;transform:none}

/* ---------- 页脚 ---------- */
.bot{
  position:relative;
  overflow:hidden;
  padding:clamp(26px,5vw,48px) clamp(16px,4vw,40px) 30px;
  background:var(--ink2);
  border-top:4px solid var(--gold);
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:28px;
  padding:22px clamp(16px,3vw,30px);
  background:linear-gradient(120deg,rgba(135,255,113,.14),rgba(255,206,92,.11));
  border:3px dashed var(--neon);
  border-radius:var(--r);
}

.cta h2{margin:0;font-size:clamp(1.7rem,5vw,2.7rem)}

.cta h2 span{
  display:inline-block;
  padding:2px 18px 4px;
  color:var(--ink);
  background:var(--gold);
  clip-path:polygon(2% 0,100% 6%,97% 100%,0 94%);
  transform:rotate(-1.6deg);
}

.cta a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 22px;
  font-weight:600;
  color:var(--ink);
  background:var(--neon);
  border-radius:999px;
}

.cta a:hover{background:var(--gold)}

.botrow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 26px;
}

.footbrand{
  font-size:20px;
  font-weight:700;
  color:var(--paper);
  letter-spacing:.04em;
}

.footnav p{display:flex;flex-wrap:wrap;gap:2px 8px;margin:0}

.footnav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px;
  font-size:16px;
  color:rgba(238,245,230,.76);
}

.footnav a:hover{color:var(--gold)}

.copy{margin:0;font-size:16px;color:rgba(238,245,230,.62)}

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .top{position:sticky;top:0}
  .body{grid-template-columns:250px minmax(0,1fr);gap:44px;align-items:start}
  .side{position:sticky;top:130px}
  .hero{min-height:70vh}
  main [id]{scroll-margin-top:140px}
}

@media (min-width:640px){
  .hero{min-height:66vh}
}

@media (max-width:639px){
  .brand{font-size:24px;padding:4px 18px 6px;min-height:44px}
  .menu a{padding:8px 11px}
  .patch{height:46px;margin-bottom:20px}
  .patch i{width:20px;height:20px}
  .s1,.s3{width:66px;height:66px}
  .s2{width:74px;height:74px}
  .s4{width:104px;height:30px;border-width:3px}
  .s5{width:56px;height:56px}
  .side{transform:none;box-shadow:6px 6px 0 rgba(135,255,113,.2)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .s1,.s2,.s3{animation:none}
  .rv{opacity:1;transform:none;transition:none}
}

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