/* 论坛基础样式 */
* {
    box-sizing: border-box;
}

/* 确保body有正确的背景 */
body {
    background: #000;
    color: #fff;
}

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-heavy {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 流光边框 */
.flow-border {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.flow-border:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 论坛筛选按钮 */
.forum-filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    opacity: 0.4;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: white;
}

.forum-filter-btn:hover {
    opacity: 0.6;
}

.forum-filter-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 表单输入框样式 - 修复重要性 */
.forum-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    color: white !important;
    transition: all 0.3s !important;
    outline: none !important;
}

.forum-input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.forum-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* 下拉选择框 */
select.forum-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem !important;
}

select.forum-input option {
    background: #1a1a1a !important;
    color: white !important;
}

/* 文本域样式 */
.forum-textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: white !important;
    transition: all 0.3s !important;
    resize: none !important;
    outline: none !important;
    font-family: inherit !important;
    min-height: 150px !important;
}

.forum-textarea:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.forum-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* 模态框样式 - 确保显示 */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

.modal-overlay.hidden {
    display: none !important;
}

/* 模态框内容 */
.modal-content {
    width: 100% !important;
    max-width: 42rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    position: relative !important;
    color: white !important;
}

/* 确保glass-heavy样式正确 */
.modal-content.glass-heavy {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 模态框头部 */
.modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header h3 {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    margin: 0 !important;
}

/* 关闭按钮 */
.modal-close {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    transition: all 0.3s !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.25rem !important;
}

.modal-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* 表单样式 */
#newTopicForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

#newTopicForm > div {
    margin-bottom: 1rem !important;
}

#newTopicForm label {
    display: block !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0.5rem !important;
}

/* 引用文章按钮 */
#insertArticleBtn {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

#insertArticleBtn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* 按钮组 */
.modal-footer,
#newTopicForm > div:last-child {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
}

/* 取消按钮 */
.modal-cancel {
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* 提交按钮 */
button[type="submit"].flow-border {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

button[type="submit"].flow-border:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)) !important;
    transform: translateY(-1px) !important;
}

/* 相对定位容器 */
.relative {
    position: relative !important;
}

/* Tailwind 类的备用样式 */
.block { display: block !important; }
.flex { display: flex !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.items-center { align-items: center !important; }
.gap-3 { gap: 0.75rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xs { font-size: 0.75rem !important; }
.font-light { font-weight: 300 !important; }
.opacity-60 { opacity: 0.6 !important; }
.rounded { border-radius: 0.25rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

/* 话题卡片和其他样式保持不变... */

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .modal-header h3 {
        font-size: 1rem !important;
    }
    
    #insertArticleBtn {
        position: static !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* 滚动条美化 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 回复编辑器样式 */
.reply-editor-container {
    position: relative;
}

.reply-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.toolbar-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

.toolbar-hint {
    color: rgba(255, 255, 255, 0.4);
}

.toolbar-shortcut {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

/* 文章选择模态框样式优化 */
.modal-body {
    padding: 0;
    margin-top: 1rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.article-list {
    max-height: 24rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* 文章选择项样式 */
.article-select-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.article-select-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.article-select-item:active {
    transform: translateY(0);
}

.article-select-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.article-select-item p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.article-select-item span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 文章选择项内部布局 */
.article-select-item .flex {
    display: flex;
    gap: 0.75rem;
}

.article-select-item .flex-1 {
    flex: 1;
}

.article-select-item .w-16 {
    width: 4rem;
    height: 3rem;
    border-radius: 0.25rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.article-select-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.article-select-item:hover img {
    transform: scale(1.05);
}

/* 模态框动画 */
.modal-overlay {
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* 回复样式优化 */
.reply-card {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.reply-card.is-reply-to {
    margin-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.reply-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 引用文章样式 */
.referenced-article {
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.referenced-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 话题操作按钮 */
.topic-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.topic-action-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 话题类型徽章 */
.topic-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.topic-type-badge[data-type="discussion"] {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.topic-type-badge[data-type="question"] {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.topic-type-badge[data-type="share"] {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a78bfa;
}

/* 标签样式 */
.tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-1px);
}

/* 滚动条样式 */
.article-list::-webkit-scrollbar {
    width: 6px;
}

.article-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.article-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.article-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reply-card.is-reply-to {
        margin-left: 1rem;
    }
    
    .toolbar-shortcut {
        display: none;
    }
    
    .article-select-item .flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-select-item .w-16 {
        width: 100%;
        height: 6rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* 通知样式 */
.forum-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    z-index: 100000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.forum-notification.show {
    transform: translateX(0);
}

.forum-notification.success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.forum-notification.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.forum-notification.info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 论坛回复编辑器样式优化 */
.reply-editor-container {
    position: relative;
}

.reply-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
}

.toolbar-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.toolbar-shortcut {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    white-space: nowrap;
}

/* 文章选择模态框优化 */
#articleSelectModal .modal-content {
    max-width: 48rem;
    width: 95%;
    max-height: 90vh;
}

.modal-body {
    padding: 0;
    margin-top: 1rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.article-list {
    max-height: 24rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* 文章选择项优化 */
.article-select-item {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.article-select-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.article-select-item:active {
    transform: translateY(-1px);
}

.article-select-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-select-item p {
    margin: 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-select-item span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 文章选择项布局 */
.article-select-item .flex {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.article-select-item .flex-1 {
    flex: 1;
    min-width: 0;
}

.article-select-item .w-16 {
    width: 4rem;
    height: 3rem;
    border-radius: 0.375rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.article-select-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-select-item:hover img {
    transform: scale(1.1);
}

/* 引用文章样式优化 */
.referenced-article {
    margin: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.referenced-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 话题操作按钮优化 */
.topic-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.topic-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-1px);
}

.topic-action-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 回复卡片样式 */
.reply-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.reply-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.reply-card.is-reply-to {
    margin-left: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.reply-card.is-reply-to::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.reply-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.8;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 通知样式优化 */
.forum-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    z-index: 100000;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.forum-notification.show {
    transform: translateX(0);
}

.forum-notification.success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.forum-notification.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.forum-notification.info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .reply-card.is-reply-to {
        margin-left: 1rem;
    }
    
    .reply-card.is-reply-to::before {
        left: -1rem;
        width: 0.5rem;
    }
}

@media (max-width: 768px) {
    #articleSelectModal .modal-content {
        width: calc(100% - 2rem);
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .toolbar-shortcut {
        display: none;
    }
    
    .toolbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .toolbar-btn {
        width: 100%;
        justify-content: center;
    }
    
    .reply-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-select-item .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-select-item .w-16 {
        width: 100%;
        height: 8rem;
    }
    
    .reply-card {
        padding: 1rem;
    }
    
    .reply-card.is-reply-to {
        margin-left: 0.5rem;
    }
    
    .reply-card.is-reply-to::before {
        display: none;
    }
    
    .forum-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .forum-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .article-list {
        max-height: 20rem;
    }
    
    .article-select-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .article-select-item h4 {
        font-size: 0.8rem;
    }
    
    .article-select-item p {
        font-size: 0.7rem;
    }
    
    .toolbar-hint {
        display: none;
    }
    
    .reply-toolbar {
        padding-top: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
}

/* 滚动条美化 */
.article-list::-webkit-scrollbar {
    width: 6px;
}

.article-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.article-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.article-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 表单样式统一 */
.forum-reply-form .forum-textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 768px) {
    .forum-reply-form .forum-textarea {
        min-height: 100px;
    }
}

/* 动画优化 */
.modal-overlay {
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.6;
}

.empty-state svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.875rem;
}

.empty-state .text-xs {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* 聚焦状态优化 */
.forum-textarea:focus,
.forum-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* 按钮加载状态 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
}