:root {
  --ink: #261717;
  --red: #ff0000;
  --violet: #8b00ff;
  --paper: #f8eef1;
  --soft: #e6d4da;
  --muted: #c2aab2;
  --radius: 4px;
  --line: rgba(255, 255, 255, 0.2);
}

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

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

body {
  margin: 0;
  padding-bottom: 124px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.012em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

/* 背景光束 */
.sky {
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  filter: blur(52px);
  background:
    radial-gradient(42% 40% at 16% 22%, rgba(255, 0, 0, 0.55), transparent 66%),
    radial-gradient(46% 44% at 84% 16%, rgba(139, 0, 255, 0.6), transparent 68%),
    radial-gradient(56% 50% at 52% 94%, rgba(139, 0, 255, 0.36), transparent 72%),
    radial-gradient(30% 28% at 72% 58%, rgba(255, 0, 0, 0.22), transparent 72%);
  animation: drift 28s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* 首屏 */
.hero-wrap {
  position: relative;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(70px, 12vh, 140px) clamp(18px, 5vw, 64px) clamp(130px, 17vh, 190px);
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(150deg, rgba(139, 0, 255, 0.5), rgba(255, 0, 0, 0.35));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.15);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(200deg, rgba(24, 14, 17, 0.5), rgba(24, 14, 17, 0.9) 68%),
    linear-gradient(90deg, rgba(139, 0, 255, 0.32), rgba(255, 0, 0, 0.22));
}

.hero-band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -8vh;
  z-index: -1;
  height: 28vh;
  opacity: 0.72;
  transform: skewY(-4deg);
  transform-origin: right bottom;
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.5), rgba(139, 0, 255, 0.55));
}

.hero-slab {
  max-width: 640px;
  padding: clamp(24px, 4vw, 46px);
  text-align: right;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-brand {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #ffd7dd;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(92deg, #ffffff, #ffc9d1 46%, #d9bcff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 0 26px;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: #f1e0e6;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
  background: linear-gradient(96deg, var(--red), var(--violet));
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.3);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 0, 255, 0.42);
}

/* 版心 */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 48px);
}

.stage {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  padding: clamp(40px, 7vw, 84px) 0 40px;
}

/* 左侧侧栏 */
.rail {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
}

.rail-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rail-h {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #ffc9d1;
}

.rail-h span {
  position: relative;
  display: inline-block;
  padding-right: 36px;
}

.rail-h span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: railc;
  display: grid;
  gap: 2px;
}

.rail-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--soft);
  transition: background 0.24s ease, color 0.24s ease;
}

.rail-list li a::before {
  counter-increment: railc;
  content: counter(railc, decimal-leading-zero);
  min-width: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b98cff;
}

.rail-list li a:hover {
  background: rgba(255, 0, 0, 0.24);
  color: #fff;
}

.rail-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 16px;
  color: #ffd7dd;
}

/* 正文 */
.prose {
  min-width: 0;
}

.prose > div {
  margin-bottom: clamp(16px, 2.4vw, 24px);
  padding: clamp(22px, 4vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scroll-margin-top: 24px;
  scroll-margin-bottom: 112px;
  transition: transform 0.35s ease, background 0.35s ease, opacity 0.55s ease;
}

.prose > div:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.prose h2 {
  margin: 0 0 0.7em;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 400;
  color: #fff;
}

.prose h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.prose h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--violet));
}

.prose h3 {
  font-size: 1.18rem;
  color: #ffd7dd;
}

.prose p {
  color: #ecdfe4;
}

.prose a {
  color: #ff9db0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li {
  margin: 0.4em 0;
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(139, 0, 255, 0.16);
  color: #f4e7ec;
}

.prose img {
  margin: 1em 0;
  border-radius: var(--radius);
}

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

/* 页脚 */
.foot {
  position: relative;
  margin-top: clamp(40px, 8vw, 90px);
  padding: clamp(36px, 7vw, 72px) 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(38, 23, 23, 0), rgba(18, 11, 14, 0.88));
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 255, 0.36));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.35s ease, opacity 0.55s ease;
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.foot-cta h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.foot-cta h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 62%;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.24s ease;
}

.foot-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(26px, 5vw, 46px);
}

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #ffc9d1;
}

.foot-cols dd {
  margin: 0;
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: #e4d3d9;
}

.foot-cols dd a:hover {
  color: #fff;
}

.foot-cols dd.plain {
  font-size: 16px;
  color: var(--muted);
  word-break: break-all;
}

.foot-base {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  color: #bda7ae;
  text-align: center;
}

.foot-base p {
  margin: 0;
}

/* 底部胶囊导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.dock-list {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  margin: 0;
  padding: 6px;
  overflow-x: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(38, 23, 23, 0.56);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: auto;
  scrollbar-width: none;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-list li {
  flex: 0 0 auto;
}

.dock-list li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  color: #f1dee4;
  transition: background 0.24s ease, color 0.24s ease;
}

.dock-list li > a:hover {
  background: rgba(255, 0, 0, 0.34);
  color: #fff;
}

.dock-logo > a {
  margin: 0 6px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
  background: linear-gradient(96deg, rgba(255, 0, 0, 0.55), rgba(139, 0, 255, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 出现动画 */
@media (prefers-reduced-motion: no-preference) {
  .prose > div:not(.is-in),
  .rail-card:not(.is-in),
  .foot-cta:not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky { animation: none; }
  html { scroll-behavior: auto; }
  .prose > div,
  .rail-card,
  .foot-cta,
  .hero-btn { transition: none; }
}

/* 移动端 */
@media (max-width: 820px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 30px;
  }

  .rail {
    position: static;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    justify-content: center;
    padding-bottom: clamp(140px, 22vh, 200px);
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  .hero-slab {
    width: 100%;
    max-width: none;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .hero-brand { letter-spacing: 0.22em; }
  .dock-list { padding: 5px; }
  .prose > div { padding: 20px 18px; }
}

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