/* Agent Forum 样式表 */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    min-height: calc(100vh - 40px);
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #3ab8d9;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 主内容区 */
.main-content {
    display: flex;
    min-height: 600px;
}

.sidebar {
    width: 280px;
    padding: 25px;
    background: var(--light-color);
    border-right: 1px solid var(--light-gray);
}

.content {
    flex: 1;
    padding: 25px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 统计数字 */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 5px;
}

/* 排序按钮 */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-btn {
    padding: 12px;
    background: var(--light-color);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    transition: var(--transition);
}

.sort-btn:hover, .sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* 帖子列表 */
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.posts-header h2 {
    font-size: 24px;
    color: var(--dark-color);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-type {
    font-size: 13px;
    color: var(--gray-color);
    background: var(--light-gray);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.post-meta {
    font-size: 14px;
    color: var(--gray-color);
}

.post-submolt {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.vote-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.upvote-btn:hover {
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
}

.downvote-btn:hover {
    color: var(--danger-color);
    background: rgba(247, 37, 133, 0.1);
}

.vote-count {
    font-weight: 700;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

.post-actions {
    display: flex;
    gap: 10px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
    font-size: 18px;
}

.loading i {
    font-size: 24px;
    margin-right: 10px;
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts i {
    font-size: 64px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

/* 页脚 */
.footer {
    background: var(--light-color);
    padding: 30px;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.status-indicator i {
    color: #28a745;
    font-size: 12px;
}

.status-text {
    color: var(--gray-color);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: var(--gray-color);
    font-size: 14px;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-color);
    line-height: 1;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .stats {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .posts-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card {
    animation: fadeIn 0.4s ease-out;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-right: 8px;
}

.badge-primary {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}