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

:root{
  --violet:#6514ff;
  --magenta:#bf00ff;
  --ink:#1c1726;
  --paper:#f8f5ff;
  --line:rgba(28,23,38,.14);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Noto Sans Hebrew',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--paper);
  padding-bottom:88px;
  overflow-x:hidden;
}
body.menu-open{overflow:hidden}

body::before{
  content:'';
  position:fixed;
  inset:-25%;
  z-index:-1;
  background:
    repeating-linear-gradient(135deg,rgba(101,20,255,.06) 0 16px,transparent 16px 44px),
    radial-gradient(58% 46% at 82% 2%,rgba(191,0,255,.2),transparent 70%),
    radial-gradient(52% 44% at 2% 34%,rgba(101,20,255,.16),transparent 72%);
  animation:drift 22s linear infinite;
}
@keyframes drift{
  to{background-position:220px 220px,0 0,0 0}
}

h1,h2,h3,h4{line-height:1.18;margin:0;font-weight:700;letter-spacing:-.02em}
p{margin:0 0 14px}
img{max-width:100%;height:auto;display:block}
a{color:var(--violet)}
a:focus-visible,label:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--magenta);outline-offset:2px}

/* 顶部 */
.topbar{
  position:relative;
  display:grid;
  gap:12px;
  padding:14px 18px 16px;
  background:var(--ink);
  color:#fff;
}
.brandrow{display:flex}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  color:#fff;
  text-decoration:none;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.01em;
}
.brandmark{
  width:22px;
  height:22px;
  flex:0 0 auto;
  background:linear-gradient(135deg,var(--violet),var(--magenta));
  box-shadow:6px 6px 0 rgba(191,0,255,.5);
}
.logo{width:40px;height:40px;object-fit:contain}
.switch{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tools{display:flex;gap:10px;align-items:stretch}
.search{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  background:#fff;
  border:2px solid var(--violet);
}
.search input{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  border:0;
  padding:0 12px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:transparent;
}
.search button{
  border:0;
  min-width:52px;
  height:44px;
  padding:0 14px;
  font:inherit;
  font-weight:700;
  color:#fff;
  background:var(--violet);
  cursor:pointer;
  transition:background .2s ease;
}
.search button:hover{background:var(--magenta)}
.menubtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  background:var(--magenta);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  user-select:none;
  transition:background .2s ease;
}
.menubtn:hover{background:var(--violet)}
.menubtn .cl{display:none}
.switch:checked ~ .tools .menubtn .op{display:none}
.switch:checked ~ .tools .menubtn .cl{display:inline}
.switch:focus-visible ~ .tools .menubtn{outline:2px solid #fff;outline-offset:2px}

.veil{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px 18px 40px;
  overflow-y:auto;
  color:#fff;
  background:linear-gradient(160deg,var(--ink) 30%,#2b0f47);
  opacity:0;
  visibility:hidden;
  transform:translateY(-14px);
  transition:opacity .26s ease,transform .26s ease,visibility .26s ease;
}
.switch:checked ~ .veil{opacity:1;visibility:visible;transform:none}
.veilhead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.veilbrand{font-size:18px;font-weight:700}
.veillist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.veillist a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:0 12px;
  color:#fff;
  text-decoration:none;
  font-size:20px;
  font-weight:700;
  border-bottom:1px solid rgba(255,255,255,.16);
  transition:background .2s ease,color .2s ease;
}
.veillist a:hover{background:var(--violet)}

/* 版心 */
.shell{
  max-width:1120px;
  margin:0 auto;
  padding:24px 18px 56px;
  display:grid;
  gap:48px;
}
.doc{min-width:0}

/* 头图 */
.hero{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:45vh;
  padding:6px 0 24px;
  border-bottom:6px solid var(--ink);
  margin-bottom:44px;
}
.hero h1{
  flex:1 1 auto;
  min-width:0;
  font-size:clamp(32px,7.4vw,58px);
  letter-spacing:-.035em;
}
.heroart{flex:0 0 auto;width:104px;margin:0}
.heroart svg{width:100%;height:auto;display:block}
.heroart .spin{transform-origin:60px 60px;animation:spin 16s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.heropic{box-shadow:8px 8px 0 var(--violet)}

/* 正文块 */
.doc > div{
  padding:4px 0 30px;
  border-bottom:2px solid var(--line);
  margin-bottom:44px;
  scroll-margin-top:18px;
}
.doc > div:last-child{border-bottom:0;margin-bottom:0}
.doc h2{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:clamp(24px,5vw,34px);
  margin:0 0 16px;
}
.doc h2::before{
  content:'';
  flex:0 0 auto;
  width:12px;
  height:12px;
  background:linear-gradient(135deg,var(--violet),var(--magenta));
  transform:rotate(45deg);
}
.doc h2 > span{
  background:linear-gradient(transparent 62%,rgba(191,0,255,.32) 62%);
}
.doc h3{font-size:20px;margin:26px 0 10px;color:var(--violet)}
.doc h4{font-size:18px;margin:20px 0 8px}
.doc ul,.doc ol{padding-left:1.2em;margin:0 0 16px}
.doc li{margin-bottom:8px}
.doc p{max-width:70ch}
.doc strong{color:var(--violet)}
.doc blockquote{
  margin:20px 0;
  padding:14px 18px;
  border-left:6px solid var(--magenta);
  background:#fff;
  box-shadow:0 12px 24px rgba(28,23,38,.08);
}
.doc table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.doc th,.doc td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.doc th{background:rgba(101,20,255,.08)}

/* 侧栏 */
.rail{
  background:#fff;
  border-top:6px solid var(--magenta);
  box-shadow:0 16px 34px rgba(28,23,38,.13);
  padding:20px 18px 22px;
  scroll-margin-top:18px;
}
.rail h2{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:.02em}
.rail h2::before{
  content:'';
  flex:0 0 auto;
  width:10px;
  height:10px;
  background:var(--magenta);
  transform:rotate(45deg);
}
.rail h2 > span{color:var(--violet);background:none}
.raillist{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:2px}
.raillist a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 8px;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px dashed var(--line);
  transition:background .2s ease,color .2s ease;
}
.raillist a:hover{background:rgba(101,20,255,.09);color:var(--violet)}

/* 页脚 */
.foot{
  margin-top:20px;
  padding:48px 18px 26px;
  background:var(--ink);
  color:#fff;
}
.footgrid{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  gap:28px;
}
.bigmark{
  margin:0;
  font-size:clamp(38px,9vw,76px);
  line-height:.96;
  font-weight:700;
  letter-spacing:-.04em;
  color:transparent;
  background:linear-gradient(100deg,#fff 25%,var(--magenta) 96%);
  -webkit-background-clip:text;
  background-clip:text;
}
.footaddr{
  margin-top:16px;
  font-style:normal;
  font-size:16px;
  line-height:1.6;
  color:rgba(255,255,255,.72);
}
.footlinks{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 14px;
}
.footlinks a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  text-decoration:none;
  color:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(255,255,255,.14);
  transition:color .2s ease;
}
.footlinks a:hover{color:var(--magenta)}
.copy{
  max-width:1120px;
  margin:30px auto 0;
  padding-top:18px;
  text-align:center;
  font-size:15px;
  color:rgba(255,255,255,.62);
  border-top:1px solid rgba(255,255,255,.14);
}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  background:rgba(28,23,38,.97);
  border-top:3px solid var(--magenta);
  padding-bottom:env(safe-area-inset-bottom);
}
.dock ol{
  list-style:none;
  margin:0;
  padding:6px 8px;
  display:flex;
  gap:6px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.dock ol::-webkit-scrollbar{display:none}
.dock li{flex:0 0 auto;scroll-snap-align:center}
.dock a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-size:16px;
  font-weight:500;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.2);
  transition:background .2s ease,border-color .2s ease;
}
.dock a:hover{background:var(--violet);border-color:var(--violet)}

/* 列表渐入 */
html.js [data-stagger] > *{opacity:0;transform:translateY(10px);transition:opacity .26s ease,transform .26s ease}
html.js [data-stagger] > *:nth-child(2){transition-delay:.05s}
html.js [data-stagger] > *:nth-child(3){transition-delay:.1s}
html.js [data-stagger] > *:nth-child(4){transition-delay:.15s}
html.js [data-stagger] > *:nth-child(5){transition-delay:.2s}
html.js [data-stagger] > *:nth-child(6){transition-delay:.25s}
html.js [data-stagger] > *:nth-child(7){transition-delay:.3s}
html.js [data-stagger].in > *{opacity:1;transform:none}

@media (max-width:420px){
  .heroart{width:82px}
  .hero{gap:12px}
}

@media (min-width:760px){
  .footgrid{grid-template-columns:1.4fr 1fr;gap:48px}
  .foot{padding:64px 24px 30px}
}

@media (min-width:900px){
  .topbar{padding:16px 24px 18px}
  .tools{max-width:560px}
  .shell{
    grid-template-columns:minmax(0,1fr) 236px;
    align-items:start;
    padding:40px 24px 80px;
  }
  .rail{position:sticky;top:24px}
  .hero{min-height:42vh}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  html.js [data-stagger] > *{opacity:1;transform:none}
}

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