/* ===== Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #f8f9fc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-soft: #eef2ff;
    --border: #e5e7eb;
    --tag-bg: #f3f4f6;
    --radius: 12px;
    --max-width: 820px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 24px 0 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb a { font-weight: 500; }

/* ===== Article ===== */
article { padding: 0 0 60px; }
article h1 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}
article .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
article .meta .date { color: var(--text-muted); }
article .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
article .tag-list span {
    background: var(--tag-bg);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
article h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
article p { margin-bottom: 16px; color: var(--text); }
article ul, article ol { margin: 0 0 16px 24px; }
article li { margin-bottom: 8px; }
article li ul { margin: 6px 0 6px 20px; }
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}
article th, article td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
article th {
    background: var(--tag-bg);
    font-weight: 600;
}
article pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 16px 0;
}
article code { font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace; }
article pre code { background: none; padding: 0; }
article :not(pre) > code {
    background: var(--tag-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
}
.back-link { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
