@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{
  --bg:#171232;
  --bg2:#1E1743;
  --ink:#F4EDE4;
  --acc:#7C5CFF;
  --dim:rgba(244,237,228,.68);
  --line:rgba(244,237,228,.13);
  --r:18px;
  --sans:"Noto Sans Arabic","Noto Naskh Arabic",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:
    radial-gradient(90% 60% at 50% -10%, #241a56 0%, rgba(23,18,50,0) 60%),
    var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

main [id]{scroll-margin-top:120px}

/* ---------- 头部 ---------- */
.masthead{
  max-width:1180px;
  margin:0 auto;
  padding:16px clamp(16px,4vw,40px) 0;
}
.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:4px 0;
  text-decoration:none;
  font-size:21px;
  font-weight:700;
  letter-spacing:.01em;
}
.mark{font-size:22px;color:var(--acc);line-height:1}
.brand-t{
  background:linear-gradient(100deg,var(--ink) 20%,var(--acc) 90%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  border-radius:999px;
  background:var(--acc);
  color:#fff;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 14px 30px -16px rgba(124,92,255,.9);
  transition:transform .25s ease,box-shadow .25s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 18px 34px -16px rgba(124,92,255,1)}

.menu ol{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  list-style:none;
  margin:0;
  padding:10px 0 4px;
  counter-reset:nv;
}
.menu li{counter-increment:nv}
.menu a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:9px 12px;
  border-radius:11px;
  color:var(--dim);
  font-size:16px;
  text-decoration:none;
  transition:color .2s ease,background .2s ease;
}
.menu a::before{
  content:counter(nv,decimal-leading-zero);
  font-size:11px;
  letter-spacing:.08em;
  color:var(--acc);
  margin-right:7px;
  transform:translateY(-1px);
}
.menu a:hover,.menu a:focus-visible{color:var(--ink);background:rgba(124,92,255,.22)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:46vh;
  margin-top:18px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:clamp(26px,6vw,54px) clamp(16px,5vw,40px) clamp(46px,9vw,78px);
  border-radius:0 0 46% 46% / 0 0 62px 62px;
  overflow:hidden;
  background:radial-gradient(120% 150% at 50% 0%, #2C2069 0%, #171232 72%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(244,237,228,.17) 1px, transparent 1px);
  background-size:22px 22px;
  opacity:.45;
  z-index:1;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(23,18,50,.15), rgba(23,18,50,.82));
  z-index:1;
  pointer-events:none;
}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media .frame{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.hero-media .frame.on{opacity:.5}
.hero-img{width:100%;height:100%;object-fit:cover}
.hero-cap{position:relative;z-index:2;max-width:760px}
.kicker{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--acc);
}
.shout{
  margin:0;
  font-size:clamp(30px,8.2vw,60px);
  line-height:1.14;
  font-weight:700;
  letter-spacing:.02em;
  word-break:break-word;
}
.shout .ch{
  display:inline-block;
  opacity:0;
  transform:translateY(.6em) rotate(9deg);
  animation:chIn .72s cubic-bezier(.2,.75,.2,1) forwards;
  animation-delay:calc(90ms + var(--i) * 44ms);
  background:linear-gradient(120deg,var(--ink) 30%,var(--acc) 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lede{
  margin:16px auto 0;
  max-width:34em;
  font-size:16px;
  color:var(--dim);
  line-height:1.7;
}
@keyframes chIn{
  from{opacity:0;transform:translateY(.6em) rotate(9deg)}
  to{opacity:1;transform:none}
}

/* ---------- 主体 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(26px,4vw,54px) clamp(16px,4vw,40px);
  display:grid;
  grid-template-columns:216px minmax(0,1fr);
  gap:clamp(20px,3vw,44px);
  align-items:start;
}

.rail{
  position:sticky;
  top:22px;
  background:linear-gradient(170deg,rgba(124,92,255,.16),rgba(124,92,255,.05));
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:16px 14px;
  box-shadow:0 20px 44px -32px rgba(0,0,0,.95);
}
.rail-h{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--dim);
}
.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  border-radius:10px;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  transition:background .2s ease,color .2s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{background:rgba(124,92,255,.3)}

.main-col{min-width:0}

.prose div{
  background:linear-gradient(180deg,rgba(124,92,255,.11),rgba(124,92,255,.03));
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:clamp(20px,3vw,34px);
  margin:0 0 clamp(20px,3vw,30px);
  box-shadow:0 30px 54px -40px rgba(0,0,0,1);
  transition:transform .4s ease,box-shadow .4s ease;
}
.prose div:hover{transform:translateY(-3px);box-shadow:0 36px 60px -38px rgba(0,0,0,1)}
.prose div:last-child{margin-bottom:0}

.prose h2,.prose h3{
  margin:0 0 .6em;
  line-height:1.3;
  font-weight:700;
  letter-spacing:.01em;
}
.prose h2{
  font-size:clamp(23px,4vw,33px);
  background:linear-gradient(100deg,var(--ink) 25%,var(--acc) 95%);
  background-size:190% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:hueShift 9s ease-in-out infinite alternate;
}
.prose h3{font-size:clamp(19px,2.6vw,22px);color:var(--ink)}
.prose h2 > span,.prose h3 > span{display:inline-block}
@keyframes hueShift{from{background-position:0% 50%}to{background-position:100% 50%}}

.prose p{margin:0 0 1em;color:var(--dim)}
.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--ink)}
.prose a{
  color:var(--acc);
  text-underline-offset:3px;
  text-decoration-thickness:1px;
  transition:color .2s ease;
}
.prose a:hover{color:var(--ink)}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.35em;color:var(--dim)}
.prose li{margin:.3em 0}
.prose blockquote{
  margin:1.2em 0;
  padding:2px 0 2px 18px;
  border-left:3px solid var(--acc);
  color:var(--ink);
}
.prose img{border-radius:14px;margin:1.1em 0;box-shadow:0 22px 44px -32px rgba(0,0,0,1)}
.prose hr{border:0;border-top:1px solid var(--line);margin:1.6em 0}
.prose figure{margin:1.1em 0}
.prose figcaption{font-size:14px;color:var(--dim);margin-top:.4em}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1180px;
  margin:clamp(24px,5vw,60px) auto 0;
  padding:38px clamp(16px,4vw,40px) 34px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(124,92,255,.09),rgba(23,18,50,0) 70%);
}
.foot-top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:start;
}
.foot-intro address{
  font-style:normal;
  font-size:20px;
  font-weight:700;
  letter-spacing:.02em;
  background:linear-gradient(100deg,var(--ink),var(--acc));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.foot-h,.sub-h{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--dim);
}
.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 8px;
}
.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
  color:var(--dim);
  border-bottom:1px dashed transparent;
  transition:color .2s ease,border-color .2s ease;
}
.foot-nav a:hover,.foot-nav a:focus-visible{color:var(--ink);border-color:var(--acc)}

.sub{
  margin:26px 0 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(124,92,255,.08);
}
.sub-row{display:flex;gap:10px;flex-wrap:wrap}
.sub-in{
  flex:1 1 190px;
  min-height:44px;
  padding:10px 14px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:rgba(23,18,50,.7);
  border:1px solid var(--line);
  border-radius:12px;
}
.sub-in::placeholder{color:rgba(244,237,228,.5)}
.sub-in:focus{outline:2px solid var(--acc);outline-offset:1px}
.sub-btn{
  min-height:44px;
  padding:10px 24px;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#fff;
  background:var(--acc);
  border:0;
  border-radius:999px;
  cursor:pointer;
  transition:transform .2s ease;
}
.sub-btn:hover{transform:translateY(-2px)}
.sub-msg{margin:10px 0 0;font-size:16px;color:var(--acc);min-height:1.5em}

.copy{
  margin:24px 0 0;
  text-align:center;
  font-size:14px;
  color:rgba(244,237,228,.52);
  letter-spacing:.04em;
}

.totop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  font-size:15px;
  text-decoration:none;
  color:var(--ink);
  background:rgba(30,23,67,.92);
  border:1px solid var(--line);
  border-radius:999px;
  backdrop-filter:blur(6px);
}
.totop:hover{border-color:var(--acc);color:#fff}

/* ---------- 滚动浮现 ---------- */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ---------- 窄屏 ---------- */
@media (max-width:760px){
  body{font-size:16px}
  .hero{min-height:44vh;border-radius:0 0 40% 40% / 0 0 40px 40px}
  .menu a{padding:9px 10px}
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;padding:12px}
  .rail-h{margin-bottom:6px}
  .rail-list{flex-direction:row;flex-wrap:wrap;gap:4px}
  .rail-list a{min-height:40px;padding:7px 11px;background:rgba(124,92,255,.16)}
  .foot-top{grid-template-columns:1fr;gap:18px}
  .foot-nav ul{grid-template-columns:1fr 1fr}
  .totop{right:12px;bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
  .shout .ch{opacity:1;transform:none}
  .reveal{opacity:1;transform:none}
}

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