/* 博客：与悬浮顶栏留白（与 common .page-main 对齐） */
#page-blog.page-main,
.page-main:has(.blog-article-wrap) {
    padding-top: var(--nav-stack-clearance, 104px);
}

@media (max-width: 768px) {

    #page-blog.page-main,
    .page-main:has(.blog-article-wrap) {
        padding-top: max(96px, var(--nav-stack-clearance, 104px));
    }
}

.page-main:has(.blog-article-wrap) .blog-article-back {
    margin-top: 18px;
}

/* ==================== 博客列表页 · 全幅 Hero + 杂志栅格 ==================== */
.blog-page {
    padding-bottom: clamp(72px, 12vw, 120px);
}

.blog-hero.blog-hero--journal-aurora {
    position: relative;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    min-height: min(85vh, 52rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 7vw, 72px);
    overflow: hidden;
    border-bottom: 1px solid rgba(45, 212, 191, 0.12);
    background: #050505;
    box-sizing: border-box;
    font-family: inherit;
}

.blog-hero.blog-hero--journal-aurora ::selection {
    background: #2dd4bf;
    color: #000;
}

/* 穹顶极光（顶部青绿柔光向下消散） */
.blog-hero__aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(500px, 55vh);
    background: linear-gradient(to bottom, rgba(45, 212, 191, 0.15), transparent);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.blog-hero__grid.blog-hero__grid--masked {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 50%, transparent 100%);
    pointer-events: none;
}

.blog-hero.blog-hero--journal-aurora .blog-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.blog-hero.blog-hero--journal-aurora .blog-hero__glow--a {
    width: min(380px, 50vw);
    height: min(380px, 50vw);
    top: -12%;
    right: -8%;
    background: rgba(45, 212, 191, 0.35);
}

.blog-hero.blog-hero--journal-aurora .blog-hero__glow--b {
    width: min(280px, 42vw);
    height: min(280px, 42vw);
    bottom: -18%;
    left: -6%;
    background: rgba(20, 184, 166, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    .blog-hero.blog-hero--journal-aurora .blog-hero__glow--a {
        animation: blogHeroGlowA 18s ease-in-out infinite;
    }

    .blog-hero.blog-hero--journal-aurora .blog-hero__glow--b {
        animation: blogHeroGlowB 20s ease-in-out infinite;
    }

    @keyframes blogHeroGlowA {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
            opacity: 0.3;
        }

        50% {
            transform: translate(-14px, 10px) scale(1.05);
            opacity: 0.42;
        }
    }

    @keyframes blogHeroGlowB {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
            opacity: 0.28;
        }

        50% {
            transform: translate(12px, -8px) scale(1.04);
            opacity: 0.4;
        }
    }
}

@media (prefers-reduced-motion: reduce) {

    .blog-hero.blog-hero--journal-aurora .blog-hero__glow--a,
    .blog-hero.blog-hero--journal-aurora .blog-hero__glow--b {
        animation: none;
    }
}

.blog-hero.blog-hero--journal-aurora .blog-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 渐变描边徽章 */
.blog-hero__badge-wrap {
    display: inline-flex;
    margin: 0 0 clamp(28px, 4vw, 40px);
    padding: 1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(45, 212, 191, 0.5) 0%,
        rgba(45, 212, 191, 0.1) 55%,
        transparent 100%
    );
}

.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 20px 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #2dd4bf;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
}

/* 徽章内联 SVG 继承父级青绿色 */
.blog-hero.blog-hero--journal-aurora .blog-hero__badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* 巨幕标题：纯色 + 轻微光晕，避免 background-clip:text 在部分环境下整段透明 */
.blog-hero.blog-hero--journal-aurora .blog-hero__title {
    margin: 0 0 clamp(18px, 3vw, 24px);
    padding: 0 0 4px;
    max-width: 100%;
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f1f5f9;
}

.blog-hero.blog-hero--journal-aurora .blog-hero__title-line {
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blog-hero.blog-hero--journal-aurora .blog-hero__title-accent {
    display: block;
    margin-top: 0.12em;
    color: #5eead4;
    text-shadow:
        0 0 48px rgba(45, 212, 191, 0.55),
        0 0 24px rgba(45, 212, 191, 0.35),
        0 2px 16px rgba(0, 0, 0, 0.45);
}

.blog-hero.blog-hero--journal-aurora .blog-hero__lead {
    margin: 0 0 clamp(28px, 4vw, 40px);
    max-width: 36rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    font-weight: 300;
    color: #8b949e;
}

.blog-hero__lead-br {
    display: none;
}

@media (min-width: 640px) {
    .blog-hero__lead-br {
        display: inline;
    }
}

.blog-page__body {
    padding-top: clamp(28px, 5vw, 44px);
}

/* ── 悬浮胶囊 Tab（与 React 参考一致） ── */
.blog-hero.blog-hero--journal-aurora .blog-tab-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: clamp(8px, 2vw, 16px);
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.blog-hero.blog-hero--journal-aurora .blog-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px clamp(22px, 4vw, 32px);
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: inherit;
    cursor: pointer;
    transition:
        background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.blog-hero.blog-hero--journal-aurora .blog-tab-btn i,
.blog-hero.blog-hero--journal-aurora .blog-tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2px;
}

.blog-hero.blog-hero--journal-aurora .blog-tab-btn__mono {
    font-family: ui-monospace, "SF Mono", "Menlo", Monaco, "Cascadia Code", Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.blog-hero.blog-hero--journal-aurora .blog-tab-btn:hover:not(.blog-dual-tab--active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.blog-hero.blog-hero--journal-aurora .blog-tab-btn.blog-dual-tab--active {
    background: linear-gradient(90deg, #2dd4bf 0%, #2dd4bf 45%, #5eead4 100%);
    color: #020617;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.35);
    transform: none;
}

@media (max-width: 480px) {
    .blog-hero.blog-hero--journal-aurora .blog-tab-btn {
        padding: 12px 18px;
        font-size: 0.875rem;
    }
}

/* 分栏内容区标题条 */
.blog-panel-intro {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: clamp(22px, 4vw, 32px);
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    border: 1px solid var(--stroke-glass);
    box-shadow: var(--shadow-sketch);
}

.blog-panel-intro__mark {
    width: 5px;
    align-self: stretch;
    min-height: 52px;
    border-radius: 999px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #6366f1 0%, #38bdf8 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.blog-panel-intro--openclaw .blog-panel-intro__mark {
    background: linear-gradient(180deg, #f59e0b 0%, #f472b6 55%, #a78bfa 100%);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.28);
}

.blog-panel-intro__title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.8vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
}

.blog-panel-intro__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-light);
    font-weight: 600;
    max-width: 42em;
}

.blog-panel[hidden] {
    display: none !important;
}

#page-blog .blog-panel-openclaw {
    padding-bottom: 40px;
}

/* 文章栅格：大屏横向卡片 */
#page-blog .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 22px);
}

@media (min-width: 880px) {
    #page-blog .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

#page-blog .blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 0;
}

@media (min-width: 880px) {
    #page-blog .blog-card.blog-card--link {
        flex-direction: row;
        align-items: stretch;
        min-height: 200px;
    }
}

.blog-card[hidden] {
    display: none !important;
}

#page-blog .blog-image {
    position: relative;
    flex-shrink: 0;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 880px) {
    #page-blog .blog-image {
        width: min(280px, 34%);
        height: auto;
        min-height: 100%;
        border-bottom: none;
        border-right: 1px solid rgba(15, 23, 42, 0.06);
    }
}

.blog-image__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25), transparent 40%);
    pointer-events: none;
}

.blog-card[data-blog-thumb='violet'] .blog-image {
    background: linear-gradient(145deg, #ede9fe 0%, #e0e7ff 40%, #cffafe 100%);
    color: #4f46e5;
}

.blog-card[data-blog-thumb='mint'] .blog-image {
    background: linear-gradient(145deg, #d1fae5 0%, #ccfbf1 50%, #e0f2fe 100%);
    color: #0d9488;
}

.blog-card[data-blog-thumb='rose'] .blog-image {
    background: linear-gradient(145deg, #fce7f3 0%, #ffe4e6 45%, #fef3c7 100%);
    color: #be185d;
}

.blog-card[data-blog-thumb='sky'] .blog-image {
    background: linear-gradient(145deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
    color: #0369a1;
}

.blog-card[data-blog-thumb='amber'] .blog-image {
    background: linear-gradient(145deg, #fef3c7 0%, #ffedd5 50%, #fce7f3 100%);
    color: #b45309;
}

.blog-card[data-blog-thumb] .blog-image i {
    width: clamp(56px, 12vw, 72px);
    height: clamp(56px, 12vw, 72px);
    position: relative;
    z-index: 1;
    opacity: 0.92;
    filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.12));
}

#page-blog .blog-content {
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    min-width: 0;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-light);
}

.blog-meta__tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--signal);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.blog-meta__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink-light);
    opacity: 0.45;
}

.blog-meta time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

#page-blog .blog-content h3 {
    margin: 0 0 10px;
    font-size: clamp(1.1rem, 2.2vw, 1.28rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.blog-excerpt {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.62;
    color: var(--ink-light);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.blog-card.blog-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    outline-offset: 4px;
    transition:
        box-shadow 0.38s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1)),
        transform 0.38s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1)),
        border-color 0.3s ease;
}

a.blog-card.blog-card--link:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

a.blog-card.blog-card--link:hover {
    box-shadow: var(--shadow-sketch-hover);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.22);
}

a.blog-card.blog-card--link:active {
    box-shadow: var(--shadow-pressed);
    transform: translateY(-1px);
}

.blog-card--series-openclaw .blog-image {
    position: relative;
}

.blog-card--series-openclaw .blog-image::after {
    content: 'OpenClaw';
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    color: var(--ink);
    line-height: 1;
    pointer-events: none;
}

.blog-read-more {
    font-size: 15px;
    font-weight: 700;
    color: var(--signal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-top: auto;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease-spring);
}

.blog-read-more i {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease-spring);
}

a.blog-card.blog-card--link:hover .blog-read-more {
    color: var(--accent);
    border-bottom-color: rgba(99, 102, 241, 0.35);
    gap: 12px;
}

a.blog-card.blog-card--link:hover .blog-read-more i {
    transform: translateX(3px);
}

/* 分页：紧凑居中胶囊条（不占满宽） */
.blog-pager {
    margin-top: clamp(24px, 4vw, 36px);
    padding: 0;
    display: flex;
    justify-content: center;
}

.blog-pager[hidden] {
    display: none !important;
}

.blog-pager__bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    max-width: 100%;
    padding: 8px 12px 8px 18px;
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--stroke-glass);
    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    position: relative;
    isolation: isolate;
}

.blog-pager__bar::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    margin-top: -14px;
    width: 3px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6366f1, #38bdf8);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.blog-pager__bar>* {
    position: relative;
    z-index: 1;
}

.blog-pager__goto {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 5px 6px;
    padding: 4px 8px 4px 10px;
    margin-left: 2px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.blog-pager__goto-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.blog-pager__goto-total {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-light);
    white-space: nowrap;
}

.blog-pager__input {
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 5px 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    -moz-appearance: textfield;
}

.blog-pager__input::-webkit-outer-spin-button,
.blog-pager__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.blog-pager__input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.blog-pager__goto-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.blog-pager__info {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    min-width: 6em;
    text-align: center;
}

.blog-pager__btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.22s var(--ease-spring), box-shadow 0.25s ease, border-color 0.2s ease;
}

.blog-pager__btn:hover:not(:disabled) {
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.blog-pager__btn:active:not(:disabled) {
    box-shadow: var(--shadow-pressed);
    transform: translateY(0);
}

.blog-pager__btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 640px) {
    .blog-hero__inner {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .blog-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .blog-hero .blog-dual-rail-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .blog-dual-tab {
        padding: 7px 12px;
    }

    .blog-panel-intro {
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
    }

    .blog-panel-intro__mark {
        width: 100%;
        min-height: 4px;
        height: 4px;
        align-self: stretch;
    }

    #page-blog .blog-content h3 {
        font-size: 1.05rem;
    }

    .blog-pager__bar {
        padding: 8px 10px 8px 14px;
        gap: 6px 8px;
    }

    .blog-pager__btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .blog-pager__goto {
        padding: 4px 6px;
        gap: 4px;
    }
}

/* ==================== 文章详情页（保持兼容） ==================== */
.blog-article-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.blog-article-back {
    display: inline-block;
    margin-top: 32px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-article-back:hover {
    color: var(--accent-hot);
    border-bottom-color: var(--accent-hot);
}

.blog-article-head {
    margin-top: 28px;
    margin-bottom: 32px;
}

.blog-article-head h1 {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.blog-article-head .blog-article-lead {
    font-size: 17px;
    color: var(--ink-light);
    font-weight: 600;
}

.blog-article-body {
    font-size: 17px;
    line-height: 1.82;
    color: var(--ink);
}

.blog-article-body p {
    margin: 0 0 1.2em;
}

.blog-article-body h2 {
    font-size: 20px;
    margin: 1.6em 0 0.6em;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.blog-article-body ul {
    margin: 0 0 1.2em 1.2em;
    padding: 0;
}

.blog-article-body li {
    margin-bottom: 0.5em;
}

/* ==================== 文章图示与提示块 ==================== */
.blog-article-figure {
    margin: 2em 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--surface-glass-muted);
    box-shadow: var(--shadow-sketch);
}

.blog-article-figure svg {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-figure figcaption {
    padding: 9px 16px;
    font-size: 13px;
    color: var(--ink-light);
    border-top: 1px solid var(--line);
    text-align: center;
    letter-spacing: 0.01em;
}

.blog-article-callout {
    margin: 1.6em 0;
    padding: 14px 18px 14px 16px;
    border-left: 3px solid var(--accent);
    background: rgba(59, 130, 246, 0.055);
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
}

/* ===== 深色主题覆盖（Journal Aurora 列表 Hero 由专用样式块接管） ===== */

.blog-article-figure {
    background: rgba(12, 20, 14, 0.6);
    border-color: rgba(52, 211, 153, 0.12);
}

.blog-article-figure figcaption {
    background: rgba(12, 20, 14, 0.4);
    border-top-color: rgba(52, 211, 153, 0.1);
    color: var(--text-dim, rgba(236, 253, 243, 0.55));
}

.blog-hero:not(.blog-hero--journal-aurora) {
    background: rgba(5, 10, 7, 0.28) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(52, 211, 153, 0.08) !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__glow--a {
    background: rgba(52, 211, 153, 0.18) !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__glow--b {
    background: rgba(16, 185, 129, 0.12) !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__grid {
    background-image:
        linear-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.03) 1px, transparent 1px) !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__title {
    color: #ecfdf3 !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__title-accent {
    color: #34d399 !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__lead {
    color: var(--text-dim) !important;
}

.blog-hero:not(.blog-hero--journal-aurora) .blog-hero__eyebrow {
    color: #34d399 !important;
}

/* 卡片背景色统一 */
.blog-image[style] {
    background: rgba(52, 211, 153, 0.04) !important;
}

/* 面板导言卡 */
.blog-panel-intro {
    background: rgba(12, 20, 14, 0.22) !important;
    border-color: rgba(52, 211, 153, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(52, 211, 153, 0.03) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.blog-panel-intro__mark {
    background: linear-gradient(180deg, #34d399, #10b981) !important;
}

.blog-panel-intro__title {
    color: #ecfdf3 !important;
}

.blog-panel-intro__desc {
    color: var(--text-dim) !important;
}

/* 博客卡片 */
.blog-card {
    background: rgba(12, 20, 14, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(52, 211, 153, 0.03) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.blog-card:hover {
    border-color: rgba(52, 211, 153, 0.2) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 4px 18px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(52, 211, 153, 0.05) !important;
}

.blog-image {
    background: rgba(52, 211, 153, 0.06) !important;
    border-bottom-color: rgba(52, 211, 153, 0.1) !important;
}

.blog-image svg {
    color: #34d399 !important;
    width: 60px !important;
    height: 60px !important;
}

.blog-meta {
    color: var(--text-dim) !important;
}

.blog-meta span:first-child {
    color: #34d399 !important;
}

.blog-content h3 {
    color: #ecfdf3 !important;
}

.blog-content p {
    color: var(--text-dim) !important;
}

.blog-read-more {
    color: #34d399 !important;
}

/* 分页器 */
.blog-pager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: clamp(36px, 5vw, 52px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.blog-pager__bar {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.blog-pager__num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.blog-pager__num:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.blog-pager__num.is-current {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
}

/* 上下页按钮 */
.blog-pager__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 42px !important;
    padding: 0 16px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.blog-pager__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.blog-pager__btn:disabled {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
}

.blog-pager__btn:disabled:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.blog-pager__dots {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 600 !important;
}

/* 卡片背景色统一 */
.blog-image[style] {
    background: rgba(52, 211, 153, 0.06) !important;
}

/* ==================== 文章详情页 · 阅读进度与文末 CTA ==================== */
.blog-reading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100050;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #34d399, #6ee7b7);
    pointer-events: none;
    opacity: 0.95;
}

.blog-article-meta {
    font-size: 14px;
    color: var(--ink-light, var(--text-dim));
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.blog-article-crumb {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.blog-article-crumb a {
    color: var(--accent, #34d399);
    text-decoration: none;
    font-weight: 600;
}

.blog-article-crumb a:hover {
    text-decoration: underline;
}

.blog-article-crumb-sep {
    opacity: 0.4;
    user-select: none;
}

.blog-article-crumb-current {
    color: var(--ink-light, rgba(236, 253, 243, 0.72));
}

.blog-article-footer-cta {
    margin-top: clamp(40px, 8vw, 72px);
    padding-bottom: clamp(48px, 10vw, 96px);
}

.blog-article-footer-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: clamp(22px, 4vw, 32px);
    border-radius: 18px;
}

.blog-article-footer-cta__eyebrow {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 8px;
}

.blog-article-footer-cta__inner h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.blog-article-footer-cta__inner p {
    margin: 0;
    max-width: 42ch;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.65;
}

.blog-article-footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-article-footer-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.12);
    color: #ecfdf3;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-article-footer-cta__btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-1px);
}

.blog-article-footer-cta__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
}

.blog-article-footer-cta__btn--ghost:hover {
    border-color: rgba(52, 211, 153, 0.25);
    color: #ecfdf3;
}

/* 正文提示块：与站点主色一致（覆盖默认偏蓝条） */
.blog-article-body .blog-article-callout {
    border-left-color: #34d399;
    background: rgba(52, 211, 153, 0.07);
}
/* Blog card cover (WebP lazy) — injected by patch_perf_phase2.py */
.blog-image__cover-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.blog-image__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.05);
}
/* 有封面时隐藏 Lucide 占位图标（monitor / server 等），只显示缩略图 */
.blog-image:has(.blog-image__cover-wrap) .blog-image__mesh,
.blog-image:has(.blog-image__cover-wrap) i {
    display: none;
}
.blog-image:has(.blog-image__cover-wrap) .blog-image__cover {
    opacity: 0.88;
}
.blog-card--link:hover .blog-image__cover {
    opacity: 0.52;
}
.blog-card--link:hover .blog-image:has(.blog-image__cover-wrap) .blog-image__cover {
    opacity: 0.95;
}
