@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: #000000;
  --block: #121212;
  --block2: #0c0d12;
  --line: #171a23;
  --txt: #e6eaf3;
  --mut: #98a1b6;
  --dim: #69738b;
  --mid: #1c2b4d;
  --gold: #e0bb7d;
  --r: 18px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: #000;
  color: var(--txt);
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .012em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #9db6ff; text-decoration: none; }
a:hover { color: #d3dfff; }

:focus-visible {
  outline: 2px solid #7ea2ff;
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: #22355f; color: #fff; }

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(12px, 3vw, 26px);
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #12151d;
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--block);
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 18px rgba(80, 120, 255, .16);
  transition: box-shadow .22s ease, color .22s ease;
}
.mark:hover { color: #fff; box-shadow: 0 0 26px rgba(80, 120, 255, .42); }

.topnav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav > ol {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--mut);
  font-size: 16px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.topnav a:hover { background: var(--block); color: #eaf0ff; }

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--mid);
  color: #dbe6ff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(60, 100, 255, .2);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cta:hover {
  background: #263d6c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(60, 100, 255, .45);
}

/* 主区 */
.stage {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 18px) 44px;
}

.rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid #12151d;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-h {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: .18em;
  white-space: nowrap;
  padding-right: 6px;
}
.rail-h span { color: #8fa4d6; }
.rail-list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #0d0f15;
  color: #a7b1c7;
  font-size: 16px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.rail-list a:hover { background: #161b27; color: #eaf0ff; }

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 40px);
  margin-bottom: 18px;
  border-radius: var(--r);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #0b1224 0%, #05070c 46%, #000 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
  z-index: 1;
  pointer-events: none;
}

.art {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
  will-change: transform;
  transition: transform .1s linear;
}

.shot {
  position: absolute;
  width: clamp(120px, 22vw, 258px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r);
  filter: brightness(.86) saturate(.9);
  box-shadow: 0 0 60px rgba(40, 90, 255, .24);
}
.shot-a { top: 9%; right: 5%; transform: rotate(4deg); }
.shot-b { bottom: 9%; left: 5%; transform: rotate(-5deg); }

.hero-in { position: relative; z-index: 2; max-width: 820px; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 6.2vw, 62px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: 0 0 22px rgba(90, 130, 255, .32);
}

.lede {
  margin: 0 auto 28px;
  max-width: 36em;
  color: #aab4c9;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--mid);
  color: #dfe8ff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(60, 100, 255, .22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: #263d6c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(60, 100, 255, .5);
}
.btn.ghost { background: var(--block); color: #b3bdd2; box-shadow: none; }
.btn.ghost:hover { background: #1a1e28; color: #fff; }
.btn.big { min-height: 54px; padding: 0 32px; }

.badge {
  position: absolute;
  z-index: 3;
  top: 15%;
  left: 6%;
  padding: 7px 14px;
  border-radius: 999px;
  background: #0e1220;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .16em;
  box-shadow: 0 0 24px rgba(224, 187, 125, .2);
}

/* 正文区块 */
.stage > div:not(.hero) {
  background: var(--block2);
  border-radius: var(--r);
  padding: clamp(20px, 4vw, 40px);
  margin: 0 0 16px;
  scroll-margin-top: 92px;
}
.stage > div:not(.hero):nth-of-type(2n) { background: #0a0c11; }

.stage > div h2 {
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.35;
  margin: 0 0 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.stage > div h2 span { color: #fff; }

.stage > div h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: #dbe3f5;
  margin: 26px 0 10px;
  font-weight: 600;
}

.stage > div p { margin: 0 0 1em; color: #c2cadb; }
.stage > div ul,
.stage > div ol { padding-left: 1.3em; color: #c2cadb; }
.stage > div li { margin: .35em 0; }

.stage > div blockquote {
  margin: 0 0 1em;
  padding: 14px 18px;
  border-radius: 14px;
  background: #101522;
  color: #b8c2d8;
}

.stage > div figure { margin: 0 0 1em; }
.stage > div figure img { border-radius: 14px; }
.stage > div figcaption { margin-top: 8px; color: var(--dim); font-size: 16px; }

.stage > div table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 16px;
}
.stage > div th,
.stage > div td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1d27;
  text-align: left;
  color: #c2cadb;
  overflow-wrap: anywhere;
}
.stage > div hr { border: 0; border-top: 1px solid #191c26; margin: 26px 0; }
.stage > div strong { color: #fff; }

/* 页脚 */
.foot {
  background: #040509;
  padding: clamp(40px, 7vw, 74px) clamp(16px, 4vw, 40px) 30px;
  text-align: center;
}
.foot-cta h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 0 20px rgba(90, 130, 255, .28);
}
.foot-cta h2 span { color: #e8eeff; }
.foot-meta {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--dim);
}
.foot-meta p { margin: 0; color: var(--dim); }
.foot-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #8fa4d6;
}
.foot-meta a:hover { color: #d3dfff; }

/* 动效 */
.js .stage > div,
.js .foot > div {
  transition: opacity .6s ease, transform .6s ease;
}
.js .stage > div.reveal:not(.in) { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .stage > div,
  .js .foot > div { transition: none; }
  .js .stage > div.reveal:not(.in) { opacity: 1; transform: none; }
  .btn:hover, .cta:hover { transform: none; }
}

/* 断点 */
@media (max-width: 760px) {
  .art { opacity: .3; }
  .shot-a { top: 6%; right: -7%; }
  .shot-b { bottom: 6%; left: -7%; }
  .badge { top: 14px; right: 14px; left: auto; font-size: 12px; }
  .hero { min-height: calc(100svh - 66px); }
}

@media (max-width: 560px) {
  .cta { display: none; }
  .hero { padding-top: 46px; }
}

@media (min-width: 1080px) {
  .stage { padding-left: 292px; }
  .rail {
    position: fixed;
    top: 88px;
    left: max(14px, calc((100vw - 1240px) / 2 + 18px));
    width: 236px;
    max-height: calc(100vh - 130px);
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 0;
    margin: 0;
    border-bottom: 0;
    z-index: 20;
  }
  .rail-h {
    font-size: 14px;
    padding: 0 0 9px;
    margin-bottom: 10px;
    border-bottom: 1px solid #12151d;
  }
  .rail-list { flex-direction: column; gap: 2px; }
  .rail-list a { background: transparent; }
  .rail-list a:hover { background: #0f131d; }
}

@media (min-width: 1400px) {
  body { font-size: 17.5px; }
}

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