/* 小组功能样式 */

/* 小组卡片样式 */
.group-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.group-banner {
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.group-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

/* 小组详情页横幅 */
.group-detail-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
}

.group-detail-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.group-detail-banner .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 成员卡片 */
.member-card {
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-card:hover {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 照片网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.photo-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.photo-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo-grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.1);
}

.photo-grid-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-grid-item:hover .photo-overlay {
    transform: translateY(0);
}

/* 排行榜样式 */
.leaderboard-item {
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.leaderboard-item:hover {
    background: white;
    border-left-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-left-color: #ffd700;
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border-left-color: #c0c0c0;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    border-left-color: #cd7f32;
}

/* 按钮样式 */
.btn-group-action {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-group-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 标签样式 */
.group-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.badge-founder {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-admin {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
}

.badge-member {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .group-detail-banner {
        height: 250px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* 夜间模式支持 */
@media (prefers-color-scheme: dark) {
    .group-card {
        background: #1a1a1a;
        color: white;
    }
    
    .stat-card {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .member-card {
        background: #2a2a2a;
        color: white;
    }
    
    .photo-grid-item {
        background: #1a1a1a;
    }
    
    .leaderboard-item {
        background: #2a2a2a;
        color: white;
    }
}

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

.group-card,
.member-card,
.photo-grid-item {
    animation: fadeIn 0.5s ease;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

