/* ============================================================
 * 阅力掼蛋比赛平台 - 统一样式文件
 * 版本：v1.0 | 更新日期：2026-05-25
 * 说明：所有页面共享此样式，保持视觉一致性
 * ============================================================ */

/* -------------------- 基础样式 -------------------- */
.card-shadow {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
}

/* -------------------- 状态标签 -------------------- */
.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* 报名中/进行中 - 绿色 */
.status-1,
.status-2 {
    background: #e8f5e9;
    color: #00B42A;
}

/* 已结束/已取消 - 灰色 */
.status-3,
.status-0,
.status-completed {
    background: #f5f5f5;
    color: #999;
}

/* -------------------- 顶部导航栏 -------------------- */
.nav-top {
    background: #165DFF;
    color: white;
    border-bottom: none;
}

.nav-top .fa,
.nav-top div,
.nav-top .text-xs {
    color: white;
}

/* -------------------- 卡片样式 -------------------- */
/* 比赛信息卡片 */
.game-card {
    background: #fbfbfb;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* 已报名卡片 */
.registered-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

/* 更多比赛卡片 */
.more-card { 
    background: #f0f7ff;
    border: 1px solid #d1e3ff;
    border-radius: 12px;
}

/* -------------------- 报名列表项 -------------------- */
.registration-item {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.registration-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

/* -------------------- Toast 提示 -------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 10000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 错误 Toast */
.toast.error {
    background: rgba(245, 63, 63, 0.9);
}

/* -------------------- Loading 加载动画 -------------------- */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #165DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------- 分享引导脉冲动画 -------------------- */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.share-guide-tip {
    animation: pulse 2s ease-in-out infinite;
}

/* -------------------- 工具类 -------------------- */
/* 字距 */
.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* 圆角 */
.rounded-card {
    border-radius: 12px;
}

.rounded-item {
    border-radius: 8px;
}