*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg: oklch(0.978 0.005 75); --fg: oklch(0.1 0.005 50); --muted: oklch(0.45 0.006 60); --border: oklch(0 0 0 / 11%); --code-bg: oklch(0.955 0.006 72); --primary: oklch(0.46 0.2 262); --tag-bg: oklch(1 0 0); --nav-bg: oklch(0.998 0.002 80 / 92%); --menu-bg: oklch(0.998 0.002 80); }
html[data-theme="dark"] { --bg: oklch(0.07 0.005 260); --fg: oklch(0.96 0.004 260); --muted: oklch(0.55 0.005 260); --border: oklch(1 0 0 / 8%); --code-bg: oklch(0.12 0.008 260); --primary: oklch(0.68 0.2 262); --tag-bg: oklch(0.12 0.008 260); --nav-bg: oklch(0.07 0.005 260 / 90%); --menu-bg: oklch(0.09 0.005 260); }
body { background: var(--bg); color: var(--fg); font-family: 'Inter', ui-sans-serif, sans-serif; font-size: 16px; line-height: 1.7; min-height: 100vh; }

.bp-nav { position: sticky; top: 0; z-index: 20; background: var(--menu-bg); border-bottom: 1px solid var(--border); padding: 0 32px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.bp-nav-left { display: flex; align-items: center; gap: 24px; }
.bp-logo { font-size: 15px; font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.bp-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.bp-nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 7px; transition: color 0.15s; }
.bp-nav-links a:hover { color: var(--fg); }
.bp-nav-links a svg { width: 13px; height: 13px; opacity: 0.7; }
.bp-nav-right { display: flex; align-items: center; gap: 10px; }
.bp-theme-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--muted); transition: color 0.15s; }
.bp-theme-btn svg { width: 14px; height: 14px; }
.bp-lang-toggle { display: flex; align-items: center; height: 32px; padding: 3px; border-radius: 999px; background: oklch(0 0 0 / 5%); border: 1px solid var(--border); gap: 1px; }
html[data-theme="dark"] .bp-lang-toggle { background: oklch(1 0 0 / 5%); }
.bp-lang-opt { display: flex; align-items: center; justify-content: center; height: 24px; min-width: 32px; padding: 0 8px; border-radius: 999px; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; transition: background 0.15s, color 0.15s; }
.bp-lang-opt.active { background: var(--fg); color: var(--bg); }

.bp-hbg { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; }
.bp-hl { display: block; width: 100%; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.bp-hbg.open .bp-hl:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bp-hbg.open .bp-hl:nth-child(2) { opacity: 0; }
.bp-hbg.open .bp-hl:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.bp-main { max-width: 680px; margin: 0 auto; padding: 56px 24px 96px; }
.bp-header { margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.bp-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.bp-header h1 { font-size: clamp(24px, 5vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-tag { padding: 3px 10px; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--muted); }
.bp-body { border-top: 1px solid var(--border); padding-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.bp-body h2 { font-size: 20px; font-weight: 700; margin-top: 12px; }
.bp-body p { color: var(--fg); opacity: 0.85; }
.bp-body pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 18px; overflow-x: auto; }
.bp-body code { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 13.5px; line-height: 1.6; }
.bp-body p code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

@media (max-width: 620px) {
  .bp-nav { padding: 0 16px; }
  .bp-hbg { display: flex; }
  .bp-nav-links {
    position: fixed; inset: 0; top: 56px; z-index: 100;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--menu-bg); padding: 24px 16px;
    transform: translateX(100%); transition: transform 0.28s ease;
  }
  .bp-nav-links.open { transform: none; }
  .bp-nav-links li { width: 100%; }
  .bp-nav-links a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .bp-nav-links a svg { width: 16px; height: 16px; }
}
