@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:#192617;
  --ink-d:#0d160c;
  --neon:#87ff71;
  --yellow:#ffce5c;
  --paper:#eef6e8;
  --line:rgba(135,255,113,.34);
  --glass:rgba(255,255,255,.055);
  --head:88px;
}

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

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

body{
  margin:0;
  font-family:'Noto Sans Arabic',system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:#e9f4e2;
  background-color:var(--ink);
  background-image:
    radial-gradient(rgba(135,255,113,.14) 1.5px,transparent 1.6px),
    radial-gradient(rgba(255,206,92,.10) 1.5px,transparent 1.6px);
  background-size:26px 26px,26px 26px;
  background-position:0 0,13px 13px;
  overflow-x:hidden;
}

h1,h2,h3{font-family:'Noto Naskh Arabic','Noto Sans Arabic',system-ui,"PingFang SC",serif}

a{color:inherit}

img{max-width:100%}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:10px clamp(12px,3vw,30px);
  background:rgba(25,38,23,.8);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  backdrop-filter:blur(14px) saturate(150%);
  border-bottom:2px dashed rgba(135,255,113,.32);
}

.mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:2px solid var(--ink);
  border-radius:4px;
  background:var(--yellow);
  color:var(--ink);
  text-decoration:none;
  transform:rotate(-5deg);
  box-shadow:3px 3px 0 rgba(135,255,113,.6);
  overflow:hidden;
}
.mark img,.mark-svg svg{width:100%;height:100%;object-fit:cover;display:block}
.mark-svg{display:block;width:100%;height:100%}
.mark-geo{
  width:16px;height:16px;background:var(--ink);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.mark-s{width:34px;height:34px;box-shadow:2px 2px 0 rgba(135,255,113,.45)}

.pill{flex:1 1 auto;min-width:0}
.pill p{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  justify-content:flex-end;
}
.pill a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 15px;
  border-radius:999px;
  border:1px solid rgba(135,255,113,.28);
  background:rgba(255,255,255,.04);
  color:#dff3d4;
  font-size:16px;
  text-decoration:none;
  line-height:1.2;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.pill a:first-child{
  background:var(--neon);
  border-color:var(--neon);
  color:var(--ink);
  font-weight:700;
}
.pill a:hover,.pill a:focus-visible{
  background:var(--yellow);
  border-color:var(--yellow);
  color:var(--ink);
  transform:rotate(-2deg);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  max-width:1080px;
  margin:0 auto;
  min-height:40vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  align-items:center;
  gap:clamp(16px,4vw,40px);
  padding:clamp(26px,5vh,54px) clamp(16px,3vw,30px) clamp(20px,4vh,38px);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  font-size:15px;
  letter-spacing:.22em;
  color:var(--yellow);
  text-transform:uppercase;
}
.eyebrow-dot{
  width:11px;height:11px;
  background:var(--neon);
  transform:rotate(45deg);
}

.hero h1{
  margin:0;
  font-size:clamp(30px,7vw,54px);
  line-height:1.16;
  font-weight:600;
  letter-spacing:.01em;
  background-image:linear-gradient(transparent 64%,rgba(255,206,92,.42) 64%);
  background-repeat:no-repeat;
  padding-bottom:.12em;
}

.hero-art{
  position:relative;
  height:200px;
  will-change:transform;
}
.art-par{position:absolute;inset:0}
.art-par span{position:absolute;display:block}
.s-tri{
  left:0;bottom:0;width:150px;height:128px;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-7deg);
  opacity:.92;
}
.s-ring{
  right:0;top:6px;width:104px;height:104px;
  border:12px solid var(--yellow);
  border-radius:50%;
  mix-blend-mode:screen;
}
.s-dot{
  right:64px;bottom:16px;width:36px;height:36px;
  background:var(--yellow);
  border-radius:50%;
  mix-blend-mode:screen;
  opacity:.9;
}
.s-squig{
  left:12px;top:34px;width:150px;height:24px;
  background-repeat:repeat-x;
  background-size:120px 24px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 q15 -12 30 0 t30 0 t30 0 t30 0' fill='none' stroke='%23ffce5c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

.body{min-width:0}

.doc{
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:4px;
  padding:clamp(20px,4vw,38px);
  box-shadow:0 18px 40px -30px rgba(0,0,0,.9);
  overflow-wrap:break-word;
}

.doc article{scroll-margin-top:calc(var(--head) + 20px)}
.doc article + article{
  margin-top:2.2em;
  padding-top:.2em;
  border-top:1px dashed rgba(255,255,255,.09);
}

h1,h2,h3,h4{line-height:1.3}
.doc h2{
  position:relative;
  margin:1.6em 0 .1em;
  padding-left:20px;
  font-size:clamp(22px,3.1vw,30px);
  font-weight:600;
  color:#f2fbea;
}
.doc h2::before{
  content:'';
  position:absolute;
  left:0;
  top:.42em;
  width:11px;
  height:11px;
  background:var(--yellow);
  transform:rotate(45deg);
}
.doc h3{
  margin:1.6em 0 .3em;
  font-size:clamp(19px,2.2vw,22px);
  color:var(--neon);
}
.doc p{margin:.85em 0}
.doc ul,.doc ol{margin:.9em 0;padding-left:1.35em}
.doc li{margin:.4em 0}
.doc li::marker{color:var(--yellow)}
.doc strong{color:var(--yellow)}
.doc em{color:var(--paper)}
.doc a{
  color:var(--neon);
  text-decoration:underline dotted;
  text-underline-offset:3px;
  padding:0 1px;
}
.doc a:hover{background:rgba(135,255,113,.16);color:#fff}
.doc blockquote{
  margin:1.2em 0;
  padding:.7em 1.1em;
  border-left:4px solid var(--neon);
  background:rgba(135,255,113,.07);
  border-radius:0 4px 4px 0;
}
.doc figure{margin:1.3em 0}
.doc figcaption{font-size:15px;color:#a9c39c;margin-top:.5em}
.doc img{border-radius:4px;border:1px solid var(--line);height:auto}
.doc code,.doc pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:15px;
}
.doc pre{
  overflow:auto;
  padding:14px;
  background:rgba(0,0,0,.45);
  border:1px dashed var(--line);
  border-radius:4px;
}
.doc table{
  width:100%;
  border-collapse:collapse;
  margin:1.2em 0;
  font-size:16px;
}
.doc th,.doc td{
  border:1px dashed rgba(135,255,113,.3);
  padding:8px 10px;
  text-align:left;
}
.doc th{background:rgba(135,255,113,.1)}

hr{
  border:0;
  border-top:2px dashed rgba(255,206,92,.45);
  margin:10px 0 18px;
}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:calc(var(--head) + 12px);
  align-self:start;
  padding:18px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border:1px dashed var(--line);
  border-radius:4px;
}
.side h2{
  margin:0 0 4px;
  font-family:'Noto Sans Arabic',system-ui,sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--yellow);
}
.jump p{display:flex;flex-direction:column;gap:6px;margin:0}
.jump a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:7px 11px;
  border:1px solid transparent;
  border-radius:4px;
  color:#dff3d4;
  font-size:16px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.jump a:hover,.jump a:focus-visible{
  background:rgba(135,255,113,.12);
  border-color:var(--line);
  color:var(--neon);
}

/* ---------- 大块 ---------- */
.cta{
  max-width:1080px;
  margin:0 auto;
  padding:6px clamp(16px,3vw,30px) clamp(38px,7vh,64px);
}
.cta-in{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:20px;
  padding:clamp(22px,5vw,40px);
  background:var(--yellow);
  color:var(--ink);
  border:3px solid var(--ink);
  border-radius:4px;
  transform:rotate(-.7deg);
  box-shadow:9px 9px 0 rgba(135,255,113,.55);
}
.cta-geo{
  position:absolute;
  right:-30px;
  top:-40px;
  width:150px;
  height:150px;
  background:rgba(25,38,23,.18);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.cta-a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:12px 26px;
  border-radius:999px;
  background:var(--ink);
  color:var(--neon);
  font-size:19px;
  font-weight:700;
  text-decoration:none;
  border:2px solid var(--ink);
}
.cta-a:hover{background:var(--neon);color:var(--ink);border-color:var(--ink)}
.cta-arrow{font-size:20px;line-height:1}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 26px;
  padding:24px clamp(16px,3vw,30px);
  border-top:2px dashed rgba(255,206,92,.35);
  background:rgba(13,22,12,.72);
}
.foot-brand{display:flex;align-items:center;gap:10px}
.foot-brand p{margin:0;font-weight:700;letter-spacing:.08em;color:var(--paper)}

.foot-nav p{display:flex;flex-wrap:wrap;gap:4px 6px;margin:0}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 11px;
  border-radius:999px;
  color:#c9dfbd;
  font-size:16px;
  text-decoration:none;
}
.foot-nav a:hover,.foot-nav a:focus-visible{background:rgba(135,255,113,.14);color:var(--neon)}

.foot-legal{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.foot-legal p{margin:0;font-size:15px;color:#9db592}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border:1px dashed var(--line);
  border-radius:999px;
  font-size:15px;
  text-decoration:none;
  color:var(--neon);
}
.totop:hover{background:var(--neon);color:var(--ink)}

/* ---------- 动效 ---------- */
.rv{opacity:0;transform:translateY(20px)}
.rv-in{opacity:1;transform:none;transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.3,1)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none}
  .cta-in{transform:none}
  .mark{transform:none}
}

/* ---------- 断点 ---------- */
@media (max-width:820px){
  :root{--head:132px}
  .wrap{grid-template-columns:1fr}
  .side{position:static}
  .jump p{flex-direction:row;flex-wrap:wrap}
}

@media (max-width:760px){
  body{font-size:16px}
  .top{padding:8px 12px;gap:8px}
  .pill p{justify-content:flex-start;gap:6px}
  .pill a{padding:8px 12px;min-height:40px;font-size:16px}
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:22px;
    padding-bottom:16px;
  }
  .hero-art{height:132px}
  .s-tri{width:112px;height:96px}
  .s-ring{width:76px;height:76px;border-width:9px}
  .s-squig{width:110px;height:20px;background-size:90px 20px}
  .foot{flex-direction:column;align-items:flex-start}
  .cta-in{transform:none;box-shadow:6px 6px 0 rgba(135,255,113,.5)}
  .doc{box-shadow:none}
}

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