/* 回复区角色标识文本：移除动画与渐变，提升滚动性能 */
.auto-gradient-text {
    display: inline-block;
    color: #4a90e2;
    font-size: 16px;
    font-weight: 600;
    position: relative;
}

.disclaimer {
    color: #4b5563;
    text-align: left;
    padding: 18px 20px;
    margin: 16px 0 24px;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* 全局样式优化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 70px 20% 0 20%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* 图片样式优化 */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/*.post-content img:hover {*/
/*    transform: scale(1.02);*/
/*    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);*/
/*}*/

.disclaimer h2 {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    letter-spacing: 0;
    text-align: left;
    font-weight: 600;
}

.disclaimer p {
    letter-spacing: 0.4px;
    line-height: 1.8;
    text-indent: 2em;
    margin: 0;
}

.replies {
    width: 100%;
    margin: 0 auto 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* 回复区完全禁用动画与过渡，避免动态效果影响滚动性能 */
.replies * {
    animation: none !important;
    transition: none !important;
}

.replies::before {
    content: none;
}

.reply {
    position: relative;
    margin-bottom: 0;
    padding: 16px;
    border-bottom: 3px solid #fdf6f6;
    background: #ffffff;
}

.reply:last-child {
    border-bottom: none;
}

.reply:first-child {
    padding-top: 16px;
}

.reply span {
    padding-right: 10px;
    font-size: 13px;
    color: #666;
}

/* 楼层显示区域 */
.reply .floor-number {
    position: absolute;
    top: 5px;
    right: 20px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-width: 34px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* 回复内容区域 */
.reply-content {
    padding: 0;
}

.reply-content p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: #2c3e50;
    word-break: break-word;
    text-align: justify;
}

.reply-content p:last-child {
    margin-bottom: 0;
}

.reply button {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
}

.reply-form {
    margin: 0 auto 20px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* 回复输入区完全禁用动画与过渡，避免输入/悬停导致的卡顿 */
.reply-form * {
    animation: none !important;
    transition: none !important;
}

.reply-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    position: relative;
}

.reply-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

/* 精简的快速回复下拉框样式 */
.reply-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #2c3e50;
    background: #ffffff;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.reply-form select:focus {
    border-color: #4a90e2;
    outline: none;
    background: #ffffff;
}

/* 下拉框选项样式 */
.reply-form select option {
    padding: 10px 16px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 14px;
}

.reply-form select option:first-child {
    color: #8899a6;
    font-style: italic;
}

/* 简洁的标签样式 */
.reply-form label[for="reply-options"] {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.reply-form label[for="reply-options"]::before {
    content: '⚡';
    margin-right: 6px;
    font-size: 16px;
    color: #667eea;
}

.reply-form textarea {
    width: 90%;
    height: 120px;
    resize: vertical;
    margin-bottom: 20px;
    padding: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.reply-form textarea:focus {
    border-color: #667eea;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.reply-form textarea::placeholder {
    color: #8899a6;
    font-style: italic;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 8px;
}

/* 按钮组容器 */
.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    width: fit-content;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .button-group,
    .action-buttons {
        justify-content: center;
    }

    .cancel-btn,
    .submit-btn {
        min-width: 120px;
    }

    /* 移动端下拉框优化 */
    .reply-form select {
        padding: 14px 16px;
        font-size: 16px; /* 避免移动端缩放 */
        border-radius: 10px;
    }

    .reply-form label[for="reply-options"] {
        font-size: 14px;
    }
}

/* 取消按钮样式 - 精致简洁设计 */
.cancel-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 80px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cancel-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}

.cancel-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cancel-btn i {
    font-size: 14px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.cancel-btn:hover i {
    transform: scale(1.1);
}

/* 发表回复按钮样式 - 精致简洁设计 */
.submit-btn {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 1px 3px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submit-btn:disabled:hover {
    background: #9ca3af;
    border-color: #9ca3af;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submit-btn i {
    font-size: 14px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.submit-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.submit-btn:disabled i {
    transform: none;
}

/* 表情选择器样式 */
.emoji-selector {
    position: relative;
    margin-bottom: 16px;
}

.emoji-selector .button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 4px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    width: fit-content;
}

/* 表情按钮样式 - 精致简洁设计 */
.emoji-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    min-width: 80px;
    height: 36px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.emoji-toggle-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.emoji-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}

.emoji-toggle-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.emoji-toggle-btn:hover i {
    transform: scale(1.1);
}

.emoji-toggle-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.emoji-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: 1000;
    width: 340px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    animation: emojiPanelSlideIn 0.3s ease-out;
}

@keyframes emojiPanelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 16px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    background: transparent;
}

.emoji-item:hover {
    background: linear-gradient(135deg, #eab166 0%, #cf634a 100%);
}

.emoji-item:active {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.emoji-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.emoji-item:hover::before {
    opacity: 1;
}

/* 现代化滚动条样式 */
.emoji-panel::-webkit-scrollbar {
    width: 8px;
}

.emoji-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.emoji-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
}

.emoji-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.1);
}

.emoji-panel::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4c63d2 0%, #5d3a7d 100%);
}

/* 为Firefox添加现代滚动条样式 */
.emoji-panel {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(0, 0, 0, 0.05);
}

.post-vote-section-wrapper {
    margin: 12px 0 0;
}

.post-vote-section {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 100%);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.post-vote-section-voted {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

.post-vote-section-expired {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: rgba(156, 163, 175, 0.5);
}

.post-vote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.post-vote-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.post-vote-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #4c1d95;
    background: rgba(221, 214, 254, 0.9);
}

.post-vote-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.vote-option:hover {
    border-color: #6366f1;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12);
}

.vote-option-radio {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
}

.vote-option-text {
    font-size: 14px;
    color: #111827;
    overflow-wrap: anywhere;
}

.vote-option-stat {
    margin-left: auto;
    font-size: 12px;
    color: #6b7280;
}

.post-vote-section-voted .vote-option {
    cursor: default;
}

.vote-option-selected {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: #16a34a;
    color: #ffffff;
}

.vote-option-selected .vote-option-text {
    color: #ffffff;
}

.vote-option-selected .vote-option-stat {
    color: #ecfdf5;
}

.post-vote-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.post-vote-status-text {
    font-size: 12px;
    color: #6b7280;
}

.vote-submit-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: all 0.18s ease;
}

.vote-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.vote-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.vote-submit-btn:disabled,
.vote-submit-btn.vote-submit-btn-disabled {
    background: #9ca3af;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .post-vote-section {
        padding: 10px 12px;
    }

    .post-vote-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-submit-btn {
        width: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reply-form {
        padding: 16px;
        margin: 0 10px 20px;
        border-radius: 8px;
    }

    .emoji-panel {
        width: 280px;
        max-height: 180px;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        padding: 12px;
    }

    .emoji-item {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emoji-panel {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }

    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 添加微妙的动画效果 */
.reply-form {
    animation: formSlideIn 0.5s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 增强焦点可访问性 */
.submit-btn:focus,
.cancel-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.reply-form textarea:focus {
    outline: none;
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .reply-form {
        background-color: #2c3e50;
        border-color: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
    }

    .reply-form h3 {
        color: #ecf0f1;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .reply-form textarea {
        background-color: #34495e;
        border-color: rgba(255, 255, 255, 0.2);
        color: #ecf0f1;
    }

    .reply-form textarea:focus {
        background-color: #3c5a78;
        border-color: #667eea;
    }

    .emoji-panel {
        background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

.post-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    margin-bottom: 5px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 16px 0 0;
}

/*.post-container:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);*/
/*}*/

#post-details h1 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f4;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.post-actions {
    opacity: 0.72;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding: 20px 0;
    border-top: 2px solid #f8f9fa;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.post-actions::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

/* 私聊按钮样式 */
#private-chat.collected {
    background-color: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}


.action-btn i {
    margin-right: 5px;
}

/* 发帖按钮特殊样式 */
.publish-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border-color: #4285f4;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    font-weight: 600;
    position: relative;
}

.publish-btn:hover {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.publish-btn i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}


/* 回复分页组件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
    padding: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.pagination-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pagination-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 28px 6px 12px;
    font-size: 14px;
    color: #495057;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    font-weight: 600;
    min-width: 130px;
}

.pagination-select:hover {
    background-color: #f8f9fa;
    color: #667eea;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
}

.pagination-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pagination-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-select option {
    font-weight: 500;
}

#page-info {
    font-size: 13px;
    color: #868e96;
    font-weight: 500;
    margin-left: 4px;
    border-left: 1px solid #e9ecef;
    padding-left: 12px;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination-select {
        font-size: 16px;
        padding: 8px 32px 8px 12px;
    }
}

/* 兼容旧版IE隐藏默认下拉箭头 */
.pagination-select::-ms-expand {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .pagination-controls {
        background: #1f2937;
        border-color: #374151;
    }

    .pagination-select {
        color: #e5e7eb;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e5e7eb' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    }

    .pagination-select:hover {
        background-color: #111827;
        color: #93c5fd;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2393c5fd' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    }
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease-out;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.back-to-top i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    70% {
        transform: scale(0.95) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: var(--spacing-sm) !important;
        margin: 60px 0 0 0 !important; /* 减少上边距，因为右侧导航栏现在在上方 */
        box-sizing: border-box;
        /* 确保内容区域完全可见 */
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* 确保帖子容器在小屏幕下正确显示 */
    .post-container {
        width: 100%;
        margin: 0;
        padding: 12px 0;
        margin-top: var(--spacing-lg); /* 为上方的右侧导航栏留出空间 */
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    #post-details {
        padding: 16px 0;
        line-height: 1.6;
    }

    .post-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 15px 0;
    }

    .action-btn {
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        white-space: nowrap;
        min-width: auto;
    }


    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
        padding-top: 50px;
        margin: 10px 0;
        opacity: 0.6;
        transition: opacity 0.3s ease; /* 透明度过渡效果 */
    }

    .meta-left, .meta-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .meta-left span, .meta-right span {
        margin-right: 0;
        padding: 4px 8px;
        background-color: #f8f9fa;
        border-radius: 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .meta-right {
        margin-top: 0;
    }

    .post-header-actions {
        float: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        width: 100%;
    }

    .post-header-actions .edit-btn,
    .post-header-actions .delete-btn,
    .post-header-actions .audit-btn,
    .post-header-actions .category-btn,
    .post-header-actions .top-btn,
    .post-header-actions .prime-btn {
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: 8px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #dee2e6;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* 帖子元数据样式 */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.meta-left {
    opacity: 0.70;
}

.meta-left span {
    margin-right: 15px;
}

.meta-left span i,
.meta-right span i {
    margin-right: 5px;
    color: #4a90e2;
}

.meta-right .netdisc-type {
    background-color: #f0f7ff;
    color: #4a90e2;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* 作者链接样式 */
.author-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.author-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 小说阅读控制面板（默认隐藏，仅小说分类展示） */
.novel-reading-controls {
    display: none;
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.reading-controls-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 10px;
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
}
.reading-controls-header h4 {
    margin:0;
    font-size:14px;
    color:#374151;
    display:flex;
    align-items:center;
    gap:6px;
}
.toggle-controls-btn {
    border:1px solid #d1d5db;
    background:#fff;
    color:#374151;
    border-radius:6px;
    padding:4px 8px;
    cursor:pointer;
}
.reading-controls-content {
    display:block;
    padding:10px;
}
.control-group {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}
.control-group label {
    color:#4b5563;
    font-size:13px;
}
.control-group select {
    border:1px solid #d1d5db;
    border-radius:6px;
    padding:6px 8px;
}
/* 帖子头部操作区 */
.post-header-actions {
    opacity: 0.5;
    float: right;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 15px;
}

/* 帖子操作按钮样式 */
.post-header-actions .edit-btn,
.post-header-actions .delete-btn,
.post-header-actions .audit-btn,
.post-header-actions .category-btn,
.post-header-actions .top-btn,
.post-header-actions .prime-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #495057 !important;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 12px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-background-clip: initial;
}

/* 当按钮显示时的样式 */
.post-header-actions .edit-btn[style*="inline-block"],
.post-header-actions .delete-btn[style*="inline-block"],
.post-header-actions .audit-btn[style*="inline-block"],
.post-header-actions .category-btn[style*="inline-block"],
.post-header-actions .top-btn[style*="inline-block"],
.post-header-actions .prime-btn[style*="inline-block"] {
    display: inline-flex !important;
}

.post-header-actions .edit-btn:hover,
.post-header-actions .delete-btn:hover,
.post-header-actions .audit-btn:hover,
.post-header-actions .category-btn:hover,
.post-header-actions .top-btn:hover,
.post-header-actions .prime-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-header-actions .edit-btn {
    background: transparent !important;
    color: #4285f4 !important;
    border-color: #4285f4 !important;
}


.post-header-actions .delete-btn {
    background: transparent !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}


.post-header-actions .audit-btn {
    background: transparent !important;
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}


.post-header-actions .category-btn {
    background: transparent !important;
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}


.post-header-actions .top-btn {
    background: transparent !important;
    color: #28a745 !important;
    border-color: #28a745 !important;
}


.post-header-actions .prime-btn {
    background: transparent !important;
    color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}


/* 回复操作区域 */
.reply-actions {
    margin-top: 15px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0.8;
}

/* 回复区单行操作按钮：统一基础样式，降低装饰性重绘开销 */
.reply-actions .reply-action-btn {
    /* 使用纯色背景，避免渐变带来的额外绘制成本 */
    background: #ffffff;
    /* 统一边框样式，保证按钮视觉一致 */
    border: 1px solid #e5e7eb;
    /* 统一文字颜色，后续由不同按钮类型覆盖 */
    color: #374151;
    /* 统一内边距，保证三种按钮尺寸一致 */
    padding: 6px 12px;
    /* 统一圆角，贴合回复区整体风格 */
    border-radius: 16px;
    /* 统一字号，避免与回复文本抢占视觉权重 */
    font-size: 12px;
    /* 统一字重，提升可读性 */
    font-weight: 500;
    /* 统一光标反馈 */
    cursor: pointer;
    /* 统一布局，便于后续加图标仍可对齐 */
    display: inline-flex;
    /* 统一垂直对齐 */
    align-items: center;
    /* 禁用阴影，避免滚动时合成层开销 */
    box-shadow: none;
    /* 禁用位移，避免 hover 触发布局与重绘 */
    transform: none;
    /* 保持单行展示 */
    white-space: nowrap;
    /* 统一高度，避免行高不一致 */
    min-height: 30px;
}

/* 回复按钮：使用蓝色系表示“回复”动作 */
.reply-actions .reply-btn.reply-action-btn {
    /* 回复按钮背景色 */
    background: #eff6ff;
    /* 回复按钮边框色 */
    border-color: #93c5fd;
    /* 回复按钮文字色 */
    color: #1d4ed8;
}

/* 私聊按钮：使用紫色系表示“私聊”动作 */
.reply-actions .chat-btn.reply-action-btn {
    /* 私聊按钮背景色 */
    background: #f5f3ff;
    /* 私聊按钮边框色 */
    border-color: #c4b5fd;
    /* 私聊按钮文字色 */
    color: #6d28d9;
}

/* 删除按钮：使用红色系表示“删除”动作 */
.reply-actions .edit-reply-btn.reply-action-btn {
    /* 删除按钮背景色 */
    background: #eff6ff;
    /* 删除按钮边框色 */
    border-color: #93c5fd;
    /* 删除按钮文字色 */
    color: #2e09c4;
}

/* 删除按钮：使用红色系表示“删除”动作 */
.reply-actions .delete-reply-btn.reply-action-btn {
    /* 删除按钮背景色 */
    background: #fef2f2;
    /* 删除按钮边框色 */
    border-color: #fca5a5;
    /* 删除按钮文字色 */
    color: #b91c1c;
}

/* 取消回复/私聊按钮装饰性伪元素，避免额外绘制 */
.reply-actions .reply-btn::before,
.reply-actions .chat-btn::before {
    /* 关闭伪元素内容，避免径向渐变绘制 */
    content: none;
}

/* 统一三种按钮 hover 行为，仅改变配色不做位移与阴影 */
.reply-actions .reply-btn.reply-action-btn:hover,
.reply-actions .chat-btn.reply-action-btn:hover,
.reply-actions .edit-btn.reply-action-btn:hover,
.reply-actions .delete-reply-btn.reply-action-btn:hover {
    /* 禁用位移，避免 hover 触发额外绘制 */
    transform: none;
    /* 禁用阴影，避免 hover 合成层开销 */
    box-shadow: none;
}

.reply-btn, .like-btn, .chat-btn, .adopt-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    color: #495057;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 34px;
}

.reply-btn::before, .like-btn::before, .chat-btn::before, .adopt-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.reply-btn:hover::before, .like-btn:hover::before, .chat-btn:hover::before, .adopt-btn:hover::before {
    width: 120px;
    height: 120px;
}

.reply-btn:hover, .like-btn:hover, .chat-btn:hover, .adopt-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reply-btn:active, .like-btn:active, .chat-btn:active, .adopt-btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 采纳答案按钮特殊样式 */
.adopt-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f6ffed 100%);
    border-color: #52c41a;
    color: #52c41a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
}

.adopt-btn:hover {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    border-color: #52c41a;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
    transform: translateY(-3px);
}

.adopt-btn:active {
    background: linear-gradient(135deg, #389e0d 0%, #52c41a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

/* 已采纳标识样式 */
.adopted-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border: 2px solid #52c41a;
    border-radius: 25px;
    padding: 8px 16px;
    margin-top: 12px;
    margin-right: 60px;
    font-size: 13px;
    color: #389e0d;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
    position: relative;
    overflow: hidden;
}

.adopted-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.adopted-badge:hover::before {
    left: 100%;
}

.adopted-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(82, 196, 26, 0.3));
}

.adopted-text {
    color: #389e0d;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(82, 196, 26, 0.1);
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    position: relative;
    opacity:0.5;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-avatar:hover {
    border-color: #4a90e2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.user-avatar i {
    transition: all 0.3s ease;
}

.user-avatar:hover i {
    transform: scale(1.1);
    color: #4a90e2 !important;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 2px;
    cursor: pointer;
    position: relative;
}

/* 用户名称链接样式 - 让用户知道可以点击 */
.user-name a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
    display: inline-block;
}

.user-name a:hover {
    color: #2851a3;
    background-color: rgba(74, 144, 226, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}


.user-name a:active {
    transform: translateY(0);
    background-color: rgba(74, 144, 226, 0.12);
}

.reply-time {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reply-time i {
    transition: all 0.3s ease;
    font-size: 11px;
}

/* 空回复状态 */
.empty-replies {
    padding: 30px;
    text-align: center;
    color: #999;
}

.empty-replies p {
    margin: 0;
    font-size: 14px;
}

/* 收藏按钮状态 */
.action-btn.collected {
    background-color: #fff8e1;
    color: #ffb300;
}

/* 回复内容最大高度 */
.post-content {
    line-height: 1.6;
    margin: 20px 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 删除重复的回复项悬停效果定义 */
/* .reply:hover .floor-number {
    background-color: #e6e6e6;
} */

/* 修改分类模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal[style*="block"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    margin-top: 1px;
}

.modal-header {
    background: #a0665f36;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-header h3 i {
    margin-right: 8px;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover {
    background: #c82333;
}

/* 图片预览模态框样式 */
#image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-preview-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.image-preview-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-preview-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

#preview-image {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    width: auto;
    height: auto;
    display: block;
}

.image-preview-info {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
}

#preview-alt {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 举报模态框专用样式 - 简洁版 */
.report-modal {
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

.report-modal[style*="block"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.report-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    animation: reportModalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes reportModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-modal-header {
    background: #f8fafc;
    color: #2d3748;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    font-size: 18px;
    color: white;
}

.header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.header-text p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #718096;
    font-weight: 400;
}

.report-modal-header .close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.report-modal-header .close-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.report-modal-header .close-btn i {
    font-size: 14px;
}

.report-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.required {
    color: #e53e3e;
    margin-left: 4px;
}

/* 举报类型选择样式 - 简洁版 */
.report-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.report-type-item {
    padding: 12px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.report-type-item:hover {
    border-color: #ff6b6b;
    background: #fef2f2;
}

.report-type-item.selected {
    border-color: #ff6b6b;
    background: #fef2f2;
    color: #dc2626;
}

.report-type-item i {
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: #6b7280;
    transition: color 0.2s ease;
}

.report-type-item.selected i {
    color: #dc2626;
}

.report-type-item span {
    font-size: 12px;
    font-weight: 500;
    display: block;
}

/* 文本域容器样式 - 简洁版 */
.textarea-container {
    position: relative;
    margin-bottom: 16px;
}

.textarea-container .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.textarea-container .form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.danger {
    color: #ef4444;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.form-hint i {
    color: #3b82f6;
    font-size: 14px;
}

/* 防恶意举报提示样式 */
.warning-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #dc2626;
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.warning-notice i {
    color: #dc2626;
    font-size: 13px;
}

/* 错误消息样式 - 简洁版 */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    margin-top: 12px;
    animation: errorSlideIn 0.2s ease-out;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message i {
    font-size: 14px;
    color: #dc2626;
}

/* 模态框操作按钮样式 - 简洁版 */
.report-modal-actions {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #f56565;
}

.btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-loading i {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-modal-content {
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }

    .report-modal-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    .header-content {
        gap: 12px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-text h3 {
        font-size: 18px;
    }

    .report-modal-body {
        padding: 20px;
    }

    .report-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .report-type-item {
        padding: 12px 8px;
    }

    .report-type-item i {
        font-size: 18px;
    }

    .report-type-item span {
        font-size: 12px;
    }

    .report-modal-actions {
        padding: 20px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .report-types {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header-icon {
        width: 35px;
        height: 35px;
    }

    .header-text h3 {
        font-size: 16px;
    }

    .header-text p {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-preview-container {
        max-width: 95%;
        max-height: 95%;
    }

    #preview-image {
        max-height: calc(95vh - 60px);
    }
}

/* 图片按钮样式 - 精致简洁设计 */
.image-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 80px;
    height: 36px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.image-toggle-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.image-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}

.image-toggle-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.image-toggle-btn:hover i {
    transform: scale(1.1);
}

.image-toggle-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 图片上传模态框样式 - 精致简洁设计 */
#image-upload-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#image-upload-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 8% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#image-upload-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 0 12px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.2);
    background: rgba(248, 250, 252, 0.3);
    border-radius: 12px 12px 0 0;
    margin: -32px -32px 20px -32px;
    padding-left: 32px;
    padding-right: 32px;
}

#image-upload-modal .modal-header h3 {
    margin: 0;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

#image-upload-modal .modal-header h3 i {
    color: #8b5cf6;
    font-size: 16px;
}

#image-upload-modal .close {
    color: #9ca3af;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#image-upload-modal .close:hover {
    color: #f87171;
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(252, 165, 165, 0.3);
    transform: scale(1.02);
}

#image-upload-modal .upload-tip {
    background: rgba(239, 246, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

#image-upload-modal .upload-tip p {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

#image-upload-modal .upload-tip p i {
    color: #3b82f6;
    font-size: 14px;
}

#image-upload-modal .upload-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 95, 237, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    text-decoration: none;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#image-upload-modal .upload-link:hover {
    background: rgba(44, 81, 175, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
    text-decoration: none;
    color: white;
}

#image-upload-modal .tip-text {
    margin: 16px 0 0 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

#image-upload-modal .url-input-section {
    margin-bottom: 24px;
}

#image-upload-modal .url-input-section label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.025em;
}

#image-upload-modal #image-url-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#image-upload-modal #image-url-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

#image-upload-modal #image-url-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

#image-upload-modal .image-preview {
    margin-top: 16px;
    text-align: center;
    border: 1px dashed rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    padding: 16px;
    background: rgba(249, 250, 251, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#image-upload-modal .image-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#image-upload-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(229, 231, 235, 0.3);
}

#image-upload-modal .modal-actions .action-btn {
    padding: 10px 20px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    height: 40px;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#image-upload-modal .modal-actions .approve-btn {
    background: rgba(16, 185, 129, 0.85);
    color: white;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

#image-upload-modal .modal-actions .approve-btn:hover {
    background: rgba(5, 150, 105, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

#image-upload-modal .modal-actions .approve-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
}

#image-upload-modal .modal-actions .reject-btn {
    background: rgba(156, 163, 175, 0.8);
    color: #374151;
    border-color: rgba(156, 163, 175, 0.3);
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
}

#image-upload-modal .modal-actions .reject-btn:hover {
    background: rgba(107, 114, 128, 0.85);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.3);
}

#image-upload-modal .modal-actions .reject-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(107, 114, 128, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #image-upload-modal .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 24px;
        max-width: none;
    }

    #image-upload-modal .modal-header h3 {
        font-size: 16px;
    }

    #image-upload-modal .upload-link {
        padding: 8px 16px;
        font-size: 12px;
    }

    #image-upload-modal .modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    #image-upload-modal .modal-actions .action-btn {
        width: 100%;
        min-width: auto;
    }

    #image-upload-modal .upload-tip {
        padding: 16px;
    }

    #image-upload-modal #image-url-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 图片预览模态框样式 */
#image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.image-preview-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-preview-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#preview-image {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-preview-info {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 帖子内容区域图片样式优化 */
.post-content img,
.reply-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.post-content img:hover,
.reply-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* 为启用预览的图片添加特殊样式 */
.post-content img.preview-enabled,
.reply-content img.preview-enabled {
    position: relative;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .image-preview-container {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
    }

    #preview-image {
        max-height: calc(95vh - 100px);
    }

    .image-preview-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .image-preview-info {
        font-size: 12px;
        padding: 6px 12px;
    }
}

#lottery-modal .lottery-disclaimer {
    margin: 12px 20px 0 20px;
    padding: 12px 14px;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

#lottery-modal .lottery-disclaimer .disclaimer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b91c1c;
    font-weight: 600;
    font-size: 15px;
}

#lottery-modal .lottery-disclaimer .disclaimer-title i {
    font-size: 16px;
}

#lottery-modal .lottery-disclaimer .disclaimer-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #b91c1c;
    font-size: 14px;
}

#lottery-modal .lottery-disclaimer .disclaimer-list li {
    margin: 4px 0;
    line-height: 1.6;
}

#lottery-modal .disclaimer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #B45309;
    font-weight: 700;
    font-size: 15px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 8px 10px;
}

#lottery-modal .disclaimer-title i {
    color: #F59E0B;
}

#lottery-modal .disclaimer-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #92400E;
    font-size: 14px;
}

#lottery-modal .disclaimer-list li {
    margin: 4px 0;
    line-height: 1.6;
}

#lottery-modal #lottery-results {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    color: #065F46;
    font-size: 20px;
}

#lottery-modal #lottery-results-list {
    font-size: 22px;
    font-weight: 700;
    color: #16A34A;
    letter-spacing: 1px;
}

#lottery-modal #lottery-time {
    color: #047857;
}

/* 默认隐藏审核按钮，保持与原行为一致 */
#prime-btn {
    /* 默认不显示，避免页面初始闪烁 */
    display: none;
}

/* 默认隐藏抽奖按钮，保持与原行为一致 */
#lottery-btn {
    /* 默认不显示，避免页面初始闪烁 */
    display: none;
}

/* 分页默认隐藏，JS 根据数据决定显示 */
.pagination-container {
    /* 默认不显示，避免无分页时占位 */
    display: none;
}

/* 表情面板默认隐藏，通过 JS 控制展示 */
#emoji-panel {
    /* 默认不显示，避免遮挡输入框 */
    display: none;
}

/* 统一资产弹窗遮罩默认隐藏，通过 JS 控制展示 */
#category-modal,
#image-upload-modal,
#report-modal,
#detail-audit-modal,
#lottery-modal,
#post-top-overlay {
    /* 默认不显示，避免页面初始弹窗可见 */
    display: none;
}

/* 分类下拉最小宽度迁移自 HTML 内联样式 */
#category-select-modal {
    /* 保持下拉框最小宽度，避免布局跳动 */
    min-width: 220px;
}

/* 二级分类行默认隐藏，打开弹窗后按需显示 */
#subcategory-row {
    /* 默认隐藏二级分类区域 */
    display: none;
    /* 保持与原布局一致的对齐方式 */
    align-items: flex-start;
}

/* 二级分类标签上边距迁移自 HTML 内联样式 */
#subcategory-row > label {
    /* 与右侧按钮组顶部对齐 */
    margin-top: 6px;
}

/* 二级分类容器伸缩迁移自 HTML 内联样式 */
#subcategory-selection {
    /* 允许二级分类区域占满剩余宽度 */
    flex: 1;
}

.subcategory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
}

.subcategory-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-btn:hover {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.18);
}

.subcategory-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* 统一弹窗底部操作区布局迁移自 HTML 内联样式 */
.post-top-actions {
    /* 使用 flex 右对齐按钮 */
    display: flex;
    /* 将按钮靠右排列 */
    justify-content: flex-end;
    /* 按钮间距 */
    gap: 8px;
    /* 与内容区留出间距 */
    margin-top: 12px;
}

/* 图片预览默认隐藏，通过 JS 控制展示 */
#image-preview {
    /* 默认不显示图片预览区域 */
    display: none;
}

/* 举报提示文案样式迁移自 HTML 内联样式 */
.report-tip {
    /* 字体大小保持原样 */
    font-size: 12px;
    /* 字体颜色保持原样 */
    color: #6b7280;
    /* 与下方内容留出间距 */
    margin-bottom: 8px;
}

/* 表单标签边距样式迁移自 HTML 内联样式 */
#report-modal .form-label {
    /* 与输入框留出间距 */
    margin-bottom: 6px;
    /* 标签独占一行 */
    display: block;
}

/* 举报表单提示间距样式迁移自 HTML 内联样式 */
#report-modal .form-hint {
    /* 与上方输入区留出间距 */
    margin-top: 6px;
}

/* 举报警示文案间距样式迁移自 HTML 内联样式 */
#report-modal .warning-notice {
    /* 与上方提示留出间距 */
    margin-top: 6px;
}

/* 举报错误提示默认隐藏，通过 JS 控制展示 */
#report-error {
    /* 默认不显示错误提示 */
    display: none;
}

/* 按钮加载态默认隐藏，通过 JS 控制展示 */
#submit-report-btn .btn-loading {
    /* 默认不显示加载图标 */
    display: none;
}

/* 抽奖声明标题底部间距迁移自 HTML 内联样式 */
#lottery-modal .disclaimer-title {
    /* 与列表留出间距 */
    margin-bottom: 6px;
}

/* 抽奖声明列表外边距迁移自 HTML 内联样式 */
#lottery-modal .disclaimer-list {
    /* 顶部不留额外外边距 */
    margin: 0;
}

/* 最大楼层提示样式迁移自 HTML 内联样式 */
#lottery-max-info {
    /* 与输入框留出间距 */
    margin-top: 8px;
    /* 字体颜色保持原样 */
    color: #666;
    /* 字体大小保持原样 */
    font-size: 13px;
}

/* 抽奖动画区域默认隐藏，通过 JS 控制展示 */
#lottery-animation {
    /* 默认不显示抽奖动画区 */
    display: none;
    /* 与内容区留出间距 */
    margin: 16px 0;
    /* 内边距保持原样 */
    padding: 24px;
    /* 文本居中 */
    text-align: center;
    /* 边框保持原样 */
    border: 1px dashed #e2e8f0;
    /* 圆角保持原样 */
    border-radius: 8px;
    /* 字体大小保持原样 */
    font-size: 24px;
    /* 字体颜色保持原样 */
    color: #3b82f6;
}

/* 抽奖结果区域默认隐藏，通过 JS 控制展示 */
#lottery-results {
    /* 默认不显示抽奖结果区 */
    display: none;
    /* 与上方内容留出间距 */
    margin-top: 16px;
    /* 内边距保持原样 */
    padding: 16px;
    /* 背景色保持原样 */
    background: #f8fafc;
    /* 边框保持原样 */
    border: 1px solid #e2e8f0;
    /* 圆角保持原样 */
    border-radius: 8px;
    /* 字体颜色保持原样 */
    color: #1f2937;
    /* 字体大小保持原样 */
    font-size: 18px;
}

/* 抽奖结果标题样式迁移自 HTML 内联样式 */
.lottery-results-title {
    /* 字体加粗 */
    font-weight: 600;
    /* 与列表留出间距 */
    margin-bottom: 8px;
}

/* 抽奖结果列表样式迁移自 HTML 内联样式 */
#lottery-results-list {
    /* 字体大小保持原样 */
    font-size: 16px;
    /* 长内容换行 */
    word-break: break-all;
}

/* 抽奖时间样式迁移自 HTML 内联样式 */
#lottery-time {
    /* 与上方留出间距 */
    margin-top: 8px;
    /* 字体颜色保持原样 */
    color: #374151;
    /* 字体大小保持原样 */
    font-size: 14px;
}

/* 商业置顶范围默认隐藏，通过 JS 控制展示 */
#post-top-scope-row {
    /* 默认不显示商业置顶范围 */
    display: none;
}

/* 置顶错误提示默认隐藏，通过 JS 控制展示 */
#post-top-error {
    /* 默认不显示错误提示 */
    display: none;
}

/* 取消置顶操作默认隐藏，通过 JS 控制展示 */
#post-top-cancel-top {
    /* 默认不显示取消置顶区域 */
    display: none;
    /* 与上方留出间距 */
    margin-top: 8px;
    /* 右对齐按钮 */
    text-align: right;
}

/* 阅读控制面板折叠图标默认隐藏，保持与原内联样式一致 */
.toggle-controls-btn .hide-icon {
    /* 默认不显示折叠图标 */
    display: none;
}

button#scroll-to-reply.reply-float-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    padding: 10px 18px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

button#scroll-to-reply.reply-float-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

button#scroll-to-reply.reply-float-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.reply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.reply-modal-overlay.is-open {
    display: flex;
}

.reply-form.reply-form-modal-open {
    margin: 0;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.reply-form.reply-form-modal-open textarea {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    button#scroll-to-reply.reply-float-btn {
        right: 16px;
        bottom: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .reply-form.reply-form-modal-open {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}
