@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 {
  --void: #0A0A0B;
  --gold: #C9A227;
  --ink: #F2EDE4;
  --dim: rgba(242, 237, 228, .58);
  --line: rgba(242, 237, 228, .14);
  --gold-soft: rgba(201, 162, 39, .32);
  --card: #111113;
  --serif: 'Noto Naskh Arabic', 'Songti SC', 'Source Han Serif SC', 'Source Han Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Noto Sans Arabic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --r: 28px;
  --shell: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--void);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.28; margin: 0; letter-spacing: .02em; }
article[id] { scroll-margin-top: 112px; }

.veil {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ---------- 顶部 ---------- */
.top {
  position: relative;
  z-index: 50;
  padding: 16px clamp(14px, 4vw, 40px) 10px;
  background: linear-gradient(180deg, rgba(10, 10, 11, .96), rgba(10, 10, 11, .30));
}

.top__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.top__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 10px;
}

.brand__mark { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }

.brand__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .24em;
  color: var(--ink);
  text-indent: .24em;
}

.dock { display: flex; align-items: center; gap: 8px; }
.dock--l { justify-self: start; }
.dock--r { justify-self: end; }

.fold { position: relative; }

.fold summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .94rem;
  letter-spacing: .14em;
  color: var(--ink);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s ease;
}

.fold[open] summary { border-color: var(--gold-soft); color: var(--gold); background: rgba(201, 162, 39, .08); }
.fold[open] summary::after { transform: rotate(225deg) translateY(-2px); }

.fold__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  margin: 0;
  padding: 8px;
  min-width: 210px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .68);
}

.dock--r .fold__list { left: auto; right: 0; }

.fold__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: .95rem;
  color: var(--dim);
  transition: background .2s ease, color .2s ease;
}

.fold__list a:hover,
.fold__list a:focus-visible { background: rgba(201, 162, 39, .13); color: var(--ink); }

.top__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #12120E;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 14px 34px rgba(201, 162, 39, .22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.top__cta:hover,
.top__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201, 162, 39, .32); }

/* ---------- 粘性章节条 ---------- */
.chapters {
  position: sticky;
  top: 0;
  z-index: 46;
  background: rgba(10, 10, 11, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.chapters__in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 7px clamp(12px, 4vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chapters__in::-webkit-scrollbar { display: none; }

.chapters ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }

.chapters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.chapters a:hover { color: var(--ink); border-color: var(--line); }
.chapters a[aria-current] { color: var(--gold); border-color: var(--gold-soft); background: rgba(201, 162, 39, .1); }

.chapters__meter { height: 2px; background: rgba(242, 237, 228, .07); }

.chapters__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, .18));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 主体 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  min-height: 70svh;
  overflow: hidden;
  perspective: 1px;
  perspective-origin: 50% 40%;
  padding: clamp(44px, 9vw, 96px) clamp(16px, 5vw, 56px) clamp(84px, 13vw, 150px);
}

.hero__sky {
  position: absolute;
  inset: -8%;
  z-index: -2;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
  background:
    radial-gradient(58% 44% at 50% 26%, rgba(201, 162, 39, .22), transparent 72%),
    radial-gradient(46% 38% at 12% 84%, rgba(201, 162, 39, .13), transparent 70%),
    radial-gradient(40% 34% at 88% 70%, rgba(242, 237, 228, .07), transparent 72%),
    linear-gradient(180deg, #0A0A0B, #101012 58%, #0A0A0B);
}

.plate {
  position: absolute;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background:
    linear-gradient(150deg, rgba(201, 162, 39, .22), rgba(242, 237, 228, .05) 58%, transparent 88%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62);
  will-change: transform;
  animation: fadeIn 1.2s ease both;
}

.plate__img { width: 100%; height: 100%; object-fit: cover; }

.plate--a {
  width: min(36vw, 288px);
  aspect-ratio: 3 / 4;
  top: 4%;
  left: clamp(-28px, 1.5vw, 36px);
  transform: translateZ(-0.2px) rotate(-4deg);
}

.plate--b {
  width: min(32vw, 250px);
  aspect-ratio: 4 / 5;
  bottom: 2%;
  right: clamp(-28px, 1.5vw, 36px);
  transform: translateZ(-0.35px) rotate(3deg);
  animation-delay: .12s;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: min(600px, 100%);
  padding-inline: clamp(0px, 2vw, 18px);
  text-align: center;
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 {
  font-size: clamp(2.05rem, 6.6vw, 4.1rem);
  color: #FFFDF7;
  letter-spacing: .06em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .72);
}

.hero h1::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__wedge {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: clamp(38px, 7vw, 76px);
  z-index: 1;
  background: linear-gradient(90deg, rgba(201, 162, 39, .68), rgba(201, 162, 39, .12) 58%, rgba(201, 162, 39, .52));
  clip-path: polygon(0 64%, 100% 0, 100% 100%, 0 100%);
}

.stage,
.close {
  width: min(var(--shell), calc(100% - 2 * clamp(16px, 4vw, 40px)));
  margin-inline: auto;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: clamp(28px, 5vw, 60px);
  padding-block: clamp(26px, 5vw, 62px);
  align-items: start;
}

.stage__body { min-width: 0; overflow-wrap: break-word; }

.stage__body > article {
  padding-block: clamp(34px, 6vw, 74px);
  border-top: 1px solid var(--line);
}

.stage__body > article:first-child { border-top: 0; padding-top: clamp(12px, 2.4vw, 26px); }

.stage__body h2 {
  font-size: clamp(1.45rem, 3.3vw, 2.05rem);
  color: var(--ink);
  margin-bottom: .55em;
}

.stage__body h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--gold);
}

.stage__body h3 { font-size: 1.16rem; color: var(--gold); margin: 1.7em 0 .5em; }

.stage__body p { font-size: 1.0625rem; line-height: 1.95; color: rgba(242, 237, 228, .82); }

.stage__body strong { color: var(--ink); }

.stage__body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.stage__body ul,
.stage__body ol {
  padding-left: 1.3em;
  line-height: 1.9;
  color: rgba(242, 237, 228, .82);
}

.stage__body li { margin: .45em 0; }

.stage__body blockquote {
  margin: 1.7em 0;
  padding: 16px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(242, 237, 228, .045);
  border-radius: 0 22px 22px 0;
  color: rgba(242, 237, 228, .9);
}

.stage__body blockquote p:last-child { margin-bottom: 0; }

.stage__body figure { margin: 1.9em 0; }
.stage__body img { border-radius: var(--r); border: 1px solid var(--line); }
.stage__body figcaption { margin-top: .7em; font-size: .9rem; color: var(--dim); }
.stage__body time { color: var(--gold); font-size: .92rem; letter-spacing: .08em; }

.stage__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  margin: 1.4em 0;
}

.stage__body th,
.stage__body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.subtitle {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--dim);
  max-width: 56ch;
}

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(242, 237, 228, .055), rgba(242, 237, 228, .012));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.rail__cap {
  margin: 0 0 10px;
  padding-left: 8px;
  font-size: .78rem;
  letter-spacing: .34em;
  color: var(--gold);
  text-indent: .34em;
}

.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rail__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 40px;
  padding: 8px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--dim);
  transition: background .2s ease, color .2s ease;
}

.rail__list b {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(201, 162, 39, .78);
}

.rail__list a:hover { background: rgba(201, 162, 39, .11); color: var(--ink); }

/* ---------- 收束 ---------- */
.close {
  margin-top: clamp(28px, 5vw, 56px);
  padding-block: clamp(44px, 8vw, 92px);
  border-top: 1px solid var(--gold-soft);
  text-align: center;
}

.close h2 { font-size: clamp(1.75rem, 4.8vw, 2.7rem); letter-spacing: .26em; text-indent: .26em; }
.close .subtitle { margin: 16px auto 0; }

.close__plate {
  margin: 32px auto 0;
  max-width: 660px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  border: 1px solid var(--gold-soft);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(201, 162, 39, .18), rgba(242, 237, 228, .04) 60%, transparent);
}

.close__plate .plate__img { width: 100%; height: 100%; object-fit: cover; }

.close__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-size: .94rem;
  letter-spacing: .16em;
  text-indent: .16em;
  transition: background .25s ease, color .25s ease;
}

.close__back:hover { background: var(--gold); color: #12120E; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid rgba(201, 162, 39, .3);
  background: linear-gradient(180deg, rgba(201, 162, 39, .07), transparent 46%);
  padding: clamp(34px, 6vw, 62px) clamp(16px, 4vw, 40px) 26px;
}

.foot__two {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(26px, 5vw, 64px);
}

.foot__addr { font-style: normal; margin: 0; }

.foot__brand {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: .22em;
  color: var(--ink);
}

.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 400px; }

.signup__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.signup input {
  flex: 1 1 168px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(242, 237, 228, .05);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

.signup input::placeholder { color: var(--dim); }

.signup button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: #12120E;
  font: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  text-indent: .12em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.signup button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 39, .26); }

.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: .95rem;
  color: var(--dim);
  transition: color .2s ease;
}

.foot__links a:hover { color: var(--gold); }

.foot__base {
  max-width: var(--shell);
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot__base p { margin: 0; font-size: .85rem; letter-spacing: .1em; color: var(--dim); }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .85s cubic-bezier(.2, .7, .2, 1);
}

.has-js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
  .hero__sky { transform: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail__list { grid-template-columns: 1fr 1fr; gap: 2px 8px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .top__cta { display: none; }
  .brand__name { letter-spacing: .16em; text-indent: .16em; font-size: 1.02rem; }
  .brand__mark { width: 26px; height: 26px; }
  .fold summary { padding: 0 12px; letter-spacing: .1em; }
  .hero { min-height: 66vh; min-height: 66svh; padding-bottom: clamp(78px, 16vw, 120px); }
  .plate--a { width: 128px; top: 2%; left: -18px; }
  .plate--b { width: 112px; bottom: 3%; right: -16px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .foot__two { grid-template-columns: 1fr; }
  .close h2 { letter-spacing: .16em; text-indent: .16em; }
}

@media (max-width: 420px) {
  .rail__list { grid-template-columns: 1fr; }
  .foot__links { grid-template-columns: 1fr; }
  .hero__copy { padding-inline: 4px; }
}

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