/**
 * Player Roster Styles for 男子一线队
 * 球员阵容展示样式
 */

/* 整体容器 */
.cm_roster_page {
    width: 100%;
    padding: 40px 0;
}

.roster-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题区域 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
}

/* 位置分组 */
.position-section {
    margin-bottom: 80px;
}

.position-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 球员网格 */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 球员卡片 */
.player-card {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 球员图片区域 */
.player-image {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.player-image a,
.player-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.player-card:hover .player-image img {
    transform: scale(1.1);
}

/* 占位符（无图片时） */
.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.player-number-large {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

/* 球衣号码徽章 */
.player-number-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 球员信息区域 */
.player-info {
    padding: 20px;
    background: #000;
    color: #fff;
    text-align: center;
}

.player-position-label {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.player-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.player-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.player-name a:hover {
    color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .section-title h1 {
        font-size: 2rem;
    }

    .position-title {
        font-size: 1.5rem;
    }

    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .player-number-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: 10px;
        left: 10px;
    }

    .player-number-large {
        font-size: 5rem;
    }

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

@media (max-width: 480px) {
    .roster-container {
        padding: 0 15px;
    }

    .section-title h1 {
        font-size: 1.5rem;
    }

    .position-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .players-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .player-info {
        padding: 15px;
    }
}

/* 黑金配色主题 */
.player-card.gold-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2413 100%);
}

.player-card.gold-theme .player-number-badge {
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    color: #000;
}

.player-card.gold-theme:hover {
    box-shadow: 0 15px 40px rgba(244, 196, 48, 0.3);
}
