/* 全局背景样式 */
body {
    margin: 0;
    padding: 0;
    background-image: url('photo_2025-12-27_12-22-26.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* 游戏主题报奖冲榜模块样式 */
.leaderboard-section {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 0 8px 32px rgba(255, 65, 108, 0.3), 0 0 60px rgba(255, 75, 43, 0.2);
    position: relative;
    overflow: hidden;
}

/* 卡片式报奖冲榜模块样式 */
.leaderboard-card {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 32px rgba(255, 65, 108, 0.3);
    overflow: hidden;
    /*background: url('18076214006173056.jpg') center/cover no-repeat;*/
    /* 添加四个角圆润效果 */
    border-radius: 15px;
}

.leaderboard-card .leaderboard {
    /*padding: 1rem;*/
    /*display: flex;*/
    flex-direction: column;
    gap: 0;
}

.leaderboard-card .leaderboard-header {
    margin-bottom: 0;
    margin-top: 0;
    padding: 2rem 1rem;
    background-image: url('photo_2025-12-27_12-18-10.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px 15px 0 0;
    color: #fff;
}

.leaderboard-card .leaderboard-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.leaderboard-card .leaderboard-subtitle {
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.leaderboard-card .simple-list-container {
    margin: 0;
    padding: 0;
}

.leaderboard-card .leaderboard-footer {
    margin: 0;
    padding: 1rem;
    background: transparent;
    color: #fff;
}

.leaderboard-card .update-time {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* 排行榜内容样式 */
.simple-list-container,
.leaderboard-footer {
    background: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.leaderboard-header {
    padding: 2rem 1rem;
    margin: 0;
}

/* 简单列表布局样式 */
.simple-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    /* 只添加下方两个角圆润效果 */
    border-radius: 0 0 10px 10px;
    /* 添加滚动功能和最大高度，为响应式设计做准备 */
    overflow: hidden;
    overflow-y: auto;
    /* 设置默认最大高度 */
    max-height: 700px;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏WebKit滚动条 */
.simple-list-container::-webkit-scrollbar {
    display: none;
}
.simple-list-header{
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    font-size: 1rem;
    text-align: center;
    /* 添加底部边框作为分隔线 */
    border-bottom: 2px solid rgba(255, 65, 108, 0.5);
    /* 移除圆角边框 */
    border-radius: 0;
    /* 移除阴影效果 */
    box-shadow: none;
    /* 移除间距 */
    margin: 0;
    /* 使用实色背景 */
    background: rgba(255, 255, 255, 0.95);
}



.simple-rank-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    font-size: 1rem;
    text-align: center;
    /* 添加底部边框作为分隔线 */
    border-bottom: 2px solid rgba(255, 65, 108, 0.5);
    /* 移除圆角边框 */
    border-radius: 0;
    /* 移除阴影效果 */
    box-shadow: none;
    /* 移除间距 */
    margin: 0;
    /* 使用实色背景 */
    background: rgba(255, 255, 255, 0.95);
}

/* 移除最后一个项的底部边框 */
.simple-rank-item:last-child {
    border-bottom: none;
}

/* 前三名特殊样式 - 跳过表头行 */
.simple-rank-item:nth-child(2) {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #8b4513;
    font-weight: bold;
    border-bottom: 3px solid #ffd700;
}

.simple-rank-item:nth-child(3) {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #4a4a4a;
    font-weight: bold;
    border-bottom: 3px solid #c0c0c0;
}

.simple-rank-item:nth-child(4) {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #8b4513;
    font-weight: bold;
    border-bottom: 3px solid #cd7f32;
}

.simple-rank {
    width: 20%;
    font-weight: bold;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    line-height: 30px;
    font-size: 1rem;
}

.simple-id,
.simple-name,
.simple-reward {
    width: 40%;
    font-weight: bold;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保即使没有名字和奖励，排名也能正确显示 */
.simple-rank-item {
    justify-content: flex-start;
}

.simple-rank-item > span {
    flex-shrink: 0;
}

.simple-score {
    color: #28a745;
}

.simple-reward {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .simple-rank-item {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .simple-rank {
        width: auto;
    }
    
    .simple-name {
        flex: 1;
        margin: 0;
    }
    
    .simple-score, .simple-reward {
        width: auto;
        text-align: left;
    }
}

/* 游戏风格装饰元素 */
.leaderboard-section::before {
    content: '🎮';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(20deg);
}

.leaderboard-section::after {
    content: '🏆';
    position: absolute;
    bottom: -30px;
    left: -30px;
    font-size: 10rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.leaderboard {
    width: 100%;
    position: relative;
    z-index: 10;
    /* 添加背景图片到排行榜容器 */
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 移除顶部边距和内边距 */
    margin-top: 0;
    padding-top: 0;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0;
    padding: 2rem 1rem;
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px 15px 0 0;
}

.leaderboard-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0px #ff4b2b, 6px 6px 0px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    letter-spacing: 2px;
}

.leaderboard-subtitle {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* 增强排行榜文字的可读性 */
.simple-rank-item {
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.update-time {
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.leaderboard-content {
    overflow-x: auto;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.leaderboard-content::-webkit-scrollbar {
    display: none;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffd700;
}

.leaderboard-table th {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1.2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #ff4b2b;
    font-size: 1.1rem;
}

.leaderboard-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-weight: 500;
}

.player-row {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.8);
}

.player-row:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.3);
    border-radius: 10px;
}

/* 排名样式 */
.rank-cell {
    position: relative;
}

.rank-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Black', sans-serif;
}

/* 前三名特殊样式 */
.rank-gold {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
}

.rank-silver {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #c0c0c0;
}

.rank-bronze {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #cd7f32;
}

/* 排名徽章样式 */
.rank-gold .rank-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.4);
    animation: goldGlow 2s ease-in-out infinite;
}

.rank-silver .rank-badge {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    color: #4a4a4a;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.8), 0 0 50px rgba(192, 192, 192, 0.4);
    animation: silverGlow 2s ease-in-out infinite;
}

.rank-bronze .rank-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #f4a460 100%);
    color: #8b4513;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.8), 0 0 50px rgba(205, 127, 50, 0.4);
    animation: bronzeGlow 2s ease-in-out infinite;
}

.rank-normal .rank-badge {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.6);
}

/* 发光动画 */
@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 70px rgba(255, 215, 0, 0.6);
    }
}

@keyframes silverGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(192, 192, 192, 0.8), 0 0 50px rgba(192, 192, 192, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(192, 192, 192, 1), 0 0 70px rgba(192, 192, 192, 0.6);
    }
}

@keyframes bronzeGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(205, 127, 50, 0.8), 0 0 50px rgba(205, 127, 50, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(205, 127, 50, 1), 0 0 70px rgba(205, 127, 50, 0.6);
    }
}

/* 玩家信息样式 */
.name-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.player-avatar {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.player-name {
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 分数样式 */
.score-cell {
    font-weight: bold;
    color: #28a745;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 奖励样式 */
.reward-cell {
    position: relative;
}

.reward-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
    font-size: 1.1rem;
    border: 2px solid #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* 页脚样式 */
.leaderboard-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    flex-wrap: wrap;
}

.update-time {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.refresh-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .leaderboard-header h2 {
        font-size: 1.5rem;
    }
    
    .leaderboard-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 手机自适应高度 - 根据视口高度调整排行榜显示 */
@media (max-height: 700px) {
    /* 对于较矮的屏幕，减小排行榜容器的最大高度 */
    .simple-list-container {
        max-height: 200px;
    }
    
    /* 减小排名项的内边距和字体大小 */
    .simple-rank-item {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    /* 减小标题字体大小 */
    .leaderboard-header h2 {
        font-size: 1.2rem;
    }
    
    .leaderboard-subtitle {
        font-size: 0.8rem;
    }
    
    /* 减小页脚高度和字体大小 */
    .leaderboard-footer {
        padding: 0.5rem;
    }
    
    .update-time {
        font-size: 0.8rem;
    }
    
    .refresh-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 对于非常矮的屏幕（如部分小屏手机） */
@media (max-height: 700px) {
    /* 进一步减小排行榜容器的最大高度 */
    .simple-list-container {
        max-height: 150px;
    }
    
    /* 进一步减小排名项的内边距 */
    .simple-rank-item {
        padding: 0.2rem;
    }
    
    /* 减小领导板区域的整体外边距和内边距 */
    .leaderboard-section {
        padding: 1rem 0;
        margin: 1rem 0;
    }
}