/**
 * 各页面专用样式
 */

/* ========== 首页样式 ========== */
.home-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
}

.home-logo-section {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.home-title {
    font-size: 18px;
    color: #f39c12;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(243, 156, 18, 0.5);
}

.home-logo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-logo-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.home-player-section {
    width: 100%;
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    min-height: 0;
}

.home-player-container {
    position: relative;
    display: inline-block;
}

.home-player-img {
    width: auto;
    height: auto;
    padding: 10px;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: playerFloat 3s ease-in-out infinite;
}

/* CSS 生成的阴影 */
.home-player-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.4;
    }
}

@keyframes playerFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.home-button-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    padding: 0 20px;
    margin: 0 auto;
    z-index: 20;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.btn-img {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
    display: block;
}

.btn-img:hover {
    transform: scale(1.05);
}

.btn-img:active {
    transform: scale(0.95);
}

.btn-img img {
    width: 100%;
    height: auto;
    display: block;
}

.home-btn-enter,
.home-btn-review {
    width: 100%;
    margin-bottom: 8px;
}

/* 重置数据按钮 */
.btn-reset {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #bdc3c7;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    margin-top: 10px;
}

.btn-reset:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    transform: scale(1.02);
}

.btn-reset:active {
    transform: scale(0.98);
}

/* ========== 选择队伍页面样式 ========== */
.team-select-page {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

/* 红色标题栏 */
.team-select-title {
    background: #e74c3c !important;
    padding: 10px 15px;
}

.team-select-title h2 {
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* 主要内容区域（地图占满） */
.team-select-main-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 15px;
    position: relative;
    background-image: url(../images/p_choiceteam.png);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

/* 队伍信息显示区域 - 在左侧按钮上方 */
.team-select-info-section {
    position: absolute;
    bottom: 180px;
    padding-left: 20px;
    left: 0;
    width: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 左对齐 */
}

.team-info-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 左对齐 */
    width: 100%;
    max-width: 500px;
    min-height: 80px;
}

/* 队伍信息区域的城市文字图片 - 确保显示 */
.team-select-info-section .city-text-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    display: block !important;
    /* 强制显示 */
    position: relative;
}

.team-logo-name-wrapper {
    position: relative;
    /* 改为相对定位，跟随容器左对齐 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding: 8px 12px;
    padding-left: 80px;
    /* 为队徽留出空间 */
    min-height: 70px;
    background-size: 70px 70px;
    background-position: 0 center;
    /* 背景图片贴着最左边 */
    background-repeat: no-repeat;
    background-origin: padding-box;
    /* 使用 padding-box 让背景从 padding 区域开始 */
}

.team-name-text {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: left;
}

/* 左侧按钮区域 - 左半侧屏幕居中 */
.team-select-left-buttons {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 50%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.team-select-left-buttons .btn-img {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 180px;
    height: auto;
}

.team-select-left-buttons .btn-img:hover {
    transform: scale(1.08);
}

.team-select-left-buttons .btn-img:active {
    transform: scale(0.95);
}

.team-select-left-buttons .btn-img:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.team-select-left-buttons .btn-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 队员头像前景（绝对定位，向右移动） */
.player-foreground {
    position: absolute;
    bottom: 80px;
    right: 30px;
    z-index: 100;
    display: none;
}

.player-foreground-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-foreground-img {
    width: 250px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* 队员头像底部阴影 */
.player-foreground-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.map-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.hunan-map {
    position: relative;
    width: 100%;
    aspect-ratio: 513 / 510;
    padding: 0;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
    align-self: flex-start;
}


.city-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    /* 锚点在中心 */
    transform-origin: center center;
    /* 确保变换原点在中心 */
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    /* 确保尺寸计算包含边框 */
}

.city-marker.selected {
    width: 30px;
    /* 保持尺寸一致，避免位置偏移 */
    height: 30px;
    /* 保持尺寸一致，避免位置偏移 */
    transform: translate(-50%, -50%) scale(1.15);
    /* 使用 scale 放大，保持中心点不变 */
    animation: cityMarkerPulse 1.2s infinite;
    z-index: 20;
}

/* 队伍信息区域的城市文字图片 */
.team-select-info-section .city-text-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    display: block;
    /* 确保显示 */
    pointer-events: none;
}

@keyframes cityMarkerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.15);
        /* 保持基础缩放 */
    }

    50% {
        transform: translate(-50%, -50%) scale(1.25);
        /* 在基础缩放上增加 */
    }
}

.city-name {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 12px;
    white-space: nowrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    pointer-events: none;
    z-index: 11;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}



.team-info-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 15px;
    flex: 1;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.team-info-placeholder {
    text-align: center;
    padding: 20px 20px;
    /* 减少上方 padding，从 60px 改为 20px */
    color: #95a5a6;
}

.team-info {
    color: white;
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

.team-logo-star {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 1px;
}

.team-logo-text {
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.team-name {
    font-size: 14px;
    color: #f39c12;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

/* 队员主图显示 */
.team-player-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.player-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-main-img {
    width: 120px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.player-main-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: auto;
    opacity: 0.4;
    z-index: 1;
}

.player-main-info {
    margin-top: 10px;
    text-align: center;
}

.player-main-number {
    font-weight: bold;
    color: #f39c12;
    font-size: 12px;
    margin-bottom: 3px;
}

.player-main-name {
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.team-select-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px 20px;
    flex: 0 0 auto;
}

.team-select-buttons .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
}

.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirm-content {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(243, 156, 18, 0.6);
    text-align: center;
    width: 90%;
    max-width: 450px;
}

.confirm-content h3 {
    color: #f39c12;
    margin-bottom: 20px;
}

.confirm-team-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.confirm-message {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.6;
}

.confirm-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.confirm-buttons .btn {
    flex: 1;
}

/* ========== 游戏页面样式 ========== */
.game-play-page {
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* 游戏画布容器 */
#gameWrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    background: #1a252f;
    transition: background 0.3s ease;
}

#gameWrapper.scaled {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0d1318;
}

#gameWrapper.scaled #gameContainer {
    margin: 0;
    flex-shrink: 0;
}

#gameContainer {
    position: relative;
    width: 720px;
    height: 1280px;
    background: #27ae60;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    transform-origin: center center;
    z-index: 1;
    /* 确保在 UI 层下方 */
    transition: transform 0.3s ease-out;
}

#gameCanvas {
    display: block;
    width: 720px;
    height: 1280px;
    background: linear-gradient(180deg, #27ae60 0%, #229954 100%);
    position: relative;
    z-index: 1;
    /* 确保在 UI 层下方 */
}

/* ========== GAME OVER 界面样式 ========== */
.game-over-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.game-over-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.95));
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(231, 76, 60, 0.6);
}

/* 胜利界面样式 */
.game-over-container.victory .game-over-content {
    border: 3px solid rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.9), rgba(20, 40, 20, 0.95));
}

.game-over-title {
    font-size: 42px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6);
    margin-bottom: 12px;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

/* 胜利标题样式 */
.game-over-container.victory .game-over-title {
    color: #2ecc71;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.8), 0 0 40px rgba(46, 204, 113, 0.6);
    animation: victoryPulse 2s ease-in-out infinite;
}

@keyframes victoryPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.game-over-subtitle {
    font-size: 14px;
    color: #ecf0f1;
    margin-bottom: 18px;
    font-weight: 500;
}

.game-over-team {
    font-size: 18px;
    color: #f39c12;
    margin-bottom: 18px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
}

.game-over-message {
    color: #bdc3c7;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.game-over-message p {
    margin: 10px 0;
}

.game-over-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-over-buttons .btn {
    font-size: 12px;
    padding: 10px 24px;
    min-width: 120px;
    width: 100%;
    max-width: 300px;
}

/* ========== 赛程页面样式 ========== */
.schedule-page {
    display: flex;
    flex-direction: column;
}

.schedule-page .page-title {
    background: rgba(0, 0, 0, 0.8);
    margin: 8px 12px 0;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
}

.schedule-page .page-title h2 {
    margin: 0;
    text-align: center;
}

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    margin: 0 12px;
    border-radius: 0 0 10px 10px;
}

.toggle-btn {
    padding: 6px 18px;
    font-size: 11px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
}

.toggle-btn.disabled,
.toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.toggle-btn.disabled:hover,
.toggle-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.standings-container {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.standings-table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
    table-layout: fixed;
}

.standings-table thead {
    background: rgba(243, 156, 18, 0.3);
}

.standings-table th {
    padding: 8px 6px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #f39c12;
    border-bottom: 2px solid rgba(243, 156, 18, 0.5);
}

.standings-table td {
    padding: 6px 5px;
    text-align: center;
    font-size: 10px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table tbody tr {
    transition: background 0.3s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.standings-table tbody tr.your-team {
    background: rgba(243, 156, 18, 0.2);
    border: 2px solid rgba(243, 156, 18, 0.5);
}

.standings-table tbody tr.your-team:hover {
    background: rgba(243, 156, 18, 0.3);
}

.standings-table .team-name-col {
    text-align: left;
    min-width: 80px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-table .team-name {
    text-align: left;
    font-weight: bold;
}

.standings-table .rank {
    font-weight: bold;
    color: #f39c12;
}

.standings-table .wins {
    color: #2ecc71;
}

.standings-table .draws {
    color: #f39c12;
}

.standings-table .losses {
    color: #e74c3c;
}

.standings-table .points {
    font-weight: bold;
    font-size: 11px;
    color: #3498db;
}

.standings-table .positive {
    color: #2ecc71;
}

.standings-table .negative {
    color: #e74c3c;
}

.knockout-placeholder {
    text-align: center;
    padding: 100px 20px;
    color: white;
    font-size: 24px;
}

/* 淘汰赛视图 */
.knockout-view {
    padding: 15px;
}

.knockout-header {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.knockout-header h3 {
    color: #f39c12;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.knockout-desc {
    color: #95a5a6;
    font-size: 10px;
    margin: 4px 0;
}

.knockout-progress {
    color: #2ecc71;
    font-weight: bold;
    font-size: 14px;
    margin: 5px 0;
}

/* 种子队信息 */
.seed-teams-info {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.5);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: center;
}

.seed-label {
    color: #f39c12;
    font-size: 13px;
}

.seed-names {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* 淘汰赛轮次 */
.knockout-rounds {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knockout-round {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 12px;
}

.knockout-round.final-round {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
        linear-gradient(135deg, rgba(243, 156, 18, 0.4), rgba(230, 126, 34, 0.4));
    border: 2px solid rgba(243, 156, 18, 0.8);
}

.round-title {
    color: #f39c12;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.round-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* 比赛卡片 */
.knockout-match {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.knockout-match.played {
    border-color: rgba(46, 204, 113, 0.5);
}

.knockout-match.pending {
    opacity: 0.8;
}

/* 包含玩家队伍的比赛卡片高亮 */
.knockout-match.your-team-match {
    background: rgba(243, 156, 18, 0.15);
    border: 2px solid rgba(243, 156, 18, 0.6);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.knockout-match.your-team-match.played {
    background: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.7);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

.knockout-match.your-team-match:hover {
    background: rgba(243, 156, 18, 0.25);
    border-color: rgba(243, 156, 18, 0.8);
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.5);
    transform: translateY(-2px);
}

.match-round-label {
    color: #95a5a6;
    font-size: 11px;
    margin-bottom: 5px;
}

.match-teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.team-home, .team-away {
    flex: 1;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.team-home {
    text-align: right;
}

.team-away {
    text-align: left;
}

.team-home.winner, .team-away.winner {
    color: #2ecc71;
}

.team-home.your-team, .team-away.your-team {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(243, 156, 18, 0.5);
    font-weight: bold;
}

.team-home.your-team.winner, .team-away.your-team.winner {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
}

.match-score {
    color: #f39c12;
    font-size: 14px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

/* 旧样式保留 */
.match-history {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
}

.match-history h4 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 16px;
}

.match-record {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.match-record:last-child {
    border-bottom: none;
}

.match-number {
    color: #95a5a6;
    font-size: 12px;
}

.match-teams {
    font-weight: bold;
}

.no-matches {
    color: #95a5a6;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 10px 0;
}

/* 被淘汰的队伍样式 */
.standings-table tbody tr.eliminated {
    opacity: 0.5;
}

.standings-table tbody tr.eliminated .team-name {
    text-decoration: line-through;
}

/* 射手榜样式 */
.scorers-table .scorer-name-col {
    text-align: left;
    min-width: 80px;
    max-width: 100px;
}

.scorers-table .scorer-name {
    text-align: left;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.scorers-table .scorer-position {
    text-align: center;
    color: #95a5a6;
    min-width: 60px;
}

.scorers-table .scorer-number {
    text-align: center;
    color: #95a5a6;
    min-width: 50px;
}

.scorers-table .scorer-team {
    color: #95a5a6;
    min-width: 100px;
}

.scorers-table .scorer-goals {
    font-weight: bold;
    font-size: 18px;
    color: #f39c12;
    text-align: center;
    min-width: 60px;
}

.scorers-table tbody tr.top-scorer {
    background: rgba(243, 156, 18, 0.15);
}

.scorers-table tbody tr.top-scorer:hover {
    background: rgba(243, 156, 18, 0.25);
}

/* 无进球记录提示 */
.no-scorers {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.no-scorers-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-scorers-text {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.no-scorers-hint {
    font-size: 14px;
    color: #95a5a6;
}

/* 进度条区域 */
.progress-section {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    margin: 0 20px;
    border-radius: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.progress-last-match {
    color: #3498db;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.progress-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.schedule-buttons {
    text-align: center;
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.schedule-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-buttons .btn-secondary:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

/* ========== 战术页面样式 ========== */
.tactics-page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
}

.tactics-title {
    background: rgba(0, 0, 0, 0.8);
    margin: 4px 8px;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.tactics-title h2 {
    margin: 0;
    font-size: 12px;
}

.current-formation {
    margin-top: 4px;
    font-size: 10px;
    color: #f39c12;
    font-weight: bold;
}

/* 阵型选择器 */
.formation-selector {
    margin: 4px 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    flex-shrink: 0;
}

.formation-selector-label {
    color: white;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
}

.formation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.formation-btn {
    padding: 4px 10px;
    font-size: 9px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formation-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.formation-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
}

/* 放大版阵型预览 */
.formation-preview-large {
    flex: 1;
    min-height: 0;
    max-height: 420px;
    margin: 4px 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.formation-field-large {
    position: relative;
    width: 320px;
    height: 380px;
    margin: 0 auto;
    background: linear-gradient(180deg,
            rgba(46, 125, 50, 0.6) 0%,
            rgba(56, 142, 60, 0.6) 50%,
            rgba(27, 94, 32, 0.6) 100%);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: visible;
}

/* 球场标记 */
.field-markings {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.penalty-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 51px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.penalty-area.top {
    top: 0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.penalty-area.bottom {
    bottom: 0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

/* 场上球员 */
.field-player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: element;
    -khtml-user-drag: element;
}

.field-player:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

.field-player.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* 门将锁定样式 - 不允许移动 */
.field-player.goalkeeper-locked {
    cursor: not-allowed !important;
    opacity: 0.9;
}

.field-player.goalkeeper-locked:hover {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.95;
}

.field-player.goalkeeper-locked::after {
    content: '🔒';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    opacity: 0.7;
}

.field-player.drag-over {
    transform: translate(-50%, -50%) scale(1.2);
    border: 2px dashed #2ecc71;
    border-radius: 10px;
    padding: 5px;
}

/* 子元素不接收鼠标事件，确保拖拽传递到父元素 */
.field-player-avatar,
.field-player-name,
.field-player-role {
    pointer-events: none;
}

/* 不同位置球员的颜色 */
.field-player.role-gk .field-player-avatar {
    background: linear-gradient(135deg, #f1c40f, #d68910);
}

.field-player.role-df .field-player-avatar {
    background: linear-gradient(135deg, #3498db, #2471a3);
}

.field-player.role-mf .field-player-avatar {
    background: linear-gradient(135deg, #2ecc71, #1e8449);
}

.field-player.role-fw .field-player-avatar {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.field-player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.field-player-name {
    margin-top: 1px;
    font-size: 7px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.field-player-role {
    font-size: 7px;
    color: #f39c12;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 4px;
}

.field-player-stars {
    font-size: 7px;
    color: #f1c40f;
    margin-top: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* 替补席区域 */
.bench-section {
    margin: 4px 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    width: calc(100% - 16px);
    /* 确保有固定宽度 */
    box-sizing: border-box;
    flex-shrink: 0;
    max-height: 80px;
}

.bench-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.bench-hint {
    font-size: 11px;
    color: #95a5a6;
    font-weight: normal;
}

.bench-players {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
    /* iOS 平滑滚动 */
    scrollbar-width: thin;
    /* Firefox 滚动条样式 */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit 浏览器滚动条样式 */
.bench-players::-webkit-scrollbar {
    height: 6px;
}

.bench-players::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.bench-players::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.bench-players::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.bench-player {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: element;
    -khtml-user-drag: element;
}

.bench-player:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(243, 156, 18, 0.5);
}

.bench-player.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.bench-player.drag-over {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
}

/* 子元素不接收鼠标事件 */
.bench-player-number,
.bench-player-info,
.bench-player-name,
.bench-player-role {
    pointer-events: none;
}

/* 不同位置替补球员的颜色 */
.bench-player.role-gk {
    border-color: rgba(241, 196, 15, 0.5);
}

.bench-player.role-gk .bench-player-number {
    background: linear-gradient(135deg, #f1c40f, #d68910);
}

.bench-player.role-df {
    border-color: rgba(52, 152, 219, 0.5);
}

.bench-player.role-df .bench-player-number {
    background: linear-gradient(135deg, #3498db, #2471a3);
}

.bench-player.role-mf {
    border-color: rgba(46, 204, 113, 0.5);
}

.bench-player.role-mf .bench-player-number {
    background: linear-gradient(135deg, #2ecc71, #1e8449);
}

.bench-player.role-fw {
    border-color: rgba(231, 76, 60, 0.5);
}

.bench-player.role-fw .bench-player-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.bench-player-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22, #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: white;
}

.bench-player-info {
    display: flex;
    flex-direction: column;
}

.bench-player-name {
    font-size: 9px;
    font-weight: bold;
    color: white;
}

.bench-player-role {
    font-size: 8px;
    color: #95a5a6;
}

.bench-player-stars {
    font-size: 8px;
    color: #f1c40f;
    margin-top: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* 战术按钮 */
.tactics-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.tactics-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tactics-buttons .btn-quick {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tactics-buttons .btn-quick:hover:not(:disabled) {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    border-color: rgba(255, 255, 255, 0.5);
}

.tactics-buttons .btn-quick:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.6), rgba(142, 68, 173, 0.6));
}

/* 旧样式保留（兼容） */
.player-card {
    width: 70px;
    height: 85px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.player-card.placeholder {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    opacity: 0.6;
}

.player-card-number {
    font-size: 20px;
    /* 进一步减小字体 */
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.player-card-name {
    font-size: 10px;
    /* 进一步减小字体 */
    color: white;
    margin-top: 3px;
    text-align: center;
}

.player-card-role {
    font-size: 10px;
    /* 减小字体 */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 8px;
}

.tactics-buttons {
    text-align: center;
    padding: 10px 20px 15px;
    flex: 0 0 auto;
}

/* ========== 排行榜页面样式 ========== */
.ranking-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
}

.tab-btn {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
}

.ranking-content {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.ranking-list {
    max-width: 800px;
    margin: 0 auto;
}

.ranking-item {
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
}

.ranking-item.top-three {
    border-color: rgba(243, 156, 18, 0.5);
    background: rgba(243, 156, 18, 0.1);
}

.ranking-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.ranking-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b4513;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.ranking-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #555;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.ranking-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 13px;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
}

.ranking-team,
.ranking-season,
.ranking-province {
    font-size: 10px;
    color: #bdc3c7;
}

.ranking-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 9px;
    color: #95a5a6;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #3498db;
}

.ranking-buttons {
    text-align: center;
    padding: 12px;
}

/* ========== 结算页面样式 ========== */
.result-page {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.result-content {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(243, 156, 18, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-status {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-status.win {
    color: #2ecc71;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
}

.result-status.lose {
    color: #e74c3c;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

.result-status.draw {
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

.result-subtitle {
    font-size: 12px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-score-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.team-score {
    text-align: center;
}

.team-score.winner .team-score-number {
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

.team-name {
    font-size: 13px;
    color: white;
    margin-bottom: 6px;
    font-weight: bold;
}

.team-score.blue .team-name {
    color: #3498db;
}

.team-score.red .team-name {
    color: #e74c3c;
}

.team-score-number {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.score-divider {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
}

.result-stats,
.result-goals {
    margin-bottom: 30px;
}

.result-stats h3,
.result-goals h3 {
    color: #f39c12;
    margin-bottom: 10px;
    text-align: center;
    font-size: 13px;
}

.stats-grid {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #bdc3c7;
    font-size: 10px;
}

.stat-value {
    color: white;
    font-weight: bold;
    font-size: 11px;
}

.goals-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-item.blue .goal-player {
    color: #3498db;
}

.goal-item.red .goal-player {
    color: #e74c3c;
}

.goal-time {
    color: #f39c12;
    font-weight: bold;
    min-width: 40px;
}

.goal-player {
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.goal-team-name {
    color: #95a5a6;
    font-size: 14px;
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.result-buttons .btn {
    width: 100%;
}

/* 下载按钮样式 */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.btn-download:active {
    transform: translateY(0);
}

.download-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 下载弹出层样式 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.download-modal-content {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(243, 156, 18, 0.6);
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.download-modal-header h3 {
    color: #f39c12;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.download-modal-close {
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}

.download-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-modal-body p {
    color: #ecf0f1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.download-modal-body .btn-download {
    width: 100%;
    max-width: 280px;
}

/* 响应式 */
@media (max-width: 768px) {
    .home-title {
        font-size: 20px;
    }

    .home-logo {
        width: 300px;
        height: 300px;
        padding-top: 20px;
    }

    .home-logo-section {
        height: auto;
    }

    .home-player-section {
        flex: 1;
    }

    .home-button-section {
        width: 250px;
        padding-bottom: 0px;
    }

    .hunan-map {
        width: 100%;
    }

    .confirm-content {
        min-width: 300px;
        padding: 20px;
    }

    .standings-container {
        padding: 6px;
    }

    .standings-table {
        font-size: 9px;
        border-radius: 8px;
    }

    .standings-table th,
    .standings-table td {
        padding: 4px 3px;
    }

    .standings-table .team-name-col {
        min-width: 60px;
        max-width: 80px;
    }

    /* 移动端 team-select 布局改为纵向 */
    .team-select-main-content {
        margin: 10px;
    }

    .map-section {
        top: 80px;
        padding: 20px;
    }

    .map-container {
        width: 100%;
    }

    .team-select-right-panel {
        width: 100%;
    }

    .player-character {
        display: none;
        /* 移动端隐藏球员角色大图 */
    }

    /* 移动端 team-info-panel 优化 */
    .team-info-panel {
        padding: 15px 12px;
        margin: 0;
        min-height: 300px;
        max-height: 360px;
    }

    .team-logo {
        width: 60px;
        height: 60px;
    }

    .team-logo-star {
        font-size: 18px;
    }

    .team-logo-text {
        font-size: 12px;
    }

    .team-name {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .player-main-img {
        width: 150px;
        max-height: 250px;
    }

    .player-main-shadow {
        width: 120px;
    }

    .player-main-number {
        font-size: 16px;
    }

    .player-main-name {
        font-size: 14px;
    }

    /* 移动端左侧按钮调整 */
    .team-select-left-buttons {
        width: 50%;
        gap: 15px;
    }

    .team-select-left-buttons .btn-img {
        width: 140px;
    }

    /* 移动端队员头像前景调整 */
    .player-foreground {
        bottom: 40px;
        right: 20px;
    }

    .player-foreground-img {
        width: 180px;
        max-height: 240px;
    }
}

/* ========== 球员详情面板样式 ========== */
.player-detail-panel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 160px;
    max-width: calc(50vw - 20px);
    max-height: calc(50vh - 20px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 30, 0.95));
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow: hidden;
    border: 2px solid rgba(243, 156, 18, 0.5);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.player-detail-header {
    display: flex;
    justify-content: flex-end;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-detail-close {
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.player-detail-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}

.player-detail-body {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 头像和信息左右排列的容器 */
.player-detail-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.player-detail-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.player-detail-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(243, 156, 18, 0.6);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.player-detail-info {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.player-detail-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.player-detail-number {
    font-size: 10px;
    color: #bdc3c7;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.player-detail-role {
    font-size: 9px;
    color: #f39c12;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.25), rgba(243, 156, 18, 0.15));
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.player-detail-attributes {
    margin-top: 6px;
}

.player-detail-attributes-title {
    font-size: 9px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 4px;
    text-align: center;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    padding-bottom: 3px;
}

.player-detail-attr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 4px;
}

.player-detail-attr-item:last-child {
    border-bottom: none;
}

.player-detail-attr-name {
    font-size: 8px;
    color: #ecf0f1;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.player-detail-attr-stars {
    font-size: 10px;
    color: #f39c12;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    min-width: 40px;
    letter-spacing: 0.5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .player-detail-panel {
        width: calc(50vw - 20px);
        max-width: 180px;
        bottom: 10px;
        right: 10px;
    }

    .player-detail-body {
        padding: 6px;
    }

    .player-detail-top {
        gap: 8px;
        margin-bottom: 6px;
    }

    .player-detail-avatar img {
        width: 50px;
        height: 50px;
    }

    .player-detail-info {
        gap: 3px;
    }

    .player-detail-name {
        font-size: 11px;
    }

    .player-detail-number {
        font-size: 9px;
    }

    .player-detail-role {
        font-size: 8px;
        padding: 2px 6px;
    }

    .player-detail-attr-item {
        flex-wrap: wrap;
        gap: 2px;
    }

    .player-detail-attr-stars {
        min-width: auto;
        flex: 1;
        text-align: left;
    }
}