:root {
    --accent: #2f6bff;
    --accent-dark: #0457e6;
    --accent-soft: #e8f0ff;
    --ink: #1b1f25;
    --muted: #5d6c89;
    --line: #e6ebf2;
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --header-h: 68px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
header {
    position: sticky; top: 0; z-index: 20; height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 700; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-dark); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--accent-dark); color: #fff; font-weight: 600; font-size: 14px;
}
.page { padding: 36px 0 72px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent-dark); }
.page-head { margin-bottom: 28px; max-width: 760px; }
.page-head h1 { font-size: 36px; line-height: 1.3; margin-bottom: 8px; }
.page-head p { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.post-card {
    background: #fff; border: 1px solid #d7e3f5; border-radius: 16px;
    padding: 16px 18px; display: flex; flex-direction: row; align-items: center; gap: 18px;
}
.post-card:hover { border-color: #8eb4ff; box-shadow: 0 10px 24px rgba(4, 87, 230, 0.08); }
.post-card time {
    width: 74px; height: 74px; flex: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--accent-soft); border-radius: 14px; line-height: 1.15; color: var(--muted);
}
.post-card time b { font-size: 16px; color: var(--accent-dark); }
.post-card time span { font-size: 12px; }
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-card h2 { font-size: 17px; line-height: 1.4; }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a, .side-tags a {
    font-size: 12px; color: var(--accent-dark); background: var(--accent-soft);
    border-radius: 999px; padding: 3px 8px;
}
.post-tags a.tag-pin { background: #1b1f25; color: #fff; }
.side { position: sticky; top: 88px; display: grid; gap: 14px; align-content: start; }
.side-card { background: var(--bg-soft); border: 1px solid #d5e3f8; border-radius: 16px; padding: 16px; }
.side-card h2 { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.side-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 10px; font-size: 14px; background: #fff; margin-bottom: 8px;
}
.side-row:hover { background: var(--accent-soft); color: var(--accent-dark); }
.side-row b {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--bg-soft); color: var(--muted); font-size: 12px;
    display: grid; place-items: center;
}
.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags a span { color: var(--muted); margin-left: 4px; }
.download-card p { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.download-card .btn { width: 100%; }
.download-card .formats { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.download-card .formats span { font-size: 11px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.pager a:hover { border-color: var(--accent); color: var(--accent-dark); }
.article h1 { font-size: 34px; line-height: 1.35; margin: 8px 0 12px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.article .post-tags { margin: 0 0 28px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ol, .prose ul { margin: 0 0 14px 1.2em; }
.prose li { margin: 6px 0; }
.related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related ul { list-style: none; display: grid; gap: 8px; }
.related a:hover, .article .meta a:hover { color: var(--accent-dark); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 24px; }
.foot a { color: var(--accent-dark); }
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .post-card { flex-direction: column; align-items: flex-start; }
    .post-card time { width: auto; height: auto; flex-direction: row; gap: 6px; padding: 6px 10px; }
    .side { position: static; }
    .nav-links, .brand-sub { display: none; }
    .page-head h1, .article h1 { font-size: 28px; }
    .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
