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

:root{
  --neon:#87ff71;
  --mustard:#ffce5c;
  --ink:#192617;
  --paper:#f4fbe9;
  --edge:3px solid var(--ink);
  --round:28px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Hebrew','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:clip;
}

img{max-width:100%;display:block}
a{color:inherit}

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

/* ---------- 顶栏 ---------- */

.topbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:var(--neon);
  border-bottom:var(--edge);
  position:relative;
  z-index:30;
}

.mark{
  flex:0 0 auto;
  width:46px;
  height:46px;
  border:var(--edge);
  border-radius:16px;
  background:var(--mustard);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transform:rotate(-4deg);
  transition:transform .2s ease;
}
.mark:hover{transform:rotate(6deg) scale(1.05)}
.mark img{width:100%;height:100%;object-fit:contain}
.mark svg{width:26px;height:30px}

.brandword{
  font-weight:700;
  font-size:17px;
  letter-spacing:.01em;
  line-height:1.2;
}

.telly{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border:var(--edge);
  border-radius:999px;
  background:var(--ink);
  color:var(--neon);
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.telly:hover{
  background:var(--mustard);
  color:var(--ink);
  transform:rotate(-3deg);
}

/* ---------- 吸顶锚点条 ---------- */

.jump{
  position:sticky;
  top:0;
  z-index:25;
  background:var(--ink);
  border-bottom:var(--edge);
}

.jump ol{
  list-style:none;
  margin:0 auto;
  padding:9px 12px;
  max-width:1200px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.jump a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:0 13px;
  border:2px solid rgba(135,255,113,.55);
  border-radius:999px;
  color:var(--neon);
  font-size:16px;
  line-height:1.2;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.jump a b{
  font-size:13px;
  font-weight:500;
  opacity:.8;
}
.jump a:hover,
.jump a[aria-current]{
  background:var(--neon);
  color:var(--ink);
  border-color:var(--neon);
  transform:translateY(-2px);
}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--mustard);
  border-bottom:var(--edge);
  padding:52px 18px 26px;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:radial-gradient(var(--ink) 1.7px,transparent 1.8px);
  background-size:19px 19px;
  opacity:.22;
  pointer-events:none;
}

.hero::after{
  content:'';
  position:absolute;
  z-index:0;
  right:-52px;
  top:-46px;
  width:190px;
  height:190px;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(16deg);
  pointer-events:none;
}

.hero-in{
  position:relative;
  z-index:2;
  max-width:780px;
  margin:0 auto;
  text-align:center;
}

.badge{
  display:inline-block;
  background:var(--neon);
  border:var(--edge);
  border-radius:999px;
  padding:5px 16px;
  font-size:16px;
  line-height:1.5;
  font-weight:500;
  transform:rotate(-3deg);
}

h1{
  margin:20px 0 14px;
  font-size:clamp(30px,5.4vw,54px);
  line-height:1.14;
  letter-spacing:-.01em;
  font-weight:700;
}

.lede{
  margin:0 auto;
  max-width:44ch;
  font-size:17px;
  line-height:1.65;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:24px;
  min-height:52px;
  padding:0 30px;
  background:var(--ink);
  color:var(--neon);
  border:var(--edge);
  border-radius:999px;
  font-size:17px;
  font-weight:700;
  text-decoration:none;
  transform:rotate(-2deg);
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.cta:hover{
  background:var(--neon);
  color:var(--ink);
  transform:rotate(2deg) scale(1.03);
}

.hero-media{
  position:relative;
  z-index:2;
  width:100%;
  max-width:900px;
  margin:36px auto 0;
  height:clamp(160px,24vh,260px);
  border:var(--edge);
  border-radius:var(--round);
  background:#fff;
  overflow:hidden;
}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-media.is-blank{
  background-color:var(--neon);
  background-image:repeating-linear-gradient(45deg,rgba(25,38,23,.22) 0 12px,transparent 12px 26px);
}

/* ---------- 正文骨架 ---------- */

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:44px 18px 68px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 258px;
  gap:30px;
  align-items:start;
}

.paper{
  background:#fff;
  border:var(--edge);
  border-radius:var(--round);
  padding:28px 22px 34px;
  min-width:0;
}

.prose{max-width:72ch}
.prose > article{scroll-margin-top:172px}
.prose > article + article{
  margin-top:36px;
  padding-top:32px;
  border-top:3px dotted rgba(25,38,23,.4);
}

.prose h2,
.rail h2{
  display:inline-block;
  margin:0;
  padding:3px 14px;
  background:var(--neon);
  border:var(--edge);
  border-radius:14px;
  font-size:clamp(21px,2.6vw,28px);
  line-height:1.35;
  font-weight:700;
  letter-spacing:-.005em;
}

.prose h3{
  margin:26px 0 8px;
  font-size:19px;
  line-height:1.4;
  font-weight:700;
}

hr{
  border:0;
  border-top:3px dashed var(--ink);
  margin:14px 0 20px;
}

.prose p{margin:14px 0}
.prose ul,.prose ol{margin:14px 0;padding-left:1.3em}
.prose li{margin:7px 0}
.prose a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:3px solid var(--mustard);
  padding-bottom:1px;
  transition:background .16s ease;
}
.prose a:hover{background:var(--mustard)}
.prose strong{font-weight:700}
.prose blockquote{
  margin:20px 0;
  padding:14px 18px;
  border:var(--edge);
  border-left-width:12px;
  border-radius:0 20px 20px 0;
  background:var(--paper);
}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  font-size:16px;
}
.prose th,.prose td{
  border:2px solid var(--ink);
  padding:9px 11px;
  text-align:left;
}
.prose th{background:var(--mustard)}
.prose img{border:var(--edge);border-radius:20px;margin:16px 0}

/* ---------- 右侧栏 ---------- */

.rail{
  position:sticky;
  top:132px;
  background:var(--mustard);
  border:var(--edge);
  border-radius:var(--round);
  padding:18px 16px 20px;
}

.rail h2{
  background:#fff;
  font-size:20px;
  padding:2px 12px;
}

.rail hr{margin:12px 0 10px}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
}

.rail-list li{counter-increment:rail}

.rail-list a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:4px 10px;
  border-radius:14px;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  transition:background .16s ease,transform .16s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:13px;
  opacity:.72;
}
.rail-list a:hover{
  background:var(--neon);
  transform:translateX(3px);
}

/* ---------- 页脚 ---------- */

footer{
  margin-top:12px;
  background:var(--ink);
  color:var(--neon);
  border-top:var(--edge);
  padding:36px 18px 30px;
}

.foot-mark{
  margin:0 0 18px;
  text-align:center;
  font-size:clamp(36px,10.5vw,104px);
  line-height:1;
  font-weight:700;
  letter-spacing:-.03em;
  word-break:break-word;
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 18px;
  border-top:2px dashed rgba(135,255,113,.45);
  padding-top:16px;
  max-width:900px;
  margin:0 auto;
}

footer address{
  font-style:normal;
  font-size:16px;
  color:#d7ffcd;
}

footer ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
}

footer ul a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:2px solid rgba(135,255,113,.5);
  border-radius:999px;
  color:var(--neon);
  font-size:16px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease;
}
footer ul a:hover{background:var(--neon);color:var(--ink)}

.copy{
  margin:20px 0 0;
  text-align:center;
  font-size:16px;
  color:#b9e6ae;
}

/* ---------- 回到顶部 ---------- */

.totop{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:40;
  min-height:46px;
  padding:0 20px;
  border:var(--edge);
  border-radius:999px;
  background:var(--mustard);
  color:var(--ink);
  font:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.totop.show{opacity:1;transform:none;pointer-events:auto}
.totop:hover{background:var(--neon);transform:rotate(-3deg)}

/* ---------- 断点 ---------- */

@media (max-width:900px){
  .wrap{grid-template-columns:1fr;gap:22px;padding:32px 14px 52px}
  .rail{position:static;top:auto;order:2}
  .prose{max-width:none}
  .prose > article{scroll-margin-top:196px}
}

@media (max-width:600px){
  body{font-size:17px}
  .hero{padding-top:38px;min-height:62vh}
  .topbar{padding:10px 12px}
  .brandword{font-size:16px}
  .telly{padding:0 13px}
  .jump ol{padding:8px 10px}
  .jump a{padding:0 11px;gap:6px}
  .paper{padding:22px 16px 28px;border-radius:24px}
  .hero-media{border-radius:24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
}

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