@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 {
  --g: #00ff80;
  --b: #0000ff;
  --k: #000000;
  --w: #f2fff7;
  --card: #080f0a;
  --card2: #05050f;
  --line: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--k);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--k);
  color: var(--w);
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--g);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--g);
}

p {
  margin: 0 0 1em;
}

/* ---------- 顶部细条 ---------- */

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--b);
  color: #ffffff;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  border-bottom: var(--line) solid var(--k);
}

.strip-tag {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-bar {
  flex: 0 0 68px;
  height: 9px;
  background: var(--g);
}

/* ---------- 页头 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: var(--k);
  border-bottom: var(--line) solid var(--b);
}

.logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--g);
  padding: 10px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.logo:hover {
  text-decoration: none;
  background: var(--g);
  color: var(--k);
  padding-left: 6px;
  padding-right: 6px;
}

/* ---------- 菜单 ---------- */

.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: var(--line) solid var(--g);
  color: var(--g);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  cursor: pointer;
  background: var(--k);
  user-select: none;
}

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

.menu > summary::after {
  content: "≡";
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.menu[open] > summary {
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 130;
  background: var(--g);
  color: var(--k);
  border-color: var(--g);
}

.menu > menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  margin: 0;
  padding: 84px 18px 40px;
  list-style: none;
  background: var(--k);
  border-top: 8px solid var(--g);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.menu > menu > li {
  border-bottom: 2px solid var(--b);
}

.menu > menu > li > a {
  display: block;
  padding: 15px 6px;
  min-height: 54px;
  color: var(--w);
  font-size: clamp(19px, 5.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu > menu > li > a:hover,
.menu > menu > li > a:focus-visible {
  background: var(--g);
  color: var(--k);
  text-decoration: none;
  padding-left: 14px;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 26px 18px 22px;
  border-bottom: var(--line) solid var(--g);
  background: #04070c;
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  left: 0;
  top: -16%;
  width: 100%;
  height: 132%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.08);
  will-change: transform;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, var(--g) 0 34%, var(--b) 34% 68%, var(--k) 68%);
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.68) 58%, rgba(0, 0, 255, 0.32) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: left;
}

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--k);
  background: var(--g);
  padding: 2px 10px 3px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(30px, 7.6vw, 62px);
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 3px 3px 0 var(--b);
}

.lede {
  margin: 0;
  font-size: 17px;
  color: #dff6e7;
  max-width: 44ch;
}

/* ---------- 正文骨架 ---------- */

.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 44px;
  border-bottom: var(--line) solid var(--b);
}

.prose {
  min-width: 0;
}

.prose > div {
  background: var(--card);
  border-radius: 28px;
  padding: 22px 18px;
  margin: 0 0 18px;
  scroll-margin-top: 88px;
}

.prose > div:nth-of-type(even) {
  background: var(--card2);
}

.prose > div:target {
  box-shadow: inset 0 0 0 3px var(--g);
}

.prose small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--g);
  margin-bottom: 4px;
}

.prose h2 {
  font-size: clamp(22px, 4.4vw, 32px);
  border-bottom: 2px solid var(--b);
  padding-bottom: 8px;
}

.prose h3 {
  font-size: 20px;
  color: #ffffff;
  margin-top: 1.2em;
}

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

.prose li {
  margin-bottom: 0.4em;
}

.prose figure {
  margin: 0 0 1em;
  border-radius: 28px;
  overflow: hidden;
  background: #0d1a12;
}

.prose figcaption {
  font-size: 14px;
  color: #9dc8ad;
  padding: 8px 14px;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-left: 6px solid var(--g);
  background: #07130c;
  border-radius: 0 28px 28px 0;
}

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

.prose hr {
  border: 0;
  border-top: 2px solid var(--b);
  margin: 1.4em 0;
}

.prose time {
  font-variant-numeric: tabular-nums;
  color: var(--g);
}

/* ---------- 侧栏 ---------- */

.side {
  background: var(--b);
  color: #ffffff;
  border-radius: 28px;
  padding: 20px 18px;
  align-self: start;
}

.side small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--g);
}

.side h2 {
  color: #ffffff;
  font-size: 22px;
  margin: 2px 0 12px;
}

.side ol {
  list-style: none;
  counter-reset: navn;
  margin: 0;
  padding: 0;
}

.side li {
  counter-increment: navn;
  border-top: 2px solid rgba(255, 255, 255, 0.32);
}

.side li:first-child {
  border-top: 0;
}

.side li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  min-height: 44px;
  color: #ffffff;
  font-weight: 500;
}

.side li > a::before {
  content: counter(navn, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--g);
  letter-spacing: 0.1em;
}

.side li > a:hover {
  text-decoration: none;
  color: var(--g);
}

/* ---------- 页脚 ---------- */

.foot {
  border-top: var(--line) solid var(--g);
  background: var(--k);
  padding: 26px 18px 34px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-giant {
  margin: 0 0 22px;
  font-size: clamp(36px, 12vw, 104px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--g);
  overflow-wrap: anywhere;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border-top: 2px solid #1c2b22;
  padding-top: 16px;
}

.foot-cols dl {
  margin: 0;
  min-width: 0;
}

.foot-cols dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--g);
  margin-bottom: 6px;
}

.foot-cols dd {
  margin: 0;
  font-size: 16px;
  color: #d8ece0;
}

.foot-nav a {
  display: block;
  padding: 9px 0;
  min-height: 40px;
  color: var(--w);
  border-bottom: 1px solid #16221b;
}

.foot-nav a:hover {
  color: var(--g);
  text-decoration: none;
}

.to-top {
  display: inline-block;
  padding: 10px 14px;
  min-height: 40px;
  border: 2px solid var(--g);
  color: var(--g);
  font-weight: 700;
}

.to-top:hover {
  background: var(--g);
  color: var(--k);
  text-decoration: none;
}

.copy {
  margin: 22px 0 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #7f9b8b;
  border-top: 2px solid #1c2b22;
  padding-top: 12px;
}

/* ---------- 滚动显现 ---------- */

.js .rev {
  opacity: 0;
}

.js .rev.on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rev {
    opacity: 1;
  }
}

/* ---------- 宽屏 ---------- */

@media (min-width: 640px) {
  .strip {
    padding: 7px 24px;
  }
  .top {
    padding: 12px 24px;
  }
  .hero {
    padding: 34px 24px 28px;
  }
  .body {
    padding: 30px 24px 56px;
  }
  .prose > div {
    padding: 28px 26px;
  }
  .foot {
    padding: 30px 24px 40px;
  }
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .foot-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
  .body {
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 36px;
    padding: 40px 24px 64px;
  }
  .prose > div {
    margin-bottom: 26px;
  }
  .prose > div:nth-of-type(odd) {
    margin-left: 16px;
  }
  .prose > div:nth-of-type(even) {
    margin-right: 22px;
    border-radius: 28px 28px 28px 4px;
  }
  .prose > div:nth-of-type(odd) {
    border-radius: 28px 28px 4px 28px;
  }
  .side {
    position: sticky;
    top: 88px;
  }
  .foot-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 46vh;
  }
}

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