/* Blog B2 — 对齐全站 token；列表页走局部视口壳 */
.blog-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    color: var(--primary, #111);
}

/* 列表壳：顶栏+主体填满首屏，站点 footer 顶边贴视口底（内部滚动） */
#main-content:has(> .blog-page--shell) {
    min-height: 0 !important;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: 0;
}

#main-content:has(> .blog-page--shell) > .blog-page--shell {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 16px 12px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-page--shell .blog-page-header,
.blog-page--shell .blog-filter-shell,
.blog-page--shell .blog-toolbar,
.blog-page--shell .blog-feed-meta {
    flex: 0 0 auto;
}

.blog-scroll-widget {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    scrollbar-gutter: stable;
}

.blog-scroll-widget .blog-empty {
    margin: 8px;
    border: 0;
    background: transparent;
}

.blog-scroll-widget .blog-card-list,
.blog-scroll-widget .blog-me-list {
    gap: 10px;
}

.blog-page-header {
    margin-bottom: 20px;
}

.blog-page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.blog-page-sub {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.blog-zone-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    max-width: 360px;
}

.blog-zone-btn {
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    background: #fff;
    border-bottom: 2px solid transparent;
}

.blog-zone-btn.is-active {
    color: var(--primary, #111);
    font-weight: 600;
    border-bottom-color: var(--accent, #0066ff);
    background: #fafafa;
}

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--light, #f5f5f5);
    border-radius: 10px;
}

.blog-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.blog-field-grow {
    flex: 1 1 180px;
}

.blog-field-label {
    font-size: 11px;
    color: #888;
}

.blog-field input,
.blog-field select {
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

.blog-toolbar-actions {
    display: flex;
    gap: 8px;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    padding: 2px 14px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--primary, #111);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

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

.blog-btn-primary {
    background: var(--primary, #111);
    border-color: var(--primary, #111);
    color: #fff;
}

.blog-feed-meta {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px;
}

.blog-filter-shell {
    margin-bottom: 10px;
}

.blog-filter-desktop-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.blog-feed-meta-inline {
    margin: 0;
    white-space: nowrap;
}

.blog-filter-form {
    margin-bottom: 0;
}

.blog-filter-fab {
    display: none;
}

.blog-filter-modal-head {
    display: none;
}

.blog-filter-modal-card {
    width: 100%;
}

/* 宽屏：筛选常显；FAB / 模态头隐藏 */
@media (min-width: 768px) {
    .blog-filter-fab {
        display: none !important;
    }

    .blog-filter-modal-head {
        display: none !important;
    }

    .blog-filter-modal,
    .blog-filter-modal[hidden] {
        display: block !important;
        position: static;
        inset: auto;
        z-index: auto;
        background: transparent;
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
    }

    .blog-filter-modal-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .blog-filter-shell .blog-toolbar {
        display: flex;
    }
}

/* 窄屏：桌面篇数隐藏；FAB 悬浮；筛选进模态 */
@media (max-width: 767px) {
    .blog-filter-desktop-meta {
        display: none;
    }

    .blog-filter-shell {
        margin-bottom: 0;
    }

    .blog-filter-fab {
        position: fixed;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
        z-index: 1050;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: #334155;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
        cursor: pointer;
        line-height: 0;
    }

    .blog-filter-fab .fa {
        font-size: 20px;
        line-height: 1;
    }

    .blog-filter-fab:hover {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
        filter: brightness(1.03);
    }

    .blog-filter-fab.is-active {
        background: var(--accent, #0066ff);
        color: #fff;
    }

    .blog-filter-fab.is-active:hover {
        filter: brightness(1.06);
    }

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

    .blog-filter-modal:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1400;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 12px;
        box-sizing: border-box;
        background: rgba(15, 23, 42, 0.45);
    }

    .blog-filter-modal-card {
        width: min(100%, 440px);
        max-height: min(88vh, 640px);
        overflow: auto;
        margin: 0;
        padding: 16px 14px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 14px 14px 10px 10px;
        background: #fff;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    }

    .blog-filter-modal-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    .blog-filter-modal-head-text {
        min-width: 0;
    }

    .blog-filter-modal-title {
        margin: 0 0 4px;
        font-size: 17px;
        font-weight: 700;
        color: #111;
    }

    .blog-filter-modal-count {
        margin: 0;
        font-size: 12px;
        color: #888;
    }

    .blog-filter-modal-close {
        flex: 0 0 auto;
    }

    .blog-filter-shell .blog-toolbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .blog-filter-shell .blog-toolbar-actions {
        justify-content: stretch;
    }

    .blog-filter-shell .blog-toolbar-actions .blog-btn {
        flex: 1 1 auto;
    }
}

.blog-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card {
    display: flex;
    gap: 14px;
    height: 112px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.blog-card-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-cover-fallback {
    font-size: 28px;
    font-weight: 700;
    color: #999;
}

.blog-card-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 4px 2px 0;
}

.blog-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-title-link {
    color: var(--primary, #111);
    text-decoration: none;
}

.blog-card-title-link:hover {
    color: var(--accent, #0066ff);
}

.blog-card-row2 {
    display: flex;
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
}

.blog-card-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #595959;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-self: flex-end;
}

.blog-card-meta-col {
    flex: 0 0 auto;
    max-width: 42%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.blog-card-author {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.blog-card-reacts {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-card-reacts--icon-only .blog-react-num {
    display: none;
}

.blog-react-btn,
.blog-react-link {
    border: 0;
    background: transparent;
    color: var(--secondary, #333);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    flex: 0 0 auto;
}

.blog-react-btn:hover,
.blog-react-link:hover {
    color: var(--accent, #0066ff);
}

.blog-react-btn.is-active {
    color: var(--accent, #0066ff);
}

.blog-react-btn.is-pulse {
    transform: scale(1.12);
    transition: transform 0.2s ease;
}

.blog-react-num {
    font-size: 11px;
}

.blog-share-live {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    z-index: 1200;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(20, 24, 32, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: min(90vw, 420px);
    text-align: center;
}

.blog-share-live.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.blog-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.blog-modal-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 18px 16px 14px;
}

.blog-modal-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.blog-modal-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.blog-modal-url {
    margin: 0 0 14px;
    padding: 8px 10px;
    background: #f6f8fa;
    border-radius: 8px;
    overflow: hidden;
}

.blog-modal-url code {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    word-break: break-all;
    white-space: pre-wrap;
}

.blog-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.blog-modal-actions .blog-btn {
    min-height: 36px;
}

.blog-empty {
    padding: 48px 16px;
    text-align: center;
    color: #666;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

.blog-empty-hint {
    font-size: 13px;
    color: #999;
}

.blog-error-page {
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.blog-error-card {
    width: 100%;
    padding: 32px 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
}

.blog-error-code {
    font-size: 48px;
    font-weight: 700;
    color: #ccc;
    margin: 0 0 8px;
}

.blog-error-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.blog-error-detail {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}

.blog-share-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    background: #f3f6fb;
    border: 1px solid #d9e2f0;
    border-radius: 8px;
}

.blog-share-banner a {
    color: var(--accent, #0066ff);
    text-decoration: none;
    font-weight: 500;
}

.blog-share-banner a:hover {
    text-decoration: underline;
}

.blog-breadcrumb {
    margin: 0 0 18px;
    font-size: 14px;
}

.blog-breadcrumb a {
    color: var(--accent, #0066ff);
    text-decoration: none;
}

.blog-post-page {
    max-width: 760px;
}

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

.blog-article-header {
    margin-bottom: 8px;
}

.blog-article-title {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #12151a;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    font-size: 13px;
    color: #7a8088;
    margin-bottom: 14px;
}

.blog-article-author {
    color: #555;
    font-weight: 500;
}

.blog-article-dot {
    margin: 0 6px;
    color: #c5c9ce;
}

.blog-article-reacts {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
    margin: 0 0 8px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #eceff3;
}

.blog-article-reacts-readonly {
    gap: 16px;
}

.blog-react-muted {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #888;
    font-size: 12px;
}

.blog-article-body-wrap {
    margin-top: 10px;
    padding: 22px 24px 20px;
    background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 48%);
    border: 1px solid #e8ecf1;
    border-radius: 12px;
}

.blog-article-body-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa1aa;
    margin: 0 0 14px;
}

.blog-article-body {
    font-size: 16.5px;
    line-height: 1.8;
    color: #22272e;
    word-break: break-word;
}

.blog-article-body.markdown-editor-root,
.blog-article-body.md-blog-view {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.blog-article-body .vditor-reset {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.blog-article-body .vditor-reset > h1:first-child,
.blog-article-body .vditor-reset > h2:first-child {
    margin-top: 0;
}

.blog-article-body .vditor-reset h1 {
    font-size: 1.45em;
    margin: 1.35em 0 0.55em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #eef1f5;
}

.blog-article-body .vditor-reset h2 {
    font-size: 1.28em;
    margin: 1.25em 0 0.5em;
}

.blog-article-body .vditor-reset h3 {
    font-size: 1.12em;
    margin: 1.15em 0 0.45em;
}

.blog-article-body .vditor-reset p {
    margin: 0 0 1em;
}

/* 正文链接：与 markdown-editor editor.css 对齐；兼容 .blog-article-body.vditor-reset 同节点 */
.blog-article-body .vditor-reset a:not(.md-conbo-file),
.blog-article-body.vditor-reset a:not(.md-conbo-file),
.blog-article-body a:not(.md-conbo-file) {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, #2563eb 42%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
}

.blog-article-body .vditor-reset a:not(.md-conbo-file):hover,
.blog-article-body.vditor-reset a:not(.md-conbo-file):hover,
.blog-article-body a:not(.md-conbo-file):hover {
    color: #1e40af;
    text-decoration-color: #1d4ed8;
    background-color: color-mix(in srgb, #2563eb 9%, transparent);
}

.blog-article-body img,
.blog-article-body video,
.blog-article-body .md-conbo-video-el {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-article-body .md-conbo-video {
    max-width: 100%;
}

.blog-article-note {
    margin-top: 32px;
    font-size: 12px;
    color: #999;
}

.blog-post-page .blog-comments {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #eceff3;
}

.blog-me-row-summary-link {
    color: inherit;
    text-decoration: none;
}

.blog-me-row-summary-link:hover {
    color: var(--accent, #0066ff);
}

/* B4 · 私有区 */
.blog-page-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-btn.blog-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 0;
    vertical-align: middle;
}

.blog-btn-write-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    display: block;
    margin: 0;
}

.blog-btn-write-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.blog-me-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.blog-me-nav-item {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
}

.blog-me-nav-item.is-active {
    color: var(--primary, #111);
    background: #f0f0f0;
    font-weight: 600;
}

.blog-me-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-me-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 14px;
    align-items: stretch;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    min-height: 112px;
    box-sizing: border-box;
}

.blog-me-row--card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "cover title badges"
        "cover summary actions"
        "cover extra times";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    height: 128px;
    overflow: hidden;
    padding: 8px 10px;
}

.blog-me-row--card .blog-me-row-head {
    display: contents;
}

.blog-me-row--card .blog-me-row-cover {
    grid-area: cover;
    align-self: center;
}

.blog-me-row--card .blog-me-row-title {
    grid-area: title;
    margin: 0;
    min-width: 0;
    align-self: start;
    padding-right: 8px;
}

.blog-me-row--card .blog-me-row-badges {
    grid-area: badges;
    justify-self: end;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 100%;
}

.blog-me-row--card .blog-me-row-badges .blog-status {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 1px 7px;
    white-space: nowrap;
}

.blog-me-row .blog-status {
    font-weight: 400;
}

.blog-me-row--card .blog-me-row-summary {
    grid-area: summary;
    align-self: start;
    margin: 0;
    min-width: 0;
    padding-right: 8px;
    -webkit-line-clamp: 2;
}

.blog-me-row--card .blog-reject-reason {
    grid-area: extra;
    margin: 0;
    align-self: start;
}

.blog-me-row--card .blog-me-row-actions {
    grid-area: actions;
    justify-self: end;
    align-self: center;
    max-width: none;
    flex-wrap: nowrap;
}

.blog-me-row--card .blog-me-row-times {
    grid-area: times;
    justify-self: end;
    align-self: start;
    margin: 0;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: flex-end;
}

.blog-me-row--card .blog-me-row-times--empty {
    min-height: 0;
}

.blog-me-row-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.blog-me-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-admin-row {
    min-height: 88px;
    height: auto;
    align-items: center;
}

.blog-admin-cover {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.blog-admin-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-admin-cover .blog-card-cover-fallback {
    font-size: 22px;
}

.blog-share-row {
    min-height: 0;
    height: auto;
    padding: 10px 12px;
    align-items: center;
}

.blog-share-row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 4px;
}

.blog-share-row .blog-me-row-title {
    margin: 0;
    font-size: 15px;
}

.blog-share-row-meta {
    margin: 0;
}

.blog-share-url {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.35;
}

.blog-share-url code {
    font-size: 11px;
    word-break: break-all;
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.blog-share-row-actions {
    flex-wrap: nowrap;
    align-items: center;
    max-width: none;
}

.blog-me-row-title {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 600;
}

.blog-me-row-title a {
    color: inherit;
    text-decoration: none;
}

.blog-me-row-title a:hover {
    color: var(--accent, #0066ff);
}

.blog-me-row-summary {
    margin: 0 0 8px;
    color: #666;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-me-row--card .blog-me-row-summary {
    -webkit-line-clamp: 2;
    margin-bottom: 4px;
}

.blog-me-row-meta {
    margin: 0;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.blog-me-row-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
}

.blog-me-row-time {
    display: inline-block;
    white-space: nowrap;
    color: #888;
}

.blog-me-row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.blog-me-row--card:has(.blog-reject-reason) {
    height: auto;
    min-height: 128px;
    overflow: visible;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "cover title badges"
        "cover summary actions"
        "cover extra actions"
        "cover . times";
}

.blog-me-row-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    max-width: 42%;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    /* CJK 字形视觉中心偏上：顶部多留 2px，光学垂直居中 */
    padding: 2px 12px 0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

.blog-btn:hover {
    border-color: #bbb;
}

.blog-btn-primary {
    background: var(--accent, #0066ff);
    border-color: var(--accent, #0066ff);
    color: #fff;
}

.blog-btn-danger {
    color: #b00020;
    border-color: #e0b4bc;
}

.blog-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f3f3f3;
    color: #555;
    font-weight: 400;
}

.blog-status-pending_review {
    background: #fff6e5;
    color: #9a6b00;
}

.blog-status-published {
    background: #e8f5e9;
    color: #2e7d32;
}

.blog-status-rejected {
    background: #fdecea;
    color: #c62828;
}

.blog-status-private {
    background: #e8eef8;
    color: #274b8a;
}

.blog-status-share-active {
    background: #e8f5e9;
    color: #1b7a3d;
    border: 1px solid #b7dfc3;
}

.blog-status-share-revoked {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    text-decoration: line-through;
}

.blog-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1.4;
}

.blog-badge-published {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.blog-badge-pending_review {
    background: #fff8e1;
    color: #8d6e00;
    border: 1px solid #ffe082;
}

.blog-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-edit-header {
    margin-bottom: 8px;
}

/* 写博客页顶边贴齐固定导航（导航实测高度 64px；全局 #main-content 为 80px） */
#main-content:has(> .blog-edit-page) {
    padding-top: 64px;
}

.blog-edit-page .blog-page-sub--short {
    display: none;
}

.blog-edit-page .blog-cover-hint-short {
    display: none;
}

.blog-edit-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    padding: 16px 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.blog-edit-card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-edit-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--accent, #0066ff) 14%, #fff);
    color: var(--accent, #0066ff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.blog-edit-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.blog-edit-meta-full {
    grid-column: 1 / -1;
}

.blog-field-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #888;
}

.blog-field-block {
    width: 100%;
}

.blog-field-block .blog-field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.blog-field-label-text {
    color: inherit;
}

.blog-field-optional {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.blog-field-block input,
.blog-field-block textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
}

.blog-field-block input::placeholder,
.blog-field-block textarea::placeholder {
    font-size: 12px;
    color: #9aa3ad;
    opacity: 1;
}

.blog-cover-field {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.blog-cover-slot {
    position: relative;
    width: 50%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin: 0 auto 10px;
    border: 1px dashed #d7dde5;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95)),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 6px,
            rgba(15, 23, 42, 0.015) 6px,
            rgba(15, 23, 42, 0.015) 12px
        );
    overflow: hidden;
    flex: 0 0 auto;
}

.blog-cover-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
}

.blog-cover-slot.is-filled .blog-cover-empty {
    display: none;
}

.blog-cover-empty-mark {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
    letter-spacing: 0.08em;
}

.blog-cover-empty-tip {
    font-size: 11px;
    color: #94a3b8;
}

.blog-cover-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-cover-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-cover-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.blog-cover-name {
    font-size: 13px;
    color: #666;
}

.blog-cover-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    min-height: 0;
}

.blog-cover-preview img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    border: 0;
    object-fit: cover;
}

.blog-body-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.blog-body-portal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed #c9d4e2;
    border-radius: 12px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent, #0066ff) 7%, #fff), #fff 42%),
        #f8fafc;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-body-portal:hover {
    border-color: color-mix(in srgb, var(--accent, #0066ff) 45%, #c9d4e2);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.blog-body-portal:focus-visible {
    outline: 2px solid var(--accent, #0066ff);
    outline-offset: 2px;
}

.blog-body-portal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.blog-body-portal-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent, #0066ff);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.blog-body-portal-cta {
    font-size: 13px;
    font-weight: 650;
    color: var(--accent, #0066ff);
}

.blog-body-collapsed {
    display: none;
}

.blog-body-excerpt {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-body-workspace {
    margin-top: 8px;
}

.blog-body-workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.blog-body-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.blog-editor-root {
    min-height: 420px;
    height: min(70vh, 720px);
}

.blog-editor-root .vditor {
    min-height: 100%;
    height: 100% !important;
}

.blog-editor-root .vditor-content {
    min-height: 320px;
}

body.blog-body-editor-open {
    overflow: hidden;
}

/* 正文全屏：盖住站点顶栏（祖先 .blog-edit-page > * 的 z-index:1 会困住 fixed 子项） */
body.blog-body-editor-open .blog-edit-page {
    position: relative;
    z-index: 1200;
}

body.blog-body-editor-open .blog-edit-page > .blog-edit-form {
    z-index: 1200;
}

body.blog-body-editor-open .navbar-fixed {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.blog-body-editor-open .blog-edit-actions-sticky {
    visibility: hidden;
    pointer-events: none;
}

body.blog-body-editor-open .blog-body-workspace {
    position: fixed;
    inset: 0;
    z-index: 1210;
    margin: 0;
    padding: 12px 14px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.blog-body-editor-open .blog-body-workspace-bar {
    flex: 0 0 auto;
}

body.blog-body-editor-open #blog-editor-status {
    flex: 0 0 auto;
}

body.blog-body-editor-open .blog-editor-root {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
}

body.blog-body-editor-open .blog-editor-root.markdown-editor-root {
    overflow: visible;
}

body.blog-body-editor-open .blog-editor-root .vditor {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

body.blog-body-editor-open .blog-editor-root .vditor-toolbar {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    align-items: center;
    /* 横滑仍交给 editor.css；弹层打开时由 .vditor-toolbar--panel-open 放开裁切 */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
    z-index: 40;
}

body.blog-body-editor-open .blog-editor-root .vditor-toolbar .vditor-toolbar__item {
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.blog-toolbar-collapse-btn {
    font-size: 13px;
    min-height: 34px;
    height: 34px;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .blog-toolbar-collapse-btn {
        display: none !important;
    }
}

/* 窄屏默认可收起工具栏，把高度留给正文；展开时换行显示，避免横滑后“工具消失” */
@media (max-width: 767px) {
    body.blog-md-toolbar-collapsed.blog-body-editor-open .blog-editor-root .vditor-toolbar {
        display: none !important;
    }

    body.blog-body-editor-open:not(.blog-md-toolbar-collapsed) .blog-editor-root .vditor-toolbar {
        flex-wrap: wrap !important;
        overflow: visible !important;
        row-gap: 2px;
        padding-bottom: 4px;
    }

    body.blog-body-editor-open:not(.blog-md-toolbar-collapsed) .blog-editor-root .vditor-toolbar .vditor-toolbar__item button {
        padding: 8px 5px;
        min-width: 28px;
        width: 28px;
        box-sizing: border-box;
    }

    body.blog-body-editor-open:not(.blog-md-toolbar-collapsed) .blog-editor-root .vditor-toolbar .vditor-toolbar__item {
        margin: 0;
    }

    body.blog-body-editor-open:not(.blog-md-toolbar-collapsed) .blog-editor-root .vditor-counter {
        margin: 4px 10px 4px auto !important;
        align-self: center;
        flex: 0 0 auto;
    }
}

body.blog-body-editor-open .blog-editor-root .vditor-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* 下拉必须高于全屏 workspace(1100) */
body.blog-body-editor-open .md-attach-dropdown,
body.blog-body-editor-open .md-toolbar-dropdown,
.md-attach-dropdown {
    z-index: 1300;
}

body.blog-body-editor-open .vditor-panel,
body.blog-body-editor-open .vditor-tip,
body.blog-body-editor-open .vditor-menu,
body.blog-body-editor-open .vditor-toolbar__panel {
    z-index: 1300 !important;
}

.md-editor-status {
    min-height: 1.25em;
    margin: 0 0 6px;
    font-size: 13px;
    color: #57606a;
}

.md-editor-status.is-error,
.md-editor-status.md-editor-status--err {
    color: #cf222e;
}

.blog-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-edit-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.04);
}

.blog-btn-accent {
    background: #0f6d3b;
    border-color: #0f6d3b;
    color: #fff;
}

.blog-btn-accent:hover {
    filter: brightness(1.05);
}

.blog-edit-msg {
    font-size: 13px;
    color: #2e7d32;
}

.blog-edit-msg.is-error {
    color: #c62828;
}

.js-gc.is-over {
    color: #c62828;
    font-weight: 600;
}

/* B5b · 评论楼中楼 */
.blog-comments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.blog-comments-title {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 650;
}

.blog-comments-count {
    color: #888;
    font-weight: 500;
    font-size: 15px;
}

.blog-comment-form {
    margin-bottom: 20px;
}

.blog-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
    min-height: 72px;
}

.blog-comment-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.blog-comment-form-reply {
    margin: 10px 0 6px 20px;
}

.blog-comment-login-cta {
    margin: 0 0 20px;
}

.blog-comment-list,
.blog-comment-replies {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-comment {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-comment-root:last-child {
    border-bottom: none;
}

.blog-comment-head {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}

.blog-comment-author {
    font-weight: 600;
    font-size: 14px;
}

.blog-comment-time {
    color: #999;
    font-size: 12px;
}

.blog-comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    word-break: break-word;
}

.blog-comment-deleted {
    margin: 0;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.blog-comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

.blog-comment-action {
    background: none;
    border: none;
    padding: 0;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.blog-comment-action:hover {
    color: var(--accent, #0066ff);
}

.blog-comment-action-danger:hover {
    color: #c62828;
}

.blog-comment-replies {
    margin: 8px 0 0;
    padding-left: 18px;
    border-left: 2px solid #eaeaea;
}

.blog-comment-reply {
    border-bottom: none;
    padding: 10px 0;
}

.blog-comment-empty {
    color: #888;
    font-size: 14px;
    padding: 8px 0;
}

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

.blog-reject-reason {
    margin: 8px 0 0;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #8a3b2b;
    background: rgba(180, 70, 50, 0.08);
    border-radius: 6px;
}

.blog-reject-box {
    margin-top: 10px;
}

.blog-reject-box textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--blog-border, #d8d4cc);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.blog-badge-pending_review {
    background: rgba(180, 130, 40, 0.16);
    color: #8a6510;
}

.blog-badge-rejected {
    background: rgba(180, 70, 50, 0.12);
    color: #8a3b2b;
}

.blog-badge-published {
    background: rgba(40, 120, 80, 0.12);
    color: #1f6b45;
}

@media (max-width: 767px) {
    .blog-page {
        padding: 16px 12px 48px;
    }

    .blog-zone-toggle {
        max-width: 100%;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .blog-field,
    .blog-field-grow {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .blog-field input,
    .blog-field select {
        width: 100%;
        box-sizing: border-box;
    }

    .blog-toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .blog-toolbar-actions .blog-btn {
        flex: 1 1 auto;
        min-height: 40px;
    }

    .blog-card {
        height: 160px;
    }

    .blog-card-cover {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        align-self: center;
    }

    .blog-card-title {
        font-size: 15px;
    }

    .blog-card-summary {
        -webkit-line-clamp: 4;
    }

    .blog-card-meta-col {
        max-width: 48%;
        min-width: 0;
    }

    .blog-card-reacts {
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        gap: 4px;
        overflow: hidden;
    }

    .blog-react-btn,
    .blog-react-link {
        min-height: 32px;
        padding: 4px 2px;
    }

    .blog-field-block input::placeholder,
    .blog-field-block textarea::placeholder {
        font-size: 10px;
    }

    .blog-page-title {
        font-size: 24px;
    }

    /* 窄屏：列表页隐藏大标题/副标题，把高度留给内容 */
    .blog-feed-page > .blog-page-header > .blog-page-title,
    .blog-feed-page > .blog-page-header > .blog-page-sub,
    .blog-page--shell .blog-page-header-row .blog-page-title,
    .blog-page--shell .blog-page-header-row .blog-page-sub {
        display: none;
    }

    .blog-page-header {
        margin-bottom: 8px;
    }

    .blog-page--shell > .blog-page-header {
        margin-bottom: 0;
    }

    .blog-page-header-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: 8px;
        min-height: 0;
    }

    .blog-page-header-row > div:has(.blog-page-title) {
        display: none;
    }

    /* 窄屏：够宽时横向均分；不够时横滑（细滚动条 + 整区拖拽） */
    .blog-page--shell .blog-me-nav {
        width: 100%;
        box-sizing: border-box;
        margin: 8px 0 0;
        padding: 0 0 6px;
        border-bottom: none;
        gap: 4px;
        justify-content: space-between;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: thin;
        scrollbar-color: #9aa6b2 transparent;
    }

    .blog-page--shell .blog-me-nav.is-overflow {
        justify-content: flex-start;
        cursor: grab;
    }

    .blog-page--shell .blog-me-nav.is-overflow.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .blog-page--shell .blog-me-nav::-webkit-scrollbar {
        height: 3px;
        display: block;
        background: transparent;
    }

    .blog-page--shell .blog-me-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .blog-page--shell .blog-me-nav::-webkit-scrollbar-thumb {
        background: #c5cdd6;
        border-radius: 3px;
    }

    .blog-page--shell .blog-me-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0;
        touch-action: pan-x;
    }

    .blog-me-row-times {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .blog-me-row-time {
        font-size: 11px;
        letter-spacing: 0.01em;
    }
    .blog-page-header-row:has(> .blog-btn-write) {
        height: 0;
        margin: 0;
        padding: 0;
        min-height: 0;
        overflow: visible;
        border: 0;
    }

    .blog-page-header-row > .blog-btn:not(.blog-btn-write),
    .blog-page-header-row > .blog-btn-primary:not(.blog-btn-write) {
        flex: 0 0 auto;
        margin-left: auto;
        width: auto;
        min-width: 98px;
        height: 36px;
        padding: 0 12px;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .blog-page--shell .blog-btn.blog-btn-write,
    .blog-page-header-row > .blog-btn.blog-btn-write {
        position: fixed;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
        z-index: 1050;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        height: 56px;
        padding: 0 !important;
        border-radius: 50%;
        border: none;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
        gap: 0;
        line-height: 0 !important;
        overflow: hidden;
        text-indent: 0;
    }

    .blog-page--shell .blog-btn.blog-btn-write:hover,
    .blog-page-header-row > .blog-btn.blog-btn-write:hover {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
        filter: brightness(1.05);
    }

    .blog-page--shell .blog-btn.blog-btn-write .blog-btn-write-icon,
    .blog-page-header-row > .blog-btn.blog-btn-write .blog-btn-write-icon {
        width: 22px;
        height: 22px;
        display: block;
        margin: 0;
        flex: none;
    }

    .blog-page--shell .blog-btn.blog-btn-write .blog-btn-write-label,
    .blog-page-header-row > .blog-btn.blog-btn-write .blog-btn-write-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .blog-me-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        height: auto;
        min-height: 0;
        gap: 8px 10px;
        padding: 8px;
    }

    .blog-me-row--card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "cover head"
            "cover summary"
            "cover times"
            "actions actions";
        height: auto;
        min-height: 0;
        overflow: visible;
        column-gap: 10px;
        row-gap: 4px;
        align-items: start;
    }

    .blog-me-row--card:has(.blog-reject-reason) {
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "cover head"
            "cover summary"
            "cover extra"
            "cover times"
            "actions actions";
    }

    .blog-me-row--card .blog-me-row-head {
        grid-area: head;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    .blog-me-row--card .blog-me-row-title {
        grid-area: auto;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        margin: 0;
        align-self: auto;
    }

    .blog-me-row--card .blog-me-row-badges {
        grid-area: auto;
        flex: 0 0 auto;
        justify-self: auto;
        align-self: flex-start;
        max-width: 48%;
    }

    .blog-me-row--card .blog-me-row-badges .blog-status {
        font-size: 11px;
        font-weight: 400;
        padding: 1px 5px;
        white-space: nowrap;
    }

    .blog-me-row-cover,
    .blog-admin-cover {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        align-self: flex-start;
    }

    .blog-me-row--card .blog-me-row-cover {
        grid-area: cover;
    }

    .blog-me-row-main {
        flex: 1 1 calc(100% - 78px);
        min-width: 0;
        padding: 0;
    }

    .blog-me-row-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .blog-me-row-summary {
        -webkit-line-clamp: 1;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .blog-me-row--card .blog-me-row-summary {
        grid-area: summary;
        -webkit-line-clamp: 1;
        margin: 0;
        font-size: 12px;
    }

    .blog-me-row--card .blog-me-row-times {
        grid-area: times;
        width: 100%;
        justify-self: stretch;
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 10px;
        align-self: start;
        align-items: center;
        font-size: 11px;
        line-height: 1.3;
        text-align: right;
    }

    .blog-me-row--card .blog-me-row-time {
        flex: 0 0 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: right;
    }

    .blog-me-row--card .blog-reject-reason {
        grid-area: extra;
        font-size: 12px;
    }

    .blog-me-row-actions {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
        justify-content: space-between;
    }

    .blog-me-row--card .blog-me-row-actions {
        grid-area: actions;
        justify-self: stretch;
        width: 100%;
        margin-top: 4px;
    }

    /* 最小 77px；同行水平均分，放不下则换行（通常每行 2 个） */
    .blog-me-row-actions .blog-btn {
        flex: 1 1 77px;
        width: auto;
        min-width: 77px;
        max-width: calc(50% - 4px);
        min-height: 34px;
        height: auto;
        padding: 6px 10px;
        font-size: 13px;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: nowrap;
    }

    /* 分享卡：主文左、操作右竖排居中，降低卡片高度 */
    .blog-share-row {
        flex-wrap: nowrap;
        align-items: center;
        padding: 8px 10px;
        gap: 8px;
    }

    .blog-share-row .blog-me-row-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .blog-share-row-actions {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        justify-content: center;
    }

    .blog-share-row-actions .blog-btn {
        flex: 0 0 auto;
        min-height: 32px;
        width: auto;
        min-width: 64px;
        max-width: none;
        padding: 4px 10px;
        white-space: nowrap;
    }

    .blog-share-url code {
        font-size: 10px;
    }

    .blog-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-edit-actions .blog-btn {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }

    /* 写博客 · 窄屏：编辑写字台 */
    .blog-edit-page {
        --blog-edit-ink: #0f172a;
        --blog-edit-muted: #64748b;
        --blog-edit-line: #e2e8f0;
        position: relative;
        max-width: none;
        margin: 0;
        padding: 10px 10px calc(96px + env(safe-area-inset-bottom, 0px));
        color: var(--blog-edit-ink);
        background:
            radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent, #0066ff) 10%, transparent), transparent 55%),
            radial-gradient(90% 60% at 100% 8%, rgba(15, 109, 59, 0.06), transparent 50%),
            linear-gradient(180deg, #eef2f7 0%, #f7f8fa 42%, #f3f5f8 100%);
    }

    .blog-edit-page::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 180px;
        pointer-events: none;
        background-image: linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px);
        background-size: 100% 12px;
        mask-image: linear-gradient(180deg, #000, transparent);
        opacity: 0.55;
    }

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

    .blog-edit-page .blog-breadcrumb {
        margin: 0 0 8px;
        font-size: 13px;
    }

    .blog-edit-page .blog-breadcrumb a {
        text-decoration: none;
        font-weight: 500;
    }

    .blog-edit-page .blog-edit-header {
        margin-bottom: 14px;
    }

    .blog-edit-page .blog-page-title {
        margin: 0;
        font-size: 26px;
        line-height: 1.15;
        letter-spacing: -0.03em;
        font-weight: 750;
    }

    .blog-edit-page .blog-page-sub--long {
        display: none;
    }

    .blog-edit-page .blog-page-sub--short {
        display: block;
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.45;
        color: var(--blog-edit-muted);
    }

    .blog-edit-page .blog-cover-hint-long {
        display: none;
    }

    .blog-edit-page .blog-cover-hint-short {
        display: block;
        margin: 0 0 10px;
    }

    .blog-edit-page .blog-edit-form {
        gap: 14px;
    }

    .blog-edit-page .blog-edit-card {
        padding: 14px 12px 16px;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.8) inset,
            0 10px 28px rgba(15, 23, 42, 0.05);
        /* 禁止 transform / backdrop-filter：会把后代 position:fixed 锁在卡片内，破坏正文全屏编辑 */
        animation: blog-edit-rise 0.42s ease both;
    }

    .blog-edit-page .blog-edit-card--meta {
        animation-delay: 0.04s;
    }

    .blog-edit-page .blog-body-section {
        animation-delay: 0.1s;
    }

    @keyframes blog-edit-rise {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .blog-edit-page .blog-edit-card-title {
        margin: 0 0 14px;
        font-size: 15px;
        letter-spacing: 0.01em;
    }

    .blog-edit-page .blog-edit-step {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .blog-edit-page .blog-edit-meta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-edit-page .blog-field-block {
        min-width: 0;
        gap: 6px;
    }

    .blog-edit-page .blog-field-block .blog-field-label {
        font-size: 12px;
        color: #475569;
        font-weight: 600;
    }

    .blog-edit-page .blog-field-block .js-gc {
        font-weight: 500;
        color: #94a3b8;
        font-variant-numeric: tabular-nums;
    }

    .blog-edit-page .blog-field-block input,
    .blog-edit-page .blog-field-block textarea {
        min-height: 44px;
        padding: 11px 12px;
        border: 1px solid var(--blog-edit-line);
        border-radius: 12px;
        background: #fff;
        font-size: 16px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .blog-edit-page .blog-field-block input:focus,
    .blog-edit-page .blog-field-block textarea:focus {
        outline: none;
        border-color: color-mix(in srgb, var(--accent, #0066ff) 55%, #cbd5e1);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #0066ff) 16%, transparent);
    }

    .blog-edit-page .blog-field-block textarea {
        min-height: 84px;
        resize: vertical;
        line-height: 1.45;
    }

    .blog-edit-page .blog-field-block input::placeholder,
    .blog-edit-page .blog-field-block textarea::placeholder {
        font-size: 11px;
        color: #94a3b8;
    }

    .blog-edit-page .blog-field-hint {
        margin: 0;
        font-size: 11px;
        line-height: 1.4;
        color: #94a3b8;
    }

    .blog-edit-page .blog-cover-field {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid #eef2f6;
    }

    .blog-edit-page .blog-cover-slot {
        width: 50%;
        margin: 0 auto 12px;
        border-radius: 14px;
    }

    .blog-edit-page .blog-cover-preview img {
        border-radius: 13px;
    }

    .blog-edit-page .blog-cover-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .blog-edit-page .blog-cover-pickers {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        width: 100%;
        border: 1px solid var(--blog-edit-line);
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .blog-edit-page .blog-cover-pickers .blog-btn {
        flex: none;
        width: 100%;
        min-height: 44px;
        border: 0;
        border-radius: 0;
        justify-content: center;
        padding: 2px 8px 0;
        font-size: 13px;
        font-weight: 600;
    }

    .blog-edit-page .blog-cover-pickers .blog-btn + .blog-btn {
        border-left: 1px solid var(--blog-edit-line);
    }

    .blog-edit-page .blog-cover-pickers .blog-btn-primary {
        background: var(--accent, #0066ff);
        color: #fff;
    }

    .blog-edit-page .blog-cover-meta {
        justify-content: space-between;
        min-height: 20px;
    }

    .blog-edit-page .blog-cover-name {
        font-size: 12px;
        color: #64748b;
    }

    .blog-edit-page .blog-body-head {
        margin-bottom: 12px;
    }

    .blog-edit-page .blog-body-head-hint {
        margin-top: 4px;
    }

    .blog-edit-page .blog-body-portal {
        min-height: 118px;
        padding: 16px;
        border-radius: 16px;
        border-style: solid;
        border-width: 1px;
        border-color: color-mix(in srgb, var(--accent, #0066ff) 22%, #dbe3ee);
        background:
            linear-gradient(160deg, color-mix(in srgb, var(--accent, #0066ff) 10%, #fff) 0%, #fff 48%),
            #fff;
        box-shadow: 0 10px 24px rgba(0, 102, 255, 0.06);
    }

    .blog-edit-page .blog-body-portal:active {
        transform: scale(0.995);
    }

    .blog-edit-page .blog-body-portal-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .blog-edit-page .blog-body-portal-cta {
        font-size: 14px;
    }

    .blog-edit-page .blog-body-excerpt {
        font-size: 13px;
        line-height: 1.5;
        color: #64748b;
    }

    .blog-edit-page .blog-edit-actions-sticky {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0 -10px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 18px 18px 0 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    }

    .blog-edit-page .blog-edit-actions-sticky .blog-btn {
        width: auto;
        min-width: 0;
        min-height: 44px;
        border-radius: 12px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
        font-weight: 650;
    }

    .blog-edit-page .blog-edit-actions-sticky .blog-btn:last-child:nth-child(odd),
    .blog-edit-page .blog-edit-actions-sticky .blog-edit-msg {
        grid-column: 1 / -1;
    }

    .blog-edit-page .blog-edit-msg {
        text-align: center;
    }

    @media (prefers-reduced-motion: reduce) {
        .blog-edit-page .blog-edit-card {
            animation: none;
        }
    }

    .blog-comment-replies {
        padding-left: 14px;
    }

    .blog-comment-form-reply {
        margin-left: 8px;
    }

    .blog-comment-form-actions .blog-btn {
        min-height: 40px;
        width: 100%;
    }

    .blog-article-reacts {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .blog-share-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
