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

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f8eeee;
  --muted: #d3b8bd;
  --blush: #ffd7e6;
  --line: rgba(255, 255, 255, 0.16);
  --rail: 108px;
  --r: 28px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 14%, rgba(255, 0, 0, 0.62), transparent 66%),
    radial-gradient(38% 44% at 82% 22%, rgba(255, 20, 147, 0.55), transparent 64%),
    radial-gradient(52% 46% at 70% 86%, rgba(255, 0, 0, 0.3), transparent 70%),
    radial-gradient(46% 44% at 12% 82%, rgba(255, 20, 147, 0.28), transparent 68%);
  filter: saturate(1.25) blur(18px);
  mix-blend-mode: screen;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-1%, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.1) rotate(2deg); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.05) rotate(-2deg); }
}

a {
  color: var(--pink);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

/* ---- 侧栏导航 ---- */
header.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 10px 22px;
  border-right: 1px solid var(--line);
  background: rgba(30, 18, 18, 0.55);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.brandmark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 0, 0, 0.55), rgba(255, 20, 147, 0.4));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

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

.rail nav {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
}

.rail nav p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  width: 100%;
}

.rail nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 14px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.rail nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(var(--red), var(--pink));
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.25s;
}

.rail nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.rail nav a:hover::before {
  opacity: 1;
  transform: scale(1.4);
}

.cta {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--red), var(--pink));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  transition: transform 0.25s, filter 0.25s;
}

.cta:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.3) brightness(1.08);
}

/* ---- 主区 ---- */
main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 7vw, 104px) clamp(20px, 4vw, 64px);
}

.ghost {
  position: absolute;
  left: clamp(10px, 3vw, 48px);
  bottom: -0.18em;
  z-index: 0;
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  font-size: clamp(70px, 17vw, 210px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 24ch;
}

.kicker {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--blush);
}

.kicker span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 20, 147, 0.7);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.hero-fig {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: min(62vh, 520px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.35), rgba(255, 20, 147, 0.28), rgba(38, 23, 23, 0.65));
}

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

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  align-items: start;
  gap: clamp(22px, 3.5vw, 48px);
  padding: clamp(28px, 4vw, 56px) clamp(18px, 4vw, 64px) clamp(48px, 6vw, 90px);
}

.prose {
  max-width: 70ch;
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(26, 15, 15, 0.55);
  backdrop-filter: blur(6px);
}

.prose > section {
  scroll-margin-top: 24px;
}

.prose > section + section {
  margin-top: clamp(26px, 3.5vw, 48px);
  padding-top: clamp(26px, 3.5vw, 48px);
  border-top: 1px solid var(--line);
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
}

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

.prose h2,
.prose h3 {
  margin: 0 0 0.7em;
  line-height: 1.32;
  font-weight: 700;
  color: #fff;
}

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.prose h3 {
  font-size: clamp(19px, 1.8vw, 23px);
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 20, 147, 0.75);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--pink);
  color: var(--muted);
}

/* ---- 右侧注栏 ---- */
.railnote {
  position: sticky;
  top: 22px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(26, 15, 15, 0.6);
  backdrop-filter: blur(6px);
}

.railnote h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blush);
}

.railnote h2 span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 20, 147, 0.6);
}

.railnote ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.railnote a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--paper);
  transition: background 0.25s, color 0.25s;
}

.railnote a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ---- 页脚 ---- */
.foot {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 64px) 32px;
  border-top: 1px solid var(--line);
  background: rgba(20, 11, 11, 0.55);
}

.foot address {
  margin: 0;
  font-style: normal;
}

.foot-brand {
  display: inline-block;
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  font-size: clamp(30px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 2px 12px;
}

.foot ul a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.25s;
}

.foot ul a:hover {
  color: #fff;
}

.copy {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

/* ---- 滚动揭示 ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- 窄屏 ---- */
@media (max-width: 900px) {
  header.rail {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: flex-start;
  }

  .rail nav p {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
  }

  .rail nav a {
    padding: 8px 10px;
  }

  .rail nav a::before {
    display: none;
  }

  .cta {
    width: auto;
    margin-left: auto;
    order: 2;
    padding: 10px 16px;
  }

  main,
  .foot {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding: 22px 16px 30px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-fig {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ghost {
    font-size: clamp(64px, 26vw, 140px);
    bottom: -0.1em;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 44px;
  }

  .railnote {
    position: static;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 16px 24px;
  }

  .foot ul {
    grid-template-columns: 1fr 1fr;
  }
}

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

  body::before {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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