:root {
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.1);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);
  --bg-elevated: #ffffff;
  --max: 42rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Hiragino Sans", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.15);
    --success-soft: rgba(5, 150, 105, 0.18);
    --bg-elevated: #111827;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(
      900px 480px at 10% -5%,
      var(--accent-soft),
      transparent 55%
    ),
    #f6f7fb;
  line-height: 1.65;
}

@media (prefers-color-scheme: dark) {
  body {
    background: radial-gradient(
        900px 480px at 10% -5%,
        var(--accent-soft),
        transparent 55%
      ),
      #0b1220;
  }
}

a {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.guide-top {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, #f6f7fb 88%, transparent);
}

@media (prefers-color-scheme: dark) {
  .guide-top {
    background: color-mix(in srgb, #0b1220 88%, transparent);
  }
}

.guide-top-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.guide-back {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-back:hover {
  text-decoration: underline;
}

.guide {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.guide-intro h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.guide-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.guide strong {
  color: var(--text);
  font-weight: 600;
}

.guide-primary {
  margin-top: 1rem;
}

.path-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.path-list li + li {
  margin-top: 0.45rem;
}

.guide-workaround {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.guide-workaround h2 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.workaround-lede {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.action-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.action-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.step-text strong {
  font-weight: 600;
}

.btn-download {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin-bottom: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border));
  background: linear-gradient(
    180deg,
    var(--success-soft),
    var(--bg-elevated)
  );
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.12s ease;
}

.btn-download:hover {
  opacity: 0.92;
  text-decoration: none;
}

.assurance-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assurance-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.assurance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.assurance-list strong {
  color: var(--text);
  font-weight: 600;
}

.guide-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.guide-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
