* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 足球样式装饰 */
.header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 21%),
        radial-gradient(circle at 50% 50%, #ffffff 5%, #000000 6%, #000000 15%, #ffffff 16%, #ffffff 25%, #000000 26%, #000000 35%, #ffffff 36%, #ffffff 45%, #000000 46%, #000000 55%, #ffffff 56%, #ffffff 65%, #000000 66%, #000000 75%, #ffffff 76%, #ffffff 85%, #000000 86%, #000000 100%);
    background-size: 50px 50px;
    opacity: 0.2;
    transform: rotate(30deg);
}

.header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 21%),
        radial-gradient(circle at 50% 50%, #ffffff 5%, #000000 6%, #000000 15%, #ffffff 16%, #ffffff 25%, #000000 26%, #000000 35%, #ffffff 36%, #ffffff 45%, #000000 46%, #000000 55%, #ffffff 56%, #ffffff 65%, #000000 66%, #000000 75%, #ffffff 76%, #ffffff 85%, #000000 86%, #000000 100%);
    background-size: 30px 30px;
    opacity: 0.1;
    transform: rotate(-20deg);
}

.header-title {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgb(209 151 132), 0 0 25px rgba(218, 27, 96, 0.7);
    background: linear-gradient(to right, #ffd700, #ff8a00, #da1b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.highlight-text {
    background: linear-gradient(to right, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.rank-list {
    list-style: none;
}

.rank-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ff8a00, #da1b60);
}

.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a00, #da1b60);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(218, 27, 96, 0.5);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00c9ff, #92fe9d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid white;
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.player-number {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.attendance-count {
    background: rgba(0, 200, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.attendance-count::before {
    content: '⚽';
    margin-right: 5px;
}

.top-three .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.top-three:nth-child(2) .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.top-three:nth-child(3) .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.footer {
    text-align: center;
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 如果屏幕过小，适当调整元素大小 */
@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .header-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 8px 15px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .rank-item {
        padding: 15px;
    }

    .player-name {
        font-size: 1.1rem;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .player-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .attendance-count {
        padding: 3px 10px;
        font-size: 0.9rem;
    }
}
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 考勤规则按钮 */
.rules-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.rules-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* 弹窗遮罩层 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* 弹窗内容 */
.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 弹窗头部 */
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* 弹窗主体 */
.modal-body {
    padding: 20px;
}

.modal-body h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 12px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #000000;
}

/* 弹窗底部 */
.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.confirm-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}


.switch-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
    font-size: 16px;
}

.switch-container {
    text-align: center;
    margin-bottom: 20px;
}

.hide {
    display: none;
}


