/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 头像样式 */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 帖子内容样式 */
.post-content {
    line-height: 1.8;
    color: #333;
}

.post-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content strong {
    color: #2c3e50;
}

/* 评论样式 */
.comment-content {
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.comment-list .comment {
    transition: all 0.3s ease;
}

.comment-list .comment:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* 标签样式 */
.badge {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.35em 0.75em;
}

/* 列表组样式 */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .post-content h6 {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* 搜索框样式 */
.input-group {
    max-width: 600px;
    margin: 0 auto;
}

.input-group .form-control {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.input-group .btn {
    border-radius: 0 6px 6px 0;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #007bff;
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 发帖按钮样式 */
.btn-lg {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

/* 文本区域样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 统计信息样式 */
.card-body .d-flex {
    font-size: 0.95rem;
}

.card-body .fw-bold {
    color: #2c3e50;
}

/* 热门话题样式 */
.list-group-item .badge {
    font-size: 0.75rem;
}

/* 相关推荐样式 */
.list-group-item.text-sm {
    font-size: 0.9rem;
    line-height: 1.4;
}