@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 {
  --mint: #99ffcc;
  --lime: #00ff41;
  --ink: #001e3c;
  --deep: #00162e;
  --txt: #e8fff6;
  --dim: rgba(232, 255, 246, .76);
  --line: rgba(153, 255, 204, .22);
  --glass: rgba(153, 255, 204, .065);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -8%;
  z-index: -1;
  background:
    radial-gradient(58vw 58vw at 84% 6%, rgba(0, 255, 65, .22), transparent 64%),
    radial-gradient(46vw 46vw at 6% 32%, rgba(153, 255, 204, .17), transparent 62%),
    radial-gradient(72vw 44vw at 52% 102%, rgba(0, 255, 65, .12), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--deep) 58%, var(--ink));
  animation: glow 17s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.09) rotate(1deg); opacity: 1; }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(.7); opacity: .35; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ---------- 顶部 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 154px;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0, 30, 60, .74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.search:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, .14);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--txt);
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 8px 0;
}

.search input::placeholder { color: rgba(232, 255, 246, .48); }

.search button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--mint), var(--lime));
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease;
}

.search button:hover { transform: scale(1.08); }

.site-nav { min-width: 0; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 15px;
  text-decoration: none;
  transition: color .25s ease, background .25s ease;
}

.nav-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .5;
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: linear-gradient(120deg, var(--mint), var(--lime));
}

.nav-link:hover::before { background: var(--ink); opacity: 1; transform: scale(1.3); }

.brand {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 10px;
  color: var(--mint);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 0 24px rgba(0, 255, 65, .45);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.pulse {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
}

.pulse span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 34% 30%, rgba(0, 255, 65, .5), transparent 70%);
  animation: pulse-ring 6s ease-in-out infinite;
}

.pulse span:last-child { animation-delay: -3s; inset: 9px; }

/* ---------- 外壳 ---------- */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 22px 64px;
}

.rail {
  position: sticky;
  top: 92px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--mint);
}

.rail .subtitle {
  margin: 2px 0 12px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: .3em;
  line-height: 1.6;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  border-radius: 12px;
  color: var(--dim);
  font-size: 15px;
  text-decoration: none;
  transition: color .22s ease, background .22s ease, border-color .22s ease;
}

.rail-list a:hover,
.rail-list a.is-active {
  color: var(--ink);
  background: linear-gradient(100deg, var(--mint), var(--lime));
  border-left-color: var(--ink);
}

/* ---------- 正文 ---------- */

.body { min-width: 0; }

.body > article { animation: rise .72s cubic-bezier(.2, .8, .3, 1) both; }

.body > article:nth-child(2) { animation-delay: .06s; }
.body > article:nth-child(3) { animation-delay: .12s; }
.body > article:nth-child(4) { animation-delay: .18s; }
.body > article:nth-child(5) { animation-delay: .24s; }
.body > article:nth-child(6) { animation-delay: .3s; }
.body > article:nth-child(7) { animation-delay: .36s; }
.body > article:nth-child(8) { animation-delay: .42s; }

.body > article:not(.hero) {
  position: relative;
  margin: 0 0 26px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.body > article:not(.hero)::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 65, .24), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: breathe 11s ease-in-out infinite;
}

.body h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .01em;
}

.body h2 + p,
.body .subtitle {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 15px;
  letter-spacing: .1em;
  line-height: 1.7;
}

.body h3 {
  margin: 22px 0 8px;
  color: var(--mint);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.body p { margin: 0 0 14px; color: var(--dim); }

.body ul,
.body ol { margin: 0 0 16px; padding-left: 1.25em; color: var(--dim); }

.body li { margin: 0 0 8px; }

.body li::marker { color: var(--lime); }

.body a { color: var(--mint); text-underline-offset: 3px; text-decoration-color: rgba(0, 255, 65, .55); }

.body a:hover { color: var(--lime); }

.body strong { color: #fff; }

.body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.body figure { margin: 16px 0; }

.body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--lime);
  border-radius: 0 14px 14px 0;
  background: rgba(0, 255, 65, .07);
  color: var(--txt);
}

.body time {
  display: inline-block;
  color: var(--mint);
  font-size: 14px;
  letter-spacing: .06em;
}

.body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.body th, .body td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.body th { color: var(--mint); font-weight: 600; }

/* ---------- 头图 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 24px;
  min-height: calc(100svh - 148px);
  padding: 26px 0 56px;
  overflow: hidden;
}

.hero-text { position: relative; z-index: 3; order: 2; text-align: right; }

.eyebrow {
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  letter-spacing: .42em;
  line-height: 2;
  text-transform: uppercase;
}

.hero h1 {
  margin: .08em 0 .22em;
  color: #fff;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: .015em;
  text-shadow: 0 0 46px rgba(0, 255, 65, .38);
}

.hero .subtitle {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: .03em;
  line-height: 1.8;
}

.hero-art { position: relative; order: 1; min-height: 400px; }

.hero-num {
  position: absolute;
  left: -4%;
  top: 42%;
  z-index: 1;
  color: transparent;
  font-size: clamp(76px, 12vw, 150px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.03em;
  -webkit-text-stroke: 1px rgba(153, 255, 204, .4);
  pointer-events: none;
}

.plate {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 255, 204, .38);
  background: linear-gradient(155deg, rgba(153, 255, 204, .22), rgba(0, 30, 60, .6));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .46);
  animation: breathe 9s ease-in-out infinite;
}

.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }

.plate.p1 {
  top: 0;
  left: 0;
  width: 70%;
  height: 64%;
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  transform: rotate(-3deg);
  z-index: 1;
}

.plate.p2 {
  right: 0;
  bottom: 0;
  width: 62%;
  height: 56%;
  border-radius: 56% 44% 42% 58% / 44% 56% 44% 56%;
  transform: rotate(3deg);
  animation-delay: -4.5s;
  z-index: 2;
}

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

.site-foot {
  margin-top: 28px;
  padding: 46px 22px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, .07), rgba(0, 30, 60, 0));
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 13px;
  letter-spacing: .3em;
  line-height: 1.9;
}

.foot-cols dd { margin: 0; color: var(--dim); font-size: 15px; }

.foot-cols dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(153, 255, 204, .16);
  transition: color .2s ease, padding-left .2s ease;
}

.foot-cols dd a:hover { color: var(--lime); padding-left: 6px; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1240px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(153, 255, 204, .2);
  color: var(--dim);
  font-size: 14px;
}

.foot-base p { margin: 0; line-height: 2.4; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  text-decoration: none;
}

.foot-base a:hover { color: var(--lime); }

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
  .site-head {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .site-nav { order: 1; }

  .nav-row { justify-content: center; gap: 2px; }

  .brand { order: -1; flex: 1 0 100%; padding: 2px 0; font-size: 19px; }

  .nav-link { min-height: 44px; padding: 6px 8px; font-size: 14px; }

  .search { order: 2; min-height: 52px; }

  .search input { font-size: 16px; }

  .search button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }

  .pulse { display: none; }

  .shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 12px 44px;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 10px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .rail-title { font-size: 15px; letter-spacing: .05em; }

  .rail .subtitle { display: none; }

  .rail-list {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar { display: none; }

  .rail-list a {
    flex: none;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }

  .body > article:not(.hero) { padding: 22px 16px; margin-bottom: 18px; scroll-margin-top: 16px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
    padding: 14px 0 26px;
  }

  .hero-text { order: 1; }

  .hero h1 { font-size: clamp(27px, 8.4vw, 40px); }

  .hero-art { order: 2; min-height: 240px; margin-top: 10px; }

  .hero-num { left: auto; right: 0; top: auto; bottom: -4px; font-size: 82px; }

  .site-foot { padding: 32px 14px 18px; }

  .foot-cols { grid-template-columns: 1fr 1fr; gap: 18px; }

  .foot-cols > dl:first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .nav-link { font-size: 13px; padding: 6px 6px; gap: 5px; }
  .body > article:not(.hero) { padding: 20px 14px; }
}

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

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