:root {
  color-scheme: light;
  --ink: #15171c;
  --muted: #68707b;
  --paper: #f3f2ee;
  --panel: #fbfaf7;
  --line: rgba(21, 23, 28, .12);
  --accent: #5d68ed;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 3px solid rgba(93,104,237,.4); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243,242,238,.88);
  backdrop-filter: blur(18px);
}
.guide-nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 730; text-decoration: none; }
.mark { position: relative; width: 28px; height: 28px; border-radius: 9px; background: #15171c; }
.mark::before, .mark::after { content: ""; position: absolute; width: 4px; border-radius: 9px; background: #fff; }
.mark::before { height: 14px; top: 7px; left: 7px; }
.mark::after { height: 9px; top: 11px; right: 7px; background: #8d98ff; }
.back { color: #606873; font-size: 13px; text-decoration: none; }
.back:hover { color: #15171c; }

.guide-hero { position: relative; overflow: hidden; padding: 92px 0 76px; border-bottom: 1px solid var(--line); }
.guide-hero::after { content: ""; position: absolute; top: -160px; right: -80px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(93,104,237,.18), rgba(155,115,255,.07) 40%, transparent 68%); }
.kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: #6c737e; font-size: 11px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #15171c; }
h1 { position: relative; z-index: 2; max-width: 820px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; letter-spacing: -.06em; }
.guide-hero p { position: relative; z-index: 2; max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.guide-meta span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: #626a75; background: rgba(255,255,255,.42); font-size: 11px; }

.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; padding: 72px 0 110px; }
.toc { position: sticky; top: 102px; align-self: start; }
.toc b { display: block; margin-bottom: 14px; color: #8a9098; font-size: 10px; letter-spacing: .13em; }
.toc a { display: block; padding: 8px 0; color: #6b727d; font-size: 13px; text-decoration: none; }
.toc a:hover { color: #15171c; }
.toc .toc-login { margin-top: 18px; padding: 10px 12px; border-radius: 9px; color: #fff; background: #15171c; text-align: center; }

.guide-content { min-width: 0; }
.guide-section { padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.guide-section:last-child { margin-bottom: 0; border-bottom: 0; }
.guide-section h2 { margin: 0 0 18px; font-size: clamp(27px, 3vw, 39px); line-height: 1.2; letter-spacing: -.045em; }
.guide-section > p { margin: 0 0 22px; color: var(--muted); line-height: 1.85; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.summary-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.summary-card strong { display: block; margin-bottom: 8px; font-size: 16px; }
.summary-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.summary-card small { display: block; margin-bottom: 18px; color: #7a82e1; font-weight: 760; letter-spacing: .1em; }
.callout { margin-top: 24px; padding: 19px 21px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; color: #505866; background: #e9e8ff; line-height: 1.75; }
.callout strong { color: #222633; }
.steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.steps li { position: relative; padding: 0 0 26px 54px; counter-increment: guide-step; }
.steps li::before { content: counter(guide-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: #4e5866; background: #fff; font-size: 11px; font-weight: 760; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 35px; bottom: 4px; width: 1px; background: var(--line); }
.steps b { display: block; margin-bottom: 7px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; line-height: 1.6; }
th { color: #666e79; background: #f7f6f2; font-size: 11px; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.checklist { display: grid; gap: 9px; margin-top: 22px; }
.check { position: relative; padding: 13px 15px 13px 42px; border: 1px solid var(--line); border-radius: 11px; color: #515a66; background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }
.check::before { content: "✓"; position: absolute; left: 14px; top: 12px; color: #1f9b70; font-weight: 800; }

.guide-next { padding: 32px 0 42px; border-top: 1px solid var(--line); }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-card { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.5); text-decoration: none; }
.next-card:hover { background: #fff; }
.next-card small { display: block; margin-bottom: 7px; color: #858c96; }
.next-card strong { font-size: 14px; }
.guide-footer { padding: 25px 0 38px; color: #858b94; font-size: 11px; }
.guide-footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 800px) {
  .guide-hero { padding: 72px 0 58px; }
  .guide-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .toc { position: relative; top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .toc b { width: 100%; }
  .toc a { padding: 4px 0; }
  .toc .toc-login { margin: 0; padding: 5px 9px; }
  .next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .guide-nav-inner { min-height: 62px; }
  .brand { font-size: 14px; }
  .back { font-size: 12px; }
  h1 { font-size: 42px; }
  .guide-hero p { font-size: 15px; }
  .summary-grid { grid-template-columns: 1fr; }
  .guide-section { padding-bottom: 44px; margin-bottom: 44px; }
  .guide-footer-inner { flex-direction: column; }
}

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