/* Top页面样式 */

/* 排行榜徽章样式 */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* 列表项悬停效果 */
.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* 统计卡片样式 */
.card.bg-primary,
.card.bg-success,
.card.bg-warning {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 内容类型按钮组 */
.btn-group .btn {
    border-radius: 0.375rem;
    margin-right: 0.25rem;
}

.btn-group .btn.active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 排行榜项目样式 */
.list-group-item {
    border-left: 4px solid transparent;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.list-group-item:nth-child(1) {
    border-left-color: #ffd700; /* 金色 - 第一名 */
}

.list-group-item:nth-child(2) {
    border-left-color: #c0c0c0; /* 银色 - 第二名 */
}

.list-group-item:nth-child(3) {
    border-left-color: #cd7f32; /* 铜色 - 第三名 */
}

/* 排名徽章特殊样式 */
.badge.bg-primary {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.badge.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

.badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
}

/* 图标样式 */
.fas.fa-fire {
    color: #dc3545;
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* 统计概览样式 */
.text-primary .fas,
.text-success .fas,
.text-warning .fas {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .list-group-item {
        padding: 1rem 0.75rem;
    }
    
    .d-flex.w-100.justify-content-between {
        flex-direction: column;
    }
    
    .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

/* 空状态样式 */
.text-center.py-5 .fas {
    opacity: 0.3;
}

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* 链接样式 */
.list-group-item a {
    color: #212529;
    text-decoration: none;
}

.list-group-item a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 小图标样式 */
.small .fas {
    width: 12px;
    text-align: center;
}

/* 三列布局样式 */
@media (max-width: 768px) {
    .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* 三列布局中的标题样式 */
.h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.h6 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* 三列布局中的列表项样式 */
.col-md-4 .list-group-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
}

/* 三列布局中的徽章样式 */
.col-md-4 .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}
