:root {
  color-scheme: dark;
  --page-bg: #0f1524;
  --page-bg-deep: #111827;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.9);
  --panel-soft: rgba(30, 41, 59, 0.58);
  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #60a5fa;
  --green: #34d399;
  --gold: #fbbf24;
  --danger: #fda4af;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
  font-family: "Microsoft YaHei", "微软雅黑", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 189, 248, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(52, 211, 153, 0.16), transparent 28rem),
    linear-gradient(145deg, #0f1524 0%, #111827 48%, #181428 100%);
  font-size: 16px;
  line-height: 1.78;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 32vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(15, 21, 36, 0.92));
}

body > nav,
body > main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-inline: auto;
}

body > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(18px);
}

body > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body > nav a:hover,
body > nav a:focus-visible {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.12);
  outline: none;
  transform: translateY(-1px);
}

main {
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(15, 23, 42, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 6vw, 4.25rem);
  font-weight: 800;
}

h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  padding-top: 4px;
  font-size: clamp(1.28rem, 2.6vw, 1.75rem);
  font-weight: 760;
}

h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: #e0f2fe;
  font-size: 1.08rem;
  font-weight: 720;
}

main > p:first-of-type {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 30px;
  color: #dbeafe;
  font-size: clamp(1.06rem, 2.2vw, 1.26rem);
  line-height: 1.82;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

a {
  color: #7dd3fc;
  text-underline-offset: 3px;
}

a:hover {
  color: #bae6fd;
}

strong {
  color: #ecfeff;
  font-weight: 760;
}

.fact {
  margin: 26px 0 34px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(52, 211, 153, 0.08)),
    var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fact h2 {
  margin-top: 0;
}

blockquote {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--green);
  color: #ecfeff;
  font-size: clamp(1.03rem, 2vw, 1.2rem);
  line-height: 1.88;
}

dl {
  display: grid;
  grid-template-columns: minmax(112px, 0.22fr) minmax(0, 1fr);
  gap: 12px 18px;
  margin: 16px 0 30px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
}

dt {
  color: #bae6fd;
  font-weight: 780;
}

dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 30px;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding: 13px 16px 13px 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.36);
}

li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.44em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

li a {
  font-weight: 680;
}

main > ul:last-child {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

main > ul:last-child li {
  min-height: 68px;
  padding: 16px 16px 16px 38px;
  background: rgba(30, 41, 59, 0.5);
}

code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #bbf7d0;
  background: rgba(15, 23, 42, 0.62);
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  body > nav {
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
  }

  body > nav a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 13px;
  }

  main {
    padding: 24px 18px;
    border-radius: 14px;
  }

  dl {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  dt {
    margin-top: 4px;
  }

  main > ul:last-child {
    grid-template-columns: 1fr;
  }
}

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