/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page.active {
    display: flex;
}

/* ==================== 开始页面样式 ==================== */
#start-page {
    background: linear-gradient(to right, 
        #FD2827 0%, 
        #FD4544 30%,
        #E6616F 45%, 
        #6064D8 55%,
        #3548C8 70%,
        #0230B8 100%);
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 左上角流光线条 - 从外向内汇聚 */
#start-page::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 25px;
    width: calc(100vw - 50px);
    max-width: 500px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    transform-origin: left top;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 3;
    animation: streamInTopLeft 2s ease-in-out infinite;
}

/* 右上角流光线条 - 从外向内汇聚 */
#start-page::after {
    content: '';
    position: absolute;
    top: 35px;
    right: 25px;
    width: calc(100vw - 50px);
    max-width: 500px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    transform-origin: right top;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 3;
    animation: streamInTopRight 2s ease-in-out infinite;
}

/* 左下角流光线条 - 从外向内汇聚 */
.start-content::before {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 25px;
    width: calc(100vw - 50px);
    max-width: 500px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    transform-origin: left bottom;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 3;
    animation: streamInBottomLeft 2s ease-in-out infinite;
}

/* 右下角流光线条 - 从外向内汇聚 */
.start-content::after {
    content: '';
    position: absolute;
    bottom: 35px;
    right: 25px;
    width: calc(100vw - 50px);
    max-width: 500px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    transform-origin: right bottom;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 3;
    animation: streamInBottomRight 2s ease-in-out infinite;
}

/* 流光线条动画 - 左上角向内汇聚 */
@keyframes streamInTopLeft {
    0% {
        opacity: 0;
        width: 200px;
    }
    50% {
        opacity: 1;
        width: min(500px, 80vw);
    }
    100% {
        opacity: 0;
        width: min(700px, 90vw);
    }
}

/* 流光线条动画 - 右上角向内汇聚 */
@keyframes streamInTopRight {
    0% {
        opacity: 0;
        width: 200px;
    }
    50% {
        opacity: 1;
        width: min(500px, 80vw);
    }
    100% {
        opacity: 0;
        width: min(700px, 90vw);
    }
}

/* 流光线条动画 - 左下角向内汇聚 */
@keyframes streamInBottomLeft {
    0% {
        opacity: 0;
        width: 200px;
    }
    50% {
        opacity: 1;
        width: min(500px, 80vw);
    }
    100% {
        opacity: 0;
        width: min(700px, 90vw);
    }
}

/* 流光线条动画 - 右下角向内汇聚 */
@keyframes streamInBottomRight {
    0% {
        opacity: 0;
        width: 200px;
    }
    50% {
        opacity: 1;
        width: min(500px, 80vw);
    }
    100% {
        opacity: 0;
        width: min(700px, 90vw);
    }
}

.start-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: clamp(10px, 1vh, 20px);
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: hidden;
    overflow-x: hidden;
    padding: clamp(20px, 3vh, 40px) clamp(10px, 2vw, 20px);
}

/* 右上角黑色斜线容器 */
#start-page {
    background: linear-gradient(to right, 
        #FD2827 0%, 
        #FD4544 30%,
        #E6616F 45%, 
        #6064D8 55%,
        #3548C8 70%,
        #0230B8 100%);
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 左上角黑色斜线 - 第三条（由粗到细，30px渐变到尖端） */
#start-page .corner-lines-top-left-3 {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    width: min(300px, 25vw);
    height: 30px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.5) 5%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.15) 85%,
        rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform-origin: left top;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 2;
}

/* 左上角黑色斜线 - 第一条（白线上方，由粗到细，50px渐变到尖端） */
#start-page .corner-lines-top-left-1 {
    content: '';
    position: absolute;
    top: -100px;
    left: -20px;
    width: min(550px, 40vw);
    height: 50px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 15%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0) 95%,
        rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform-origin: left top;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 2;
}

/* 左上角黑色斜线 - 第二条（白线下方，由粗到细，40px渐变到尖端） */
#start-page .corner-lines-top-left-2 {
    content: '';
    position: absolute;
    top: 50px;
    left: -10px;
    width: min(250px, 30vw);
    height: 40px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 15%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 95%,
        rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform-origin: left top;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 2;
}

/* 右上角黑色斜线 - 第一条（白线上方，由粗到细，50px渐变到尖端） */
#start-page .corner-lines-top-right-1 {
    content: '';
    position: absolute;
    top: -100px;
    right: -20px;
    width: min(550px, 40vw);
    height: 50px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 5%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.8) 85%,
        rgba(0, 0, 0, 0.9) 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform-origin: right top;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 2;
}

/* 右上角黑色斜线 - 第二条（白线下方，由粗到细，40px渐变到尖端） */
#start-page .corner-lines-top-right-2 {
    content: '';
    position: absolute;
    top: 50px;
    right: -10px;
    width: min(250px, 30vw);
    height: 40px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 5%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.6) 85%,
        rgba(0, 0, 0, 0.7) 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform-origin: right top;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 2;
}

/* 左下角黑色斜线 - 第一条（白线上方，由粗到细，50px渐变到尖端） */
#start-page .corner-lines-bottom-left-1 {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -0px;
    width: min(550px, 40vw);
    height: 50px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 15%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0) 95%,
        rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform-origin: left bottom;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 2;
}

/* 左下角黑色斜线 - 第二条（白线下方，由粗到细，40px渐变到尖端） */
#start-page .corner-lines-bottom-left-2 {
    content: '';
    position: absolute;
    bottom: 10px;
    left: -70px;
    width: min(350px, 30vw);
    height: 30px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 15%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 95%,
        rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform-origin: left bottom;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 2;
}

/* 右下角黑色斜线 - 第一条（白线上方，由粗到细，50px渐变到尖端） */
#start-page .corner-lines-bottom-right-1 {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -20px;
    width: min(550px, 40vw);
    height: 50px;
    background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0) 0%,        /* 左端细（透明） */
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 85%,
    rgba(0, 0, 0, 0.9) 100%);   /* 右端粗（不透明度高） */
    clip-path: polygon(0 50%, 100% 0, 100% 100%);    
    transform-origin: right bottom;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 2;
}

/* 右下角黑色斜线 - 第二条（白线下方，由粗到细，40px渐变到尖端） */
#start-page .corner-lines-bottom-right-2 {
    content: '';
    position: absolute;
    bottom: 50px;
    right: -10px;
    width: min(250px, 30vw);
    height: 40px;
    background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0) 0%,        /* 左端细（透明） */
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 85%,
    rgba(0, 0, 0, 0.9) 100%);   /* 右端粗（不透明度高） */
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform-origin: right bottom;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 2;
}

/* 计时器显示 */
.timer-display {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 80px);
    margin-bottom: clamp(20px, 3vh, 40px);
    perspective: 2000px;
    transform-style: preserve-3d;
    position: relative;
    min-height: clamp(100px, 20vh, 200px);
    max-height: clamp(150px, 25vh, 300px);
    width: 100%;
    flex-wrap: nowrap;
    padding: 0 clamp(20px, 3vw, 100px);
    margin-top: clamp(150px, 2vh, 170px);
    flex-grow: 0;
    flex-shrink: 0;
}

.team-label {
    font-size: clamp(40px, 22vw, 400px);
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    text-transform: uppercase;
    letter-spacing: clamp(20px, 2.5vw, 50px);
    font-style: normal;
    position: relative;
    animation: slideIn 0.8s ease-out;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 单独设置P和K的字体大小 */
.team-label.left-team .text-3d .letter-p {
    font-size: calc(clamp(40px, 22vw, 400px) + 50px);
}

.team-label.left-team .text-3d .letter-k {
    font-size: clamp(40px, 22vw, 400px);
}

/* 单独设置对和战的字体大小 */
.team-label.right-team .text-3d .character-dui {
    font-size: calc(clamp(40px, 22vw, 400px) - 50px);
    text-transform: none;
}

.team-label.right-team .text-3d .character-zhan {
    font-size: clamp(40px, 22vw, 400px);
    text-transform: none;
}

/* PK文字 - 红色左侧倾斜 */
.team-label.left-team {
    transform: rotateY(-25deg) translateZ(50px);
    transform-origin: right center;
}

.team-label.left-team .text-3d {
    color: #FD2827;
    text-shadow:
        /* 黑色粗描边 */
        -0.5vw -0.5vw 0 #000,
        0.5vw -0.5vw 0 #000,
        -0.5vw 0.5vw 0 #000,
        0.5vw 0.5vw 0 #000,
        -0.3vw -0.3vw 0 #000,
        0.3vw -0.3vw 0 #000,
        -0.3vw 0.3vw 0 #000,
        0.3vw 0.3vw 0 #000,
        /* 3D深度层 */
        0 0.6vw 0 rgba(0,0,0,0.9),
        0 0.9vw 0 rgba(0,0,0,0.7),
        0 1.2vw 0 rgba(0,0,0,0.5),
        0 1.5vw 0 rgba(0,0,0,0.3),
        /* 红色发光 */
        0 0 3vw rgba(253,40,39,0.8),
        0 0 6vw rgba(253,40,39,0.5);
}

/* 对战文字 - 蓝色右侧倾斜 */
.team-label.right-team {
    transform: rotateY(25deg) translateZ(50px);
    transform-origin: left center;
}

.team-label.right-team .text-3d {
    color: #0230B8;
    text-shadow:
        /* 黑色粗描边 */
        -0.5vw -0.5vw 0 #000,
        0.5vw -0.5vw 0 #000,
        -0.5vw 0.5vw 0 #000,
        0.5vw 0.5vw 0 #000,
        -0.3vw -0.3vw 0 #000,
        0.3vw -0.3vw 0 #000,
        -0.3vw 0.3vw 0 #000,
        0.3vw 0.3vw 0 #000,
        /* 3D深度层 */
        0 0.6vw 0 rgba(0,0,0,0.9),
        0 0.9vw 0 rgba(0,0,0,0.7),
        0 1.2vw 0 rgba(0,0,0,0.5),
        0 1.5vw 0 rgba(0,0,0,0.3),
        /* 蓝色发光 */
        0 0 3vw rgba(2,48,184,0.8),
        0 0 6vw rgba(2,48,184,0.5);
}

/* VS文字 - 中央突出 */
.vs-logo {
    font-size: clamp(100px, 12vw, 200px);
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    letter-spacing: clamp(2px, 0.2vw, 8px);
    transform: translateZ(80px) scale(1.02);
    animation: vsPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
    align-self: center;
}

.vs-logo .vs-3d {
    color: #FFFFFF;
    text-shadow:
        /* #0230B8外描边 */
        -0.6vw -0.6vw 0 #0230B8,
        0.6vw -0.6vw 0 #0230B8,
        -0.6vw 0.6vw 0 #0230B8,
        0.6vw 0.6vw 0 #0230B8,
        /* 黑色外描边 */
        -0.8vw 0 0 #0230B8,
        0.8vw 0 0 #0230B8,
        0 -0.8vw 0 #0230B8,
        0 0.8vw 0 #0230B8;
    filter: drop-shadow(0 0 3.5vw rgba(2, 48, 184, 1))
            drop-shadow(0 0.8vw 2.5vw rgba(0, 0, 0, 0.8));
}

/* VS中V字母保持原位 */
.vs-v-letter {
    display: inline-block;
}

/* VS中S字母向下移动50px,向左移动30px */
.vs-s-letter {
    display: inline-block;
    transform: translateY(50px) translateX(-30px);
}

/* VS脉冲动画 */
@keyframes vsPulse {
    0%, 100% {
        transform: translateZ(150px) scale(1.1);
        filter: drop-shadow(0 0 50px rgba(255,215,0,1));
    }
    50% {
        transform: translateZ(180px) scale(1.15);
        filter: drop-shadow(0 0 70px rgba(255,215,0,1))
                drop-shadow(0 18px 50px rgba(0,0,0,0.9));
    }
}

/* 入场动画 */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-45deg);
    }
    100% {
        opacity: 1;
    }
}

.team-label.right-team {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(45deg);
    }
    100% {
        opacity: 1;
    }
}

/* 文件上传区域 */
.file-upload-section {
    margin-bottom: clamp(5px, 2vh, 20px);
    margin-top: clamp(50px, 3vh, 70px);
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 0.5vh, 8px);
}

.upload-btn {
    background: linear-gradient(135deg, #4488FF, #6BA3FF);
    color: white;
    border: none;
    padding: clamp(8px, 1vh, 12px) clamp(20px, 2vw, 40px);
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(68, 136, 255, 0.4);
    transition: all 0.3s ease;
    width: auto !important;
    min-width: auto !important;
    display: inline-block;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(68, 136, 255, 0.6);
}

.upload-btn:active {
    transform: translateY(0);
}

.file-format-hint {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    margin-top: -3px;
}

/* 设置区域 */
.settings-section {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    justify-content: center;
    margin-bottom: clamp(10px, 2vh, 25px);
    margin-top: clamp(15px, 2vh, 25px);
    flex-wrap: wrap;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.setting-item label {
    color: white;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.setting-item select {
    padding: clamp(6px, 0.8vh, 8px) clamp(12px, 1.5vw, 20px);
    font-size: clamp(12px, 1.1vw, 16px);
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    font-weight: bold;
}

.setting-item select:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 开始游戏按钮 */
.start-game-btn {
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    color: #333;
    border: none;
    padding: clamp(10px, 1.2vh, 15px) clamp(30px, 4vw, 50px) !important;
    font-size: clamp(16px, 1.8vw, 24px) !important;
    font-weight: bold;
    border-radius: clamp(15px, 2vh, 25px);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: auto !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-block;
    margin: 0 auto;
    margin-top: clamp(10px, 2vh, 25px);
    margin-bottom: clamp(10px, 1vh, 20px);
}

.start-game-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #F5F5F5, #D0D0D0);
}

.start-game-btn:active {
    transform: translateY(0);
}

/* ==================== 游戏页面样式 ==================== */
#game-page {
    position: relative;
    background: linear-gradient(to right, 
        #C90A25 0%, 
        #E63946 30%,
        #E6616F 45%, 
        #6064D8 55%,
        #3548C8 70%,
        #0230B8 100%);
}

.game-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* VS透明显示层 - 3D金色立体效果（实体版本）*/
.vs-overlay {
    position: absolute;
    top: clamp(300px, 35vh, 400px);
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(150px, 8vw, 220px);
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    z-index: 100;
    pointer-events: none;
    letter-spacing: clamp(2px, 0.2vw, 8px);
    text-transform: uppercase;
    white-space: nowrap;
}

/* V字母 - #034CF8填充，无描边 */
.vs-v {
    color: #034CF8;
    display: inline-block;
}

/* S字母 - 白色填充，无描边 */
.vs-s {
    color: #FFFFFF;
    display: inline-block;
    transform: translateY(50px) translateX(-70px);
}



/* 拳头动画 - 在进度条边界处左右对撞 */
.progress-wrapper {
    position: relative;
    overflow: hidden;
}

.fist {
    position: absolute;
    top: calc(100% - 10px);
    font-size: clamp(30px, 5vw, 80px);
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    z-index: 1000;
    text-shadow: none;
    background: none;
    border: none;
    outline: none;
    transform-style: flat;
}

/* 左侧红色拳头 - 在进度条右边界处向左出击 */
.fist-left {
    right: 0;
    animation-name: fistLeftPunch;
    color: #F44336;
    filter: drop-shadow(0 5px 10px rgba(244, 67, 54, 0.6))
            drop-shadow(0 0 20px rgba(244, 67, 54, 0.5));
    /* 使用右向拳头emoji，拳背朝向观众，拳眼朝上 */
    transform: rotate(0deg);
}

/* 右侧蓝色拳头 - 在进度条左边界处向右出击 */
.fist-right {
    left: 0;
    animation-name: fistRightPunch;
    color: #2196F3;
    filter: drop-shadow(0 5px 10px rgba(33, 150, 243, 0.6))
            drop-shadow(0 0 20px rgba(33, 150, 243, 0.5));
    /* 使用左向拳头emoji，拳背朝向观众，拳眼朝下 */
    transform: rotate(0deg);
}

/* 左拳从右边界向左出击动画 */
@keyframes fistLeftPunch {
    0%, 100% {
        right: 0;
        transform: rotate(0deg) scale(1);
    }
    45% {
        right: 30px;
        transform: rotate(-5deg) scale(1.1);
    }
    50% {
        right: 50px;
        transform: rotate(-10deg) scale(1.2);
        animation-timing-function: cubic-bezier(0.5, 0.05, 1, 0.5);
    }
    55% {
        right: 30px;
        transform: rotate(-5deg) scale(1.1);
    }
}

/* 右拳从左边界向右出击动画 */
@keyframes fistRightPunch {
    0%, 100% {
        left: 0;
        transform: rotate(0deg) scale(1);
    }
    45% {
        left: 30px;
        transform: rotate(5deg) scale(1.1);
    }
    50% {
        left: 50px;
        transform: rotate(10deg) scale(1.2);
        animation-timing-function: cubic-bezier(0.5, 0.05, 1, 0.5);
    }
    55% {
        left: 30px;
        transform: rotate(5deg) scale(1.1);
    }
}

/* 碰撞效果动画 */
@keyframes fistCollision {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

/* 增强碰撞效果 */
@keyframes collisionImpact {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 5px 10px rgba(244, 67, 54, 0.6)) drop-shadow(0 0 20px rgba(244, 67, 54, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 8px 15px rgba(255, 0, 0, 0.7)) drop-shadow(0 0 25px rgba(255, 0, 0, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 5px 10px rgba(244, 67, 54, 0.6)) drop-shadow(0 0 20px rgba(244, 67, 54, 0.5));
    }
}

/* 队伍区域 */
.team-area {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow-y: hidden;
}

.team-area.left-area {
    background: transparent;
}

.team-area.right-area {
    background: transparent;
}

/* 队伍头部 */
.team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    position: absolute;
    z-index: 10;
}

.team-area.left-area .team-header {
    top: 20px;
    left: 20px;
}

.team-area.right-area .team-header {
    top: 20px;
    right: 20px;
}

.team-area.right-area .team-icon {
    color: #0031AC;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    font-size: clamp(16px, 3vw, 32px);
}

.team-icon {
    font-size: clamp(16px, 3vw, 32px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-name {
    color: white;
    font-size: clamp(7px, 1.5vw, 14px);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-score {
    color: white;
    font-size: clamp(9px, 2vw, 18px);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 进度条 */
.progress-bar {
    margin-top: 60px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* 当前单词显示 */
.current-word-display {
    margin: 15px 0;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
}

/* 倒计时显示 - 在单词卡片上方 */
.current-word-display .progress-label {
    position: static;
    transform: none;
    color: #FFD700;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        3px 3px 8px rgba(0, 0, 0, 0.6);
    z-index: 5;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.progress-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    height: 50px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    width: 10%;
    position: absolute;
    left: 0;
    top: 0;
}

/* 左队红色进度条 - 按完成数量填充 */
.left-area .progress-fill {
    background: linear-gradient(90deg, 
        rgba(255, 100, 100, 0.7), 
        rgba(255, 150, 150, 0.9),
        rgba(255, 200, 200, 1));
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.5);
    transition: width 0.5s ease-out;
}

/* 右队蓝色进度条 - 按完成数量填充 */
.right-area .progress-fill {
    background: linear-gradient(90deg, 
        rgba(100, 100, 255, 0.7), 
        rgba(150, 150, 255, 0.9),
        rgba(200, 200, 255, 1));
    box-shadow: 0 0 15px rgba(100, 100, 255, 0.5);
    transition: width 0.5s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: clamp(8px, 1.5vw, 16px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* 当前单词显示区域（第二次出现，保持简化）*/
.current-word-display {
    margin: 15px 0;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
}

.word-card {
    background: rgba(255, 255, 255, 0.98);
    color: #000000;
    font-size: clamp(20px, 3vw, 40px);
    font-weight: bold;
    padding: clamp(15px, 2vh, 25px) clamp(20px, 3vw, 40px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: wordAppear 0.5s ease-out;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

@keyframes wordAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 反馈文本 */
.feedback-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: clamp(40px, 10vw, 80px);
    font-weight: 900;
    text-align: center;
    margin: 0;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    animation: feedbackBounce 0.6s ease-out;
    font-style: italic;
    z-index: 10;
    pointer-events: none;
}

@keyframes feedbackBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

/* 选项按钮容器 */
.options-container {
    position: relative;
    width: 100%;
    min-height: clamp(150px, 20vh, 250px);
    max-height: clamp(200px, 30vh, 350px);
    margin: clamp(10px, 2vh, 20px) 0;
    padding: clamp(10px, 2vh, 20px) clamp(5px, 1vw, 10px);
    overflow: hidden;
    z-index: 300;
    flex-grow: 1;
}

.option-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: clamp(6px, 0.8vh, 10px) clamp(12px, 1.5vw, 24px);
    border-radius: clamp(15px, 2vh, 20px);
    font-size: clamp(11px, 1.2vw, 16px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    min-width: clamp(70px, 10vw, 110px);
    max-width: clamp(140px, 18vw, 220px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 301;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.option-btn:active {
    transform: translateY(0);
}

.option-btn.correct {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-color: #4CAF50;
    animation: correctPulse 0.5s ease;
}

.option-btn.wrong {
    background: linear-gradient(135deg, #F44336, #E57373);
    border-color: #F44336;
    animation: wrongShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 状态消息 */
.status-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    padding: 30px 50px;
    border-radius: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
    min-width: 400px;
}

.status-message.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: messageZoomIn 0.6s ease-out;
}

@keyframes messageZoomIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.completion-emoji {
    font-size: 60px;
    animation: emojiRotate 1s ease-in-out infinite;
}

@keyframes emojiRotate {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.2); }
}

.completion-text {
    font-size: clamp(12px, 2vw, 24px);
    line-height: 1.5;
}

.status-message .highlight {
    color: #FFD700;
    font-size: clamp(14px, 2.5vw, 28px);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 游戏计时器 */
.game-timer {
    position: absolute;
    top: clamp(15px, 3vh, 30px);
    right: clamp(20px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(5px, 1vh, 10px) clamp(12px, 2vw, 25px);
    border-radius: clamp(12px, 2vw, 25px);
    font-size: clamp(10px, 1.5vw, 20px);
    font-weight: bold;
    color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* ==================== 结束页面样式 ==================== */
#end-page {
    background: linear-gradient(to right, 
        rgba(139, 0, 0, 0.95) 0%,
        rgba(178, 34, 34, 0.9) 45%, 
        rgba(25, 25, 112, 0.9) 55%, 
        rgba(0, 0, 139, 0.95) 100%);
    align-items: center;
    justify-content: center;
    position: relative;
}

.end-content {
    z-index: 10;
    position: relative;
}

.result-box {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(20px, 5vw, 50px) clamp(30px, 5vw, 80px);
    border-radius: clamp(15px, 3vw, 30px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    min-width: clamp(300px, 50vw, 600px);
}

.result-title {
    font-size: clamp(24px, 4vw, 48px);
    color: #333;
    margin-bottom: clamp(20px, 3vh, 40px);
    font-weight: 900;
}

.result-scores {
    display: flex;
    gap: clamp(20px, 5vw, 60px);
    justify-content: center;
    margin-bottom: clamp(20px, 3vh, 40px);
}

.team-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.result-team-name {
    font-size: clamp(12px, 2vw, 24px);
    font-weight: bold;
    color: #666;
}

.team-result.left-result .result-team-name {
    color: #FF5252;
}

.team-result.right-result .result-team-name {
    color: #5C7CFF;
}

.result-score {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    padding: clamp(10px, 2vh, 20px) clamp(20px, 3vw, 40px);
    border-radius: clamp(10px, 2vw, 20px);
    min-width: clamp(90px, 15vw, 180px);
}

.team-result.left-result .result-score {
    background: linear-gradient(135deg, #FF5252, #FF8A8A);
    color: white;
}

.team-result.right-result .result-score {
    background: linear-gradient(135deg, #5C7CFF, #8AA3FF);
    color: white;
}

.result-score.winner {
    animation: winnerPulse 1.5s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(92, 124, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(92, 124, 255, 0.8);
    }
}

.trophy {
    position: absolute;
    top: clamp(-15px, -2vh, -30px);
    right: clamp(-15px, -2vw, -30px);
    font-size: clamp(30px, 5vw, 60px);
    filter: drop-shadow(0 6px 15px rgba(255, 215, 0, 0.6));
    animation: trophyRotate 2s ease-in-out infinite;
}

@keyframes trophyRotate {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.result-message {
    font-size: clamp(14px, 2.5vw, 28px);
    font-weight: bold;
    color: #5C7CFF;
    margin-bottom: clamp(20px, 3vh, 40px);
}

.restart-btn {
    background: linear-gradient(135deg, #66D9EF, #4DB8D8);
    color: white;
    border: none;
    padding: clamp(8px, 2vh, 15px) clamp(25px, 4vw, 50px);
    font-size: clamp(11px, 2vw, 22px);
    font-weight: bold;
    border-radius: clamp(15px, 2vw, 30px);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(77, 184, 216, 0.5);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(77, 184, 216, 0.7);
}

.restart-btn:active {
    transform: translateY(0);
}

/* 响应式设计 - 小屏幕设备 */
@media (max-width: 768px) {
    .title-section {
        gap: clamp(10px, 3vw, 40px);
        margin-bottom: clamp(15px, 2vh, 25px);
        min-height: clamp(80px, 15vh, 150px);
        max-height: clamp(120px, 20vh, 200px);
    }
    
    .team-label {
        font-size: clamp(30px, 18vw, 300px);
        letter-spacing: clamp(15px, 2vw, 30px);
    }
    
    .team-label.left-team .text-3d .letter-p {
        font-size: calc(clamp(30px, 18vw, 300px) + 30px);
    }
    
    .team-label.right-team .text-3d .character-dui {
        font-size: calc(clamp(30px, 18vw, 300px) - 30px);
    }
    
    .settings-section {
        flex-direction: column;
        gap: clamp(8px, 1vh, 15px);
    }
    
    .setting-item {
        width: 100%;
        max-width: 250px;
    }
    
    .start-game-btn {
        padding: clamp(8px, 1vh, 12px) clamp(20px, 3vw, 35px) !important;
        font-size: clamp(14px, 1.6vw, 20px) !important;
    }
}

/* 响应式设计 - 超小屏幕设备 */
@media (max-width: 480px) {
    .title-section {
        gap: clamp(8px, 2vw, 30px);
        margin-bottom: clamp(10px, 1.5vh, 20px);
    }
    
    .team-label {
        font-size: clamp(24px, 15vw, 250px);
        letter-spacing: clamp(10px, 1.5vw, 25px);
    }
    
    .file-upload-section {
        margin-top: clamp(15px, 2vh, 25px);
    }
    
    .upload-btn {
        padding: clamp(6px, 0.8vh, 10px) clamp(15px, 2vw, 30px);
        font-size: clamp(12px, 1.1vw, 16px);
    }
}

/* 响应式设计 - 大屏幕设备（投影仪） */
@media (min-width: 1920px) {
    .title-section {
        gap: clamp(40px, 6vw, 100px);
        margin-bottom: clamp(30px, 4vh, 50px);
    }
    
    .team-label {
        font-size: clamp(60px, 25vw, 500px);
        letter-spacing: clamp(30px, 3vw, 60px);
    }
    
    .start-game-btn {
        padding: clamp(12px, 1.5vh, 18px) clamp(35px, 5vw, 60px) !important;
        font-size: clamp(20px, 2.2vw, 28px) !important;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}
