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

:root {
  --ink: #001e3c;
  --mint: #99ffcc;
  --acid: #00ff41;
  --text: #cfeede;
  --dim: #a3d3bd;
  --line: rgba(153, 255, 204, 0.18);
}

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

html {
  scroll-behavior: smooth;
  background: #001e3c;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 100px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans Hebrew", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(0, 255, 65, 0.16), transparent 62%),
    radial-gradient(48rem 34rem at 96% 6%, rgba(153, 255, 204, 0.14), transparent 60%),
    #001e3c;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.8;
  animation: breathe 15s ease-in-out infinite;
}

body::before {
  inset: -22% -12% auto -12%;
  height: 76vh;
  background:
    radial-gradient(circle at 32% 42%, rgba(0, 255, 65, 0.28), transparent 58%),
    radial-gradient(circle at 72% 58%, rgba(153, 255, 204, 0.24), transparent 56%);
}

body::after {
  inset: auto -14% -30% -14%;
  height: 62vh;
  background: radial-gradient(circle at 50% 50%, rgba(153, 255, 204, 0.2), transparent 62%);
  animation-delay: -6s;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.7; }
  50% { transform: scale(1.14) translateY(14px); opacity: 1; }
}

a {
  color: var(--mint);
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 22, 44, 0.88);
  border-top: 1px solid rgba(153, 255, 204, 0.22);
  box-shadow: 0 -26px 50px -34px var(--acid);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

.bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  opacity: 0.65;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: #eafff6;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand .mark {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.55);
}

.bar-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bar-nav::-webkit-scrollbar {
  display: none;
}

.bar-nav p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  min-height: 44px;
}

.bar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  color: #bff2da;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.bar-nav a::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: linear-gradient(160deg, var(--mint), var(--acid));
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  animation: breathe 9s ease-in-out infinite;
}

.bar-nav a:nth-child(2n)::before {
  border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%;
  animation-delay: -3s;
}

.bar-nav a:hover,
.bar-nav a:focus-visible {
  color: #001e3c;
  background: var(--mint);
}

/* ---------- 版心 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 26px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px 0;
}

div {
  min-width: 0;
}

/* ---------- 首屏 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45vh;
  padding: clamp(28px, 7vw, 62px) 6px 22px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.3rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.012em;
  background: linear-gradient(118deg, #f2fffa, var(--mint) 46%, var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: breathe 12s ease-in-out infinite;
}

.lead {
  max-width: 34ch;
  margin: 0;
  color: var(--dim);
  font-size: 16px;
}

.hero-media {
  width: min(100%, 420px);
  margin-top: 16px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(153, 255, 204, 0.28);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  box-shadow: 0 34px 64px -36px var(--acid);
}

/* ---------- 正文 ---------- */
div > section {
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(158deg, rgba(153, 255, 204, 0.075), rgba(0, 255, 65, 0.028));
  box-shadow: 0 24px 48px -36px rgba(0, 255, 65, 0.6);
  scroll-margin-top: 24px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

div > section:nth-child(2) { animation-delay: 0.05s; }
div > section:nth-child(3) { animation-delay: 0.1s; }
div > section:nth-child(4) { animation-delay: 0.15s; }
div > section:nth-child(5) { animation-delay: 0.2s; }
div > section:nth-child(6) { animation-delay: 0.25s; }
div > section:nth-child(7) { animation-delay: 0.3s; }
div > section:nth-child(8) { animation-delay: 0.35s; }

div > section.hero {
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

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

section h2 {
  margin: 0.1em 0 0.6em;
  font-size: clamp(1.3rem, 3.4vw, 1.72rem);
  line-height: 1.36;
  font-weight: 700;
  color: #eafff6;
}

section h2 span {
  background: linear-gradient(100deg, var(--mint), var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #dcfbee;
}

section p {
  margin: 0 0 1em;
}

section p:last-child {
  margin-bottom: 0;
}

section a {
  color: var(--mint);
  text-decoration-color: rgba(0, 255, 65, 0.5);
  text-underline-offset: 3px;
}

section ul,
section ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

section li {
  margin: 0.3em 0;
}

section li::marker {
  color: var(--acid);
}

section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 2px solid var(--acid);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 255, 65, 0.06);
  color: #dcfbee;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 24, 48, 0.66);
  box-shadow: 0 24px 48px -38px var(--acid);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #9fe8c6;
}

.rail h2 span {
  background: linear-gradient(100deg, var(--mint), var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 6px;
  color: #c8f3e0;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--acid);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #001e3c;
  background: var(--mint);
}

.rail-top {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(153, 255, 204, 0.24);
  font-size: 16px;
  letter-spacing: 0;
}

.rail-top span a {
  color: var(--mint);
  text-decoration: none;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px 26px;
  align-items: start;
  max-width: 1120px;
  margin: 38px auto 0;
  padding: 26px 18px 12px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

.foot-brand strong {
  display: block;
  margin-bottom: 4px;
  color: #eafff6;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  border-bottom-color: var(--acid);
}

.foot small {
  grid-column: 1 / -1;
  color: #6f9c8b;
  font-size: 15px;
}

/* ---------- 滚动驱动 ---------- */
@supports (animation-timeline: view()) {
  div > section {
    animation: rise 1ms linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 26%;
    animation-delay: 0s;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .rail {
    position: static;
  }

  .bar-nav p {
    justify-content: flex-start;
  }

  .hero {
    min-height: 42vh;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
    padding-bottom: 92px;
  }

  main {
    padding: 8px 14px 0;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 14px 10px;
  }

  .bar-nav a {
    padding: 0 9px;
    gap: 6px;
  }

  .brand-txt {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  div > section {
    opacity: 1;
    transform: none;
  }
}

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