@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: #000000;
  --pan: #0a0a0a;
  --mid: #0d1a2c;
  --glass: rgba(18, 18, 18, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(120, 160, 255, 0.30);
  --fg: #f1f1f1;
  --dim: #98a2b3;
  --blue: #5b9cff;
  --gold: #e2c088;
  --r: 18px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; height: 1px; margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.glow {
  position: fixed;
  inset: -20vh 0 auto 0;
  height: 120vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58vw 44vh at 18% 8%, rgba(18, 40, 78, 0.72), transparent 70%),
    radial-gradient(46vw 40vh at 82% 22%, rgba(48, 22, 66, 0.48), transparent 72%),
    radial-gradient(40vw 30vh at 60% 62%, rgba(10, 40, 44, 0.42), transparent 74%);
  will-change: transform;
}

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.tick-word {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tick-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(226, 192, 136, 0.85);
}

.shell {
  position: relative;
  z-index: 1;
  padding-top: 30px;
}

/* 左侧栏 */
.side {
  padding: 12px 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 26, 44, 0.55), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.navbox > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.6);
}

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

.navbox > summary::after {
  content: '＋';
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
}

.navbox[open] > summary::after { content: '－'; }

.navlist,
.rail-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.navlist li { margin: 0; }

.navlist a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  color: #e8ecf2;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.navlist a:hover,
.navlist a:focus-visible {
  background: rgba(91, 156, 255, 0.12);
  border-left-color: var(--blue);
  color: #fff;
}

.gotop {
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.gotop:hover { color: var(--fg); border-color: var(--line-strong); }

/* 主区 */
.stage {
  display: flex;
  flex-direction: column;
  padding: 22px 15px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.rail { order: 2; margin-top: 26px; }

.rail-t {
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--dim);
  font-weight: 500;
  margin: 0 0 10px;
}

.rail hr {
  background: linear-gradient(90deg, var(--line-strong), transparent);
  margin-bottom: 12px;
}

.rail-list { counter-reset: rail; }

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 38px;
  padding: 6px 0;
  font-size: 15px;
  color: #b9c2cf;
  transition: color 0.2s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(91, 156, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.rail-list a:hover { color: #fff; }

section.sheet { order: 1; min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 34px 4px 40px;
  gap: 14px;
}

.hero > * { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.16s; }

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

.badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(226, 192, 136, 0.07);
  border: 1px solid rgba(226, 192, 136, 0.28);
  border-radius: 999px;
  text-shadow: 0 0 10px rgba(226, 192, 136, 0.4);
}

.badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

h1 {
  margin: 0;
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, serif;
  font-size: clamp(1.85rem, 6.2vw, 3.1rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(91, 156, 255, 0.30);
}

.lede {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  color: #b6bfcc;
}

/* 正文区块 */
section.sheet > article {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(18px, 3.4vw, 34px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 58px;
  min-width: 0;
}

html.js section.sheet > article,
html.js [data-rv] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

html.js section.sheet > article.on,
html.js [data-rv].on {
  opacity: 1;
  transform: none;
}

section.sheet h2 {
  margin: 0 0 12px;
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, serif;
  font-size: clamp(1.22rem, 3.4vw, 1.62rem);
  line-height: 1.4;
  font-weight: 600;
  color: #fdfdfd;
  letter-spacing: 0.01em;
}

section.sheet h3 {
  margin: 26px 0 10px;
  font-size: 1.06rem;
  font-weight: 600;
  color: #eaf0f8;
}

section.sheet hr {
  background: linear-gradient(90deg, rgba(91, 156, 255, 0.5), rgba(255, 255, 255, 0.06) 55%, transparent);
  margin: 0 0 18px;
}

section.sheet p { margin: 0 0 15px; color: #d3d9e2; }
section.sheet p:last-child { margin-bottom: 0; }

section.sheet ul,
section.sheet ol { padding-left: 1.25em; margin: 0 0 15px; }
section.sheet li { margin: 0 0 8px; color: #d3d9e2; }

section.sheet strong { color: #fff; font-weight: 600; }

section.sheet a {
  color: var(--blue);
  border-bottom: 1px solid rgba(91, 156, 255, 0.4);
}

section.sheet a:hover { border-bottom-color: var(--blue); }

section.sheet blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 2px solid var(--line-strong);
  background: rgba(13, 26, 44, 0.5);
  border-radius: 0 12px 12px 0;
  color: #c8d2e0;
}

section.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

section.sheet th,
section.sheet td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

section.sheet th { background: rgba(13, 26, 44, 0.6); }

section.sheet figure { margin: 0 0 16px; }
section.sheet figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }

/* 页脚 */
.foot {
  margin-top: 46px;
  padding: 38px 15px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 26, 44, 0.55), rgba(0, 0, 0, 0));
}

.foot-grid {
  display: grid;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-id { font-style: normal; }

.foot-brand {
  display: block;
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, serif;
  font-size: clamp(2rem, 11vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(91, 156, 255, 0.32);
  word-break: break-word;
}

.foot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  columns: 2;
  column-gap: 18px;
}

.foot-links li { break-inside: avoid; }

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px;
  color: #b6bfcc;
  transition: color 0.2s ease;
}

.foot-links a:hover { color: #fff; }

.foot-base {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #78828f;
}

/* 桌面：左侧固定竖排 */
@media (min-width: 901px) {
  .shell { padding-left: 224px; }

  .side {
    position: fixed;
    top: 30px;
    left: 0;
    bottom: 0;
    width: 224px;
    padding: 22px 16px 26px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 26, 44, 0.5), rgba(0, 0, 0, 0.25));
    overflow-y: auto;
    gap: 16px;
  }

  .gotop { margin-top: auto; align-self: stretch; }

  .stage { padding: 30px 28px 0; }

  section.sheet > article { scroll-margin-top: 46px; }
}

@media (min-width: 1080px) {
  .stage {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  .rail {
    order: 1;
    grid-column: 1;
    margin-top: 34px;
    position: sticky;
    top: 56px;
  }

  section.sheet { order: 2; grid-column: 2; }
}

@media (min-width: 780px) {
  .foot-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .foot-links ul { columns: 1; }
}

@media (min-width: 901px) {
  .foot { padding-left: 28px; padding-right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
  html.js section.sheet > article,
  html.js [data-rv] { transition: none; opacity: 1; transform: none; }
}

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