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

:root {
  --mint: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --night: #0a110d;
  --panel: rgba(20, 36, 24, 0.62);
  --line: rgba(135, 255, 113, 0.22);
  --txt: #dff5e2;
  --dim: #9dbba4;
  --r: 10px;
  --rail: 222px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans Hebrew', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--txt);
  color-scheme: dark;
  background-color: #08100c;
  background-image:
    radial-gradient(760px 440px at 88% -8%, rgba(1, 205, 254, 0.20), transparent 62%),
    radial-gradient(560px 380px at 4% 14%, rgba(135, 255, 113, 0.14), transparent 60%),
    radial-gradient(700px 520px at 50% 108%, rgba(135, 255, 113, 0.10), transparent 66%),
    linear-gradient(180deg, #0d1812 0%, #0a130e 55%, #070f0b 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.13;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0 1px, transparent 1px 3px);
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.22) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(300px) rotateX(66deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 88%);
  mask-image: linear-gradient(to top, #000 4%, transparent 88%);
}

img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #ffffff; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

[id] { scroll-margin-top: 82px; }

/* 顶部细条 */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(135, 255, 113, 0.14), rgba(1, 205, 254, 0.18));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #cdf6d6;
}
.ticker b { color: #eafff0; font-weight: 600; }
.ticker span { color: #9fe6ff; }
.ticker i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* 左侧竖排导航 */
.rail {
  position: fixed;
  top: 34px;
  bottom: 0;
  left: 0;
  width: var(--rail);
  z-index: 38;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 26, 18, 0.92), rgba(8, 16, 12, 0.78));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #eafff0;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.45);
}
.brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(1, 205, 254, 0.35);
}

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px;
  color: #c6e8cf;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #f4fff6;
  background: rgba(1, 205, 254, 0.10);
  border-color: rgba(1, 205, 254, 0.34);
  transform: translateX(3px);
}
.rail-nav .ic {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0.75;
  transform: rotate(45deg);
}

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  min-height: 45vh;
  padding: 26px clamp(16px, 4vw, 48px) 0;
  overflow: hidden;
  text-align: right;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(1, 205, 254, 0.30) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.hero h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #f2fff4;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.42), 0 0 46px rgba(1, 205, 254, 0.28);
  animation: pulse 6s ease-in-out infinite;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(1, 205, 254, 0.5);
  border-radius: 999px;
  font-size: 15px;
  color: #d8fff1;
  background: rgba(1, 205, 254, 0.12);
  text-shadow: 0 0 10px rgba(1, 205, 254, 0.6);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cta:hover { background: rgba(135, 255, 113, 0.18); border-color: var(--mint); color: #ffffff; }
.hero figure { align-self: stretch; margin: 6px 0 0; }
.hero-shot {
  width: 100%;
  height: clamp(130px, 17vh, 210px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  filter: saturate(1.15) hue-rotate(-8deg);
  will-change: transform;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(135, 255, 113, 0.42), 0 0 46px rgba(1, 205, 254, 0.24); }
  50% { text-shadow: 0 0 26px rgba(135, 255, 113, 0.65), 0 0 62px rgba(1, 205, 254, 0.42); }
}

/* 主体 */
main { position: relative; z-index: 1; }
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  padding: 32px 0 10px;
}

.prose {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -34px rgba(0, 0, 0, 0.95);
}
.prose > section {
  padding: 26px 0;
  border-top: 1px solid rgba(1, 205, 254, 0.16);
  scroll-margin-top: 82px;
}
.prose > section:first-child { border-top: 0; padding-top: 2px; }
.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.36;
  color: #effff2;
}
.prose h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  text-shadow: 0 0 16px rgba(1, 205, 254, 0.45);
}
.prose h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), transparent);
}
.prose h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.45;
  color: #e6ffe9;
}
.prose p { margin: 0 0 14px; color: #cfe7d6; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.35em; }
.prose li { margin: 0 0 8px; }
.prose strong { color: #ffffff; }
.prose img { height: auto; margin: 14px 0; border-radius: 8px; border: 1px solid var(--line); }
.prose blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(1, 205, 254, 0.07);
  color: #d5f2dd;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.prose th,
.prose td { padding: 9px 10px; border: 1px solid rgba(135, 255, 113, 0.2); text-align: left; }

.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.rv.in { opacity: 1; transform: none; }

/* 侧栏 */
.aside {
  position: sticky;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(11, 24, 17, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ttl {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #bdf2c9;
}
.ttl > span { display: inline-block; text-shadow: 0 0 12px rgba(135, 255, 113, 0.4); }
.jump { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.jump a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-left: 2px solid rgba(1, 205, 254, 0.35);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: #c8e6d0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.jump a:hover { background: rgba(135, 255, 113, 0.10); color: #ffffff; border-left-color: var(--mint); }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 18, 13, 0.62), rgba(6, 12, 9, 0.94));
}
.foot > section { min-width: 0; padding-bottom: 26px; }
.f-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--dim); }
.f-nav dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
}
.f-nav dt {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.f-nav dd { margin: 0; }
.f-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 0;
  font-size: 15px;
  color: #c8e6d0;
}
.f-nav a:hover { color: var(--mint); }
.sub label { display: block; margin: 12px 0 8px; font-size: 14px; color: var(--dim); }
.sub-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sub input {
  flex: 1 1 130px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #eaffee;
  font: inherit;
  font-size: 16px;
}
.sub button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: #0c1a11;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  cursor: pointer;
  transition: filter 0.18s ease;
}
.sub button:hover { filter: brightness(1.09); }
.f-base {
  grid-column: 1 / -1;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}
.f-base p { margin: 3px 0; }

@media (min-width: 901px) {
  body { padding-left: var(--rail); padding-top: 34px; }
}

@media (max-width: 900px) {
  body { padding-top: 0; }
  .ticker { position: static; }
  .rail {
    position: static;
    width: auto;
    bottom: auto;
    padding: 14px 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    gap: 10px;
  }
  .rail-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .rail-nav a {
    white-space: nowrap;
    min-height: 44px;
    padding: 8px 12px;
    border-color: var(--line);
    background: rgba(12, 24, 16, 0.62);
  }
  .rail-nav a:hover { transform: none; }
  .hero { min-height: 38vh; padding-top: 20px; }
  .board { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .aside { position: static; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot > section { padding-bottom: 18px; }
  [id] { scroll-margin-top: 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .prose > section { padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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