:root {
  color-scheme: light;
  --ink: #18181b;
  --muted: #5f6269;
  --line: #e4e4e7;
  --soft: #f6f6f8;
  --purple: #6c3ce9;
  --purple-dark: #4a1fc3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--purple-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner,
.page,
.site-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.header-nav .start-link {
  color: var(--white);
  background: var(--ink);
  padding: 8px 13px;
  border-radius: 6px;
}

.page {
  padding: 64px 0 80px;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 64px);
}

h2 {
  margin: 56px 0 18px;
  font-size: clamp(26px, 3vw, 36px);
}

h3 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-image {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}

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

.article {
  min-width: 0;
}

.article p,
.article li {
  color: #3f3f46;
}

.article strong {
  color: var(--ink);
}

.toc {
  position: sticky;
  top: 90px;
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

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

.toc a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.answer-box {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid #d8cdfa;
  border-radius: 6px;
  background: #faf9ff;
}

.answer-box p:first-child,
.answer-box h2:first-child,
.answer-box h3:first-child {
  margin-top: 0;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.comparison-wrap {
  margin: 24px 0 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

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

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
}

td {
  color: #3f3f46;
  font-size: 14px;
}

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

.checklist {
  padding-left: 22px;
}

.checklist li {
  margin: 9px 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.resource-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease-out, border-color 160ms ease-out;
}

.resource-card:hover {
  border-color: #bbaaf5;
  transform: translateY(-2px);
}

.resource-card span {
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 760;
}

.resource-card h2,
.resource-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-card b {
  margin-top: 28px;
  font-size: 13px;
}

.section-band {
  margin: 64px 0 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.section-band h2 {
  margin-top: 0;
}

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.faq p {
  margin-bottom: 0;
}

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

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .header-nav a:not(.start-link) {
    display: none;
  }

  .page {
    padding-top: 42px;
  }

  .article-layout {
    display: block;
  }

  .toc {
    display: none;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    display: block;
  }

  .site-footer nav {
    margin-top: 12px;
  }
}

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

  .resource-card {
    transition: none;
  }

  .resource-card:hover {
    transform: none;
  }
}
