:root{
  --ink:#1f2617;
  --lime:#80ff00;
  --acid:#00ff00;
  --paper:#eef3df;
  --tint:#dbe6c4;
  --edge:rgba(31,38,23,.28);
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  background:
    repeating-linear-gradient(135deg,rgba(31,38,23,.05) 0 2px,transparent 2px 10px),
    var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Hebrew',system-ui,-apple-system,'Segoe UI','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  overflow-x:hidden;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
p{margin:0 0 1rem}

/* ---------- 顶栏 ---------- */
.top{position:relative;z-index:50}
.marquee{
  overflow:hidden;
  background:var(--ink);
  color:var(--lime);
  border-bottom:3px solid var(--acid);
  font-size:16px;
  letter-spacing:.2em;
  padding:.18rem 0;
  white-space:nowrap;
}
.marquee span{display:inline-block;padding-left:1rem;animation:slide 26s linear infinite}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:.4rem 1rem;
  padding:.5rem clamp(.6rem,3vw,2rem);
  background:var(--lime);
  border-bottom:3px solid var(--ink);
}
.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .7rem;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.04em;
  text-decoration:none;
  background:var(--ink);
  color:var(--lime);
  box-shadow:5px 5px 0 var(--acid);
  transform:rotate(-1.2deg);
}
.nav{display:flex;align-items:center;gap:.1rem;flex-wrap:wrap}
.nav-a{justify-self:start}
.nav-b{justify-self:end}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .55rem;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  border-bottom:3px solid transparent;
}
.nav a:hover,.nav a:focus-visible{border-bottom-color:var(--ink);background:rgba(31,38,23,.1)}
.drop{position:relative;display:inline-flex;align-items:center}
.drop>a{border-bottom-style:dashed;border-bottom-color:var(--edge)}
.drop>ul{
  position:absolute;
  top:100%;
  left:0;
  z-index:70;
  display:none;
  flex-direction:column;
  gap:.1rem;
  min-width:10rem;
  margin:0;
  padding:.35rem;
  list-style:none;
  background:var(--acid);
  border:3px solid var(--ink);
  box-shadow:6px 6px 0 var(--ink);
}
.drop:hover>ul,.drop:focus-within>ul{display:flex}
.drop>ul li{list-style:none}
.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 1rem;
  margin-left:.4rem;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  color:var(--lime);
  background:var(--ink);
  border:3px solid var(--ink);
  box-shadow:4px 4px 0 var(--acid);
}
.cta:hover{background:var(--acid);color:var(--ink);box-shadow:4px 4px 0 var(--ink)}

/* ---------- 粘性锚点条 ---------- */
.rail{
  position:sticky;
  top:0;
  z-index:60;
  overflow-x:auto;
  background:var(--acid);
  border-bottom:3px solid var(--ink);
  -webkit-overflow-scrolling:touch;
}
.rail ol{
  display:flex;
  gap:.15rem;
  margin:0;
  padding:.28rem clamp(.4rem,2vw,1.2rem);
  list-style:none;
  counter-reset:step;
  width:max-content;
  min-width:100%;
}
.rail li{counter-increment:step;display:flex}
.rail a{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  min-height:40px;
  padding:0 .6rem;
  font-size:16px;
  text-decoration:none;
  border:2px solid transparent;
  white-space:nowrap;
}
.rail a::before{
  content:counter(step,decimal-leading-zero);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px;
  opacity:.7;
}
.rail a:hover,.rail a:focus-visible{background:var(--ink);color:var(--acid);border-color:var(--ink)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  grid-template-rows:auto auto;
  gap:1rem 2.4rem;
  min-height:calc(100svh - 8.2rem);
  padding:2.2rem clamp(1rem,4vw,3.4rem) 2.6rem;
  overflow:hidden;
  border-bottom:6px solid var(--ink);
  background:
    radial-gradient(circle at 84% 12%,rgba(0,255,0,.55),transparent 56%),
    linear-gradient(160deg,var(--paper) 40%,var(--tint));
}
.ghost{
  position:absolute;
  right:-.06em;
  bottom:-.16em;
  z-index:0;
  font-size:clamp(5rem,19vw,15rem);
  font-weight:700;
  line-height:.78;
  letter-spacing:-.06em;
  color:var(--acid);
  mix-blend-mode:multiply;
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  grid-column:1;
  grid-row:1 / span 2;
  align-self:center;
  max-width:34rem;
}
.tag{
  display:inline-block;
  margin:0 0 .9rem;
  padding:.1rem .55rem;
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  background:var(--ink);
  color:var(--acid);
  transform:rotate(-2deg);
}
h1{
  margin:0 0 1rem;
  font-size:clamp(2.5rem,7.4vw,5.4rem);
  line-height:1.02;
  font-weight:700;
  letter-spacing:-.045em;
  text-shadow:3px 3px 0 var(--acid);
}
.lede{
  max-width:30rem;
  font-size:18px;
  line-height:1.6;
  margin:0 0 1.5rem;
}
.jump{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.2rem;
  font-weight:700;
  text-decoration:none;
  background:var(--acid);
  color:var(--ink);
  border:3px solid var(--ink);
  box-shadow:7px 7px 0 var(--ink);
  transform:rotate(-1deg);
}
.jump:hover{background:var(--ink);color:var(--acid)}
.hero-fig{
  position:relative;
  z-index:2;
  grid-column:2;
  grid-row:1;
  margin:0;
  border:3px solid var(--ink);
  border-bottom:8px solid var(--lime);
  background:
    repeating-linear-gradient(45deg,rgba(31,38,23,.18) 0 6px,transparent 6px 14px),
    var(--tint);
  transform:rotate(1.6deg);
  box-shadow:9px 9px 0 rgba(31,38,23,.22);
  animation:jitter 7s ease-in-out infinite;
}
@keyframes jitter{
  0%,100%{transform:rotate(1.6deg)}
  50%{transform:rotate(-.8deg)}
}
.hero-fig .hero-img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  filter:saturate(150%);
}
.hero-fig figcaption{
  padding:.25rem .6rem;
  font-size:16px;
  font-weight:500;
  border-top:3px solid var(--ink);
  background:var(--lime);
}
.chip{
  position:relative;
  z-index:2;
  grid-column:2;
  grid-row:2;
  align-self:start;
  margin:0;
  padding:.7rem .9rem .9rem;
  background:var(--paper);
  border:3px solid var(--ink);
  border-bottom:8px solid var(--acid);
  transform:rotate(-1.4deg);
  box-shadow:6px 6px 0 rgba(31,38,23,.2);
}
.chip h2{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:-.02em;
}
.chip hr{
  margin:.35rem 0 .4rem;
  border:0;
  height:5px;
  background:var(--acid);
  width:60%;
}
.chip ul{margin:0;padding:0;list-style:none}
.chip li+li{border-top:2px dashed var(--edge)}
.chip a{
  display:flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
}
.chip a::before{content:"»";margin-right:.4rem;color:var(--ink);opacity:.6}
.chip a:hover{text-decoration:underline}

/* ---------- 正文区块 ---------- */
main>section:not(.hero){
  position:relative;
  padding:2.6rem clamp(1rem,5vw,4rem) 3rem;
  border-bottom:2px dashed var(--edge);
  scroll-margin-top:5.2rem;
}
main>section:not(.hero):nth-of-type(even){
  background:linear-gradient(200deg,rgba(128,255,0,.22),transparent 42%);
}
main>section:not(.hero)>*{max-width:66ch}
main>section:not(.hero) h2{
  display:inline-block;
  margin:0 0 .2rem;
  padding:.05em .3em .1em;
  font-size:clamp(1.5rem,3.6vw,2.15rem);
  line-height:1.16;
  letter-spacing:-.03em;
  background:var(--acid);
  box-shadow:5px 5px 0 var(--ink);
}
main>section:not(.hero) h2+hr{
  margin:.75rem 0 1.5rem;
  border:0;
  height:7px;
  width:min(11rem,70%);
  background:var(--ink);
}
main>section:not(.hero) h3{
  margin:1.8rem 0 .5rem;
  font-size:20px;
  letter-spacing:-.02em;
}
main>section:not(.hero) hr{
  border:0;
  height:2px;
  margin:1.6rem 0;
  background:var(--edge);
}
main>section:not(.hero) ul,
main>section:not(.hero) ol{
  margin:0 0 1.2rem;
  padding-left:1.3rem;
}
main>section:not(.hero) li{margin:.35rem 0}
main>section:not(.hero) li::marker{color:var(--ink);font-weight:700}
main>section:not(.hero) a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
main>section:not(.hero) a:hover{background:var(--acid)}
main>section:not(.hero) figure{
  margin:1.4rem 0;
  border:3px solid var(--ink);
  border-bottom:8px solid var(--lime);
  background:var(--tint);
  transform:rotate(-.7deg);
}
main>section:not(.hero) figure img{width:100%}
main>section:not(.hero) figcaption{
  padding:.25rem .6rem;
  font-size:16px;
  border-top:3px solid var(--ink);
  background:var(--lime);
}
main>section:not(.hero) blockquote{
  margin:1.4rem 0;
  padding:.8rem 1rem;
  border-left:8px solid var(--acid);
  background:rgba(128,255,0,.18);
}
main>section:not(.hero) blockquote p:last-child{margin:0}
main>section:not(.hero) table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  margin:1.2rem 0;
  font-size:16px;
}
main>section:not(.hero) th,
main>section:not(.hero) td{
  border:2px solid var(--ink);
  padding:.5rem .6rem;
  text-align:left;
  vertical-align:top;
}
main>section:not(.hero) th{background:var(--lime);font-weight:700}
.reveal{opacity:0;transform:translateY(22px)}
.reveal.in{animation:pop .55s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes pop{to{opacity:1;transform:none}}

/* ---------- 页脚 ---------- */
footer{
  background:var(--ink);
  color:#e8f5d6;
  border-top:6px solid var(--ink);
}
.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:2rem clamp(1rem,5vw,4rem);
  background:var(--acid);
  color:var(--ink);
  border-bottom:4px solid var(--ink);
}
.foot-cta .big{
  margin:0;
  font-size:clamp(1.7rem,5.2vw,3rem);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.1;
}
.foot-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.1rem;
  font-weight:700;
  text-decoration:none;
  background:var(--ink);
  color:var(--acid);
  border:3px solid var(--ink);
  box-shadow:6px 6px 0 var(--lime);
}
.foot-btn:hover{background:var(--lime);color:var(--ink)}
.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.3rem 1.4rem;
  padding:1rem clamp(1rem,5vw,4rem) 1.6rem;
}
.foot-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .5rem;
  font-weight:700;
  letter-spacing:-.03em;
  text-decoration:none;
  color:var(--acid);
  border:2px solid var(--acid);
}
.foot-row nav{max-width:100%}
.foot-row dl{
  display:flex;
  flex-wrap:wrap;
  gap:0 .5rem;
  margin:0;
  justify-content:center;
}
.foot-row dt,.foot-row dd{margin:0}
.foot-row dl a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .45rem;
  font-size:16px;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.foot-row dl a:hover{border-bottom-color:var(--acid);color:var(--acid)}
.foot-row dd a{opacity:.82}
.copy{
  flex-basis:100%;
  margin:.4rem 0 0;
  font-size:16px;
  text-align:center;
  opacity:.75;
}

/* ---------- 回顶 ---------- */
#top-btn{
  position:fixed;
  right:.9rem;
  bottom:.9rem;
  z-index:90;
  display:none;
  min-height:44px;
  padding:.5rem .85rem;
  font:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--acid);
  border:3px solid var(--ink);
  box-shadow:5px 5px 0 var(--ink);
  cursor:pointer;
  border-radius:0;
}
#top-btn.on{display:block}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .bar{grid-template-columns:1fr;gap:.25rem}
  .brand{grid-row:1;justify-self:start;font-size:20px}
  .nav-a{grid-row:2;justify-self:start;overflow-x:auto;max-width:100%}
  .nav-b{grid-row:3;justify-self:start;overflow-x:auto;max-width:100%}
  .drop>ul{
    position:static;
    display:flex;
    flex-direction:row;
    min-width:0;
    padding:0;
    border:0;
    box-shadow:none;
    background:none;
  }
  .drop>ul a{min-height:44px}
}
@media (max-width:820px){
  .hero{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    min-height:0;
    gap:1.1rem;
    padding:1.4rem 1rem 2rem;
  }
  .hero-copy{grid-column:1;grid-row:1;max-width:none}
  .hero-fig{grid-column:1;grid-row:2}
  .chip{grid-column:1;grid-row:3;justify-self:stretch}
  .ghost{font-size:clamp(4rem,24vw,9rem);opacity:.7}
  h1{font-size:clamp(2.1rem,9.4vw,3.2rem)}
  .lede{font-size:17px}
  main>section:not(.hero){padding:2rem 1rem 2.4rem;scroll-margin-top:4.6rem}
  .foot-cta{padding:1.6rem 1rem}
  main>section:not(.hero) table{display:block;overflow-x:auto}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .marquee span,.hero-fig{animation:none}
  .reveal{opacity:1;transform:none;animation:none}
}

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