html,
body {
    height: 100%;
}

.bg {
    width: 100%;
    height: 100%;
    background-image: url('https://erpspz.oss-cn-beijing.aliyuncs.com/file/20260202/bg3.png');
    overflow: hidden;
    background-color: #121936;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

a {
    color: #fff;
}

.buttons {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.next {
    font-size: 40px;
    color: #fff;
    line-height: 1.5;
    padding: 20px;
    text-align: center;
    position: absolute;
    width: 100%;
}

.next .title {
    color: yellow;
}

.el-select {
    width: 120px;
    margin-right: 10px;
}

.batch {
    position: absolute;
    width: 80%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    top: 50%;
    color: #fff;
    left: 50%;
    transform: translate(-50%, -50%);
}

.player {
    display: inline-block;
    text-align: center;
    font-size: 60px;
    width: 215px;
    position: relative;
    line-height: 60px;
    margin: 8px;
    border-radius: 12px;
    padding: 15px 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* 背景层 - 添加深色半透明背景让文字更清晰 */
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.85) 0%, 
        rgba(30, 20, 25, 0.85) 50%, 
        rgba(20, 20, 30, 0.85) 100%);
    
    /* 边框和阴影 */
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff5722, #ff9800, #ff6f61) 1;
    box-shadow: 
        0 8px 24px rgba(255, 87, 34, 0.4),
        0 0 40px rgba(255, 152, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* 文字样式 - 使用实色确保清晰 */
    color: #ff9800;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(255, 152, 0, 0.8),
        0 0 20px rgba(255, 87, 34, 0.6),
        0 0 30px rgba(255, 152, 0, 0.4);
    position: relative;
    z-index: 3;
}

/* 扫描线效果 */
.player::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 87, 34, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
    z-index: 1;
    border-radius: 12px;
    pointer-events: none;
}

.player:hover::after {
    left: 100%;
}

.player:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(255, 87, 34, 0.6),
        0 0 60px rgba(255, 152, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-image-source: linear-gradient(135deg, #ff9800, #ffc107, #ff9800);
}

@keyframes playerTextShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.lucky-dog {
    display: inline-block;
    font-size: 20px;
    text-align: center;
    width: 85px;
    position: relative;
    line-height: 28px;
    margin: 5px;
    border-radius: 8px;
    padding: 8px 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* 背景层 - 添加深色半透明背景让文字更清晰 */
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.85) 0%, 
        rgba(30, 20, 25, 0.85) 50%, 
        rgba(20, 20, 30, 0.85) 100%);
    
    /* 边框和阴影 */
    border: 1.5px solid;
    border-image: linear-gradient(135deg, #ff5722, #ff9800, #ff6f61) 1;
    box-shadow: 
        0 4px 12px rgba(255, 87, 34, 0.3),
        0 0 20px rgba(255, 152, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* 文字样式 - 使用实色确保清晰 */
    color: #ff9800;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 
        0 0 8px rgba(255, 152, 0, 0.8),
        0 0 15px rgba(255, 87, 34, 0.6);
    z-index: 2;
}

.lucky-dog:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(255, 87, 34, 0.5),
        0 0 30px rgba(255, 152, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-image-source: linear-gradient(135deg, #ff9800, #ffc107, #ff9800);
}

.result {
    width: 200px;
    position: absolute;
    right: 10px;
    top: 100px;
    color: #fff;
    line-height: 1.5;
    font-size: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (min-width: 1201px) {
    .batch .player {
        width: calc(21% - 8px);
        margin-right: 8px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }

    .batch {
        flex-wrap: wrap;
    }
}

/* ========== 马年中奖动画样式 - 科技风格红色/橙色系 ========== */
.horse-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 30%, #2d0000 60%, #0a0a0a 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeIn 0.8s ease-in;
    cursor: pointer;
}

.horse-animation-container.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.horse-animation-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 科技风格背景网格 */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 87, 34, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 87, 34, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 87, 34, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(255, 87, 34, 1);
    animation: scanMove 3s linear infinite;
    z-index: 5;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 数据流效果 */
.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 87, 34, 0.6) 50%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.8);
    animation: streamMove 4s linear infinite;
}

.stream-1 {
    left: 10%;
    animation-delay: 0s;
}

.stream-2 {
    left: 50%;
    animation-delay: 1.3s;
}

.stream-3 {
    left: 90%;
    animation-delay: 2.6s;
}

@keyframes streamMove {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 背景光效 */
.bg-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: lightMove 8s infinite ease-in-out;
}

.light-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.light-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.3) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.light-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes lightMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(100px, -100px) scale(1.2);
        opacity: 0.8;
    }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff5722 0%, #ff9800 50%, #ff6f61 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 87, 34, 0.8),
        0 0 20px rgba(255, 152, 0, 0.6),
        0 0 30px rgba(255, 111, 97, 0.4);
    animation: particleFloat 4s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1.5);
        opacity: 0;
    }
}

/* 马奔跑动画 */
/* 马奔跑动画位置 - 中心视觉效果 */
.center-effect {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 10;
    pointer-events: none;
}

/* 中心能量球 */
.energy-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 215, 0, 0.9) 0%,
        rgba(255, 152, 0, 0.7) 30%,
        rgba(255, 87, 34, 0.5) 60%,
        transparent 100%);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.8),
        0 0 120px rgba(255, 152, 0, 0.6),
        inset 0 0 40px rgba(255, 215, 0, 0.4);
    animation: energyPulse 2s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes energyPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* 旋转光环 */
.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid;
    border-radius: 50%;
    border-image: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 152, 0, 0.6) 25%,
        rgba(255, 87, 34, 0.8) 50%,
        rgba(255, 152, 0, 0.6) 75%,
        rgba(255, 215, 0, 0.8) 100%) 1;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 152, 0, 0.3);
}

.ring-1 {
    width: 180px;
    height: 180px;
    animation: rotateRing 8s linear infinite;
    border-image-slice: 1;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation: rotateRing 12s linear infinite reverse;
    border-image-slice: 1;
    opacity: 0.7;
}

.ring-3 {
    width: 300px;
    height: 300px;
    animation: rotateRing 15s linear infinite;
    border-image-slice: 1;
    opacity: 0.5;
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 光粒子 */
.light-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.light-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 1) 0%,
        rgba(255, 152, 0, 0.8) 50%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: particleFloat 4s ease-in-out infinite;
}

.light-particle:nth-child(1) { top: 20%; left: 30%; }
.light-particle:nth-child(2) { top: 15%; left: 70%; }
.light-particle:nth-child(3) { top: 35%; left: 15%; }
.light-particle:nth-child(4) { top: 40%; left: 85%; }
.light-particle:nth-child(5) { top: 60%; left: 25%; }
.light-particle:nth-child(6) { top: 65%; left: 75%; }
.light-particle:nth-child(7) { top: 80%; left: 40%; }
.light-particle:nth-child(8) { top: 75%; left: 60%; }
.light-particle:nth-child(9) { top: 25%; left: 50%; }
.light-particle:nth-child(10) { top: 50%; left: 20%; }
.light-particle:nth-child(11) { top: 55%; left: 80%; }
.light-particle:nth-child(12) { top: 10%; left: 50%; }
.light-particle:nth-child(13) { top: 45%; left: 45%; }
.light-particle:nth-child(14) { top: 30%; left: 60%; }
.light-particle:nth-child(15) { top: 70%; left: 35%; }
.light-particle:nth-child(16) { top: 20%; left: 80%; }
.light-particle:nth-child(17) { top: 80%; left: 20%; }
.light-particle:nth-child(18) { top: 50%; left: 50%; }
.light-particle:nth-child(19) { top: 15%; left: 20%; }
.light-particle:nth-child(20) { top: 85%; left: 70%; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -20px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translate(10px, -40px) scale(1.1);
        opacity: 0.9;
    }
}

/* 马头 - 已注释 */
/*
.horse-head {
    position: absolute;
    left: 0;
    top: 20px;
    width: 60px;
    height: 50px;
    border: 4px solid #ff9800;
    border-radius: 50% 40% 40% 50%;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.8);
}

.horse-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid #ff9800;
    top: 15px;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
}

.ear-left {
    left: 5px;
    transform: rotate(-30deg);
}

.ear-right {
    left: 35px;
    transform: rotate(30deg);
}

.horse-eye {
    position: absolute;
    left: 35px;
    top: 35px;
    width: 8px;
    height: 8px;
    background: #ff5722;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 87, 34, 1);
}

.horse-body {
    position: absolute;
    left: 50px;
    top: 40px;
    width: 100px;
    height: 50px;
    border: 4px solid #ff9800;
    border-radius: 30px;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.8);
}

.horse-leg {
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, #ff9800 0%, #ff5722 100%);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
    border-radius: 2px;
}

.leg-front-left {
    left: 60px;
    top: 85px;
    height: 50px;
    animation: legRun1 0.2s infinite ease-in-out;
}

.leg-front-right {
    left: 80px;
    top: 85px;
    height: 50px;
    animation: legRun2 0.2s infinite ease-in-out;
}

.leg-back-left {
    left: 120px;
    top: 85px;
    height: 50px;
    animation: legRun2 0.2s infinite ease-in-out;
}

.leg-back-right {
    left: 140px;
    top: 85px;
    height: 50px;
    animation: legRun1 0.2s infinite ease-in-out;
}

@keyframes legRun1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        height: 50px;
    }
    25% {
        transform: translateY(-20px) rotate(15deg);
        height: 45px;
    }
    50% {
        transform: translateY(-35px) rotate(25deg);
        height: 40px;
    }
    75% {
        transform: translateY(-20px) rotate(15deg);
        height: 45px;
    }
}

@keyframes legRun2 {
    0%, 100% {
        transform: translateY(-35px) rotate(25deg);
        height: 40px;
    }
    25% {
        transform: translateY(-20px) rotate(15deg);
        height: 45px;
    }
    50% {
        transform: translateY(0) rotate(0deg);
        height: 50px;
    }
    75% {
        transform: translateY(-20px) rotate(15deg);
        height: 45px;
    }
}

.horse-tail {
    position: absolute;
    left: 145px;
    top: 50px;
    width: 30px;
    height: 40px;
    border: 3px solid #ff9800;
    border-left: none;
    border-radius: 0 50% 50% 0;
    background: transparent;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
    animation: tailSwing 0.2s infinite ease-in-out;
    transform-origin: left center;
}

@keyframes tailSwing {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.horse-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(255, 87, 34, 0.7) 0%, 
        rgba(255, 152, 0, 0.5) 30%,
        rgba(255, 111, 97, 0.3) 60%,
        transparent 80%);
    border-radius: 50%;
    filter: blur(40px);
    animation: horseGlow 0.2s infinite ease-in-out;
    z-index: 1;
}

@keyframes horseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

@keyframes horseRun {
    0% {
        right: -350px;
        opacity: 0.8;
    }
    8% {
        opacity: 1;
    }
    100% {
        right: calc(50% - 75px);
        opacity: 1;
    }
}

@keyframes horseGallop {
    0% {
        transform: translateY(0) rotate(-5deg) translateX(0);
    }
    12.5% {
        transform: translateY(-25px) rotate(-2deg) translateX(-3px);
    }
    25% {
        transform: translateY(-35px) rotate(0deg) translateX(-5px);
    }
    37.5% {
        transform: translateY(-25px) rotate(2deg) translateX(-3px);
    }
    50% {
        transform: translateY(0) rotate(5deg) translateX(0);
    }
    62.5% {
        transform: translateY(-25px) rotate(2deg) translateX(3px);
    }
    75% {
        transform: translateY(-35px) rotate(0deg) translateX(5px);
    }
    87.5% {
        transform: translateY(-25px) rotate(-2deg) translateX(3px);
    }
    100% {
        transform: translateY(0) rotate(-5deg) translateX(0);
    }
}

.horse-trail {
    position: absolute;
    top: 100px;
    right: -100px;
    width: 300px;
    height: 30px;
    z-index: 1;
}

.trail-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(270deg, 
        transparent 0%, 
        rgba(255, 87, 34, 0.8) 20%, 
        rgba(255, 152, 0, 0.9) 50%, 
        rgba(255, 87, 34, 0.8) 80%, 
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.8);
    animation: trailFade 2.5s ease-in-out forwards;
}

.trail-line:nth-child(1) {
    top: 0;
    width: 250px;
    animation-delay: 0s;
}

.trail-line:nth-child(2) {
    top: 10px;
    width: 200px;
    animation-delay: 0.1s;
}

.trail-line:nth-child(3) {
    top: 20px;
    width: 150px;
    animation-delay: 0.2s;
}

@keyframes trailFade {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    40% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0.5);
    }
}
*/

/* 中奖者姓名展示 - 科技风格 */
.winner-names {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    z-index: 20;
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 0;
    margin-top: 60px;
    width: 100%;
    max-width: 95%;
    box-sizing: border-box;
}

.winner-name-wrapper {
    position: relative;
    animation: nameFlyIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    flex-shrink: 0;
}

/* 抽奖个数为5：第一行2个，第二行3个 */
.winner-names.count-5 {
    max-width: 90%;
}

.winner-names.count-5 .winner-name-wrapper:nth-child(1),
.winner-names.count-5 .winner-name-wrapper:nth-child(2) {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 0;
}

.winner-names.count-5 .winner-name-wrapper:nth-child(3),
.winner-names.count-5 .winner-name-wrapper:nth-child(4),
.winner-names.count-5 .winner-name-wrapper:nth-child(5) {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 0;
}

/* 抽奖个数为3：一行展示3个 */
.winner-names.count-3 {
    max-width: 90%;
}

.winner-names.count-3 .winner-name-wrapper {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 0;
}

/* 抽奖个数为1：一行展示1个，居中 */
.winner-names.count-1 {
    justify-content: center;
}

.winner-names.count-1 .winner-name-wrapper {
    flex: 0 0 auto;
    max-width: 600px;
    width: auto;
}

/* 其他数量：默认一行展示 */
.winner-names:not(.count-5):not(.count-3):not(.count-1) {
    flex-direction: column;
    align-items: center;
}

.winner-names:not(.count-5):not(.count-3):not(.count-1) .winner-name-wrapper {
    flex: 0 0 auto;
    width: auto;
    max-width: 600px;
}

/* 自定义滚动条样式 */
.winner-names::-webkit-scrollbar {
    width: 6px;
}

.winner-names::-webkit-scrollbar-track {
    background: rgba(255, 87, 34, 0.1);
    border-radius: 3px;
}

.winner-names::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border-radius: 3px;
}

.winner-names::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}


@keyframes nameFlyIn {
    0% {
        opacity: 0;
        transform: translateY(150px) scale(0.3) rotateX(90deg);
        filter: blur(20px);
    }
    60% {
        transform: translateY(-15px) scale(1.08) rotateX(0deg);
        filter: blur(0px);
    }
    80% {
        transform: translateY(5px) scale(0.98) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

.winner-name {
    position: relative;
    padding: 30px 60px;
    background: linear-gradient(135deg, 
        rgba(255, 87, 34, 0.25) 0%, 
        rgba(255, 152, 0, 0.25) 50%, 
        rgba(255, 87, 34, 0.25) 100%);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(255, 87, 34, 0.4),
        0 0 60px rgba(255, 152, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
}

.winner-name:hover {
    transform: scale(1.05);
}

.name-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 87, 34, 0.3) 50%, 
        transparent 100%);
    animation: nameBgScan 3s infinite;
}

@keyframes nameBgScan {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.name-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid;
    border-radius: 15px;
    border-image: linear-gradient(135deg, #ff5722, #ff9800, #ffc107, #ff9800, #ff6f61) 1;
    animation: borderGlow 2s infinite ease-in-out;
    box-shadow: 
        inset 0 0 20px rgba(255, 87, 34, 0.3),
        0 0 30px rgba(255, 87, 34, 0.5);
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 87, 34, 0.7),
            0 0 30px rgba(255, 152, 0, 0.5),
            inset 0 0 15px rgba(255, 87, 34, 0.3);
        border-image-source: linear-gradient(135deg, #ff5722, #ff9800, #ff6f61);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 87, 34, 1),
            0 0 70px rgba(255, 152, 0, 0.9),
            0 0 100px rgba(255, 111, 97, 0.6),
            inset 0 0 25px rgba(255, 87, 34, 0.5);
        border-image-source: linear-gradient(135deg, #ff9800, #ffc107, #ff9800);
    }
}

.name-text {
    position: relative;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 30%, #ffc107 50%, #ff9800 70%, #ff6f61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    text-shadow: 
        0 0 30px rgba(255, 87, 34, 0.6),
        0 0 60px rgba(255, 152, 0, 0.4);
    animation: nameTextPulse 2s infinite ease-in-out, nameGradientShift 3s infinite;
    z-index: 2;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    padding: 5px 0;
    display: block;
    word-break: break-word;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* 根据布局调整字体大小 */
.winner-names.count-5 .name-text,
.winner-names.count-3 .name-text {
    font-size: 44px;
    letter-spacing: 4px;
}

.winner-names.count-1 .name-text {
    font-size: 56px;
    letter-spacing: 6px;
}

@keyframes nameGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes nameTextPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

.name-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, 
        rgba(255, 87, 34, 0.4) 0%, 
        rgba(255, 152, 0, 0.2) 40%, 
        transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* 恭喜文字 */
.congratulations {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
    animation: congratsFadeIn 1.2s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes congratsFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.congrats-text {
    font-size: 72px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

.text-glow {
    font-size: 80px;
    line-height: 1.2;
    filter: drop-shadow(0 0 20px rgba(255, 87, 34, 1))
            drop-shadow(0 0 40px rgba(255, 152, 0, 0.8));
    animation: emojiPulse 1.5s infinite ease-in-out;
    display: inline-block;
    vertical-align: middle;
}

.text-main {
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
}

@keyframes emojiPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.text-main {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ff6f61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 30px rgba(255, 87, 34, 0.8),
        0 0 60px rgba(255, 152, 0, 0.6);
    animation: textShimmer 3s infinite;
    background-size: 200% 200%;
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.year-text {
    font-size: 36px;
    line-height: 1.6;
    color: #ff9800;
    text-shadow: 
        0 0 15px rgba(255, 152, 0, 0.8),
        0 0 30px rgba(255, 87, 34, 0.6);
    font-weight: bold;
    letter-spacing: 8px;
    animation: yearTextGlow 2s infinite ease-in-out;
    padding: 5px 0;
    display: block;
}

@keyframes yearTextGlow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .horse {
        font-size: 100px;
    }
    
    .name-text {
        font-size: 42px;
    }
    
    .congrats-text {
        font-size: 48px;
    }
    
    .text-glow {
        font-size: 56px;
    }
    
    .year-text {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .winner-names {
        gap: 15px;
        margin-top: 100px;
    }
    
    .winner-name {
        padding: 15px 30px;
    }
}

/* ========== 宝可梦风格动画样式（一等奖专用） ========== */
.pokemon-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a0033 30%, #330033 60%, #000000 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: pokemonFadeIn 0.5s ease-in;
}

@keyframes pokemonFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pokemon-animation-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 背景光效 */
.pokemon-bg-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.pokemon-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pokemonLightMove 4s infinite ease-in-out;
}

.pokemon-light-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.pokemon-light-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.4) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation-delay: 1s;
}

.pokemon-light-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes pokemonLightMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 1;
    }
}

/* 宝可梦球 - 3D球体效果 */
.pokeball-wrapper {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: pokeballAppear 0.8s ease-out forwards,
               pokeballDisappear 0.4s ease-out forwards;
    animation-delay: 0s, 2.1s;
    perspective: 1200px;
    perspective-origin: center center;
}

@keyframes pokeballAppear {
    0% {
        transform: translateX(-50%) translateY(-320px) rotateX(35deg) scale(0.6);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0) rotateX(15deg) scale(1);
        opacity: 1;
    }
}

/* 宝可梦球消失动画 - 金光时快速隐藏 */
@keyframes pokeballDisappear {
    0% {
        transform: translateX(-50%) translateY(0) rotateX(15deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0) rotateX(15deg) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
}

/* 3D球体容器 */
.pokeball-3d {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: pokeballFloat 2s ease-in-out 0.8s infinite;
}

/* 球体浮动效果 - 参考官方代码 */
@keyframes pokeballFloat {
    0%, 100% {
        transform: translateY(0) rotateX(15deg);
    }
    50% {
        transform: translateY(-8px) rotateX(18deg);
    }
}
/* 打开前的震动效果 */
@keyframes pokeballShake {
    0%, 100% {
        transform: translateX(0) translateY(0) rotateZ(0deg);
    }
    10% {
        transform: translateX(-3px) translateY(-2px) rotateZ(-2deg);
    }
    20% {
        transform: translateX(3px) translateY(2px) rotateZ(2deg);
    }
    30% {
        transform: translateX(-2px) translateY(-1px) rotateZ(-1deg);
    }
    40% {
        transform: translateX(2px) translateY(1px) rotateZ(1deg);
    }
    50% {
        transform: translateX(-1px) translateY(0) rotateZ(-0.5deg);
    }
    60% {
        transform: translateX(1px) translateY(0) rotateZ(0.5deg);
    }
    70%, 100% {
        transform: translateX(0) translateY(0) rotateZ(0deg);
    }
}

/* 打开时的弹跳效果 */
@keyframes pokeballBounce3D {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-8px) scale(1.02);
    }
    60% {
        transform: translateY(-3px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 球体上半部分 - 红色半球 */
.pokeball-sphere-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100px;
    transform-style: preserve-3d;
    transform-origin: bottom center;
    z-index: 3;
    /* 移除打开动画 */
}

.pokeball-top-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100px;
    border-radius: 200px 200px 0 0;
    background: radial-gradient(ellipse 200px 100px at 50% 0%, 
        #ff3333 0%,
        #ff0000 20%,
        #cc0000 40%,
        #990000 60%,
        #660000 80%,
        #330000 95%,
        #000000 100%);
    border: none;
    border-bottom: 8px solid #000;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.6),
        inset 0 -20px 40px rgba(0, 0, 0, 0.4),
        inset -30px 0 50px rgba(255, 255, 255, 0.2),
        inset 30px 0 50px rgba(0, 0, 0, 0.3),
        0 -8px 20px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    /* 球体曲率效果 - 添加高光 */
    background-image: 
        radial-gradient(ellipse 160px 80px at 35% 15%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 200px 100px at 50% 0%, 
            #ff3333 0%,
            #ff0000 20%,
            #cc0000 40%,
            #990000 60%,
            #660000 80%,
            #330000 95%,
            #000000 100%);
}

.pokeball-top-highlight {
    position: absolute;
    top: 5px;
    left: 20px;
    width: 60px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, 
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    /* 移除打开动画 */
}

/* 3D球体打开动画 - 像扇贝一样向前翻开 */
@keyframes pokeballTopOpen3DSphere {
    0% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0) scaleY(1);
        opacity: 1;
        filter: brightness(1);
    }
    8% {
        transform: rotateX(15deg) rotateY(-2deg) translateZ(5px) scaleY(0.98);
        filter: brightness(1.05);
    }
    20% {
        transform: rotateX(45deg) rotateY(-4deg) translateZ(12px) scaleY(0.95);
        filter: brightness(1.1);
    }
    35% {
        transform: rotateX(75deg) rotateY(-6deg) translateZ(20px) scaleY(0.9);
        filter: brightness(1.15);
    }
    50% {
        transform: rotateX(105deg) rotateY(-8deg) translateZ(30px) scaleY(0.85);
        filter: brightness(1.2);
    }
    65% {
        transform: rotateX(130deg) rotateY(-10deg) translateZ(40px) scaleY(0.75);
        filter: brightness(1.15);
    }
    80% {
        transform: rotateX(150deg) rotateY(-12deg) translateZ(50px) scaleY(0.65);
        filter: brightness(1.1);
    }
    90% {
        transform: rotateX(165deg) rotateY(-15deg) translateZ(55px) scaleY(0.55);
        filter: brightness(1);
    }
    100% {
        transform: rotateX(180deg) rotateY(-18deg) translateZ(60px) scaleY(0.5);
        opacity: 0.95;
        filter: brightness(0.95);
    }
}

/* 球体下半部分 - 白色半球 */
.pokeball-sphere-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 100px;
    transform-style: preserve-3d;
    transform-origin: top center;
    z-index: 2;
    /* 移除打开动画 */
}

.pokeball-bottom-surface {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 100px;
    border-radius: 0 0 200px 200px;
    background: radial-gradient(ellipse 200px 100px at 50% 100%, 
        #ffffff 0%,
        #f5f5f5 20%,
        #e8e8e8 40%,
        #d0d0d0 60%,
        #b8b8b8 80%,
        #a0a0a0 95%,
        #000000 100%);
    border: none;
    border-top: 8px solid #000;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.5),
        inset 0 20px 40px rgba(0, 0, 0, 0.15),
        inset -30px 0 50px rgba(255, 255, 255, 0.3),
        inset 30px 0 50px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    /* 球体曲率效果 - 添加高光 */
    background-image: 
        radial-gradient(ellipse 160px 80px at 35% 85%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 200px 100px at 50% 100%, 
            #ffffff 0%,
            #f5f5f5 20%,
            #e8e8e8 40%,
            #d0d0d0 60%,
            #b8b8b8 80%,
            #a0a0a0 95%,
            #000000 100%);
}

.pokeball-bottom-highlight {
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 60px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, 
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* 中间分割线 - 3D效果 */
.pokeball-divider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200px;
    height: 20px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 0, 0, 0.9) 5%,
        #000000 15%,
        #000000 85%,
        rgba(0, 0, 0, 0.9) 95%,
        transparent 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.9),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.4);
    z-index: 4;
    transform-style: preserve-3d;
    animation: pokeballDividerGlow 1.2s ease-in-out 1.3s;
}

/* 分割线发光效果 */
@keyframes pokeballDividerGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 0, 0, 0.8),
            inset 0 2px 5px rgba(255, 255, 255, 0.1),
            inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(0, 0, 0, 0.8),
            inset 0 2px 5px rgba(255, 255, 255, 0.3),
            inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(0, 0, 0, 0.8),
            inset 0 2px 5px rgba(255, 255, 255, 0.1),
            inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }
}

/* 中心按钮 - 黑色圆圈点，类似开关效果 */
.pokeball-center-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(0, 0, 0, 0.98) 25%,
        #000000 100%);
    border: 3px solid #000;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.9),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.8);
    z-index: 5;
    animation: buttonPress 0.3s ease-out forwards;
    animation-delay: 1.8s;
    cursor: pointer;
}

/* 按钮按下效果 - 开关效果 */
@keyframes buttonPress {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 10px rgba(0, 0, 0, 0.9),
            inset 0 2px 5px rgba(255, 255, 255, 0.2),
            inset 0 -2px 5px rgba(0, 0, 0, 0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.85);
        box-shadow:
            0 0 15px rgba(255, 215, 0, 0.6),
            inset 0 1px 3px rgba(255, 255, 255, 0.1),
            inset 0 -1px 3px rgba(0, 0, 0, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 200, 0, 0.6),
            inset 0 2px 5px rgba(255, 255, 255, 0.3),
            inset 0 -2px 5px rgba(0, 0, 0, 0.7);
    }
}
/* 光效 */
.pokeball-light-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.7) 0%, 
        rgba(255, 152, 0, 0.5) 30%,
        rgba(255, 87, 34, 0.3) 60%,
        transparent 80%);
    border-radius: 50%;
    animation: pokeballLight3D 1s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes pokeballLight3D {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* "就决定是你了"文字 */
.pokemon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    z-index: 15;
    margin-top: 80px;
    perspective: 1000px;
}

.pokemon-text-line {
    font-size: 80px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 87, 34, 0.8),
        0 0 60px rgba(255, 152, 0, 0.6);
    animation: pokemonTextAppear 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    letter-spacing: 5px;
    transform-style: preserve-3d;
}

.pokemon-text-line.line-1 { animation-delay: 0.3s; }
.pokemon-text-line.line-2 { animation-delay: 0.45s; }
.pokemon-text-line.line-3 { animation-delay: 0.6s; }
.pokemon-text-line.line-4 { animation-delay: 0.75s; }
.pokemon-text-line.line-5 { animation-delay: 0.9s; }
.pokemon-text-line.line-6 { animation-delay: 1.05s; }
.pokemon-text-line.line-7 { animation-delay: 1.2s; }

@keyframes pokemonTextAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5) rotateX(90deg);
    }
    60% {
        transform: translateY(-10px) scale(1.1) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* 中奖者名字 */
.pokemon-winner {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 90%;
}

.pokemon-winner-name {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.4;
    color: #ffffff;
    background-size: 200% 200%;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 200, 0, 0.8),
        0 0 60px rgba(255, 180, 0, 0.6),
        0 0 80px rgba(255, 160, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: pokemonWinnerAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               pokemonWinnerShimmer 2s infinite 3.3s;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    letter-spacing: 8px;
    margin: 25px 0;
    padding: 30px 60px;
    border-radius: 25px;
    /* 金黄色高级背景 */
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%,
        rgba(255, 200, 0, 0.98) 25%,
        rgba(255, 180, 0, 0.95) 50%,
        rgba(255, 200, 0, 0.98) 75%,
        rgba(255, 215, 0, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 4px solid;
    border-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 215, 0, 1) 25%,
        rgba(255, 200, 0, 1) 50%,
        rgba(255, 215, 0, 1) 75%,
        rgba(255, 255, 255, 0.8) 100%) 1;
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.8),
        0 0 120px rgba(255, 200, 0, 0.6),
        0 0 180px rgba(255, 180, 0, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.3),
        inset 0 2px 8px rgba(255, 215, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
    white-space: nowrap;
    min-height: auto;
    box-sizing: border-box;
}

@keyframes pokemonWinnerAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
        filter: blur(10px);
    }
    60% {
        transform: translateY(-10px) scale(1.1);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* 移除打开状态的样式，球不再打开 */
.pokeball-3d.opened .pokeball-sphere-top {
    /* 保持原样，不打开 */
}

.pokeball-3d.opened .pokeball-sphere-bottom {
    /* 保持原样，不打开 */
}
/* 全屏金色闪光效果 - 从宝可梦球中心按钮位置闪出 */
.white-flash {
    position: fixed;
    top: calc(22% + 100px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 2000px;
    min-height: 2000px;
    background: radial-gradient(circle at center, 
        rgba(255, 215, 0, 1) 0%,
        rgba(255, 223, 0, 0.98) 5%,
        rgba(255, 215, 0, 0.95) 10%,
        rgba(255, 200, 0, 0.9) 15%,
        rgba(255, 180, 0, 0.8) 20%,
        rgba(255, 165, 0, 0.7) 25%,
        rgba(255, 140, 0, 0.6) 30%,
        rgba(255, 120, 0, 0.5) 35%,
        rgba(255, 100, 0, 0.4) 40%,
        rgba(255, 80, 0, 0.3) 45%,
        rgba(255, 60, 0, 0.2) 50%,
        rgba(255, 40, 0, 0.1) 60%,
        rgba(255, 20, 0, 0.05) 70%,
        rgba(255, 10, 0, 0) 100%);
    z-index: 12;
    opacity: 0;
    animation: fullScreenGoldFlash 1.2s ease-out forwards;
    animation-delay: 2.1s;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(30px);
    box-shadow: 
        0 0 200px rgba(255, 215, 0, 0.9),
        0 0 400px rgba(255, 200, 0, 0.7),
        0 0 600px rgba(255, 180, 0, 0.5),
        inset 0 0 500px rgba(255, 215, 0, 0.3);
}

@keyframes fullScreenGoldFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.01);
        filter: blur(50px);
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.3),
            0 0 100px rgba(255, 200, 0, 0.2);
    }
    20% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.3);
        filter: blur(40px);
        box-shadow: 
            0 0 200px rgba(255, 215, 0, 0.8),
            0 0 400px rgba(255, 200, 0, 0.6),
            0 0 600px rgba(255, 180, 0, 0.4);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6);
        filter: blur(35px);
        box-shadow: 
            0 0 300px rgba(255, 215, 0, 1),
            0 0 600px rgba(255, 200, 0, 0.8),
            0 0 900px rgba(255, 180, 0, 0.6),
            inset 0 0 400px rgba(255, 215, 0, 0.4);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(30px);
        box-shadow: 
            0 0 400px rgba(255, 215, 0, 1),
            0 0 800px rgba(255, 200, 0, 0.9),
            0 0 1200px rgba(255, 180, 0, 0.7),
            inset 0 0 600px rgba(255, 215, 0, 0.5);
    }
    80% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(35px);
        box-shadow: 
            0 0 500px rgba(255, 215, 0, 0.9),
            0 0 1000px rgba(255, 200, 0, 0.7),
            0 0 1500px rgba(255, 180, 0, 0.5),
            inset 0 0 800px rgba(255, 215, 0, 0.4);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.5);
        filter: blur(40px);
        box-shadow: 
            0 0 400px rgba(255, 200, 0, 0.5),
            0 0 800px rgba(255, 180, 0, 0.4),
            0 0 1200px rgba(255, 160, 0, 0.3),
            inset 0 0 800px rgba(255, 200, 0, 0.2);
    }
}

/* 腾橙图片 - 金光后显示，替换宝可梦球 */
.tengcheng-image-wrapper {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    animation: tengchengImageAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 2.5s;
    pointer-events: none;
}

.tengcheng-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 60px rgba(255, 200, 0, 0.6))
            drop-shadow(0 0 90px rgba(255, 180, 0, 0.4));
    animation: tengchengImageFloat 3s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes tengchengImageAppear {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateX(-50%) translateY(-50px) scale(0.3);
        filter: blur(20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px) scale(1.1);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes tengchengImageFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* 皮卡丘 - 已注释 */
/*
.pikachu-wrapper {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 13;
    animation: pikachuAppear 0.8s ease-out 2.6s forwards;
    opacity: 0;
}

@keyframes pikachuAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.pikachu {
    position: relative;
    width: 180px;
    height: 200px;
    animation: pikachuBounce 0.5s infinite ease-in-out 3s;
}

@keyframes pikachuBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
*/

/* 皮卡丘身体 - 已注释 */
/*
.pikachu-body {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 3px solid #000;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        inset 0 -10px 20px rgba(255, 200, 0, 0.3);
}

.pikachu-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 50px solid #ffd700;
    border-top: 10px solid transparent;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

.ear-left {
    top: 0;
    left: 30px;
    transform: rotate(-30deg);
    border-bottom-color: #ffd700;
}

.ear-right {
    top: 0;
    right: 30px;
    transform: rotate(30deg);
    border-bottom-color: #ffd700;
}

.pikachu-ear::after {
    content: '';
    position: absolute;
    top: 35px;
    left: -8px;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
}

.pikachu-face {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
}

.pikachu-eye {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    top: 10px;
}

.eye-left {
    left: 20px;
}

.eye-right {
    right: 20px;
}

.pikachu-eye::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.pikachu-nose {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #000;
}

.pikachu-mouth {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 30px 30px;
}

.pikachu-cheek {
    position: absolute;
    top: 25px;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ff6b6b 0%, #ff8787 100%);
    border-radius: 50%;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.cheek-left {
    left: -35px;
}

.cheek-right {
    right: -35px;
}

.pikachu-arm {
    position: absolute;
    width: 25px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #000;
    border-radius: 15px;
    top: 90px;
    animation: armWave 0.5s infinite ease-in-out 3s;
}

.arm-left {
    left: 20px;
    transform-origin: top center;
}

.arm-right {
    right: 20px;
    transform-origin: top center;
}

@keyframes armWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

.pikachu-leg {
    position: absolute;
    width: 30px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #000;
    border-radius: 15px 15px 5px 5px;
    bottom: 0;
}

.leg-left {
    left: 40px;
}

.leg-right {
    right: 40px;
}

.pikachu-tail {
    position: absolute;
    top: 100px;
    right: -40px;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #000;
    border-left: none;
    border-radius: 0 50% 50% 0;
    transform-origin: left center;
    animation: tailWag 0.3s infinite ease-in-out 3s;
}

@keyframes tailWag {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}
*/

@keyframes pokemonWinnerShimmer {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pokeball {
        width: 150px;
        height: 150px;
    }
    
    .pokeball-top,
    .pokeball-bottom {
        width: 150px;
        height: 75px;
    }
    
    .pokemon-text-line {
        font-size: 48px;
    }
    
    .pokemon-winner-name {
        font-size: 48px;
        line-height: 1.3;
        letter-spacing: 4px;
        padding: 20px 35px;
        margin: 18px 0;
    }
    
    /* 皮卡丘响应式 - 已注释 */
    /*
    .pikachu {
        width: 120px;
        height: 140px;
    }
    
    .pikachu-body {
        width: 80px;
        height: 70px;
        top: 40px;
    }
    */
    
    .pokemon-winner {
        top: 55%;
        max-width: 95%;
    }
}