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

:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --deep: #0d0d16;
  --deep-2: #12121f;
  --paper: #ecebf6;
  --soft: #d8d4ea;
  --mute: #a19dbd;
  --cyan: #5ef0ff;
  --line: rgba(255, 0, 110, 0.28);
  --line-soft: rgba(255, 0, 110, 0.16);
  --glow: 0 0 14px rgba(255, 0, 110, 0.55);
  --glow-red: 0 0 16px rgba(255, 0, 0, 0.55);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--deep);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Sans Hebrew', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(900px 540px at 84% -10%, rgba(255, 0, 110, 0.22), transparent 70%),
    radial-gradient(760px 480px at 6% 8%, rgba(255, 0, 0, 0.14), transparent 74%),
    linear-gradient(180deg, var(--deep) 0%, var(--ink) 48%, var(--deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.42;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0,
    rgba(0, 0, 0, 0.55) 1px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 3px
  );
}

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(13, 13, 22, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 18px;
}

.rail .side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.rail .side.left {
  justify-content: flex-end;
}

.rail .side.right {
  justify-content: flex-start;
}

.rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s, text-shadow 0.18s;
}

.rail-link:hover,
.rail-link[aria-current] {
  color: #fff;
  background: rgba(255, 0, 110, 0.14);
  text-shadow: var(--glow);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 0, 110, 0.08);
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.7);
  transition: border-color 0.2s, background 0.2s;
}

.brand:hover {
  border-color: var(--mag);
  background: rgba(255, 0, 110, 0.18);
}

/* ---------- 容器 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

main {
  display: block;
}

/* ---------- 头图区 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: 100vh;
  padding: clamp(30px, 6vw, 76px) 0 clamp(38px, 7vw, 84px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 34% 42%, #000 8%, transparent 76%);
  mask-image: radial-gradient(circle at 34% 42%, #000 8%, transparent 76%);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--mag);
  text-shadow: var(--glow);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  animation: flicker 7s steps(1, end) infinite;
}

@keyframes flicker {
  0%, 88%, 100% {
    text-shadow: 0 0 22px rgba(255, 0, 110, 0.55), 2px 0 0 rgba(255, 0, 0, 0.85), -2px 0 0 rgba(94, 240, 255, 0.5);
  }
  91% {
    text-shadow: -4px 0 0 rgba(255, 0, 0, 0.9), 4px 0 0 rgba(94, 240, 255, 0.75);
  }
  93% {
    text-shadow: 4px 2px 0 rgba(255, 0, 110, 0.9), -4px -2px 0 rgba(94, 240, 255, 0.6);
  }
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  color: var(--soft);
  border-left: 2px solid var(--mag);
  padding-left: 16px;
}

.hero-art {
  margin: 0;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}

.art-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(26, 26, 46, 0.6);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 4px);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pixels {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px;
  aspect-ratio: 1 / 1;
}

.pixels i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: rgba(255, 0, 110, 0.22);
  animation: pix 3.6s ease-in-out infinite;
}

.pixels i:nth-child(3n) {
  background: rgba(255, 0, 0, 0.34);
}

.pixels i:nth-child(4n) {
  background: rgba(94, 240, 255, 0.2);
}

.pixels i:nth-child(5n) {
  background: rgba(255, 0, 110, 0.44);
}

.pixels i:nth-child(odd) {
  animation-delay: 0.45s;
}

.pixels i:nth-child(4n + 1) {
  animation-delay: 0.9s;
}

@keyframes pix {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- 正文区 ---------- */
.zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.prose {
  min-width: 0;
}

.prose section {
  position: relative;
  margin: 0 0 26px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(26, 26, 46, 0.82), rgba(13, 13, 22, 0.62));
  scroll-margin-top: 96px;
}

.prose section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--mag), transparent);
}

.prose section:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(1.34rem, 2.6vw, 1.78rem);
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.34);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  color: #fff;
}

.prose p {
  margin: 0 0 14px;
  color: var(--soft);
}

.prose p.subtitle,
.prose .lead,
.prose .subhead,
.prose .desc {
  margin: -4px 0 16px;
  font-size: 16px;
  color: #ff9dc4;
  letter-spacing: 0.02em;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: var(--soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--mag);
}

.prose a {
  color: #ff6aa8;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 110, 0.55);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #fff;
  text-shadow: var(--glow);
}

.prose strong {
  color: #fff;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 2px solid var(--mag);
  background: rgba(255, 0, 110, 0.07);
  border-radius: 0 12px 12px 0;
  color: var(--soft);
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.92), rgba(13, 13, 22, 0.88));
}

.side h2 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.4);
}

.side .subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  color: #ff8fbc;
}

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

.side-list li {
  counter-increment: sidecount;
  opacity: 0;
  transform: translateX(10px);
  animation: slidein 0.55s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
}

.side-list li:nth-child(1) { animation-delay: 0.04s; }
.side-list li:nth-child(2) { animation-delay: 0.1s; }
.side-list li:nth-child(3) { animation-delay: 0.16s; }
.side-list li:nth-child(4) { animation-delay: 0.22s; }
.side-list li:nth-child(5) { animation-delay: 0.28s; }
.side-list li:nth-child(6) { animation-delay: 0.34s; }
.side-list li:nth-child(7) { animation-delay: 0.4s; }

@keyframes slidein {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 0, 110, 0.2);
  transition: color 0.18s, background 0.18s;
}

.side-list a::before {
  content: counter(sidecount, decimal-leading-zero);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mag);
}

.side-list li:last-child a {
  border-bottom: 0;
}

.side-list a:hover,
.side-list a[aria-current] {
  color: #fff;
  background: rgba(255, 0, 110, 0.12);
  border-radius: 8px;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.72), rgba(13, 13, 22, 0.97));
}

.cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 18px clamp(30px, 4vw, 46px);
  text-align: center;
  border-bottom: 1px dashed rgba(255, 0, 110, 0.22);
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.55);
}

.cta .subtitle {
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 16px;
  color: var(--mute);
}

.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--mag);
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.1);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.cta a:hover {
  background: rgba(255, 0, 110, 0.24);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.55);
}

.fcols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px) 18px;
}

.fcol {
  min-width: 0;
  font-style: normal;
}

.fcol strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.5);
}

.fcol .host {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--mute);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fcol dl {
  margin: 0;
}

.fcol dt {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--mag);
}

.fcol dd {
  margin: 0;
}

.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fcol a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 0, 110, 0.2);
  transition: color 0.18s, text-shadow 0.18s;
}

.fcol a:hover {
  color: #fff;
  text-shadow: var(--glow);
}

.copy {
  margin: 0;
  padding: 18px 18px 26px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--mute);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 自适应 ---------- */
@media (max-width: 960px) {
  .zone {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: 2;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(26px, 6vw, 44px);
  }

  .hero-art {
    justify-self: center;
    max-width: 340px;
  }

  .fcols {
    grid-template-columns: 1fr;
  }

  .fcol a {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
  }

  .rail .side {
    display: contents;
  }

  .rail-link {
    padding: 0 9px;
  }

  .brand {
    width: 100%;
    order: -1;
    margin-bottom: 2px;
    border-color: transparent;
    background: none;
  }

  .prose section::before {
    top: 16px;
    bottom: 16px;
  }

  .lede {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .rail-link {
    font-size: 16px;
    padding: 0 7px;
  }

  .pixels {
    gap: 7px;
    padding: 10px;
  }
}

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

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

  .side-list li {
    opacity: 1;
    transform: none;
  }
}

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