:root {
  color-scheme: dark;
  --bg: #071123;
  --surface: #0d1a31;
  --surface-strong: #132342;
  --line: rgba(150, 180, 230, 0.18);
  --text: #f7f9ff;
  --muted: #aab9d3;
  --accent: #4b91ff;
  --accent-strong: #73aaff;
  --success: #2bd47f;
  --warning: #ffae32;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% -8%, rgba(90, 91, 255, 0.28), transparent 31rem),
    radial-gradient(circle at -8% 28%, rgba(47, 151, 255, 0.18), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(75, 145, 255, 0.75);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 35, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(119, 169, 255, 0.46);
  border-radius: 12px;
  background: linear-gradient(145deg, #397ff0, #625bdf);
  box-shadow: 0 10px 28px rgba(57, 127, 240, 0.3);
  font-size: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(75, 145, 255, 0.13);
  color: var(--text);
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 96px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(125deg, rgba(20, 40, 76, 0.96), rgba(10, 25, 51, 0.93)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -170px;
  right: -60px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(75, 145, 255, 0.38), rgba(120, 83, 255, 0.1));
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(119, 169, 255, 0.32);
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 720;
}

.button:hover {
  filter: brightness(1.07);
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-pill {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding-top: 78px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 26, 49, 0.82);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(75, 145, 255, 0.13);
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 26, 49, 0.72);
}

.step::before {
  content: counter(steps);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(75, 145, 255, 0.16);
  color: var(--accent-strong);
  font-weight: 800;
}

.step h3 {
  margin: 2px 0 5px;
  font-size: 18px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 26, 49, 0.76);
}

summary {
  padding: 21px 54px 21px 24px;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-weight: 720;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 23px;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

.details-body {
  padding: 0 24px 22px;
  color: var(--muted);
}

.details-body p:last-child,
.details-body ul:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(75, 145, 255, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(75, 145, 255, 0.16), rgba(100, 82, 216, 0.12));
}

.callout h2,
.callout p {
  margin-bottom: 0;
}

.callout p {
  margin-top: 6px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding-top: 64px;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 26, 49, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.policy {
  min-width: 0;
}

.policy section {
  scroll-margin-top: 108px;
  padding: 0 0 42px;
}

.policy h2 {
  margin-bottom: 14px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.policy h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.policy p,
.policy li {
  color: #c1cce0;
}

.policy li + li {
  margin-top: 8px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  background: rgba(13, 26, 49, 0.68);
}

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

th {
  color: var(--text);
  font-size: 14px;
}

td {
  color: var(--muted);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

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

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 46px;
  }

  .hero {
    padding: 46px 32px;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .nav {
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .page-shell,
  .footer-inner,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 38px 24px;
    border-radius: 26px;
  }

  .hero::after {
    width: 240px;
    height: 240px;
  }

  .section {
    padding-top: 58px;
  }

  .card {
    padding: 22px;
  }

  .callout,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .callout .button {
    width: 100%;
  }

  .footer-inner {
    padding: 30px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
