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

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

:root {
  --ink: #172617;
  --deep: #07120b;
  --neon: #69ff69;
  --cyan: #00ffff;
  --paper: #e4ffec;
  --mut: #9ec9ae;
  --line: rgba(105, 255, 105, .3);
  --hair: rgba(0, 255, 255, .28);
  --glass: rgba(105, 255, 105, .07);
  --chrome: linear-gradient(135deg, #f2fff6 0%, #a8ffd0 16%, #69ff69 36%, #b6ffe4 52%, #00ffff 68%, #d8fff0 84%, #ffffff 100%);
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background:
    radial-gradient(circle at 14% 6%, rgba(0, 255, 255, .16), transparent 44%),
    radial-gradient(circle at 88% 2%, rgba(105, 255, 105, .18), transparent 42%),
    radial-gradient(rgba(105, 255, 105, .14) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, #0d1d13 0%, #07120b 58%, #0a1a11 100%);
}

a { color: var(--cyan); }
img { max-width: 100%; }

.skip {
  position: absolute; left: 12px; top: -70px; z-index: 90;
  padding: 10px 18px; border-radius: 999px;
  background: var(--neon); color: var(--ink);
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* 顶栏 */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(8, 20, 13, .74);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 255, 255, .2), 0 14px 36px rgba(0, 0, 0, .5);
}

.find { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.find-in {
  width: 136px; min-height: 44px;
  font: inherit; font-size: 16px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--hair);
  color: var(--paper); background: rgba(0, 255, 255, .08);
  outline: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.find-in::placeholder { color: #8fbfa0; }
.find-in:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 255, .25); }
.find-go {
  font: inherit; font-size: 16px; font-weight: 700;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  color: var(--ink); background: var(--chrome);
  transition: filter .2s, transform .2s;
}
.find-go:hover { filter: drop-shadow(0 0 10px rgba(105, 255, 105, .9)); transform: translateY(-1px); }

.deck { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; }
.deck-key {
  order: 2; flex: 0 0 auto; margin-left: 8px;
  display: flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer; user-select: none;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(105, 255, 105, .1);
  letter-spacing: .08em; font-weight: 700;
}
.deck-key::-webkit-details-marker { display: none; }
.key-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.deck[open] .key-dot { background: var(--neon); box-shadow: 0 0 12px var(--neon); }

.deck-menu {
  flex: 1 1 auto; min-width: 0; order: 1;
  display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.deck-menu li { flex: 0 1 auto; min-width: 0; }

.pill {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 13px;
  border-radius: 999px; border: 1px solid transparent;
  color: var(--paper); text-decoration: none;
  font-size: 16px; line-height: 1.25; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.pill:hover, .pill:focus-visible {
  background: var(--chrome); color: var(--ink);
  transform: translateY(-2px);
}

.deck-brand { margin-left: auto; margin-right: auto; flex: 0 0 auto; }
.deck-brand a {
  display: block; min-height: 44px; padding: 9px 18px;
  border-radius: 999px; text-decoration: none;
  font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center;
  color: var(--ink); background: var(--chrome);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, .55), 0 0 24px rgba(105, 255, 105, .5);
  transition: filter .2s, transform .2s;
}
.deck-brand a:hover { filter: drop-shadow(0 0 12px rgba(0, 255, 255, .9)); transform: translateY(-1px); }

/* 头部大图 */
.stage { display: block; }

.hero {
  position: relative; overflow: hidden;
  min-height: 45vh;
  display: flex; align-items: flex-end;
  padding: 62px 20px 44px;
  border-bottom: 1px solid var(--hair);
}
.hero-fig {
  position: absolute; inset: 0; margin: 0; z-index: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(0, 255, 255, .42), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(105, 255, 105, .34), transparent 46%),
    radial-gradient(rgba(0, 255, 255, .22) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(120deg, #10251a, #0a1610);
}
.hero-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; opacity: .72;
  filter: saturate(1.25) contrast(1.05);
}
.hero-fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 18, 11, .93) 0%, rgba(7, 18, 11, .62) 48%, rgba(7, 18, 11, .12) 100%);
}
.hero-gloss {
  position: absolute; left: -12%; top: -44%; z-index: 2;
  width: 124%; height: 72%; pointer-events: none;
  transform: rotate(-6deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 70%);
}
.hero-txt { position: relative; z-index: 3; max-width: 840px; }
.hero-h1 {
  margin: 0 0 14px;
  font-size: clamp(27px, 5.4vw, 58px);
  line-height: 1.16; letter-spacing: -.012em;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(105, 255, 105, .45));
}
.hero-sub {
  margin: 0; max-width: 54ch;
  font-size: 17px; line-height: 1.72; color: #b9e4c8;
}

/* 正文 + 侧栏 */
.split {
  max-width: 1160px; margin: 0 auto;
  padding: 44px 20px 68px;
  display: grid; grid-template-columns: minmax(0, 1fr) 292px;
  gap: 48px; align-items: start;
}

.prose { min-width: 0; color: #dcf6e5; }
.prose > section {
  scroll-margin-top: 108px;
  margin: 0 0 34px; padding: 6px 0 30px;
  border-bottom: 1px dashed var(--hair);
  animation: rise .5s ease both;
}
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.prose > section:nth-child(1) { animation-delay: .04s; }
.prose > section:nth-child(2) { animation-delay: .09s; }
.prose > section:nth-child(3) { animation-delay: .14s; }
.prose > section:nth-child(4) { animation-delay: .19s; }
.prose > section:nth-child(5) { animation-delay: .24s; }
.prose > section:nth-child(6) { animation-delay: .29s; }
.prose > section:nth-child(7) { animation-delay: .34s; }

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.7vw, 31px); line-height: 1.32;
  color: #eafff1;
}
.prose h2 > span { position: relative; padding-left: 30px; }
.prose h2 > span::before {
  content: "✦"; position: absolute; left: 0; top: .06em;
  font-size: .78em; color: var(--neon);
  filter: drop-shadow(0 0 10px var(--neon));
}
.prose h3 { margin: 26px 0 10px; font-size: 20px; color: #c9ffd9; }
.prose h3 > span { position: relative; padding-left: 22px; }
.prose h3 > span::before {
  content: "▸"; position: absolute; left: 0; color: var(--cyan);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--cyon, var(--cyan)); }
.prose strong { color: #ffffff; }
.prose img { display: block; width: auto; margin: 22px 0; }
.prose figure {
  margin: 22px 0; padding: 12px;
  border: 1px solid var(--hair); background: rgba(0, 255, 255, .06);
}
.prose figure img { margin: 0; }
.prose aside {
  margin: 22px 0; padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(0, 255, 255, .08);
}
.prose blockquote {
  margin: 22px 0; padding: 14px 18px;
  border-left: 3px solid var(--neon);
  background: rgba(105, 255, 105, .08);
  color: #d7f8e2;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.prose th { background: rgba(105, 255, 105, .1); }
.prose pre {
  overflow-x: auto; padding: 14px 16px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .42);
  font-size: 15px; line-height: 1.6;
}
.prose code { font-size: .94em; }
.prose a { text-underline-offset: 3px; }

.rail {
  position: sticky; top: 96px;
  padding: 18px 16px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 44px rgba(0, 0, 0, .36);
}
.rail-h {
  margin: 0 0 12px; font-size: 16px; font-weight: 500;
  letter-spacing: .22em; color: var(--neon);
}
.rail-menu { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.rail-link {
  display: block; padding: 11px 10px; min-height: 44px;
  font-size: 16px; text-decoration: none; color: #d7f5e1;
  border-left: 2px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.rail-link:hover, .rail-link:focus-visible {
  background: rgba(0, 255, 255, .13);
  border-left-color: var(--cyan); color: #ffffff;
}
.totop {
  width: 100%; min-height: 44px;
  font: inherit; font-size: 16px; letter-spacing: .12em; cursor: pointer;
  border: 1px solid rgba(0, 255, 255, .55); border-radius: 0;
  color: var(--cyan); background: transparent;
  transition: background .2s, color .2s;
}
.totop:hover { background: var(--cyan); color: var(--ink); }

/* 页脚 */
.foot {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 30px 44px; align-items: start;
  padding: 48px max(20px, calc((100% - 1160px) / 2)) 26px;
  border-top: 1px solid var(--hair);
  background:
    radial-gradient(circle at 82% 0%, rgba(0, 255, 255, .18), transparent 52%),
    radial-gradient(rgba(105, 255, 105, .12) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(180deg, #0b1d13, #07120b);
}
.mega {
  margin: 0;
  font-size: clamp(30px, 5.6vw, 68px);
  line-height: 1.04; letter-spacing: -.02em;
  word-break: break-word;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, .34));
}
.foot-h {
  margin: 0 0 14px; font-size: 16px; font-weight: 500;
  letter-spacing: .22em; color: var(--neon);
}
.foot-h > span { position: relative; padding-left: 18px; }
.foot-h > span::before {
  content: "✦"; position: absolute; left: 0; color: var(--cyan);
}
.foot-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.foot-menu .pill { border-color: rgba(105, 255, 105, .22); }
.foot-base {
  grid-column: 1 / -1;
  margin-top: 6px; padding-top: 16px;
  border-top: 1px solid rgba(105, 255, 105, .22);
}
.copy { margin: 0; font-size: 16px; letter-spacing: .08em; color: #8fbfa0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .pill { padding: 8px 10px; }
  .deck-brand a { padding: 9px 13px; }
  .find-in { width: 112px; }
}

@media (max-width: 960px) {
  .deck { position: static; flex: 0 0 auto; }
  .deck-menu {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    z-index: 70; padding: 12px;
    border: 1px solid var(--line);
    background: rgba(8, 20, 13, .97);
    backdrop-filter: blur(16px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, .66);
  }
  .deck[open] .deck-menu { display: flex; }
  .deck-brand { margin: 6px 0; }
  .deck-brand a { display: block; }
  .pill { justify-content: flex-start; padding: 12px 16px; }
  .find { flex: 1 1 auto; min-width: 0; }
  .find-in { width: 100%; min-width: 0; }
  .find-go { padding: 0 14px; }
  .hero { min-height: 40vh; padding: 48px 16px 34px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 32px 16px 52px; }
  .rail { position: static; }
  .foot { grid-template-columns: 1fr; gap: 26px; padding: 38px 16px 22px; }
}

@media (max-width: 420px) {
  .find-go { padding: 0 12px; letter-spacing: .04em; }
  .deck-key { padding: 0 14px; }
  .deck-key .key-txt { display: none; }
  .deck-key { width: 44px; justify-content: center; padding: 0; }
}

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

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