:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --fg: #1a1a1a;
    --muted: #525252;
    --subtle: #737373;
    --border: #e7e5e4;
    --hairline: #f0efed;
    --accent: oklch(0.62 0.14 35);
    --accent-hover: oklch(0.55 0.14 35);
    --accent-soft: oklch(0.97 0.03 35);
    --radius: 10px;
    --radius-sm: 6px;
    --max: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.75 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 14px 24px;
}
.site-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; }

main.guide {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.crumb {
    font-size: 13px;
    color: var(--subtle);
    margin-bottom: 16px;
}
.crumb a { color: var(--muted); }

h1 {
    font-size: 30px;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.lead {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 28px;
}
h2 {
    font-size: 22px;
    margin: 40px 0 12px;
    letter-spacing: -0.005em;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
h3 {
    font-size: 17px;
    margin: 28px 0 8px;
}
p, li, dd { color: var(--fg); }
li { margin: 6px 0; }
dt { font-weight: 600; margin-top: 16px; }
dd { margin: 4px 0 12px; color: var(--muted); }

.cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    margin: 8px 0;
}
.cta:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}
.cta.secondary {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
}
.cta.secondary:hover { background: var(--accent-soft); }

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 18px 0;
}
.card.tip { background: var(--accent-soft); border-color: oklch(0.92 0.04 35); }

.steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin: 16px 0;
}
.steps li {
    position: relative;
    padding: 10px 0 10px 44px;
    border-bottom: 1px solid var(--hairline);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 12px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    font-weight: 600;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}
.guide-list a {
    display: block;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 16px 20px;
    color: var(--fg);
}
.guide-list a:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.guide-list .t { font-weight: 600; font-size: 16px; }
.guide-list .d { color: var(--muted); font-size: 14px; margin-top: 4px; }

.related {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.related h2 { border-left: 0; padding-left: 0; }

.site-footer {
    border-top: 1px solid var(--hairline);
    background: var(--surface);
    padding: 24px;
    color: var(--subtle);
    font-size: 13px;
    text-align: center;
}
.site-footer a { color: var(--muted); margin: 0 6px; }

@media (max-width: 600px) {
    h1 { font-size: 24px; }
    h2 { font-size: 19px; }
    main.guide { padding: 24px 16px 60px; }
    .site-header { padding: 12px 16px; }
}
