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

:root{
  --acid:#80ff00;
  --lime:#00ff00;
  --ink:#1f2617;
  --paper:#f2ffdb;
  --bar:112px;
}

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

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

body{
  margin:0;
  background:var(--acid);
  color:var(--ink);
  font-family:'Be Vietnam Pro','Noto Sans','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  overflow-x:hidden;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  opacity:.15;
  mix-blend-mode:multiply;
  background-size:170px 170px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

a{color:var(--ink)}

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

/* 顶部流动条 */
.ticker{
  background:var(--ink);
  color:var(--acid);
  overflow:hidden;
  font-weight:800;
  font-size:.76rem;
  letter-spacing:.24em;
  border-bottom:3px solid var(--ink);
}
.ticker__row{
  display:flex;
  white-space:nowrap;
  padding:.3rem 0;
  animation:mq 26s linear infinite;
  will-change:transform;
}
.ticker__row > *{margin-right:1.2rem;padding-left:1.2rem}
@keyframes mq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* 页头 */
.head{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:.5rem;
  background:var(--ink);
  border-bottom:4px solid var(--ink);
  padding:.4rem clamp(.5rem,2vw,1.2rem);
}
.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:.4rem .6rem .4rem .25rem;
  color:var(--acid);
  text-decoration:none;
  font-weight:800;
  font-size:1rem;
  letter-spacing:.02em;
  transform:rotate(-2deg);
}
.brand:hover{color:var(--lime)}
.brand__img{width:34px;height:34px;object-fit:cover;border:2px solid var(--acid);filter:saturate(150%)}
.brand__txt{white-space:nowrap}

.nav{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.nav::-webkit-scrollbar{height:0}
.nav ol{display:flex;align-items:center;gap:.4rem;margin:0;padding:.2rem 0;list-style:none}
.nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .72rem;
  background:var(--acid);
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  font-size:.85rem;
  line-height:1.2;
  white-space:nowrap;
  border:2px solid var(--acid);
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.nav a::before{content:'◆';font-size:.6em;margin-right:.42rem}
.nav a:hover,.nav a:focus-visible,.nav a[aria-current]{background:var(--lime);border-color:var(--lime);transform:rotate(-2deg) translateY(-2px)}

/* 头图 */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:calc(100vh - var(--bar));
  padding:clamp(2.2rem,8vw,5rem) clamp(1rem,5vw,3rem);
  background:var(--ink);
  color:var(--acid);
  text-align:center;
  overflow:hidden;
  border-bottom:4px solid var(--ink);
}
.hero::after{
  content:'';
  position:absolute;
  left:-12%;
  right:-12%;
  bottom:-18%;
  height:46%;
  background:var(--acid);
  opacity:.14;
  transform:rotate(-4deg);
}
.hero__box{position:relative;z-index:2;max-width:24ch}
.hero h1{
  margin:0;
  font-size:clamp(2.5rem,10vw,6.2rem);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.035em;
}
.hero__desc{
  margin:1.1rem auto 0;
  max-width:34ch;
  font-size:clamp(.95rem,2.4vw,1.1rem);
  line-height:1.72;
  color:var(--paper);
}

.stk{
  position:absolute;
  z-index:3;
  padding:.34rem .7rem;
  background:var(--lime);
  color:var(--ink);
  border:3px solid var(--ink);
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.1em;
  box-shadow:6px 6px 0 rgba(0,0,0,.45);
  animation:jit 3.6s ease-in-out infinite;
}
.stk--1{top:15%;left:7%;transform:rotate(-12deg)}
.stk--2{top:24%;right:6%;transform:rotate(9deg);background:var(--acid);animation-delay:.7s}
.stk--3{bottom:15%;left:13%;transform:rotate(6deg);animation-delay:1.3s}
@keyframes jit{0%,100%{translate:0 0}50%{translate:2px -5px}}

/* 主体 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:start;
  max-width:1280px;
  margin:0 auto;
  background:var(--paper);
  border-left:4px solid var(--ink);
  border-right:4px solid var(--ink);
  border-top:4px solid var(--ink);
}

.prose{min-width:0;padding:clamp(1.2rem,3.5vw,2.6rem);background:var(--paper)}

.prose article{
  padding:clamp(1.2rem,3vw,2rem) 0;
  border-top:4px dashed var(--ink);
  scroll-margin-top:calc(var(--bar) + 10px);
}
.prose article:first-child{border-top:0;padding-top:0}

.prose h2{
  margin:.15rem 0 .75rem;
  font-size:clamp(1.5rem,3.6vw,2.1rem);
  line-height:1.16;
  font-weight:800;
  letter-spacing:-.012em;
}
.prose h3{
  margin:1.5rem 0 .5rem;
  font-size:clamp(1.15rem,2.6vw,1.42rem);
  line-height:1.3;
  font-weight:800;
}
.prose small{
  display:inline-block;
  margin-bottom:.4rem;
  padding:.2rem .6rem;
  background:var(--ink);
  color:var(--acid);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.18em;
  line-height:1.4;
  transform:rotate(-2deg);
}
.prose p{margin:0 0 1rem}
.prose a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--lime);
  text-underline-offset:3px;
}
.prose a:hover{background:var(--lime)}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.35rem}
.prose li{margin:.28rem 0}
.prose img{
  display:block;
  max-width:100%;
  height:auto;
  margin:1.1rem 0;
  border:3px solid var(--ink);
  filter:saturate(150%);
}
.prose blockquote{
  margin:1.2rem 0;
  padding:.85rem 1rem;
  background:var(--acid);
  border-left:9px solid var(--ink);
  font-weight:500;
}
.prose blockquote p:last-child{margin:0}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th,.prose td{border:2px solid var(--ink);padding:.5rem .6rem;text-align:left;vertical-align:top}
.prose thead th{background:var(--acid)}
.prose hr{margin:1.6rem 0;border:0;border-top:4px solid var(--ink)}
.prose code{padding:.1rem .35rem;background:var(--ink);color:var(--acid);font-size:.9em}

/* 侧栏 */
.side{
  position:sticky;
  top:calc(var(--bar) - 10px);
  align-self:start;
  padding:1.1rem;
  background:var(--lime);
  border-left:4px solid var(--ink);
}
.side small{
  display:inline-block;
  padding:.2rem .58rem;
  background:var(--ink);
  color:var(--lime);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.2em;
  line-height:1.4;
  transform:rotate(-3deg);
}
.side h2{margin:.55rem 0 .7rem;font-size:1.24rem;line-height:1.22;font-weight:800}
.side ol{display:grid;gap:.34rem;margin:0;padding:0;list-style:none}
.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.35rem .55rem;
  background:var(--acid);
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  font-size:.9rem;
  line-height:1.3;
  border-left:5px solid var(--ink);
  transition:transform .15s ease,background .15s ease;
}
.side a:hover{background:var(--paper);transform:translateX(3px)}
.side a[aria-current]{background:var(--paper);border-left-color:var(--lime)}
.side__stamp{
  margin:1rem 0 0;
  padding:.4rem;
  background:var(--ink);
  color:var(--lime);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
  text-align:center;
  transform:rotate(-2deg);
}

/* 页脚 */
.foot{
  padding:clamp(1.6rem,4vw,2.6rem) clamp(1rem,4vw,2rem);
  background:var(--ink);
  color:var(--acid);
  text-align:center;
  border-top:4px solid var(--ink);
}
.foot__sub{max-width:520px;margin:0 auto 1.5rem}
.foot form{display:flex;flex-wrap:wrap;gap:.5rem}
.foot input{
  flex:1 1 180px;
  min-height:46px;
  padding:.5rem .7rem;
  background:transparent;
  color:var(--paper);
  border:3px solid var(--acid);
  font:inherit;
  font-size:.95rem;
}
.foot input::placeholder{color:rgba(128,255,0,.62)}
.foot button{
  min-height:46px;
  padding:.5rem 1.25rem;
  background:var(--acid);
  color:var(--ink);
  border:3px solid var(--acid);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.foot button:hover{background:var(--lime);border-color:var(--lime)}
.foot address{font-style:normal;font-weight:800;font-size:.9rem;letter-spacing:.1em}
.foot__mid ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.15rem .45rem;
  margin:.6rem 0 1.1rem;
  padding:0;
  list-style:none;
}
.foot__mid a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.3rem .5rem;
  color:var(--acid);
  text-decoration:none;
  font-size:.85rem;
  border-bottom:2px solid transparent;
}
.foot__mid a:hover{color:var(--lime);border-bottom-color:var(--lime)}
.foot__copy{margin:0;font-size:.78rem;letter-spacing:.12em;color:rgba(128,255,0,.75)}

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

@media (max-width:960px){
  main{grid-template-columns:minmax(0,1fr);border-left:0;border-right:0}
  .side{position:static;border-left:0;border-top:4px solid var(--ink)}
}

@media (max-width:700px){
  :root{--bar:164px}
  .head{flex-wrap:wrap;padding:.35rem .5rem}
  .brand{font-size:.95rem}
  .nav{order:3;flex-basis:100%;border-top:3px solid var(--acid);margin-top:.15rem}
  .hero{min-height:calc(100vh - var(--bar))}
  .stk{font-size:.72rem;padding:.28rem .55rem}
  .stk--1{top:10%;left:5%}
  .stk--2{top:17%;right:5%}
  .side{padding:.9rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ticker__row,.stk{animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .nav a,.side a{transition:none}
}

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