:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #0e1d31;
  --surface-strong: #12243b;
  --line: #243953;
  --text: #e8eef6;
  --muted: #aab8c8;
  --green: #45d483;
  --green-dark: #173f31;
  --blue: #79c7ff;
  --danger-soft: #3a252b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(121, 199, 255, 0.08), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #081423 58%, #07111f 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b8e2ff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.65em;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: #ffffff;
  color: #07111f;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(121, 199, 255, 0.14);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
}

.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.72rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--green-dark);
  color: #9bf0bd;
}

.breadcrumbs {
  padding-block: 1.15rem 0.35rem;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 0.55rem;
  color: #64748b;
  content: "/";
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.7rem);
}

.section-tight {
  padding-block: 2.25rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(69, 212, 131, 0.38);
  border-radius: 999px;
  background: rgba(69, 212, 131, 0.08);
  color: #8eeab2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 670px;
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hero-copy > p {
  max-width: 720px;
  color: #c2cedb;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-note {
  padding-left: 1rem;
  border-left: 3px solid var(--green);
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

.hero-art {
  position: relative;
}

.hero-art::before {
  position: absolute;
  inset: 12% 10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(69, 212, 131, 0.14);
  content: "";
  filter: blur(65px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #ffffff;
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #052113;
}

.button:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.button-primary:hover {
  color: #052113;
}

.quick-links,
.card-grid,
.topic-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quick-link,
.card,
.topic-card,
.related-card,
.notice,
.article-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 36, 59, 0.94), rgba(11, 23, 40, 0.96));
  box-shadow: var(--shadow);
}

.quick-link,
.related-card {
  display: block;
  padding: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.quick-link strong,
.related-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.quick-link span,
.related-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-link:hover,
.related-card:hover {
  border-color: rgba(69, 212, 131, 0.68);
  color: var(--text);
}

.card,
.topic-card {
  padding: 1.4rem;
}

.card-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
}

.card p,
.topic-card p {
  color: var(--muted);
}

.card a,
.topic-card a {
  font-weight: 700;
}

.topic-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #90dbff;
  font-size: 0.8rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 2rem;
}

.notice,
.article-panel {
  padding: clamp(1.35rem, 4vw, 2.2rem);
}

.notice-green {
  border-color: rgba(69, 212, 131, 0.5);
}

.notice-danger {
  border-color: rgba(255, 144, 158, 0.32);
  background: linear-gradient(145deg, rgba(58, 37, 43, 0.92), rgba(18, 29, 47, 0.96));
}

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 54px;
  margin-bottom: 1rem;
  padding-left: 3.4rem;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(69, 212, 131, 0.48);
  border-radius: 50%;
  background: var(--green-dark);
  color: #a1f4c1;
  content: counter(step);
  counter-increment: step;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq-list summary {
  padding: 1rem 3rem 1rem 1rem;
  color: #ffffff;
  font-weight: 720;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.article-hero {
  max-width: 860px;
  padding-block: clamp(3.4rem, 8vw, 6.2rem) 2.5rem;
}

.article-hero h1 {
  font-size: clamp(2.15rem, 6vw, 4.2rem);
}

.article-hero > p {
  color: #c2cedb;
  font-size: 1.12rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 2rem;
  padding-bottom: 5rem;
}

.article-content {
  min-width: 0;
}

.article-content section {
  margin-bottom: 3.4rem;
}

.article-content li {
  margin-bottom: 0.45rem;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.toc strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffffff;
}

td {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050d18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-block: 3.3rem 2rem;
}

.footer-grid h2,
.footer-grid h3 {
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding-block: 1rem 1.6rem;
  border-top: 1px solid rgba(36, 57, 83, 0.7);
  color: #8291a2;
  font-size: 0.82rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.error-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--green);
  font-size: clamp(5rem, 20vw, 12rem);
  font-weight: 850;
  line-height: 0.9;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    max-width: 650px;
    margin-inline: auto;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 860px) {
  .header-inner {
    position: relative;
    min-height: 68px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background: #07111f;
    transition: max-height 180ms ease;
  }

  .js .site-nav[data-open="true"] {
    max-height: 470px;
    border: 1px solid var(--line);
    border-top: 0;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
  }

  .site-nav a {
    padding: 0.78rem;
  }

  .quick-links,
  .card-grid,
  .topic-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand span {
    font-size: 0.98rem;
  }

  .quick-links,
  .card-grid,
  .topic-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 3.4rem;
  }
}

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