/**
 * Moban Theme - 帖子详情页样式
 * 从 dev_thread.php 提取，用于浏览器缓存
 */

    /* ==================== 基础变量 ==================== */
    :root {
        --primary: #4f46e5;
        --primary-dark: #7c3aed;
        --bg-dark: #0f172a;
        --card-bg: #1e1b4b;
        --text-light: #f8fafc;
        --text-muted: #94a3b8;
        --border-radius: 16px;
        --shadow: 0 4px 20px rgba(0,0,0,0.15);
        --shadow-hover: 0 8px 30px rgba(0,0,0,0.25);
    }
    
    /* 隐藏原有导航栏 */
    #header, .navbar, header.navbar, #footer, footer#footer, footer, .footer-nav {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        min-height: 100vh;
    }
    
    /* ==================== 面包屑导航 ==================== */
    .breadcrumb-wrap {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .custom-breadcrumb {
        background: #fff;
        padding: 12px 20px;
        border-radius: 12px;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }
    
    .custom-breadcrumb a {
        color: #64748b;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .custom-breadcrumb a:hover {
        color: var(--primary);
    }
    
    .custom-breadcrumb .current {
        color: #1e293b;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .breadcrumb-separator {
        color: #cbd5e1;
    }
    
    /* ==================== 主内容区 ==================== */
    .moban-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px 40px;
    }
    
    .thread-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
    
    @media (max-width: 991px) {
        .thread-layout {
            grid-template-columns: 1fr;
        }
    }
    
    /* ==================== 主贴卡片 ==================== */
    .main-post-card {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .post-header {
        padding: 24px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .post-title {
        font-size: 22px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .post-meta {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .post-author {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .post-author-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .post-author-info {
        display: flex;
        flex-direction: column;
    }
    
    .post-author-name {
        font-weight: 600;
        color: #1e293b;
        text-decoration: none;
    }
    
    .post-author-name:hover {
        color: var(--primary);
        text-decoration: none;
    }
    
    .post-time {
        font-size: 12px;
        color: #94a3b8;
    }
    
    .post-stats {
        display: flex;
        gap: 16px;
        margin-left: auto;
    }
    
    .post-stat {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #64748b;
    }
    
    .post-actions {
        display: flex;
        gap: 12px;
    }
    
    .post-action-btn {
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s;
        border: none;
        cursor: pointer;
    }
    
    .post-action-btn.edit {
        background: #f1f5f9;
        color: #64748b;
    }
    
    .post-action-btn.edit:hover {
        background: var(--primary);
        color: #fff;
    }
    
    .post-action-btn.delete {
        background: #fef2f2;
        color: #ef4444;
    }
    
    .post-action-btn.delete:hover {
        background: #ef4444;
        color: #fff;
    }
    
    .post-content {
        padding: 24px;
        font-size: 15px;
        line-height: 1.8;
        color: #334155;
    }
    
    .post-content p {
        margin-bottom: 16px;
    }
    
    .post-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        cursor: zoom-in;
        transition: transform 0.3s ease;
        display: block;
        margin: 8px 0;
    }
    
    .post-content img:hover {
        opacity: 0.9;
    }
    
    .post-content pre {
        background: #1e293b;
        color: #e2e8f0;
        padding: 16px;
        border-radius: 8px;
        overflow-x: auto;
    }
    
    .post-content code {
        background: #f1f5f9;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: monospace;
    }
    
    .post-content blockquote {
        border-left: 4px solid var(--primary);
        background: #f8fafc;
        padding: 12px 16px;
        margin: 16px 0;
        border-radius: 0 8px 8px 0;
    }
    
    .post-content blockquote img.avatar-1,
    .reply-content blockquote img.avatar-1 {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        vertical-align: middle;
        margin-right: 6px;
    }
    
    /* ==================== 回复区域 ==================== */
    .replies-section {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .replies-header {
        padding: 20px 24px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .replies-title {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .replies-title i {
        color: var(--primary);
    }
    
    .replies-count {
        background: var(--primary);
        color: #fff;
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 13px;
    }
    
    .reply-item {
        padding: 20px 24px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        gap: 16px;
    }
    
    .reply-item:last-child {
        border-bottom: none;
    }
    
    .reply-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }
    
    .reply-content-wrap {
        flex: 1;
    }
    
    .reply-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .reply-author {
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }
    
    .reply-floor {
        font-size: 12px;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 2px 10px;
        border-radius: 10px;
    }
    
    .reply-time {
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 8px;
    }
    
    .reply-content {
        font-size: 14px;
        line-height: 1.7;
        color: #475569;
    }
    
    .reply-content p {
        margin-bottom: 8px;
    }
    
    .reply-content img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        cursor: zoom-in;
        transition: all 0.3s ease;
        display: inline-block;
        margin: 3px;
        border: 1px solid #e2e8f0;
        vertical-align: top;
    }

    .reply-content img:hover {
        opacity: 0.85;
        transform: scale(1.05);
        border-color: var(--primary);
    }
    }
    
    .reply-actions {
        display: flex;
        gap: 12px;
        margin-top: 12px;
    }
    
    .reply-action {
        font-size: 12px;
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .reply-action:hover {
        color: var(--primary);
        text-decoration: none;
    }

    .reply-item.quote {
        border-left: 3px solid #4f46e5;
        background: rgba(79, 70, 229, 0.04);
    }

    body.dark-mode .reply-item.quote {
        border-left-color: #818cf8;
        background: rgba(129, 140, 248, 0.08);
    }
    /* ==================== 子回复（二级评论） ==================== */
    .sub-replies {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed #e2e8f0;
    }

    .sub-reply-item {
        padding: 8px 12px;
        border-radius: 8px;
        transition: background 0.2s;
        margin-bottom: 4px;
    }

    .sub-reply-item:hover {
        background: #f8fafc;
    }

    .sub-reply-item:last-child {
        margin-bottom: 0;
    }

    .sub-reply-item.animated {
        animation: subReplyFadeIn 0.4s ease;
    }

    @keyframes subReplyFadeIn {
        0% { opacity: 0; transform: translateY(-10px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    body.dark-mode .sub-replies {
        border-top-color: #334155;
    }

    body.dark-mode .sub-reply-item:hover {
        background: #1a2332;
    }

    body.dark-mode .sub-reply-item .small {
        color: #cbd5e1 !important;
    }

    /* 子回复头像 - 与主楼层统一圆形规格 */
    .reply-sub-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }

    body.dark-mode .reply-sub-avatar {
        border-color: #334155;
    }

    /* 子回复中的图片缩略图 */
    .sub-reply-item .small img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        cursor: zoom-in;
        transition: all 0.3s ease;
        display: inline-block;
        margin: 3px;
        border: 1px solid #e2e8f0;
        vertical-align: top;
    }

    .sub-reply-item .small img:hover {
        opacity: 0.85;
        transform: scale(1.05);
        border-color: var(--primary);
    }

    body.dark-mode .sub-reply-item .small img {
        border-color: #334155;
    }

    
    /* ==================== 审核提示 ==================== */
    .check-alert {
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 12px;
        font-size: 13px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .check-alert i {
        margin-right: 4px;
    }
    .check-pending {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fcd34d;
    }
    .check-rejected {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fca5a5;
    }
    .check-recycle {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #d1d5db;
    }
    .check-actions {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }
    .check-btn {
        padding: 4px 12px;
        border-radius: 4px;
        border: none;
        font-size: 12px;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .check-btn:hover { opacity: 0.85; }
    .check-btn-pass { background: #10b981; color: #fff; }
    .check-btn-reject { background: #f59e0b; color: #fff; }
    .check-btn-delete { background: #ef4444; color: #fff; }
    .check-btn-recovery { background: #3b82f6; color: #fff; }
    
    body.dark-mode .check-pending { background: #451a03; color: #fcd34d; border-color: #92400e; }
    body.dark-mode .check-rejected { background: #450a0a; color: #fca5a5; border-color: #991b1b; }
    body.dark-mode .check-recycle { background: #1f2937; color: #d1d5db; border-color: #4b5563; }
    
    /* ==================== 中奖弹窗 ==================== */
    .lottery-win-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lottery-win-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
    }
    .lottery-win-box {
        position: relative;
        background: #fff;
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        max-width: 420px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        animation: lotteryWinPop 0.4s ease;
    }
    @keyframes lotteryWinPop {
        0% { transform: scale(0.8); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }
    .lottery-win-icon {
        font-size: 56px;
        color: #f59e0b;
        margin-bottom: 16px;
    }
    .lottery-win-title {
        font-size: 22px;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 8px;
    }
    .lottery-win-desc {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 20px;
    }
    .lottery-win-code {
        background: #f1f5f9;
        border-radius: 12px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 24px;
        word-break: break-all;
    }
    .lottery-win-code span {
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
        font-family: monospace;
    }
    .lottery-win-copy {
        background: #4f46e5;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .lottery-win-copy:hover {
        background: #4338ca;
        transform: translateY(-1px);
    }
    .lottery-win-close {
        background: #e2e8f0;
        color: #475569;
        border: none;
        padding: 10px 32px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .lottery-win-close:hover {
        background: #cbd5e1;
    }
    body.dark-mode .lottery-win-box {
        background: #1e293b;
    }
    body.dark-mode .lottery-win-title {
        color: #f1f5f9;
    }
    body.dark-mode .lottery-win-desc {
        color: #94a3b8;
    }
    body.dark-mode .lottery-win-code {
        background: #0f172a;
    }
    body.dark-mode .lottery-win-code span {
        color: #f1f5f9;
    }
    
    /* ==================== 快速回复 ==================== */
    .quick-reply {
        padding: 24px;
        border-top: 1px solid #f1f5f9;
        background: #f8fafc;
    }
    
    .quick-reply-title {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 12px;
    }
    
    .quick-reply textarea {
        width: 100%;
        min-height: 100px;
        padding: 12px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 14px;
        resize: vertical;
        transition: all 0.3s;
    }
    
    .quick-reply textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }
    
    .quick-reply-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }
    
    .submit-reply-btn {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        border: none;
        padding: 10px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .submit-reply-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    }
    
    .advanced-reply {
        color: #64748b;
        font-size: 13px;
        text-decoration: none;
    }
    
    .advanced-reply:hover {
        color: var(--primary);
    }

    .quick-reply-upload-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #64748b;
        font-size: 13px;
        cursor: pointer;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px dashed #cbd5e1;
        transition: all 0.3s;
    }
    .quick-reply-upload-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: rgba(79, 70, 229, 0.05);
    }
    .quick-reply-upload-btn.uploading {
        color: #f59e0b;
        border-color: #f59e0b;
        pointer-events: none;
    }

    .login-to-reply {
        text-align: center;
        padding: 30px;
        color: #64748b;
    }
    
    .login-to-reply a {
        color: var(--primary);
        text-decoration: none;
    }
    
    /* ==================== 分页 ==================== */
    .pagination-wrap {
        display: flex;
        justify-content: center;
        padding: 20px;
        border-top: 1px solid #f1f5f9;
    }
    
    .pagination,
    nav > .page-item {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .pagination li,
    nav > .page-item {
        list-style: none;
        display: inline-flex;
    }
    
    .pagination a, .pagination span,
    .page-link {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s;
        display: inline-block;
    }
    
    .pagination a,
    .page-link {
        background: #f1f5f9;
        color: #64748b;
    }
    
    .pagination a:hover,
    .page-link:hover {
        background: var(--primary);
        color: #fff;
        text-decoration: none;
    }
    
    .pagination .active span,
    .page-item.active .page-link {
        background: var(--primary);
        color: #fff;
    }
    
    .pagination .disabled span,
    .page-item.disabled .page-link {
        background: #f1f5f9;
        color: #cbd5e1;
    }
    
    /* ==================== 侧边栏 ==================== */
    .sidebar-section {
        margin-bottom: 24px;
    }
    
    .sidebar-card {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .sidebar-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        padding: 16px 20px;
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .sidebar-body {
        padding: 16px;
    }
    
    .reply-btn {
        display: block;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s;
        margin-bottom: 20px;
    }
    
    .reply-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
        color: #fff;
        text-decoration: none;
    }
    
    .author-card {
        text-align: center;
        padding: 20px;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin-bottom: 12px;
    }
    
    .author-name {
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
    }
    
    .author-stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }
    
    .author-stat {
        text-align: center;
    }
    
    .author-stat-number {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
    }
    
    .author-stat-label {
        font-size: 11px;
        color: #94a3b8;
    }
    
    .forum-nav-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 10px;
        text-decoration: none;
        color: #475569;
        transition: all 0.3s;
        margin-bottom: 4px;
    }
    
    .forum-nav-item:hover {
        background: #f1f5f9;
        color: var(--primary);
        text-decoration: none;
    }
    
    .forum-nav-item.active {
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
        color: var(--primary);
        font-weight: 600;
    }
    
    .forum-nav-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-right: 12px;
        object-fit: cover;
    }
    
    .forum-nav-name {
        flex: 1;
    }
    
    /* ==================== 页脚 ==================== */
    .moban-footer {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
        color: rgba(255, 255, 255, 0.8);
        padding: 50px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 10px;
    }
    
    .footer-brand i {
        color: #a78bfa;
    }
    
    .footer-desc {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        margin: 0;
    }
    
    .footer-links {
        display: flex;
        gap: 30px;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .footer-links a:hover {
        color: #fff;
    }
    
    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }
    
    /* ==================== 响应式 ==================== */
    @media (max-width: 767px) {
        .post-header {
            padding: 16px;
        }
        
        .post-title {
            font-size: 18px;
        }
        
        .post-stats {
            display: none;
        }
        
        .reply-item {
            padding: 16px;
        }
        
        .reply-avatar {
            width: 40px;
            height: 40px;
        }
    }
    
    /* ==================== 暗黑模式 ==================== */
    body.dark-mode {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    body.dark-mode .custom-breadcrumb,
    body.dark-mode .main-post-card,
    body.dark-mode .replies-section,
    body.dark-mode .sidebar-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    body.dark-mode .custom-breadcrumb a {
        color: #94a3b8;
    }
    
    body.dark-mode .custom-breadcrumb .current {
        color: #f1f5f9;
    }
    
    body.dark-mode .breadcrumb-separator {
        color: #64748b;
    }
    
    body.dark-mode .post-title,
    body.dark-mode .replies-title,
    body.dark-mode .author-name {
        color: #f1f5f9;
    }
    
    body.dark-mode .post-content,
    body.dark-mode .reply-content {
        color: #cbd5e1;
    }
    
    body.dark-mode .quick-reply {
        background: #334155;
        border-color: #475569;
    }
    
    body.dark-mode .quick-reply textarea {
        background: #1e293b;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    body.dark-mode .lottery-card {
        background: linear-gradient(135deg, #451a03 0%, #78350f 100%) !important;
        border-color: #f59e0b !important;
    }
    body.dark-mode .lottery-card div,
    body.dark-mode .lottery-card span {
        color: #fcd34d !important;
    }
    
    body.dark-mode .reply-item,
    body.dark-mode .post-header,
    body.dark-mode .replies-header {
        border-color: #334155;
    }
    
    body.dark-mode .moban-footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    body.dark-mode .post-content img,
    body.dark-mode .reply-content img {
        border-color: #334155;
        border-radius: 8px;
    }
    
    /* ==================== 帖子打赏区域 ==================== */
    .reward-section {
        margin: 0 24px 24px;
        padding: 24px;
        background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        text-align: center;
    }
    .reward-title {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 20px;
    }
    .reward-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        margin-bottom: 20px;
    }
    .reward-btn {
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }
    .reward-btn:hover {
        transform: translateY(-4px);
    }
    .reward-btn-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin: 0 auto 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        transition: all 0.3s ease;
    }
    .reward-btn-gold .reward-btn-icon {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #fff;
    }
    .reward-btn-mmb .reward-btn-icon {
        background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
        color: #fff;
    }
    .reward-btn-label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }
    .reward-stats {
        display: flex;
        justify-content: center;
        gap: 0;
        margin-bottom: 20px;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 16px 0;
    }
    .reward-stat-item {
        flex: 1;
        text-align: center;
        border-right: 1px solid #cbd5e1;
    }
    .reward-stat-item:last-child {
        border-right: none;
    }
    .reward-stat-number {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 4px;
    }
    .reward-stat-number.gold { color: #f59e0b; }
    .reward-stat-number.mmb { color: #ec4899; }
    .reward-stat-number.count { color: #4f46e5; }
    .reward-stat-label {
        font-size: 12px;
        color: #64748b;
    }
    .reward-records {
        text-align: left;
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
    }
    .reward-records-title {
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 12px;
    }
    .reward-record-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .reward-record-item:last-child {
        border-bottom: none;
    }
    .reward-record-user {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .reward-record-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
    }
    .reward-record-name {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
    }
    .reward-record-time {
        font-size: 12px;
        color: #94a3b8;
    }
    .reward-record-amount {
        font-size: 14px;
        font-weight: 700;
    }
    .reward-record-amount.gold { color: #f59e0b; }
    .reward-record-amount.mmb { color: #ec4899; }
    /* 打赏弹窗 */
    .reward-amount-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-bottom: 16px;
    }
    .reward-amount-option {
        padding: 8px 20px;
        border-radius: 20px;
        border: 2px solid #e2e8f0;
        background: #fff;
        color: #475569;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .reward-amount-option:hover,
    .reward-amount-option.active {
        border-color: #4f46e5;
        color: #4f46e5;
        background: rgba(79,70,229,0.05);
    }
    .reward-custom-input {
        max-width: 200px;
        margin: 0 auto;
    }
    /* 暗黑模式 */
    body.dark-mode .reward-section {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #334155;
    }
    body.dark-mode .reward-title {
        color: #f1f5f9;
    }
    body.dark-mode .reward-btn-label {
        color: #cbd5e1;
    }
    body.dark-mode .reward-stats {
        background: #0f172a;
    }
    body.dark-mode .reward-stat-item {
        border-color: #334155;
    }
    body.dark-mode .reward-stat-label {
        color: #94a3b8;
    }
    body.dark-mode .reward-records {
        border-color: #334155;
    }
    body.dark-mode .reward-records-title {
        color: #f1f5f9;
    }
    body.dark-mode .reward-record-item {
        border-color: #334155;
    }
    body.dark-mode .reward-record-name {
        color: #f1f5f9;
    }
    body.dark-mode .reward-amount-option {
        background: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }
    body.dark-mode .reward-amount-option:hover,
    body.dark-mode .reward-amount-option.active {
        border-color: #818cf8;
        color: #818cf8;
        background: rgba(129,140,248,0.1);
    }

/* 图片放大弹窗样式 */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.image-zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.image-zoom-container img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-zoom-close i {
    font-size: 18px;
}
