:root {
  --guide-cream: #fff9ec;
  --guide-oatmeal: #f4eedd;
  --guide-mint: #25c96a;
  --guide-leaf: #10b957;
  --guide-yellow: #ffc928;
  --guide-ink: #152436;
  --guide-muted: #526171;
  --guide-white: #ffffff;
  --guide-border: rgba(21, 36, 54, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--guide-ink);
  background: var(--guide-cream);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.guide-site-header,
.guide-site-footer,
.guide-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.guide-site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}
.guide-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--guide-mint);
  color: white;
  font-size: 24px;
  line-height: 1;
}
.guide-nav { display: flex; gap: 20px; }
.guide-nav a { text-decoration: none; font-weight: 650; }
.guide-nav a:hover { color: var(--guide-leaf); }
.guide-hero { padding: 72px 0 44px; max-width: 820px; }
.guide-kicker {
  margin: 0;
  color: var(--guide-leaf);
  font-weight: 800;
  letter-spacing: 0.08em;
}
h1 {
  margin: 8px 0 20px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.guide-hero > p:last-child { color: var(--guide-muted); font-size: 1.12rem; }
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}
.guide-card {
  display: block;
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--guide-border);
  border-radius: 28px;
  background: var(--guide-white);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(21, 36, 54, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(21, 36, 54, 0.1);
}
.guide-card:first-child {
  grid-column: span 2;
  background: linear-gradient(135deg, #e7ffe9, #fff4bd);
}
.guide-card small { color: var(--guide-leaf); font-weight: 800; letter-spacing: 0.06em; }
.guide-card h2 { margin: 12px 0; line-height: 1.25; }
.guide-card p { color: var(--guide-muted); }
.guide-card strong { color: var(--guide-leaf); }
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--guide-muted);
  font-size: 0.92rem;
}
.guide-breadcrumb a { text-decoration: none; }
.guide-article {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.guide-article header > p { color: var(--guide-muted); font-size: 1.1rem; }
.guide-article h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.guide-article h2 {
  margin-top: 48px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
}
.guide-article p,
.guide-article li { color: #344556; }
.guide-article code {
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: var(--guide-oatmeal);
  color: var(--guide-ink);
}
.guide-callout,
.guide-cta {
  margin: 32px 0;
  padding: 24px;
  border-radius: 22px;
  background: #e7ffe9;
  border: 1px solid rgba(16, 185, 87, 0.25);
}
.guide-callout > :first-child,
.guide-cta > :first-child { margin-top: 0; }
.guide-callout > :last-child,
.guide-cta > :last-child { margin-bottom: 0; }
.guide-cta { background: var(--guide-ink); color: white; }
.guide-cta p { color: rgba(255, 255, 255, 0.78); }
.guide-button {
  display: inline-flex;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--guide-yellow);
  color: var(--guide-ink);
  text-decoration: none;
  font-weight: 800;
}
.guide-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--guide-border);
}
.guide-related ul { padding-left: 20px; }
.guide-related a { color: var(--guide-leaf); font-weight: 700; }
.guide-site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--guide-border);
  color: var(--guide-muted);
}
.guide-site-footer p { margin: 0; }
a:focus-visible { outline: 3px solid var(--guide-yellow); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card { transition: none; }
}

@media (max-width: 680px) {
  .guide-site-header { align-items: flex-start; padding: 16px 0; }
  .guide-nav { flex-direction: column; gap: 4px; text-align: right; }
  .guide-hero { padding-top: 44px; }
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-card:first-child { grid-column: auto; }
  .guide-card { min-height: 0; }
}
