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

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding-bottom:120px;
  background:#fff;
  color:#000;
  font-family:Cabin,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.62;
  background-image:
    linear-gradient(rgba(0,0,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,255,.07) 1px,transparent 1px);
  background-size:34px 34px;
  overflow-wrap:break-word;
}
a{color:#0000ff}
a:hover{color:#000}
img{max-width:100%;height:auto;display:block}
hr{border:0;border-top:3px solid #000;margin:14px 0}
h1,h2,h3,h4{
  font-family:"Amatic SC",Cabin,system-ui,sans-serif;
  font-weight:700;
  line-height:1.06;
  letter-spacing:.02em;
  margin:0 0 .5em;
  overflow-wrap:break-word;
}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:22px}
li{margin:.25em 0}
code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95em}
pre{border:3px solid #000;padding:12px;overflow:auto;background:#00ff80}
blockquote{margin:0 0 1em;border:3px solid #000;border-left-width:10px;padding:14px 16px;background:#fff}
table{border-collapse:collapse;width:100%;margin:0 0 1em}
th,td{border:2px solid #000;padding:8px 10px;text-align:left}
th{background:#00ff80}

/* 顶部细条 */
.tape{display:flex;align-items:center;gap:12px;background:#000;border-bottom:4px solid #000;padding:8px 14px}
.tape-brand{
  font-family:"Amatic SC",Cabin,sans-serif;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:.06em;
  color:#00ff80;
  text-decoration:none;
  white-space:nowrap;
}
.tape-brand:hover{color:#fff}
.tape-marks{
  flex:1 1 auto;
  min-width:20px;
  height:8px;
  background:repeating-linear-gradient(90deg,#00ff80 0 6px,transparent 6px 14px);
}

/* hero */
.hero{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  border-bottom:6px solid #000;
  padding:28px 14px;
  background:#fff;
}
.hero-in{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:wrap;
  max-width:960px;
  margin-left:auto;
  text-align:right;
}
.hero-txt{min-width:0;flex:1 1 240px}
.hero h1{font-size:clamp(2.4rem,10vw,5.4rem);margin:0}
.hero-art-wrap{flex:0 0 auto;will-change:transform}
.hero-art-wrap img{width:118px;height:auto;border:3px solid #000;background:#00ff80}

/* 主栅格 */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:22px 14px 40px;
}
.prose{min-width:0}
.prose>div{
  border-top:3px solid #000;
  padding:22px 0 6px;
  scroll-margin-top:14px;
  animation:rise .28s steps(4,end) both;
}
.prose>div:nth-child(1){animation-delay:.02s}
.prose>div:nth-child(2){animation-delay:.08s}
.prose>div:nth-child(3){animation-delay:.14s}
.prose>div:nth-child(4){animation-delay:.2s}
.prose>div:nth-child(5){animation-delay:.26s}
.prose>div:nth-child(6){animation-delay:.32s}
.prose>div:nth-child(7){animation-delay:.38s}
.prose>div:nth-child(n+8){animation-delay:.44s}
.prose>div h2{font-size:clamp(1.8rem,6vw,2.6rem);margin-top:.2em}
.prose>div h3{font-size:1.5rem}
.prose figure{border:3px solid #000;border-bottom:5px solid #00ff80;padding:8px;border-radius:10px;margin:0 0 1em}
.prose blockquote{border-radius:10px}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* 侧栏 */
.rail{
  border:3px solid #000;
  background:#00ff80;
  padding:16px;
  align-self:start;
  border-radius:10px;
}
.rail h2{font-size:1.9rem;margin:0}
.rail hr{border-top:3px solid #000;margin:10px 0}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list li+li{border-top:2px solid #000}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 4px;
  color:#000;
  text-decoration:none;
  font-weight:600;
}
.rail-list a:hover{background:#000;color:#00ff80}

/* 页脚 */
.foot{margin-top:30px;border-top:6px solid #000;background:#000;color:#fff}
.cta a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:96px;
  padding:18px 16px;
  font-family:"Amatic SC",Cabin,sans-serif;
  font-weight:700;
  font-size:clamp(2rem,7vw,3.4rem);
  line-height:1.05;
  letter-spacing:.03em;
  color:#00ff80;
  text-decoration:none;
  border-bottom:4px solid #00ff80;
}
.cta a:hover{background:#0000ff;color:#fff}
.cta-arrow{font-family:Cabin,sans-serif}
.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 18px;
  padding:16px 14px 22px;
}
.foot-brand a{
  font-family:"Amatic SC",Cabin,sans-serif;
  font-size:1.4rem;
  font-weight:700;
  color:#00ff80;
  text-decoration:none;
  letter-spacing:.05em;
}
.foot-nav dl{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.foot-nav dt,.foot-nav dd{margin:0}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  border:2px solid #fff;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.foot-nav a:hover{background:#00ff80;color:#000;border-color:#00ff80}
.foot-copy{color:#00ff80;font-weight:600}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  background:#00ff80;
  border-top:4px solid #000;
  padding:6px 10px;
}
.dock-side{display:flex;align-items:center;gap:4px;min-width:0}
.dock-right{justify-content:flex-end}
.dock-side a,.drop-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 10px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:#000;
  background:#fff;
  border:2px solid #000;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.dock-side a:hover,.drop-btn:hover{background:#0000ff;color:#fff;border-color:#000}
.dock-band{font-weight:700}
.dock-brand{
  font-family:"Amatic SC",Cabin,sans-serif;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:.05em;
  color:#000;
  text-decoration:none;
  padding:4px 8px;
  white-space:nowrap;
}
.drop{position:relative}
.drop-list{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  display:none;
  flex-direction:column;
  gap:4px;
  min-width:170px;
  background:#00ff80;
  border:3px solid #000;
  padding:6px;
  border-radius:10px;
}
.drop.open .drop-list,.drop:hover .drop-list,.drop:focus-within .drop-list{display:flex}
.drop-list a{border-radius:0}

/* 桌面 */
@media (min-width:900px){
  body{padding-bottom:96px}
  .stage{grid-template-columns:minmax(0,1fr) 288px;gap:34px;padding:28px 22px 56px}
  .hero{padding:40px 22px}
  .prose>div{padding:30px 0 10px}
  .foot-row{padding:18px 22px 26px}
  .cta a{padding:22px 22px}
  .dock{padding:6px 18px}
}

@media (max-width:899px){
  body{padding-bottom:132px}
  .dock{padding:6px 8px 8px;justify-content:space-between}
  .dock-brand{order:-1;flex:0 0 100%;min-height:36px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;padding:0}
  .dock-left{order:1}
  .dock-right{order:2}
  .dock-side a,.drop-btn{padding:8px}
  .hero{justify-content:flex-end}
  .hero-in{gap:12px}
  .hero-art-wrap img{width:84px}
  .foot-row{flex-direction:column;align-items:flex-start}
  .foot-copy{width:100%;border-top:2px solid #00ff80;padding-top:10px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .hero-art-wrap{transform:none!important}
}

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