/* ==========================================================================
   引证 GEO · PbootCMS 模板样式表
   目标：内容优先 + 可读性优先，服务搜索引擎收录与 AI 大模型引用
   零外部依赖：不引用任何 CDN 字体与框架
   ========================================================================== */

/* ---------- 1. 设计令牌（对齐 Luno 设计系统） ----------
   参考 aigeo.macjc.cn（Ghost + Luno）：白底灰阶 + 单一高饱和 accent，
   卡片透明无边框、悬停浮出 accent 光晕，胶囊/按钮一律全圆角。 */
:root {
    --brand: #ff1a75;
    --brand-2: #d9115f;
    --brand-soft: #ffeef3;
    --halo: color-mix(in srgb, var(--brand) 10%, transparent);
    --halo-r: 24px;

    --teal: #0a7a68;
    --teal-soft: #e6f5f2;

    --ink: #101828;
    --ink-2: #374151;
    --ink-3: #6a7282;
    --ink-4: #98a2b3;

    --bg: #ffffff;
    --panel: #ffffff;
    --panel-2: #f4f5f8;
    --panel-3: #ebeef2;
    --line: #e7e9ed;
    --line-2: #d2d7df;

    --radius: 12px;
    --radius-s: 10px;
    --max: 1180px;

    --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-2: 0 2px 6px rgba(16, 24, 40, .08), 0 16px 32px -16px rgba(16, 24, 40, .22);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --header-h: 64px;
    color-scheme: light;
}

/* 深色模式：底色带 accent 血统（accent 4% 混入近黑），同 Luno 做法 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #ff1a75;
        --brand-2: #ff5c96;
        --brand-soft: #3d1526;
        --halo: color-mix(in srgb, var(--brand) 14%, transparent);

        --teal: #4fd1bb;
        --teal-soft: #12302b;

        --ink: #fafafa;
        --ink-2: #d4d4d4;
        --ink-3: #a1a1a1;
        --ink-4: #7c7c7c;

        --bg: #1b1216;
        --panel: #1b1216;
        --panel-2: #271e21;
        --panel-3: #2f2428;
        --line: #3a3136;
        --line-2: #4a3f44;

        --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-2: 0 2px 8px rgba(0, 0, 0, .4), 0 18px 40px -20px rgba(0, 0, 0, .7);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --brand: #ff1a75;
    --brand-2: #ff5c96;
    --brand-soft: #3d1526;
    --halo: color-mix(in srgb, var(--brand) 14%, transparent);

    --teal: #4fd1bb;
    --teal-soft: #12302b;

    --ink: #fafafa;
    --ink-2: #d4d4d4;
    --ink-3: #a1a1a1;
    --ink-4: #7c7c7c;

    --bg: #1b1216;
    --panel: #1b1216;
    --panel-2: #271e21;
    --panel-3: #2f2428;
    --line: #3a3136;
    --line-2: #4a3f44;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .4), 0 18px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4, h5 {
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
figure { margin: 0; }
button { font: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 99;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand img { height: 32px; width: auto; }
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex: 1 1 auto;
}

.site-nav a {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .18s, background .18s;
}
.site-nav a:hover { color: var(--ink); background: var(--panel-2); }
/* Luno：当前项 = 加粗 + accent，不画下划线条 */
.site-nav a.is-active { color: var(--brand); font-weight: 700; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.icon-btn {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-2);
    border-radius: 10px;
    cursor: pointer;
    transition: .18s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-1); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

/* 移动端抽屉 */
@media (max-width: 900px) {
    .site-nav {
        position: absolute;
        left: 0; right: 0; top: var(--header-h);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 18px;
        margin: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-2);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 11px 10px; font-size: 16px; }
    .site-nav a.is-active::after { display: none; }
    .nav-toggle { display: grid; }
}

/* ---------- 4. 首页 Hero ---------- */
.hero { padding: 58px 0 46px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    gap: 54px;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: currentColor;
    opacity: .7;
}

.hero h1 {
    font-size: clamp(30px, 3.9vw, 46px);
    line-height: 1.16;
    letter-spacing: -.03em;
}
.hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hero-lead {
    margin: 20px 0 0;
    font-size: 17.5px;
    line-height: 1.85;
    color: var(--ink-2);
    max-width: 40em;
}

.searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 6px 6px 6px 18px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 40px;
    max-width: 520px;
    transition: border-color .15s ease;
}
.searchbar:focus-within { border-color: color-mix(in srgb, var(--line-2) 40%, var(--ink)); }
.searchbar svg { width: 18px; height: 18px; color: var(--ink-4); flex: 0 0 auto; }
.searchbar input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15.5px;
    color: var(--ink);
    padding: 8px 0;
}
.searchbar input::placeholder { color: var(--ink-4); }
.searchbar button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.searchbar button:hover { background: var(--brand-2); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--ink-3);
}
.hero-tags .chip { font-size: 13px; padding: 5px 12px; }

/* 侧栏速览卡 */
.glance {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    box-shadow: var(--shadow-1);
}
.glance h2 {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 14px;
}
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance .row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding-bottom: 13px;
    border-bottom: 1px dashed var(--line);
}
.glance .row:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: 13px; color: var(--ink-3); }
.glance dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; word-break: break-all; }
.glance dd a { font-weight: 500; }
.glance dd.long {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 5. 区块标题 ---------- */
.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.sec-head h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sec-head p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-3);
}
.sec-head .more {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
}
.sec-head .more:hover { color: var(--brand); }
.sec-head .more::after { content: "→"; transition: transform .18s; }
.sec-head .more:hover::after { transform: translateX(3px); }

/* ---------- 6. 文章卡片（Luno：透明无边框，悬停浮出 accent 光晕） ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 28px;
}
.card {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
/* 悬停光晕：::before 铺在卡片背后，inset -12px + 24px 圆角 + accent 10% */
.card::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: var(--halo-r);
    background: var(--halo);
    opacity: 0;
    transform: scale(.95);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}
.card:hover::before,
.card:focus-within::before { opacity: 1; transform: scale(1); }
.card-media {
    aspect-ratio: 16 / 10;
    background: var(--panel-2);
    overflow: hidden;
    border-radius: var(--radius);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .23s ease; }
.card:hover .card-media img { transform: scale(1.02); }
.card-body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.375;
    margin: 10px 0 0;
    color: var(--ink);
}
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--ink); }
.card-body .excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0 12px;
}
.card-body .meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }

/* 标签玻璃胶囊：黑 35% + 毛玻璃 + 2px 白环（Luno 标志做法）。
   在卡片里用负边距压在封面下沿；文章页头部则正常排。 */
.kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1.5;
    text-decoration: none;
}
.kicker:hover { color: #fff; }
.card-body > .kicker:first-child,
.post-body > .kicker:first-child { margin: -30px 0 0 12px; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li {
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: background .18s;
}
.rows li:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.rows .row-main { flex: 1 1 auto; min-width: 0; }
.rows h3 { font-size: 17.5px; line-height: 1.6; font-weight: 600; }
.rows h3 a { color: var(--ink); }
.rows h3 a:hover { color: var(--brand); }
.rows .excerpt {
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rows .date {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
}

/* ---------- 6.5 首页精选流（Luno hero） ----------
   ① 卡片透明无边框，悬停光晕
   ② 第一张大卡跨 2 列 2 行，标题压在深色渐变遮罩上（桌面 48px）
   ③ 小卡：玻璃胶囊压封面下沿 */
.post-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    overflow: visible;
}
@media (min-width: 640px) {
    .post-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 992px) {
    .post-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.post-card {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;
}
.post-card::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: var(--halo-r);
    background: var(--halo);
    opacity: 0;
    transform: scale(.95);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}
.post-card:hover::before,
.post-card:focus-within::before { opacity: 1; transform: scale(1); }

.post-media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-2);
    aspect-ratio: 16 / 10;
}
.post-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .23s ease;
}
.post-card:hover .post-media img { transform: scale(1.02); }

.post-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 4px 4px;
    flex: 1 1 auto;
}
.post-title {
    margin: 10px 0 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.375;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--ink); }
.post-excerpt {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

/* —— 大卡：内容压在图上 —— */
.post-card.is-hero .post-media { aspect-ratio: 16 / 10; }
.post-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(to bottom,
        rgba(6, 11, 20, .55) 0%,
        rgba(6, 11, 20, .72) 55%,
        rgba(6, 11, 20, .94) 100%);
    color: #fff;
    pointer-events: none;
}
.post-overlay > * { pointer-events: auto; }
.post-overlay .post-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
}
.post-overlay .post-title { margin: 0; color: #fff; -webkit-line-clamp: 3; }
.post-overlay .post-title a { color: #fff; }
.post-overlay .post-title a:hover { color: #fff; }
.post-overlay .post-excerpt {
    color: rgba(255, 255, 255, .82);
    -webkit-line-clamp: 2;
}
.post-overlay .post-meta {
    margin-top: 4px;
    padding-top: 0;
    border-top: 0;
    color: rgba(255, 255, 255, .72);
}

@media (min-width: 640px) {
    .post-overlay { padding: 24px; }
    .post-card.is-hero .post-title { font-size: 32px; }
}
@media (min-width: 992px) {
    .post-card.is-hero { grid-column: span 2; grid-row: span 2; }
    .post-card.is-hero .post-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
    .post-card.is-hero .post-title { font-size: 40px; line-height: 1.2; }
}

/* ---------- 7. 元信息 ---------- */
.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.6;
}
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta > * + *::before {
    content: "";
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--line-2);
    margin-right: 7px;
    flex: 0 0 auto;
}
.meta a { color: var(--ink-3); }
.meta a:hover { color: var(--brand); }
.meta time { font-variant-numeric: tabular-nums; }
.meta:empty { display: none; border: 0; padding: 0; }

/* 标签胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.4;
    transition: .18s;
}
.chip:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-soft);
}
.chip .num { margin-left: 6px; color: var(--ink-4); font-size: 12px; }

/* ---------- 8. 栏目导航格 ---------- */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}
.nav-card {
    position: relative;
    z-index: 0;
    display: block;
    padding: 20px 22px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: .2s;
    overflow: visible;
}
/* 悬停光晕（与卡片同款） */
.nav-card::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: var(--halo-r);
    background: var(--halo);
    opacity: 0;
    transform: scale(.95);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}
.nav-card:hover { border-color: transparent; }
.nav-card:hover::before,
.nav-card:focus-visible::before { opacity: 1; transform: scale(1); }
.nav-card h3 { font-size: 17px; margin-bottom: 6px; position: relative; }
.nav-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-3);
    position: relative;
}
.nav-card .count {
    display: inline-block;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    position: relative;
}

/* ---------- 9. 摘要 / 核心结论 ---------- */
.summary {
    position: relative;
    margin: 0 0 32px;
    padding: 26px 26px 24px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-s);
    background: linear-gradient(180deg, var(--brand-soft), var(--panel) 78%);
}
.summary::before {
    content: "核心结论";
    position: absolute;
    top: -11px; left: 20px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
}
.summary p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--ink);
}

/* ---------- 10. 正文排版 ---------- */
.prose {
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink-2);
    letter-spacing: .005em;
}
.prose > *:first-child { margin-top: 0; }
.prose h2 {
    position: relative;
    font-size: 22.5px;
    line-height: 1.5;
    margin: 46px 0 16px;
    padding-left: 16px;
    color: var(--ink);
}
.prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .38em;
    bottom: .38em;
    width: 4px;
    border-radius: 3px;
    background: var(--brand);
}
.prose h3 {
    font-size: 18.5px;
    margin: 32px 0 12px;
    color: var(--ink);
}
.prose h4 { font-size: 16.5px; margin: 24px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-4); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
    color: var(--brand);
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    transition: border-color .15s;
}
.prose a:hover { border-bottom-color: var(--brand); }
.prose img {
    border-radius: 12px;
    margin: 24px auto;
    border: 1px solid var(--line);
}
.prose figure { margin: 26px 0; }
.prose figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-3);
    text-align: center;
}
.prose blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--brand);
    background: var(--panel-2);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    color: var(--ink-3);
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}
.prose code {
    font-family: var(--font-mono);
    font-size: .9em;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink);
}
.prose pre {
    margin: 22px 0;
    padding: 18px 20px;
    border-radius: var(--radius-s);
    background: #0f1318;
    color: #dbe3ee;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
}
.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.table-wrap {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 480px;
}
.prose th,
.prose td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose th {
    background: var(--panel-2);
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}
.prose tr:last-child td { border-bottom: 0; }

/* 正文中的「要点」标记（编辑器里用 ul.pts 即可） */
.prose .pts {
    list-style: none;
    padding: 20px 22px;
    margin: 24px 0;
    background: var(--panel-2);
    border-radius: var(--radius-s);
}
.prose .pts li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}
.prose .pts li:last-child { margin-bottom: 0; }
.prose .pts li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

/* ---------- 11. 文章页布局 ---------- */
.article-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 56px;
    padding: 30px 0 64px;
    align-items: start;
}

.article-head { margin-bottom: 26px; }
.article-head h1 {
    font-size: clamp(26px, 3.1vw, 37px);
    line-height: 1.34;
    letter-spacing: -.025em;
    margin: 14px 0 0;
}
.article-sub {
    margin: 14px 0 0;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-3);
}
.article-head .meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.article-foot {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.article-foot .chips { margin-bottom: 26px; }

/* 引用本文 */
.cite {
    margin: 30px 0 0;
    padding: 22px 24px 16px;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius-s);
    background: var(--panel-2);
}
.cite h2 {
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 6px;
}
.cite > p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.cite-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.cite-row span:first-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-4);
    letter-spacing: .06em;
}
.cite-row code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ink-2);
    word-break: break-word;
}
.copy-btn {
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--ink-3);
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: .18s;
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.is-done { color: var(--teal); border-color: var(--teal); }

/* 上一篇 / 下一篇 */
.prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}
.prevnext a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--panel);
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.6;
    transition: .18s;
}
.prevnext a:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.prevnext span {
    display: block;
    font-size: 12px;
    color: var(--ink-4);
    margin-bottom: 5px;
}
.prevnext .next { text-align: right; }

/* ---------- 12. 侧栏 / 目录 ---------- */
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }

.toc {
    border-left: 2px solid var(--line);
    padding-left: 18px;
    max-height: calc(100vh - var(--header-h) - 80px);
    overflow: auto;
    overscroll-behavior: contain;
}
.toc h2 {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-4);
    font-weight: 600;
    margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
    display: block;
    padding: 5px 0 5px 10px;
    margin-left: -19px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-3);
    transition: .16s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active {
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 500;
}
.toc .lvl-3 a { padding-left: 24px; font-size: 13px; color: var(--ink-4); }

.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--panel);
    padding: 18px 20px;
}
.side-card h2 {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 12px;
}
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list li { font-size: 14px; line-height: 1.65; }
.side-list a { color: var(--ink-2); }
.side-list a:hover { color: var(--brand); }
.side-list .d { display: block; font-size: 12px; color: var(--ink-4); margin-top: 3px; }

/* ---------- 13. 列表页 ---------- */
.page-head {
    padding: 40px 0 26px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.page-head h1 {
    font-size: clamp(26px, 3.2vw, 36px);
    letter-spacing: -.025em;
}
.page-head .desc {
    margin: 14px 0 0;
    max-width: 46em;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink-3);
}
.page-head .meta { margin-top: 16px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--ink-4);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--line-2); }
.breadcrumb .cur { color: var(--ink-2); }

.list-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 52px;
    align-items: start;
    padding-bottom: 64px;
}

/* 分页（契合 PbootCMS {page:bar} 输出的 span/a 结构） */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.pager > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pager .page-numbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--ink-2);
    transition: .18s;
}
.pager a:hover { border-color: color-mix(in srgb, var(--line) 40%, var(--ink)); color: var(--ink); }
.pager a.page-num-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}
.pager span.page-num { color: var(--ink-4); padding: 0 4px; }
.pager span.page-numbar > span.page-num { padding: 0; }
.pager .page-status {
    order: 9;
    width: 100%;
    margin-top: 4px;
    color: var(--ink-4);
    font-size: 13px;
}
.pager .page-none { color: var(--ink-4); font-size: 13px; }

/* 空态 */
.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-3);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    background: var(--panel);
}
.empty strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.faq summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.65;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 24px; height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--ink-3);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    transition: .2s;
}
.faq details[open] summary::after {
    content: "−";
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: rotate(180deg);
}
.faq .ans {
    margin: 12px 0 2px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-2);
    max-width: 52em;
}

/* ---------- 15. CTA ---------- */
.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 34px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #1c0512, #b3124f 58%, #ff1a75);
    color: #fff;
    box-shadow: var(--shadow-2);
}
.cta h2 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #fff;
    color: #4d0a26;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    transition: transform .18s;
}
.cta .btn:hover { transform: translateY(-2px); color: #4d0a26; }

/* ---------- 15. 表单 / 留言 ---------- */
.msg-form {
    display: grid;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-1);
}
.field { display: grid; gap: 8px; }
.field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
}
.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-s);
    outline: 0;
    transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-inline { display: flex; gap: 12px; align-items: center; }
.field-inline input { flex: 1 1 auto; }
.codeimg {
    height: 44px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line-2);
    cursor: pointer;
    background: var(--panel);
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .18s;
}
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.form-tip { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); min-height: 1em; }

.msg-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.msg-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    color: var(--ink-4);
}
.msg-head strong { color: var(--ink); font-size: 15px; }
.msg-item > p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; }
.msg-reply {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    background: var(--panel-2);
    border-left: 3px solid var(--teal);
}
.msg-reply strong { font-size: 13px; color: var(--teal); }
.msg-reply p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.8; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
    margin-top: 60px;
    background: #0d1117;
    color: #9aa6b6;
    font-size: 14px;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 52px 0 40px;
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8b97a7; line-height: 1.85; font-size: 13.5px; max-width: 28em; }
.footer-col h3 {
    color: #fff;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a,
.footer-col li { color: #9aa6b6; font-size: 13.5px; line-height: 1.7; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    padding: 18px 0 26px;
    border-top: 1px solid #1d242e;
    font-size: 12.5px;
    color: #6f7b8b;
}
.footer-bottom a { color: #6f7b8b; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { color: #2a323d; }

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; padding: 38px 0 28px; }
}
@media (max-width: 560px) {
    .footer-main { grid-template-columns: 1fr; }
}

/* ---------- 17. 浮动按钮 ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 40;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--ink-2);
    box-shadow: var(--shadow-2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .22s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

.progress {
    position: fixed;
    left: 0; top: 0;
    z-index: 60;
    height: 2px;
    width: 0;
    background: var(--brand);
    transition: width .1s linear;
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .article-wrap,
    .list-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .side { position: static; grid-auto-flow: row; }
    .toc { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 15.5px; }
    .wrap, .header-inner { padding: 0 18px; }
    .hero { padding: 36px 0 28px; }
    .hero-lead { font-size: 16px; }
    .searchbar { padding: 5px 5px 5px 15px; }
    .searchbar button { padding: 9px 17px; font-size: 14px; }
    .section { padding: 26px 0; }
    .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sec-head .more { padding-bottom: 0; }
    .prose { font-size: 16.5px; line-height: 1.9; }
    .prose h2 { font-size: 20px; margin-top: 36px; }
    .prose h3 { font-size: 17.5px; }
    .article-wrap { padding: 18px 0 44px; }
    .article-head h1 { font-size: 25px; }
    .prevnext { grid-template-columns: 1fr; }
    .prevnext .next { text-align: left; }
    .cite-row { grid-template-columns: 1fr auto; }
    .cite-row span:first-child { grid-column: 1 / -1; }
    .cta { grid-template-columns: 1fr; padding: 24px; }
    .rows li { flex-direction: column; gap: 6px; }
    .rows .date { order: -1; padding-top: 0; }
    .to-top { right: 14px; bottom: 16px; }
    .pager .info { width: 100%; margin-left: 0; }
}

/* ---------- 19. 打印 ---------- */
@media print {
    .site-header, .site-footer, .side, .to-top, .progress, .cta,
    .prevnext, .searchbar, .copy-btn, .header-tools { display: none !important; }
    body { background: #fff; color: #000; font-size: 11.5pt; }
    .article-wrap, .list-wrap { display: block; padding: 0; }
    .prose a { color: #000; border-bottom: 0; }
    .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    .summary { background: #fff; border: 1px solid #ccc; }
}

/* ---------- 20. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
