:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --paper: #fffef9;
  --paper-strong: #ffffff;
  --ink: #17201d;
  --muted: #66736d;
  --line: #dce7e1;
  --brand: #12906f;
  --brand-dark: #0a5e4c;
  --mint: #e5f7ef;
  --blue: #eaf2ff;
  --amber: #fff4da;
  --danger: #fff0ed;
  --shadow: 0 24px 80px rgba(19, 72, 57, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(18, 144, 111, 0.18), transparent 32rem),
    linear-gradient(135deg, #fbfff8 0%, #eef7f4 46%, #f9f4e8 100%);
  color: var(--ink);
  font-family:
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.content a:not(.button) {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(18, 144, 111, 0.35);
  text-underline-offset: 3px;
}

.content a:not(.button):hover {
  color: var(--brand);
  text-decoration-color: currentColor;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.page-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 34px;
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  min-height: calc(100vh - 56px);
  padding: 22px;
  border: 1px solid rgba(220, 231, 225, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 254, 249, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  box-shadow: 0 8px 22px rgba(23, 32, 29, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.toc {
  display: grid;
  gap: 4px;
  margin: 22px 0;
}

.toc a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.toc a:hover {
  background: var(--mint);
  color: var(--brand-dark);
  transform: translateX(2px);
}

.sidebar-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(18, 144, 111, 0.12), rgba(255, 255, 255, 0.88)),
    var(--paper-strong);
}

.sidebar-card span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-card a {
  color: var(--brand-dark);
  font-weight: 800;
}

.content {
  min-width: 0;
}

.hero,
.section {
  border: 1px solid rgba(220, 231, 225, 0.9);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 254, 249, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 144, 111, 0.22), transparent 68%);
  content: "";
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 144, 111, 0.2);
  border-radius: 999px;
  background: rgba(229, 247, 239, 0.8);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.lead {
  max-width: 820px;
  margin-bottom: 30px;
  color: #52615a;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 14px;
  background: var(--brand-dark);
  color: white;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 94, 76, 0.18);
}

.button.ghost {
  background: transparent;
  color: var(--brand-dark);
}

.section {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 46px);
  scroll-margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-heading span,
.card-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.callout,
.note {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #51615a;
  line-height: 1.8;
}

.callout.blue {
  background: var(--blue);
}

.callout.danger {
  background: var(--danger);
}

.note {
  background: var(--amber);
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.cards article,
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.cards h3,
.panel h3 {
  margin: 14px 0 10px;
  font-size: 20px;
}

.cards p {
  margin-bottom: 0;
  font-size: 15px;
}

.steps {
  display: grid;
  gap: 14px;
  padding-left: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.steps li::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--mint);
  color: var(--brand-dark);
  content: counter(step);
  counter-increment: step;
  font-weight: 900;
}

.steps.detailed li {
  padding-top: 20px;
  padding-bottom: 20px;
}

.steps.compact {
  margin-top: 22px;
}

.screenshot {
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 20px 54px rgba(19, 72, 57, 0.08);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(248, 255, 251, 0.86);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.placeholder-shot {
  margin: 24px 0;
  padding: 28px;
  border: 1px dashed rgba(18, 144, 111, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(229, 247, 239, 0.72), rgba(255, 255, 255, 0.82)),
    var(--paper);
}

.placeholder-shot span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.placeholder-shot strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.placeholder-shot p {
  margin-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.guide-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.guide-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.guide-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.split {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

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

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

th {
  background: var(--mint);
  color: var(--brand-dark);
  font-size: 14px;
}

td {
  color: var(--muted);
  line-height: 1.7;
}

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

.code-card {
  overflow: hidden;
  margin: 22px 0;
  border-radius: 20px;
  background: #10241f;
  box-shadow: 0 22px 60px rgba(16, 36, 31, 0.18);
}

.code-title {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ce3c8;
  font-size: 13px;
  font-weight: 800;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
}

code {
  padding: 0.16em 0.42em;
  border: 1px solid rgba(18, 144, 111, 0.24);
  border-radius: 7px;
  background: #f2fbf7;
  color: #0a5e4c;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.code-card code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f1fff9;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, white, rgba(229, 247, 239, 0.54));
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.metric-grid strong {
  font-size: 16px;
}

.check-list li {
  padding-left: 4px;
}

.check-panel {
  display: grid;
  gap: 12px;
}

.check-panel label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  line-height: 1.6;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

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

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 850;
}

details p {
  padding: 0 20px 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 6px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
    min-height: 0;
  }

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

  .cards.three,
  .cards.two,
  .split,
  .metric-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1420px);
    padding: 12px 0 34px;
  }

  .sidebar,
  .hero,
  .section {
    border-radius: 20px;
  }

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

  .hero,
  .section {
    padding: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .footer {
    flex-direction: column;
  }
}
