.hero-section {
    position: relative;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f0f23 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-wrapper {
    position: relative;
    text-align: center;
    padding: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}

.champion-section {
    margin-bottom: 1rem;
}

.champion-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 80px 1fr 100px 80px 100px 120px 120px; /* 7列：排名/玩家/击杀/KD/爆头率/时长/ELO */
    gap: 1rem;
    align-items: center;
    border: none;
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
    position: relative;
    overflow: hidden;
    transform: scaleY(1.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
}

.champion-card:hover {
    box-shadow: 0 12px 35px rgba(184, 134, 11, 0.4);
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: none;
    z-index: 1;
    pointer-events: none;
}

.champion-card:hover::before {
    animation: bladeSlash 0.6s cubic-bezier(0.7, 0, 1, 1) forwards;
}

@keyframes bladeSlash {
    from { left: -100%; }
    to { left: 100%; }
}

.champion-rank {
    display: flex;
    justify-content: center;
    margin-left: -8px;
}

.champion-number {
    color: #ffd700 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    font-style: italic !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.champion-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: -8px;
}

.champion-img {
    width: 52px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    object-fit: cover;
}

.champion-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.champion-kills,
.champion-kd,
.champion-headshot,
.champion-playtime {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.champion-elo {
    display: flex;
    justify-content: center;
}

.champion-elo .cs2rating {
    height: 28px;
}

.ranking-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ranking-table-container {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.table-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding-right: 8px;
}

.table-header-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 80px 100px 120px 120px;
    gap: 1rem;
    padding: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
}

.table-header-row > span {
    text-align: center;
}

.table-header-row > span:first-child {
    text-align: center;
}

.table-header-row > span:nth-child(2) {
    text-align: left;
}

.table-body {
    max-height: 31.5vh; /* 视口 45% 高度，保留内部滚动 */
    overflow-y: auto;
}

.ranking-table {
    width: 100%;
    display: block;
    padding: 0;
}

.player-row {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: grid !important;
    grid-template-columns: 80px 1fr 100px 80px 100px 120px 120px;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    width: 100%;
}

.player-row:hover {
    background: var(--bg-tertiary);
}

.rank-cell,
.player-cell,
.stats-cell,
.elo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.player-cell {
    justify-content: flex-start;
    overflow: visible;
}

.player-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.player-link:hover {
    color: var(--accent-primary);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
}

.player-link:hover .player-avatar {
    border-color: var(--accent-primary);
    transform: scale(1.1);
    z-index: 2;
}

.player-name {
    font-weight: 500;
    font-size: 1rem;
}

.stats-cell {
    font-weight: 500;
    color: var(--text-secondary);
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.rank-badge.rank-top-2 {
    color: #C0C0C0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-badge.rank-top-3 {
    color: #CD7F32;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-data i {
    font-size: 3rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .table-header-row {
        grid-template-columns: 60px 1fr 80px 60px 80px 100px 100px;
        gap: 0.5rem;
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }

    .player-row {
        grid-template-columns: 60px 1fr 80px 60px 80px 100px 100px;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .hero-section {
        height: 120px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .table-header-row {
        grid-template-columns: 50px 1fr 60px 50px 60px 80px 80px;
        gap: 0.25rem;
        font-size: 0.7rem;
        padding: 0.75rem 0.25rem;
    }

    .player-row {
        grid-template-columns: 50px 1fr 60px 50px 60px 80px 80px;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
    }
}