/* 淡蓝色主题 CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --theme-blue: #6ba4d9; /* 主要淡蓝色 */
    --theme-blue-hover: #5a93c8;
    --theme-blue-light: #e6f0fa; /* 更淡的蓝色背景 */
    --theme-blue-dark: #3a7ab8; /* 深一点的蓝色 */
    --theme-gray: #51aeec; /* 修改为淡黄色 */
    --theme-light-gray: #f0f5fa;
    --theme-border: #cfdbe8;
    --theme-success: #5cb85c;
    --theme-error: #d9534f;
    --theme-warning: #f0ad4e;
    --transition: all 0.3s ease;
    --vh: 1vh; /* 将被JavaScript动态设置 */
}

/* 微动和微放大缩小动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-5px) translateX(2px); }
    50% { transform: translateY(0) translateX(5px); }
    75% { transform: translateY(5px) translateX(2px); }
    100% { transform: translateY(0) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .body-bg-1, .body-bg-2, .body-bg-3, .body-bg-4, .body-bg-5, .body-bg-6, body::before, body::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f8fbff;
    color: #2c3e50;
    line-height: 1.5;
    transition: opacity 0.3s ease;
    opacity: 0.98; /* 初始略微透明，加载后恢复为1 */
    position: relative;
}

/* 网页背景图片 - 使用不同区域显示不同图片 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/菜菜 (1).jpeg");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 25s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 33.33%;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/椰子.png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: float 30s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

.body-bg-1 {
    position: fixed;
    top: 0;
    left: 66.66%;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/亦然 (2).png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 28s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

.body-bg-2 {
    position: fixed;
    top: 33.33%;
    left: 0;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/浅浅.png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: float 32s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

.body-bg-3 {
    position: fixed;
    top: 66.66%;
    left: 66.66%;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/穗穗.png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 27s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

.body-bg-4 {
    position: fixed;
    top: 33.33%;
    left: 66.66%;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/昭昭 (2).png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: float 29s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

.body-bg-5 {
    position: fixed;
    top: 66.66%;
    left: 0;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/羊.png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 26s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

/* .body-bg-6 {
    position: fixed;
    top: 66.66%;
    left: 33.33%;
    width: 33.33%;
    height: 33.33%;
    background-image: url("public/小素.png");
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    animation: float 31s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
} */

/* 设备类型专用样式 */
body.mobile-portrait .container {
    height: calc(100 * var(--vh));
}

body.mobile-landscape .container {
    height: 100vh;
    padding: 5px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.app-header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.app-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 8px;
    color: #1a5396; /* 更深的蓝色 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* 添加轻微文字阴影增强可读性 */
}

.tagline {
    font-size: 24px;
    color: var(--theme-gray);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

/* 游戏模块 */
.game-module {
    background-color: rgba(255, 255, 255, 0.5); /* 进一步降低不透明度 */
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(107, 164, 217, 0.1);
    margin-bottom: 40px;
    border: 1px solid var(--theme-border);
}

/* 为新布局添加的容器样式 */
.secondary-containers {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* 设置区域 */
.game-settings h2,
.game-result h2,
.game-history h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700; /* 加粗 */
    color: #1a5396; /* 更深的蓝色 */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); /* 添加文字阴影 */
}

/* 游戏设置区域添加背景 */
.game-settings {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.5); /* 降低不透明度 */
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
}

/* 游戏设置区域背景图片已删除 */

/* 设置游戏区域背景 */
.game-play {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.5); /* 降低不透明度 */
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
    background-image: url("public/椰子表情包.gif");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 游戏区域背景使用椰子表情包.gif */

/* 设置游戏结果区域背景 */
.game-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7); /* 降低不透明度 */
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

/* 游戏结果区域背景图片已删除 */

/* 设置玩家管理区域背景 */
.player-management {
    position: relative;
    z-index: 1;
    background-image: url("public/浅浅表情包.gif");
    background-size: cover;
    background-position: center center;
    background-color: rgba(255, 255, 255, 0.5); /* 降低不透明度 */
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
    background-repeat: no-repeat;
}

/* 玩家管理区域背景使用浅浅表情包.gif */

/* 设置历史记录区域背景 */
.game-history-records {
    position: relative;
    z-index: 1;
    background-image: url("public/卷卷表情包.gif");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.5); /* 降低不透明度 */
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
}

/* 历史记录区域背景使用卷卷表情包.gif */

/* 爆炸区域背景设置 */
.explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
    overflow: hidden; /* 确保粒子不超出容器 */
}

/* 添加屏幕闪光效果 */
.explosion-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: 10000;
    animation: flash 0.6s cubic-bezier(0.11, 0.65, 0.33, 1) forwards;
}

@keyframes flash {
    0% { background-color: rgba(255, 255, 255, 0); }
    10% { background-color: rgba(255, 255, 255, 0.9); }
    20% { background-color: rgba(255, 230, 150, 0.8); }
    40% { background-color: rgba(255, 180, 100, 0.5); }
    70% { background-color: rgba(255, 120, 50, 0.3); }
    100% { background-color: rgba(255, 255, 255, 0); }
}

/* 添加屏幕闪烁效果 */
.explosion-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: 10002;
    animation: flicker 0.3s linear 3;
}

@keyframes flicker {
    0% { background-color: rgba(255, 255, 255, 0); }
    25% { background-color: rgba(255, 200, 100, 0.2); }
    50% { background-color: rgba(255, 255, 255, 0); }
    75% { background-color: rgba(255, 180, 50, 0.15); }
    100% { background-color: rgba(255, 255, 255, 0); }
}

/* 改进爆炸动画 */
.explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background-color: #ffffff; /* 爆炸初始颜色 - 白色闪光 */
    border-radius: 50%;
    animation: explosion 1.5s cubic-bezier(0.17, 0.67, 0.21, 1.69) forwards;
    opacity: 0;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.9);
    z-index: 10001;
}

@keyframes explosion {
    0% {
        width: 2px;
        height: 2px;
        opacity: 0.3;
        background-color: #ffff99; /* 初始黄白色 */
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.9);
        transform: translate(-50%, -50%) scale(0.8); /* 初始微收缩 */
    }
    2% {
        width: 2px;
        height: 2px;
        opacity: 0.9;
        background-color: #ffffff; /* 纯白色闪光 */
        box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.95);
        transform: translate(-50%, -50%) scale(0.5); /* 继续收缩 */
    }
    5% {
        width: 10px;
        height: 10px;
        opacity: 1;
        background-color: #ffea00; /* 亮黄色 */
        box-shadow: 0 0 60px 30px rgba(255, 234, 0, 0.9);
        transform: translate(-50%, -50%) scale(1.2); /* 爆炸开始，迅速膨胀 */
    }
    15% {
        width: 100px;
        height: 100px;
        background-color: #ff9800; /* 橙色 */
        box-shadow: 0 0 80px 40px rgba(255, 152, 0, 0.85);
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        width: 200px;
        height: 200px;
        opacity: 1;
        background-color: #ff5722; /* 深橙色 */
        box-shadow: 0 0 100px 50px rgba(255, 87, 34, 0.8);
        transform: translate(-50%, -50%);
    }
    40% {
        width: 300px;
        height: 300px;
        background-color: #bf360c; /* 红褐色 */
        box-shadow: 0 0 120px 60px rgba(191, 54, 12, 0.7);
        opacity: 0.9;
        transform: translate(-50%, -50%);
    }
    65% {
        width: 350px;
        height: 350px;
        background-color: #6d4c41; /* 褐色 */
        box-shadow: 0 0 100px 50px rgba(109, 76, 65, 0.6);
        opacity: 0.7;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 400px;
        height: 400px;
        background-color: #3e2723; /* 深褐色 */
        box-shadow: 0 0 80px 40px rgba(62, 39, 35, 0.3);
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* 添加辐射光晕效果 */
.explosion-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,160,0,0.8) 20%, rgba(255,87,34,0.6) 40%, rgba(194,24,91,0.4) 60%, rgba(0,0,0,0) 100%);
    opacity: 0;
    z-index: 10000;
    animation: explosion-halo 2s cubic-bezier(0.22, 0.85, 0.31, 0.93) forwards;
}

@keyframes explosion-halo {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    10% {
        width: 50px;
        height: 50px;
        opacity: 0.9;
    }
    30% {
        width: 300px;
        height: 300px;
        opacity: 0.8;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

/* 爆炸冲击波动画 */
.explosion-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    opacity: 0.8;
    animation: shockwave 1.2s cubic-bezier(0.1, 0.5, 0.1, 1) forwards;
}

@keyframes shockwave {
    0% {
        width: 20px;
        height: 20px;
        border-width: 5px;
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
        border-width: 3px;
    }
    100% {
        width: 500px;
        height: 500px;
        border-width: 1px;
        opacity: 0;
    }
}

/* 不同类型的爆炸粒子 */
/* 1. 火花粒子 */
.explosion-spark {
    position: absolute;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #ffeb3b, #ff9800);
    box-shadow: 0 0 8px 4px rgba(255, 152, 0, 0.6);
    opacity: 1;
    transform-origin: center bottom;
}

/* 2. 碎片粒子 */
.explosion-debris {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #795548; /* 褐色 */
    box-shadow: 0 0 5px 2px rgba(121, 85, 72, 0.5);
    opacity: 1;
}

/* 3. 烟雾粒子 */
.explosion-smoke {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: rgba(93, 64, 55, 0.7);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    filter: blur(2px);
}

/* 4. 火焰粒子 */
.explosion-fire {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffeb3b, #ff9800, #ff5722);
    box-shadow: 0 0 15px 8px rgba(255, 87, 34, 0.7);
    opacity: 1;
}

/* 5. 明亮火星粒子 */
.explosion-ember, .explosion-ember-late {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #ffee58;
    box-shadow: 0 0 6px 3px rgba(255, 238, 88, 0.7);
    opacity: 1;
}

/* 粒子动画 */
@keyframes spark {
    0% {
        transform: translate(0, 0) rotate(var(--rot-start, 0deg)) scale(1);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot-end, 360deg)) scale(0.1);
        opacity: 0;
    }
}

@keyframes debris {
    0% {
        transform: translate(0, 0) rotate(var(--rot-start, 0deg)) scale(1);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    60% {
        opacity: 0.8;
        transform: translate(calc(var(--tx) * 0.7), calc(var(--ty) * 0.5)) rotate(calc(var(--rot-start) + 120deg)) scale(0.8);
    }
    100% {
        transform: translate(var(--tx), calc(var(--ty) + 50px)) rotate(var(--rot-end, 360deg)) scale(0.4);
        opacity: 0;
    }
}

@keyframes smoke {
    0% {
        transform: translate(0, 0) scale(var(--start-scale, 0.2)) rotate(0deg);
        opacity: 0.3;
    }
    30% {
        opacity: 0.6;
    }
    70% {
        opacity: 0.4;
        transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.3 - 80px)) scale(var(--end-scale, 2)) rotate(var(--rot-end, 120deg));
    }
    100% {
        transform: translate(var(--tx), calc(var(--ty) - 120px)) scale(var(--end-scale, 3)) rotate(var(--rot-end, 240deg));
        opacity: 0;
    }
}

@keyframes fire {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* 新的火星动画 */
@keyframes ember {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--tx), calc(var(--ty) + 100px)) scale(0.2);
        opacity: 0;
    }
}

@keyframes ember-late {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.3;
    }
    20% {
        opacity: 1;
        transform: translate(calc(var(--tx) * 0.2), calc(var(--ty) * 0.2)) scale(1);
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--tx), calc(var(--ty) + 150px)) scale(0.1);
        opacity: 0;
    }
}

/* 火星闪烁动画 */
@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* 火焰脉动动画 */
@keyframes pulse {
    0% { transform: scale(0.8); }
    100% { transform: scale(var(--pulse-scale, 1.2)); }
}

/* 改进的屏幕震动动画 */
@keyframes shake-heavy {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-8px, -8px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translate(8px, 8px) rotate(2deg); }
}

@keyframes shake-light {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-3px, -3px) rotate(-0.5deg); }
    20%, 40%, 60%, 80% { transform: translate(3px, 3px) rotate(0.5deg); }
}

.shake-heavy {
    animation: shake-heavy 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

.shake-light {
    animation: shake-light 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* 原有的震动动画 */
@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-5px, -5px) rotate(-1deg); }
    20%, 40%, 60%, 80% { transform: translate(5px, 5px) rotate(1deg); }
}

.shake {
    animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

.settings-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.setting-group {
    flex: 1;
    min-width: 120px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: #317ef1; /* 修改为淡黄色 */
    font-size: 14px;
    font-weight: 600; /* 加粗 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 保留文字阴影 */
}

/* 输入框样式 */
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    background-color: rgba(240, 245, 250, 0.6); /* 半透明背景 */
    color: #2c3e50; /* 深色文字 */
    font-weight: 500; /* 稍微加粗文字 */
}

input[type="number"]:focus {
    border-color: #4a8ed1; /* 更亮的蓝色 */
    box-shadow: 0 0 0 4px rgba(74, 142, 209, 0.3);
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色 */
}

/* 通用按钮样式 */
.button {
    display: inline-block;
    padding: 12px 22px;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

/* "添加玩家"按钮的通用样式 */
/* 已注释掉，保留记录
.player-management-header .button {
    white-space: nowrap;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
*/

/* 添加玩家按钮新样式 */
.add-player-button {
    display: inline-block;
    width: auto; /* 不要全宽 */
    padding: 8px 15px; /* 较小的内边距 */
    font-size: 14px; /* 较小的字体 */
    margin-top: 0;
    margin-bottom: 15px; /* 与下方表单保持间距 */
}

.button.primary {
    background-color: #4a8ed1; /* 更亮更饱和的蓝色 */
    color: white;
    box-shadow: 0 2px 10px rgba(74, 142, 209, 0.5); /* 增强阴影 */
    font-weight: 600; /* 加粗文字 */
}

.button.primary:hover {
    background-color: var(--theme-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 164, 217, 0.4);
}

.button.secondary {
    background-color: var(--theme-light-gray);
    border: 1px solid var(--theme-border);
    color: var(--theme-blue-dark);
}

.button.secondary:hover {
    background-color: white;
    border-color: var(--theme-blue);
}

/* 清理缓存按钮特殊样式 */
#clearCacheBtn {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

#clearCacheBtn:hover {
    background: linear-gradient(135deg, #f57c00, #d84315);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

#clearCacheBtn:before {
    content: '🧹';
    margin-right: 6px;
}

#clearCacheBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

/* 范围显示 */
.range-display {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 250, 0.9) 100%); /* 增加背景不透明度 */
    border-radius: 20px; /* 增大圆角 */
    padding: 45px 35px; /* 进一步增大内边距 */
    margin: 35px auto; /* 上下增加间距，左右居中 */
    text-align: center;
    border: 3px solid rgba(107, 164, 217, 0.8); /* 更粗边框，增加饱和度 */
    box-shadow: 0 8px 25px rgba(107, 164, 217, 0.3); /* 增强阴影 */
    max-width: 85%; /* 设置最大宽度 */
    margin-left: auto;
    margin-right: auto;
    position: relative; /* 为可能的装饰提供定位参考 */
    transform: scale(1.08); /* 稍微增大整体尺寸 */
    transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

.current-range {
    font-size: 56px; /* 增大字体 */
    font-weight: 800; /* 加粗 */
    color: #ff5722; /* 使用醒目的橙红色 */
    text-shadow: 0 4px 5px rgba(0, 0, 0, 0.4); /* 添加更明显的文字阴影 */
    letter-spacing: 4px; /* 增加字间距 */
}

/* 猜测控制区 */
.guess-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.guess-controls input {
    flex: 1;
}

/* 游戏历史 */
.game-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--theme-border);
}

.game-history ul {
    list-style-type: none;
}

.game-history li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(107, 164, 217, 0.1);
    font-size: 17px;
    display: flex;
    justify-content: space-between;
}

.game-history li .guess-result {
    font-weight: 500;
}

.guess-result.high {
    color: var(--theme-error);
}

.guess-result.low {
    color: var(--theme-blue);
}

.guess-result.correct {
    color: var(--theme-success);
}

/* 游戏结果 */
.game-result {
    text-align: center;
}

.result-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(107, 164, 217, 0.15);
    border: 1px solid var(--theme-border);
}

.result-content p {
    font-size: 20px;
    margin-bottom: 24px;
}

/* 底部 */
.app-footer {
    text-align: center;
    color: var(--theme-gray);
    font-size: 12px;
    padding: 20px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .secondary-containers {
        flex-direction: column;
    }
    
    .player-management,
    .game-history-records {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 平板和小屏幕设备 */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .game-module {
        padding: 20px;
    }
    
    .secondary-containers {
        gap: 15px;
    }
    
    .player-management,
    .game-history-records {
        margin-bottom: 15px;
    }
    
    .settings-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .setting-group {
        width: 100%;
    }
    
    .guess-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .button {
        width: 100%;
    }

    /* 不再适用，按钮已移出header
    .player-management-header .button {
        width: auto;
        padding: 8px 12px;
        font-size: 14px;
        margin-left: 8px;
        min-width: 80px;
    }
    */
    
    /* 添加新的响应式样式 */
    .add-player-button {
        padding: 7px 12px;
        font-size: 13px;
    }
    
    /* 确保标题适当样式，现在不需要考虑按钮 */
    .player-management-header h2 {
        margin-bottom: 10px; /* 减小与按钮的距离 */
    }
    
    .player-management,
    .game-content,
    .game-history-records {
        width: 100%;
    }
    
    /* 确保历史记录标题和按钮排列正确 */
    .game-history-records-header {
        flex-wrap: wrap;
    }

    /* 媒体查询中的装饰背景样式已删除 */
    
    .current-player-display {
        font-size: 26px; /* 调整为更大的字体 */
        padding: 25px 20px; /* 增加内边距 */
        max-width: 90%;
    }
    
    .current-player-name {
        font-size: 30px; /* 增大字体 */
    }
    
    .range-display {
        padding: 35px 25px; /* 增加内边距 */
        max-width: 95%;
    }
    
    .current-range {
        font-size: 48px; /* 增大字体 */
    }
}

/* 手机竖屏布局 - 16:9比例优化 */
@media (max-width: 480px) {
    /* 容器调整 */
    .container {
        padding: 10px;
        max-width: 100%;
        height: 100vh; /* 使用视口高度 */
        display: flex;
        flex-direction: column;
    }
    
    /* 背景图像适配小屏幕 */
    .game-play,
    .player-management,
    .game-history-records {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
    
    /* 标题区域 */
    .app-header {
        padding: 10px 0;
        flex-shrink: 0; /* 防止压缩 */
    }
    
    .app-header h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    /* 游戏模块 - 垂直排列 */
    .game-module {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        margin-bottom: 10px;
        border-radius: 12px;
        flex: 1; /* 占用剩余空间 */
        overflow-y: auto; /* 允许滚动 */
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
    }
    
    /* 确保三大块各占合适空间 */
    .player-management,
    .game-content,
    .game-history-records {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    /* 标题调整 */
    .game-settings h2,
    .game-result h2,
    .game-history h3,
    .player-management h2,
    .player-management h3,
    .game-history-records h2,
    .game-history-records h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* 按钮和表单元素优化 */
    .button {
        padding: 10px 14px;
        font-size: 15px;
        width: 100%;
        margin-top: 6px;
        border-radius: 8px;
    }

    /* 不再适用，按钮已移出header
    .player-management-header {
        flex-wrap: nowrap;
    }
    
    .player-management-header .button {
        padding: 6px 10px;
        font-size: 13px;
        margin-top: 0;
    }
    */
    
    /* 添加新的响应式样式 */
    .add-player-button {
        padding: 6px 10px;
        font-size: 12px;
        width: auto; /* 覆盖通用按钮在小屏幕上的宽度100% */
        max-width: 120px; /* 限制最大宽度 */
    }
    
    /* 设置控件调整 */
    .settings-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .setting-group {
        width: 100%;
    }
    
    .setting-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    /* 输入框样式调整 */
    input[type="number"] {
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    /* 猜测控件调整 */
    .guess-controls {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    /* 范围显示优化 */
    .range-display {
        padding: 30px 20px; /* 增加内边距 */
        max-width: 100%;
        transform: scale(1.04); /* 稍微增大整体尺寸 */
    }
    
    .current-range {
        font-size: 46px; /* 增大字体 */
        letter-spacing: 2px;
    }
    
    /* 表单高度控制 */
    .add-player-form textarea {
        height: 80px;
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* 玩家列表和历史记录控制高度 */
    .player-list-container, 
    .victory-records-container {
        max-height: 150px;
        overflow-y: auto;
    }
    
    /* 优化历史记录标题和按钮在小屏幕上的显示 */
    .game-history-records-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-buttons {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .history-buttons .button {
        flex: 1;
        margin-right: 5px;
        margin-top: 0;
        text-align: center;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* 处理文本溢出和内容溢出问题 */
    .victory-records-list li,
    .player-list li {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    /* 游戏历史优化 */
    .game-history {
        margin-top: 15px;
        padding-top: 10px;
    }
    
    .game-history li {
        padding: 8px 0;
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    /* 玩家列表和记录优化 */
    .player-list li,
    .victory-records-list li {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    /* 当前玩家显示 */
    .current-player-display {
        font-size: 24px; /* 增大字体 */
        padding: 20px 18px; /* 增加内边距 */
        max-width: 95%;
        transform: scale(1.04); /* 稍微增大整体尺寸 */
    }
    
    .current-player-name {
        font-size: 28px; /* 增大字体 */
    }
    
    /* 结果内容调整 */
    .result-content {
        padding: 20px;
        border-radius: 12px;
    }
    
    .result-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* 爆炸动画调整 */
    .explosion-container {
        max-width: 90vw;
        max-height: 40vh; /* 更适合16:9比例 */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }
    
    .explosion {
        transform-origin: center center;
        transform: scale(0.7); /* 缩小动画尺寸以适应小屏幕 */
    }
    
    .explosion-particle {
        width: 6px;
        height: 6px;
    }
    
    /* 增强可触控性 */
    button, 
    .player-list li,
    .victory-records-list li,
    input[type="number"],
    textarea {
        min-height: 44px; /* 苹果推荐的最小触控高度 */
    }
    
    /* 提高表单组件间距 */
    .setting-group + .setting-group {
        margin-top: 12px;
    }
    
    /* 优化表单焦点效果 */
    input:focus,
    textarea:focus {
        transform: scale(1.01);
    }
    
    /* 禁用长按选择文本 */
    .button, .player-list li, .victory-records-list li {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 在非常小的屏幕上进一步调整按钮大小 */
    @media (max-width: 380px) {
        .history-buttons .button {
            padding: 6px 8px;
            font-size: 12px;
        }
        
        .player-name {
            max-width: 35%;
        }
        
        .player-victory-count {
            font-size: 11px;
            padding: 1px 4px;
        }
    }

    /* 媒体查询中装饰图片样式已删除 */
    
    /* 针对小屏幕的删除按钮样式调整 */
    .delete-player-btn {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}

/* 合理处理横屏情况 */
@media (max-height: 480px) and (orientation: landscape) {
    .app-header {
        padding: 10px 0;
    }
    
    .app-header h1 {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .game-module {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .player-management {
        width: 45%;
    }
    
    .game-content {
        width: 50%;
    }
    
    .game-history-records {
        width: 100%;
        max-height: 25vh;
    }
    
    /* 调整历史记录按钮在横屏模式下的显示 */
    .game-history-records-header {
        display: flex;
        align-items: center;
    }
    
    .game-history-records-header h2 {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .history-buttons {
        display: flex;
        gap: 5px;
    }
    
    .history-buttons .button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* 确保玩家列表和历史记录在横屏模式下不会太高 */
    .player-list-container, 
    .victory-records-container {
        max-height: 120px;
        overflow-y: auto;
    }
}

/* 玩家管理区域 */
.player-management {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
}

.player-management-header {
    margin-bottom: 10px; /* 减小底部边距，因为按钮现在在下面 */
}

.player-management-header h2 {
    margin-bottom: 0;
}

.player-management h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--theme-blue-dark);
}

.player-management h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #e43e8c; /* 修改为淡黄色 */
    font-weight: 600; /* 加粗 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 保留文字阴影 */
}

/* 游戏内容区域 */
.game-content {
    width: 100%;
}

/* 添加玩家表单 */
.add-player-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-player-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    background-color: var(--theme-light-gray);
}

.add-player-form input[type="text"]:focus {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 4px rgba(107, 164, 217, 0.2);
    background-color: white;
}

.add-player-form textarea {
    flex: 1;
    padding: 12px 16px;
    font-size: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    min-height: 100px;
    resize: vertical;
    background-color: rgba(240, 245, 250, 0.6); /* 半透明背景 */
    color: #2c3e50; /* 深色文字 */
    font-weight: 500; /* 稍微加粗文字 */
}

.add-player-form textarea:focus {
    border-color: #4a8ed1; /* 更亮的蓝色 */
    box-shadow: 0 0 0 4px rgba(74, 142, 209, 0.3);
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色 */
}

/* 玩家列表 */
.player-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.player-list li {
    padding: 10px 15px;
    background-color: rgba(240, 245, 250, 0.7); /* 半透明浅色背景 */
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(107, 164, 217, 0.3); /* 添加边框增强可见性 */
    color: #2c3e50; /* 深色文字 */
    font-weight: 600; /* 加粗文字 */
    position: relative; /* 为绝对定位提供参考 */
    cursor: grab; /* 鼠标样式显示为可抓取 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 添加过渡效果 */
}

.player-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(107, 164, 217, 0.2);
}

.player-list li.active {
    background-color: rgba(107, 164, 217, 0.15);
    border-left: 3px solid var(--theme-blue);
}

/* 拖拽相关样式 */
.player-list li.dragging {
    opacity: 0.7; /* 正在拖拽的元素半透明 */
    cursor: grabbing; /* 更改光标为抓取中 */
    z-index: 100; /* 确保拖拽项在最上层 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 增加阴影突出显示 */
}

.player-list li.drag-over {
    border-top: 2px solid var(--theme-blue); /* 添加边框指示可放置位置 */
    transform: translateY(2px); /* 轻微下移以指示插入位置 */
}

/* 添加拖动手柄图标提示可拖拽 */
.player-list li::before {
    content: "⋮⋮"; /* 添加双竖线指示可拖动 */
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    opacity: 0.5;
}

.player-list .empty-message {
    color: var(--theme-gray);
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

/* 删除玩家按钮样式 */
.delete-player-btn {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--theme-light-gray);
    border: 1px solid var(--theme-border);
    color: var(--theme-error);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: var(--transition);
    margin-left: auto; /* 推到最右侧 */
    z-index: 2; /* 确保在踩中次数上方 */
}

.delete-player-btn:hover {
    background-color: var(--theme-error);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.player-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-right: 10px;
    margin-left: 30px; /* 为拖动手柄腾出空间 */
}

.player-name {
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40%;
}

.player-victory-count {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #ff5722; /* 红色，表示踩中地雷 */
    font-weight: 600;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.7); /* 半透明背景提高可读性 */
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap; /* 防止文本换行 */
}

/* 当前玩家显示 */
.current-player-display {
    background-color: #4a8ed1; /* 使用醒目的蓝色背景 */
    border-radius: 20px; /* 增大圆角 */
    padding: 30px 25px; /* 进一步增加内边距 */
    margin: 0 auto 30px auto; /* 增加下边距，并用auto左右边距实现居中 */
    border: 3px solid var(--theme-blue-dark); /* 添加更粗的深色边框 */
    font-size: 32px; /* 增大字体 */
    font-weight: 600; /* 加粗字体 */
    box-shadow: 0 6px 20px rgba(107, 164, 217, 0.4); /* 增强阴影 */
    text-align: center; /* 文本居中 */
    color: white; /* 文本颜色改为白色，与蓝色背景形成对比 */
    max-width: 80%; /* 限制宽度 */
    margin-left: auto;
    margin-right: auto;
    position: relative; /* 为可能的装饰元素提供定位参考 */
    z-index: 1; /* 确保在其他元素之上 */
    transform: scale(1.08); /* 稍微增大整体尺寸 */
    transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

.current-player-name {
    font-weight: 800; /* 更粗的字体 */
    color: #ffeb3b; /* 黄色，在蓝色背景上更突出 */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); /* 增强文字阴影 */
    font-size: 36px; /* 比周围文字更大 */
    padding: 0 6px; /* 添加些许内边距 */
    display: inline-block; /* 使padding生效 */
}

/* 历史记录区域 */
.game-history-records {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(107, 164, 217, 0.1);
}

.game-history-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 允许在需要时换行 */
}

.history-buttons {
    display: flex;
    gap: 10px;
}

.history-buttons .button {
    padding: 8px 12px;
    font-size: 14px;
}

.game-history-records h2 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--theme-blue-dark);
}

.game-history-records h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #51f3dd; /* 修改为淡黄色 */
    font-weight: 600; /* 加粗 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 保留文字阴影 */
}

/* 胜利记录列表 */
.victory-records-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.victory-records-list li {
    padding: 12px 15px;
    background-color: rgba(240, 245, 250, 0.7); /* 半透明浅色背景 */
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid rgba(107, 164, 217, 0.3); /* 添加边框增强可见性 */
    color: #2c3e50; /* 深色文字 */
    font-weight: 600; /* 加粗文字 */
}

.victory-records-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(107, 164, 217, 0.2);
}

.victory-records-list .record-player-name {
    font-weight: 600;
    color: var(--theme-blue);
}

.victory-records-list .record-number {
    font-weight: 600;
    color: var(--theme-success);
}

.victory-records-list .record-remark {
    font-style: italic;
    color: var(--theme-gray);
    margin-left: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.victory-records-list .record-date {
    display: block;
    font-size: 12px;
    color: var(--theme-gray);
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.victory-records-list .empty-message {
    color: var(--theme-gray);
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

/* 优化手机上的输入体验 */
input, textarea, select, button {
    font-size: 16px; /* 防止iOS上输入时自动缩放 */
}

/* 图片动画关键帧已删除 */

/* 玩家管理按钮容器 */
.player-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .player-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .player-buttons .button {
        flex: 1;
        min-width: 100px;
    }
}

/* 锁定状态玩家样式 */
.player-list li.locked {
    border-left: 3px solid var(--theme-warning);
    background-color: rgba(240, 173, 78, 0.1);
    opacity: 0.5; /* 半透明效果 */
    cursor: not-allowed; /* 指示不可交互 */
    position: relative; /* 为伪元素定位 */
}

/* 移除之前的锁定提示文字，因为现在有专门的区域标题 */
.player-list li.locked::after {
    content: none; /* 移除提示文字 */
}

/* 玩家按钮容器 */
.player-buttons-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* 锁定玩家按钮样式 */
.lock-player-btn {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--theme-light-gray);
    border: 1px solid var(--theme-border);
    color: var(--theme-gray);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: var(--transition);
}

.lock-player-btn:hover {
    background-color: var(--theme-blue-light);
    opacity: 1;
    transform: scale(1.1);
}

/* 锁定状态的锁定按钮 */
.player-list li.locked .lock-player-btn {
    color: var(--theme-warning);
    opacity: 1;
    background-color: var(--theme-blue-light);
}

@media (max-width: 480px) {
    .player-buttons-container {
        gap: 3px;
    }
    
    .lock-player-btn,
    .delete-player-btn {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}

/* 玩家列表分区标题样式 */
.player-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-blue-dark);
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--theme-border);
}

/* 锁定玩家区域标题样式 */
.player-section-title.locked-section {
    color: var(--theme-warning);
    margin-top: 20px; /* 增加与上面未锁定玩家区域的间距 */
}

/* 锁定玩家样式优化，更明显的视觉区分 */
.player-list li.locked {
    border-left: 3px solid var(--theme-warning);
    background-color: rgba(240, 173, 78, 0.1);
    opacity: 0.5; /* 半透明效果 */
    cursor: not-allowed; /* 指示不可交互 */
    position: relative; /* 为伪元素定位 */
}

/* 移除之前的锁定提示文字，因为现在有专门的区域标题 */
.player-list li.locked::after {
    content: none; /* 移除提示文字 */
}