/**
 * 组件样式 - 在线组局平台
 * 包含：卡片、活动项、统计等可复用组件
 */

/* ========== 统计卡片 ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #a6c0ef;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 统计卡片上的红点徽章 */
.stat-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    text-align: center;
    font-weight: bold;
    line-height: 14px;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 脉冲动画效果 */
.stat-card-badge.pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.6), 0 0 0 4px rgba(255, 68, 68, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    }
}

/* ========== 信息卡片 ========== */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.info-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    width: 80px;
    color: #999;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.info-empty {
    color: #ccc;
}

/* ========== 活动列表 ========== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.activity-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.activity-item.hidden {
    display: none;
}

.activity-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a6c0ef 0%, #fbd7f2 100%);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

.activity-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    align-self: flex-start;
}

.status-1 { background: #4caf50; }
.status-2 { background: #ff9800; }
.status-3 { background: #999; }
.status-0 { background: #f44336; }

/* ========== 响应式布局 ========== */
@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 400px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

