/* 站內 BLOG — 與 topbar / footer 間距（主欄間距由 .layout padding-top 提供） */
body.fate-body--blog > .layout-shell.layout-shell--blog {
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
}
html.fate-theme-minimal body.fate-body--blog .minimal-page--blog {
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
}
html.fate-theme-minimal body.fate-body--blog .minimal-page--blog .layout-shell.layout-shell--blog {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-top: 0.35rem;
    padding-bottom: 0.75rem;
}
html.fate-theme-dci body.fate-body--blog > .layout-shell.layout-shell--blog {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.65rem;
}
body.fate-body--blog .fate-site-footer {
    margin-top: 0.35rem;
}
@media (max-width: 767px) {
    body.fate-body--blog > .layout-shell.layout-shell--blog {
        margin-top: 0.85rem;
        margin-bottom: 1.35rem;
    }
    html.fate-theme-minimal body.fate-body--blog .minimal-page--blog {
        padding-top: 0.65rem;
    }
}
.blog-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}
.layout-main .blog-page,
.layout-main .blog-post-article {
    max-width: none;
    margin: 0;
    padding: 0.15rem 0 2rem;
}
.blog-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.blog-page__title {
    margin: 0;
    font-size: 1.45rem;
}
.blog-page__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(122, 184, 255, 0.35);
    background: rgba(122, 184, 255, 0.1);
    color: var(--fg, #e8eef7);
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
}
.blog-btn:hover { border-color: rgba(122, 184, 255, 0.55); text-decoration: none; }
.blog-btn--primary {
    background: rgba(122, 184, 255, 0.22);
    border-color: rgba(122, 184, 255, 0.5);
}
.blog-btn--danger {
    border-color: rgba(255, 120, 120, 0.45);
    background: rgba(255, 80, 80, 0.12);
}
.blog-flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 0.85rem; font-size: 0.92rem; }
.blog-flash--ok { background: rgba(80, 200, 120, 0.12); border: 1px solid rgba(80, 200, 120, 0.35); }
.blog-flash--bad { background: rgba(255, 100, 100, 0.12); border: 1px solid rgba(255, 100, 100, 0.35); }
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.blog-cats__link {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 184, 255, 0.25);
    color: var(--accent, #7ab8ff);
    text-decoration: none;
    font-size: 0.85rem;
}
.blog-cats__link.is-active,
.blog-cats__link:hover {
    background: rgba(122, 184, 255, 0.12);
    border-color: rgba(122, 184, 255, 0.45);
    text-decoration: none;
}
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.blog-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.03);
}
.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    font-size: 0.78rem;
    color: var(--muted, #9aa8bc);
    margin-bottom: 0.35rem;
}
.blog-card__badge {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 196, 80, 0.15);
    color: #ffd58a;
    border: 1px solid rgba(255, 196, 80, 0.35);
}
.blog-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--accent, #7ab8ff); }
.blog-card__excerpt {
    margin: 0;
    color: var(--muted, #9aa8bc);
    font-size: 0.92rem;
    line-height: 1.55;
}
.blog-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}
.blog-btn--sm {
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
}
.blog-empty { color: var(--muted, #9aa8bc); padding: 1rem 0; }
.blog-pager {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}
.blog-compose {
    border: 1px solid rgba(122, 184, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(122, 184, 255, 0.05);
}
.blog-compose__title { margin: 0 0 0.85rem; font-size: 1.05rem; }
.blog-field { margin-bottom: 0.75rem; }
.blog-field label { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; color: var(--muted, #9aa8bc); }
.blog-field input[type="text"],
.blog-field select,
.blog-field textarea.blog-editor-field {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    padding: 0.5rem 0.65rem;
}
.blog-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
}
.blog-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; }
.blog-post-article { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.blog-post-article__card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 1.35rem 1.55rem 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.blog-post-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 1.05rem;
    font-size: 0.88rem;
    color: var(--accent, #7ab8ff);
    text-decoration: none;
    opacity: 0.92;
}
.blog-post-article__back:hover {
    opacity: 1;
    text-decoration: none;
    color: var(--accent, #7ab8ff);
}
.blog-post-article__head { margin-bottom: 0; }
.blog-post-article__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    line-height: 1.38;
    letter-spacing: -0.01em;
}
.blog-post-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.82rem;
    color: var(--muted, #9aa8bc);
}
.blog-post-article__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.blog-post-article__badge--ann {
    background: rgba(255, 196, 80, 0.14);
    color: #ffd58a;
    border: 1px solid rgba(255, 196, 80, 0.32);
}
.blog-post-article__badge--cat {
    background: rgba(122, 184, 255, 0.1);
    color: #a8ccff;
    border: 1px solid rgba(122, 184, 255, 0.28);
}
.blog-post-article__date {
    color: var(--muted, #9aa8bc);
    font-variant-numeric: tabular-nums;
}
.blog-post-article__body {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    line-height: 1.82;
    font-size: 1.02rem;
    color: rgba(232, 238, 247, 0.96);
}
.blog-post-article__body > :first-child { margin-top: 0; }
.blog-post-article__body > :last-child { margin-bottom: 0; }
.blog-post-article__body p { margin: 0 0 1em; }
.blog-post-article__body h2,
.blog-post-article__body h3 {
    margin: 1.35em 0 0.55em;
    line-height: 1.35;
}
.blog-post-article__body ul,
.blog-post-article__body ol {
    margin: 0 0 1em;
    padding-left: 1.35rem;
}
.blog-post-article__body blockquote {
    margin: 1em 0;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid rgba(122, 184, 255, 0.45);
    background: rgba(122, 184, 255, 0.06);
    border-radius: 0 8px 8px 0;
    color: var(--muted, #b8c4d4);
}
.blog-post-article__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.75em 0; }
.blog-post-article__body a { color: var(--accent, #7ab8ff); }
.blog-post-admin {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.blog-inline-form { display: inline; margin: 0; }
.blog-manage {
    margin-bottom: 1.25rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(122, 184, 255, 0.22);
    border-radius: 12px;
    background: rgba(122, 184, 255, 0.04);
}
.blog-manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.blog-manage-tabs__link {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 184, 255, 0.25);
    color: var(--accent, #7ab8ff);
    text-decoration: none;
    font-size: 0.85rem;
}
.blog-manage-tabs__link.is-active,
.blog-manage-tabs__link:hover {
    background: rgba(122, 184, 255, 0.12);
    border-color: rgba(122, 184, 255, 0.45);
    text-decoration: none;
}
.blog-manage-panel {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-manage-panel:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.blog-manage-panel__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}
.blog-manage-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.blog-manage-inline-form input[type="text"],
.blog-manage-inline-form input[type="number"] {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    padding: 0.45rem 0.6rem;
    font-size: 0.88rem;
}
.blog-manage-inline-form--cat input[type="text"] { min-width: 7rem; flex: 1 1 7rem; }
.blog-manage-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}
.blog-manage-cat-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-manage-cat-item:first-child { border-top: 0; padding-top: 0; }
