/* /Components/Common/CommentSection.razor.rz.scp.css */
/* 样式已迁移到 wwwroot/css/comments.css（全局加载）
   以避免 Blazor CSS 隔离在递归子组件中失效 */
/* /Components/Common/ConfirmDialog.razor.rz.scp.css */
.cd-backdrop[b-gwdd7kji11] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    animation: cd-fade-in-b-gwdd7kji11 0.15s ease;
}

.cd-wrapper[b-gwdd7kji11] {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cd-panel[b-gwdd7kji11] {
    pointer-events: auto;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.75rem 2rem;
    max-width: 340px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: cd-pop-in-b-gwdd7kji11 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cd-icon[b-gwdd7kji11] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

[data-bs-theme="dark"] .cd-icon[b-gwdd7kji11] {
    background: rgba(220, 53, 69, 0.22);
}

.cd-message[b-gwdd7kji11] {
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.cd-actions[b-gwdd7kji11] {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
}

[b-gwdd7kji11] .cd-actions .btn {
    min-width: 80px;
    flex: 1;
}

[data-bs-theme="dark"] .cd-panel[b-gwdd7kji11] {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes cd-fade-in-b-gwdd7kji11 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cd-pop-in-b-gwdd7kji11 {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
/* /Components/Common/DiaryTimeline.razor.rz.scp.css */
/* ── 外层遮罩包装器：固定覆盖视口，flex 居中 ─────────────────────────── */
.timeline-modal-wrapper[b-7nttzd0387] {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── 半透明遮罩背景 ──────────────────────────────────────────────────── */
.timeline-modal-wrapper .modal-backdrop-custom[b-7nttzd0387] {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* ── Bootstrap .modal 容器：覆盖其默认 fixed 定位，改为相对 wrapper flex ── */
.timeline-modal-wrapper[b-7nttzd0387]  .modal {
    position: relative !important;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}

/* ── 弹窗对话框：核心修复 ───────────────────────────────────────────── */
.timeline-modal-wrapper[b-7nttzd0387]  .timeline-modal-dialog {
    pointer-events: auto;
    margin: 0;
    width: 90%;
    max-width: 640px;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .timeline-modal-wrapper[b-7nttzd0387]  .timeline-modal-dialog {
        width: 55%;
        max-width: 680px;
    }
}

@media (max-width: 575px) {
    .timeline-modal-wrapper[b-7nttzd0387]  .timeline-modal-dialog {
        width: 95%;
        margin: 0.5rem;
    }
}

/* ── 模态内容框 ─────────────────────────────────────────────────────── */
.timeline-modal-wrapper[b-7nttzd0387]  .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .timeline-modal-wrapper[b-7nttzd0387]  .modal-content {
    background-color: #212529;
    color: #f8f9fa;
}

/* ── modal-body 可滚动区域 ──────────────────────────────────────────── */
.timeline-modal-wrapper[b-7nttzd0387]  .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

/* ── 时间线容器（竖线） ─────────────────────────────────────────────── */
.timeline-container[b-7nttzd0387] {
    position: relative;
    padding-left: 44px;
    min-height: 100px;
}

    .timeline-container[b-7nttzd0387]::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 16px;
        bottom: 16px;
        width: 2px;
        background: linear-gradient(to bottom, #0d6efd, #6c757d);
        border-radius: 2px;
    }

/* ── 时间线条目 ─────────────────────────────────────────────────────── */
.timeline-item[b-7nttzd0387] {
    position: relative;
    padding-bottom: 20px;
    animation: timeline-fade-in-b-7nttzd0387 0.25s ease both;
}

    .timeline-item:last-child[b-7nttzd0387] {
        padding-bottom: 0;
    }

/* ── 时间线圆点 marker ──────────────────────────────────────────────── */
.timeline-marker[b-7nttzd0387] {
    position: absolute;
    left: -44px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

    .timeline-marker i[b-7nttzd0387] {
        font-size: 14px;
    }

/* ── 时间线内容卡片 ──────────────────────────────────────────────────── */
.timeline-content[b-7nttzd0387] {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .timeline-content[b-7nttzd0387] {
    background: #2d3238;
}

.timeline-content:hover[b-7nttzd0387] {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-header[b-7nttzd0387] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-body[b-7nttzd0387] {
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ── 统计卡片 ────────────────────────────────────────────────────────── */
.timeline-stats[b-7nttzd0387] {
    border-radius: 12px;
}

[data-bs-theme="dark"] .timeline-stats[b-7nttzd0387] {
    background-color: #2d3238 !important;
}

.stat-item[b-7nttzd0387] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value[b-7nttzd0387] {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

[data-bs-theme="dark"] .stat-value[b-7nttzd0387] {
    color: #f8f9fa;
}

.stat-label[b-7nttzd0387] {
    font-size: 0.78rem;
    color: #6c757d;
}

/* ── 入场动画 ────────────────────────────────────────────────────────── */
@keyframes timeline-fade-in-b-7nttzd0387 {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* /Components/Common/DraftSaveDialog.razor.rz.scp.css */
.dsd-backdrop[b-ldccpmk8q8] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    animation: dsd-fade-in-b-ldccpmk8q8 0.15s ease;
}

.dsd-wrapper[b-ldccpmk8q8] {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dsd-panel[b-ldccpmk8q8] {
    pointer-events: auto;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.75rem 2rem;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: dsd-pop-in-b-ldccpmk8q8 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dsd-icon[b-ldccpmk8q8] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

[data-bs-theme="dark"] .dsd-icon[b-ldccpmk8q8] {
    background: rgba(13, 110, 253, 0.22);
}

.dsd-message[b-ldccpmk8q8] {
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.dsd-actions[b-ldccpmk8q8] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
}

[b-ldccpmk8q8] .dsd-actions .btn {
    min-width: 100px;
}

[data-bs-theme="dark"] .dsd-panel[b-ldccpmk8q8] {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes dsd-fade-in-b-ldccpmk8q8 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes dsd-pop-in-b-ldccpmk8q8 {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
/* /Components/Common/InlineCommentDrawer.razor.rz.scp.css */
.inline-comment-drawer[b-dp7n2qup1v] {
    width: min(460px, 92vw);
    z-index: 1056;
}

.selected-fragment[b-dp7n2qup1v] {
    background: #fff5e8;
    border: 1px dashed #fb8500;
    border-radius: 8px;
    padding: 0.75rem;
}

.selected-fragment-title[b-dp7n2qup1v] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a5d00;
    margin-bottom: 0.35rem;
}

[b-dp7n2qup1v] .selected-fragment blockquote {
    margin: 0;
    border-left: 3px solid #fb8500;
    padding-left: 0.6rem;
    color: #6c4a00;
}

.comment-card[b-dp7n2qup1v] {
    background: #f8f9fa;
    border: 1px solid #eceff1;
    border-radius: 10px;
    padding: 0.75rem;
}

.comment-content[b-dp7n2qup1v] {
    white-space: pre-wrap;
    line-height: 1.55;
}

[data-bs-theme="dark"] .selected-fragment[b-dp7n2qup1v] {
    background: rgba(255, 209, 102, 0.14);
    border-color: #ffd166;
}

[data-bs-theme="dark"] .selected-fragment-title[b-dp7n2qup1v],
[data-bs-theme="dark"][b-dp7n2qup1v]  .selected-fragment blockquote {
    color: #ffe7a3;
}

[data-bs-theme="dark"] .comment-card[b-dp7n2qup1v] {
    background: #2b3137;
    border-color: #3a424b;
}
/* /Components/Common/Loading.razor.rz.scp.css */
.loading-container[b-os65h6sb4j] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 2rem;
}
/* /Components/Common/MarkdownToolbar.razor.rz.scp.css */
[data-bs-theme="dark"][b-u78fk4vpn1]  .markdown-toolbar {
    background-color: #2b3035 !important;
}
/* /Components/Common/ToastContainer.razor.rz.scp.css */
.toast-slide-in[b-vigeex79m7] {
    animation: slideInRight-b-vigeex79m7 0.3s ease-out forwards;
}

.toast-slide-out[b-vigeex79m7] {
    animation: slideOutRight-b-vigeex79m7 0.3s ease-in forwards;
}

@keyframes slideInRight-b-vigeex79m7 {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight-b-vigeex79m7 {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

[b-vigeex79m7] .toast {
    min-width: 300px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[b-vigeex79m7] .toast:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

[b-vigeex79m7] .toast-body {
    padding: 0.75rem 1rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"][b-vigeex79m7]  .toast {
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"][b-vigeex79m7]  .bg-warning {
    color: #000 !important;
}

[data-bs-theme="dark"][b-vigeex79m7]  .bg-warning .btn-close {
    filter: invert(1);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
html[b-f84pt5aw8a], body[b-f84pt5aw8a] {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.page[b-f84pt5aw8a] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main[b-f84pt5aw8a] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* 重要：允许 flex 子元素收缩 */
}

.sidebar[b-f84pt5aw8a] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-f84pt5aw8a] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .top-row[b-f84pt5aw8a]  a, .top-row[b-f84pt5aw8a]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-f84pt5aw8a]  a:hover, .top-row[b-f84pt5aw8a]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-f84pt5aw8a]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.content[b-f84pt5aw8a] {
    flex: 1;
    overflow: auto;
    position: relative;
    padding: 1rem 1.5rem 1rem 2rem;
    min-height: 0; /* 重要：允许 flex 子元素收缩 */
}

@media (max-width: 640.98px) {
    .top-row[b-f84pt5aw8a] {
        justify-content: space-between;
    }

        .top-row[b-f84pt5aw8a]  a, .top-row[b-f84pt5aw8a]  .btn-link {
            margin-left: 0;
        }
    
    .content[b-f84pt5aw8a] {
        padding: 1rem;
    }
}

@media (min-width: 641px) {
    .page[b-f84pt5aw8a] {
        flex-direction: row;
    }

    .sidebar[b-f84pt5aw8a] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    main[b-f84pt5aw8a] {
        flex: 1;
        height: 100vh;
        min-width: 0; /* 防止内容溢出 */
    }

    .top-row[b-f84pt5aw8a] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-f84pt5aw8a]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }
}

#blazor-error-ui[b-f84pt5aw8a] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-f84pt5aw8a] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* 1. 移动端菜单切换按钮 (仅移动端) */
.navbar-toggler[b-53joqvj47n] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked[b-53joqvj47n] {
        background-color: rgba(255, 255, 255, 0.5);
    }

/* 2. 顶部品牌区域样式 */
.top-row[b-53joqvj47n] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center; /* 品牌垂直居中 */
}

.navbar-brand[b-53joqvj47n] {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

/* 3. 导航链接的核心样式 (重写优化) */
.nav-item[b-53joqvj47n] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-53joqvj47n] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-53joqvj47n] {
        padding-bottom: 1rem;
    }

    /* 导航链接：强制使用 Flexbox 布局，移除 line-height 干扰 */
    .nav-item[b-53joqvj47n]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3.5rem; /* 增加高度，便于点击 */
        display: flex !important; /* 强制 Flex */
        align-items: center !important; /* 强制垂直居中 */
        padding: 0 1rem;
        width: 100%;
        transition: all 0.2s;
    }

        /* 悬停与激活状态 */
        .nav-item[b-53joqvj47n]  .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .nav-item[b-53joqvj47n]  .nav-link.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

/* 4. 导航菜单滚动区 (仅移动端) */
.nav-scrollable[b-53joqvj47n] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-53joqvj47n] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-53joqvj47n] {
        display: none;
    }

    .nav-scrollable[b-53joqvj47n] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ==========================================
   5. 图标与文字的对齐辅助类 (在 Razor 使用)
   ========================================== */

/* 图标盒子：固定宽度，确保所有图标占位一致 */
.icon-box[b-53joqvj47n] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem; /* 固定宽度 */
    height: 1.5rem; /* 固定高度 */
    margin-right: 0.75rem;
    font-size: 1.25rem; /* 图标大小 */
}

/* 文字区域：基线微调对齐 */
.nav-text[b-53joqvj47n] {
    line-height: 1; /* 避免行高干扰 */
    position: relative;
    top: 1px; /* 关键：微调向下移，视觉更平衡（需要可调整为 1px） */
}
/* /Components/Pages/Admin/UserManagement.razor.rz.scp.css */
/* ── 卡片基础 ─────────────────────────────────────────────── */
.adaptive-card[b-vbfqwu9qur] {
    background-color: var(--bs-card-bg, #fff);
}

[data-bs-theme="dark"] .adaptive-card[b-vbfqwu9qur] {
    background-color: #212529;
    color: #f8f9fa;
}

/* ── 表格 ─────────────────────────────────────────────────── */
.adaptive-table[b-vbfqwu9qur] {
    color: inherit;
}

.adaptive-table thead th[b-vbfqwu9qur] {
    background-color: transparent;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    color: inherit;
    font-weight: 600;
}

.adaptive-table td[b-vbfqwu9qur] {
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    color: inherit;
}

/* ── 图标按钮 ─────────────────────────────────────────────── */
.btn-icon[b-vbfqwu9qur] {
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-icon:hover[b-vbfqwu9qur] {
    background-color: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.2);
}

/* ── 模态框 ───────────────────────────────────────────────── */
[data-bs-theme="dark"] .adaptive-modal[b-vbfqwu9qur] {
    background-color: #2b3035;
    color: #f8f9fa;
}

/* ── 表单输入 ─────────────────────────────────────────────── */
[data-bs-theme="dark"] .adaptive-input[b-vbfqwu9qur],
[data-bs-theme="dark"] .adaptive-input:focus[b-vbfqwu9qur] {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .adaptive-plaintext[b-vbfqwu9qur] {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .adaptive-close[b-vbfqwu9qur] {
    filter: invert(1) grayscale(100%) brightness(200%);
}
/* /Components/Pages/Anonymous/Login.razor.rz.scp.css */
.captcha-image-container[b-4f38hess83] {
    min-width: 150px;
    height: 50px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.captcha-image[b-4f38hess83] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.captcha-loading[b-4f38hess83] {
    color: #6c757d;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .captcha-image-container[b-4f38hess83] {
    border-color: #495057;
    background-color: #343a40;
}
/* /Components/Pages/Anonymous/Register.razor.rz.scp.css */
/* 注册页面布局样式已移至 wwwroot/css/shared.css */
/* /Components/Pages/Authenticated/DiaryDetail.razor.rz.scp.css */
/* Image bottom gradient overlay */
.bg-gradient-fade[b-p5o8r4n5c2] {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
}

/* Diary detail card */
.diary-detail-card[b-p5o8r4n5c2] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-detail-card[b-p5o8r4n5c2] {
    background-color: #212529;
    color: #f8f9fa;
}

/* Header area */
[b-p5o8r4n5c2] .diary-header h1 {
    color: #212529;
}

[data-bs-theme="dark"][b-p5o8r4n5c2]  .diary-header h1 {
    color: #f8f9fa;
}

.diary-header[b-p5o8r4n5c2] {
    border-bottom-color: rgba(128, 128, 128, 0.2) !important;
}

[data-bs-theme="dark"] .diary-header[b-p5o8r4n5c2] {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer toolbar */
.diary-footer[b-p5o8r4n5c2] {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-footer[b-p5o8r4n5c2] {
    background-color: #1a1d20;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

/* Content body */
.diary-content[b-p5o8r4n5c2] {
    color: #6c757d;
}

[data-bs-theme="dark"] .diary-content[b-p5o8r4n5c2] {
    color: #adb5bd;
}

/* Timeline button */
.btn-timeline[b-p5o8r4n5c2] {
    border-radius: 20px;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.btn-timeline:hover[b-p5o8r4n5c2] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

/* Tag badges */
.detail-tag-badge[b-p5o8r4n5c2] {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .detail-tag-badge[b-p5o8r4n5c2] {
    background-color: #343a40;
    color: #adb5bd;
}
/* /Components/Pages/Authenticated/EditDiary.razor.rz.scp.css */
.preview-container[b-glxqry7v2h] {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .preview-container[b-glxqry7v2h] {
    background-color: #212529;
    border-color: #495057 !important;
}

[data-bs-theme="dark"][b-glxqry7v2h]  .preview-container .text-muted {
    color: #adb5bd !important;
}

[b-glxqry7v2h] .btn-group .btn {
    transition: all 0.2s ease;
}

.autosave-status[b-glxqry7v2h] {
    transition: opacity 0.4s ease;
    font-size: 0.82rem;
}

.autosave-status.fade-out[b-glxqry7v2h] {
    opacity: 0;
}

.tag-badge[b-glxqry7v2h] {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 3px 10px;
    transition: all 0.2s ease;
}
/* /Components/Pages/Authenticated/Home.razor.rz.scp.css */
.hover-shadow:hover[b-xvvfay59ag] {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.transition-card[b-xvvfay59ag] {
    transition: all 0.3s ease;
}

.object-fit-cover[b-xvvfay59ag] {
    object-fit: cover;
}

.search-box[b-xvvfay59ag] {
    margin-bottom: 1rem;
}

[b-xvvfay59ag] .search-box .input-group-text {
    background-color: white;
    border-right: none;
}

[b-xvvfay59ag] .search-box .form-control {
    border-left: none;
}

[b-xvvfay59ag] .search-box .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

[data-bs-theme="dark"][b-xvvfay59ag]  .search-box .input-group-text {
    background-color: #212529;
    border-color: #495057;
    color: #adb5bd;
}

[data-bs-theme="dark"][b-xvvfay59ag]  .search-box .form-control {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

/* Diary card dark mode */
.diary-card[b-xvvfay59ag] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-card[b-xvvfay59ag] {
    background-color: #212529;
    color: #f8f9fa;
}

/* Placeholder image background */
.diary-placeholder[b-xvvfay59ag] {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-placeholder[b-xvvfay59ag] {
    background-color: #343a40;
}

/* Card footer */
.diary-card-footer[b-xvvfay59ag] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-card-footer[b-xvvfay59ag] {
    background-color: #1a1d20;
}

/* Card title */
[b-xvvfay59ag] .diary-card .card-title {
    color: #212529;
}

[data-bs-theme="dark"][b-xvvfay59ag]  .diary-card .card-title {
    color: #f8f9fa;
}

/* Card text */
[data-bs-theme="dark"][b-xvvfay59ag]  .diary-card .card-text {
    color: #adb5bd;
}

/* Tag badges */
.diary-tag-badge[b-xvvfay59ag] {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    font-size: 0.72rem;
}

[data-bs-theme="dark"] .diary-tag-badge[b-xvvfay59ag] {
    background-color: #343a40;
    color: #adb5bd;
}

.tag-filter-badge[b-xvvfay59ag] {
    font-size: 0.8rem;
    border-radius: 20px;
}
/* /Components/Pages/Authenticated/Search.razor.rz.scp.css */
.search-card[b-5rlpfb7brt] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .search-card[b-5rlpfb7brt] {
    background-color: #212529;
}

.hover-shadow:hover[b-5rlpfb7brt] {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.transition-card[b-5rlpfb7brt] {
    transition: all 0.3s ease;
}

.object-fit-cover[b-5rlpfb7brt] {
    object-fit: cover;
}

.diary-card[b-5rlpfb7brt] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-card[b-5rlpfb7brt] {
    background-color: #212529;
    color: #f8f9fa;
}

.diary-placeholder[b-5rlpfb7brt] {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-placeholder[b-5rlpfb7brt] {
    background-color: #343a40;
}

.diary-card-footer[b-5rlpfb7brt] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .diary-card-footer[b-5rlpfb7brt] {
    background-color: #1a1d20;
}

[b-5rlpfb7brt] .diary-card .card-title {
    color: #212529;
}

[data-bs-theme="dark"][b-5rlpfb7brt]  .diary-card .card-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"][b-5rlpfb7brt]  .diary-card .card-text {
    color: #adb5bd;
}

[data-bs-theme="dark"][b-5rlpfb7brt]  .form-control,
[data-bs-theme="dark"][b-5rlpfb7brt]  .input-group-text {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

.search-tag-badge[b-5rlpfb7brt] {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    font-size: 0.72rem;
}

[data-bs-theme="dark"] .search-tag-badge[b-5rlpfb7brt] {
    background-color: #343a40;
    color: #adb5bd;
}
/* /Components/Pages/Authenticated/Stats.razor.rz.scp.css */
.stats-card[b-7oniauityi] {
    background-color: #fff;
    transition: background-color 0.3s;
}

[data-bs-theme="dark"] .stats-card[b-7oniauityi] {
    background-color: #212529;
    color: #f8f9fa;
}

.stats-value[b-7oniauityi] {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.stats-label[b-7oniauityi] {
    margin-top: 0.25rem;
}
/* /Components/Shared/Markdown.razor.rz.scp.css */
.markdown-content[b-gblzct3que] {
    line-height: 1.6;
}

[b-gblzct3que] .markdown-content h1,
[b-gblzct3que] .markdown-content h2,
[b-gblzct3que] .markdown-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

[b-gblzct3que] .markdown-content p {
    margin-bottom: 1rem;
}

[b-gblzct3que] .markdown-content img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 0.375rem;
    margin: 1rem auto;
    cursor: zoom-in;
    display: block;
}

[b-gblzct3que] .markdown-content ul,
[b-gblzct3que] .markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

[b-gblzct3que] .markdown-content blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
}

[b-gblzct3que] .markdown-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 1rem 0;
}

[b-gblzct3que] .markdown-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
}

/* 划线评论高亮样式已迁移至 wwwroot/css/comments.css（JS 动态注入元素不受 CSS isolation 作用域保护）*/
