/* 自定义样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

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

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

/* 帖子卡片样式 */
.post-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.post-meta .badge {
    font-size: 0.7rem;
}

/* 用户头像 */
.user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.user-avatar-sm {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* 统计数字样式 */
.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 标签样式 */
.tag-cloud .badge {
    margin: 2px;
    font-size: 0.75rem;
}

/* 按钮样式 */
.btn-like {
    border: none;
    background: none;
    color: #6c757d;
    transition: color 0.2s;
}

.btn-like:hover {
    color: #dc3545;
}

.btn-like.liked {
    color: #dc3545;
}

/* 评论样式 */
.comment-item {
    border-left: 3px solid #dee2e6;
    padding-left: 15px;
    margin-bottom: 15px;
}

.comment-reply {
    margin-left: 30px;
    border-left: 3px solid #e9ecef;
}

.comment-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

/* 面包屑样式 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

/* 搜索框样式 */
.search-form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post-meta {
        font-size: 0.8rem;
    }
    
    .comment-reply {
        margin-left: 15px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 表情符号样式 */
.emoji {
    font-size: 1.2em;
    vertical-align: middle;
}

/* 帖子类型标签颜色 */
.post-type-normal { color: #007bff; }
.post-type-question { color: #28a745; }
.post-type-review { color: #ffc107; }
.post-type-authentication { color: #dc3545; }
.post-type-sale { color: #fd7e14; }
.post-type-buy { color: #20c997; }
.post-type-tutorial { color: #6f42c1; }
.post-type-chat { color: #6c757d; }

/* 运动类型图标颜色 */
.sport-badminton { color: #17a2b8; }
.sport-tennis { color: #28a745; }
.sport-table-tennis { color: #ffc107; }
.sport-pickleball { color: #dc3545; }
.sport-others { color: #6c757d; }

/* 在线状态指示器 */
.online-indicator {
    position: relative;
}

.online-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    border: 2px solid white;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 代码块样式 */
pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.875rem;
    overflow-x: auto;
}

code {
    background-color: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.875rem;
}

/* 图片响应式 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* 特色图片 */
.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* 侧边栏样式 */
.sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding: 8px 16px;
}

.sidebar .list-group-item:hover {
    background-color: #f8f9fa;
}

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

/* 消息提示样式 */
.alert {
    border-radius: 8px;
    border: none;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #fff;
    }
    
    .card {
        background-color: #343a40;
        color: #fff;
    }
    
    .card-header {
        background-color: #343a40;
        border-bottom-color: #495057;
    }
} 