* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==================== 主页赛车主题样式 ==================== */

/* 赛车背景装饰 */
.racing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 0, 100, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 200, 0, 0.05) 0%, transparent 50%);
}

/* 动态道路线条 */
.road-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 500px;
}

.road-line {
    position: absolute;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, 0.4) 30px,
        rgba(255, 255, 255, 0.4) 50px
    );
    animation: roadMove 1s linear infinite;
}

.road-line.center {
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(255, 215, 0, 0.6) 40px,
        rgba(255, 215, 0, 0.6) 70px
    );
}

.road-line.left {
    left: 25%;
    width: 2px;
    opacity: 0.3;
}

.road-line.right {
    right: 25%;
    width: 2px;
    opacity: 0.3;
}

@keyframes roadMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 70px; }
}

/* 霓虹灯效果 */
.neon-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neon-light {
    position: absolute;
    width: 100px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 0, 255, 0.3) 20%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(255, 0, 255, 0.3) 80%,
        transparent 100%
    );
    filter: blur(20px);
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-light.left {
    left: 10%;
    animation-delay: 0s;
}

.neon-light.right {
    right: 10%;
    animation-delay: 1s;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 0.6; transform: scaleX(1.2); }
}

/* 速度粒子效果 */
.speed-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(0, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 100, 100, 0.5), transparent);
    background-repeat: repeat;
    background-size: 350px 200px;
    animation: particleMove 3s linear infinite;
    opacity: 0.6;
}

@keyframes particleMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

/* 赛车装饰 */
.car-decoration {
    position: absolute;
    font-size: 60px;
    opacity: 0.15;
    animation: carFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 100, 100, 0.5));
}

.car-decoration.left {
    top: 25%;
    left: 3%;
    animation-delay: 0s;
}

.car-decoration.right {
    bottom: 25%;
    right: 3%;
    animation-delay: 1.5s;
    transform: scaleX(-1);
}

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

.car-decoration.right {
    animation-name: carFloatRight;
}

@keyframes carFloatRight {
    0%, 100% { transform: translateY(0) rotate(-5deg) scaleX(-1); }
    50% { transform: translateY(-15px) rotate(5deg) scaleX(-1); }
}

/* 火焰效果 */
.fire-effect {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: fireBurn 0.5s ease-in-out infinite alternate;
}

.fire-effect.left {
    bottom: 30%;
    left: 8%;
}

.fire-effect.right {
    bottom: 30%;
    right: 8%;
}

@keyframes fireBurn {
    0% { transform: scale(1) rotate(-5deg); opacity: 0.3; }
    100% { transform: scale(1.2) rotate(5deg); opacity: 0.5; }
}

/* 倒计时灯 */
.countdown-lights {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    opacity: 0.15;
}

.countdown-lights .light {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    animation: lightBlink 1s ease-in-out infinite;
}

.countdown-lights .light.red {
    background: radial-gradient(circle, #ff3333, #cc0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation-delay: 0s;
}

.countdown-lights .light.yellow {
    background: radial-gradient(circle, #ffdd33, #ccaa00);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
    animation-delay: 0.3s;
}

.countdown-lights .light.green {
    background: radial-gradient(circle, #33ff33, #00cc00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    animation-delay: 0.6s;
}

@keyframes lightBlink {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* 轮胎轨迹 */
.tire-track {
    position: absolute;
    width: 80px;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    animation: tireMove 2s linear infinite;
}

.tire-track.left {
    left: 5%;
    transform: rotate(-2deg);
}

.tire-track.right {
    right: 5%;
    transform: rotate(2deg);
}

@keyframes tireMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

/* 速度线 */
.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(255, 215, 0, 0.1) 49%, rgba(255, 215, 0, 0.1) 51%, transparent 52%),
        linear-gradient(90deg, transparent 23%, rgba(255, 100, 0, 0.05) 24%, rgba(255, 100, 0, 0.05) 26%, transparent 27%),
        linear-gradient(90deg, transparent 73%, rgba(255, 100, 0, 0.05) 74%, rgba(255, 100, 0, 0.05) 76%, transparent 77%);
    animation: speedLineMove 0.5s linear infinite;
}

@keyframes speedLineMove {
    0% { transform: translateX(-10px); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateX(10px); opacity: 0.5; }
}

/* 发动机装饰 */
.engine-decoration {
    position: absolute;
    font-size: 80px;
    opacity: 0.15;
    animation: enginePulse 3s ease-in-out infinite;
    filter: grayscale(100%);
}

.engine-decoration.left {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.engine-decoration.right {
    bottom: 20%;
    right: 8%;
    animation-delay: 1.5s;
}

.engine-decoration.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.08;
    animation: engineRotate 8s linear infinite;
}

@keyframes enginePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.15; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.25; }
}

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

/* 轮胎装饰 */
.tire-decoration {
    position: absolute;
    font-size: 60px;
    opacity: 0.12;
    animation: tireRotate 4s linear infinite;
}

.tire-decoration.tl { top: 8%; left: 12%; }
.tire-decoration.tr { top: 8%; right: 12%; animation-direction: reverse; }
.tire-decoration.bl { bottom: 15%; left: 15%; animation-delay: 1s; }
.tire-decoration.br { bottom: 15%; right: 15%; animation-direction: reverse; animation-delay: 1s; }

@keyframes tireRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 旗帜装饰 */
.flag-decoration {
    position: absolute;
    font-size: 100px;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: flagWave 2s ease-in-out infinite;
}

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

/* 标题容器 */
#home-page .title-container {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 15px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#home-page .racing-flag {
    font-size: 36px;
    animation: flagBounce 1s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
}

@keyframes flagBounce {
    0%, 100% { transform: translateY(0) rotate(-10deg) scale(1); }
    50% { transform: translateY(-10px) rotate(10deg) scale(1.1); }
}

/* 游戏标题 */
#home-page .game-title {
    font-size: 48px;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 6px;
    position: relative;
}

.title-speed {
    display: block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 30%, #ff6b6b 60%, #ff3333 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.6));
    animation: speedGlow 2s ease-in-out infinite, gradientMove 3s ease infinite;
    position: relative;
}

.title-speed::after {
    content: 'SPEED';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

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

.title-racer {
    display: block;
    font-size: 52px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 18px;
    margin-top: 8px;
    animation: racerGlow 2s ease-in-out infinite, gradientMove 3s ease infinite;
    position: relative;
}

.title-racer::after {
    content: 'RACER';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes speedGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.6)) brightness(1); }
    50% { filter: drop-shadow(0 0 50px rgba(255, 107, 107, 0.9)) brightness(1.2); }
}

@keyframes racerGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5)) brightness(1); }
    50% { filter: drop-shadow(0 0 40px rgba(79, 172, 254, 0.8)) brightness(1.1); }
}

.subtitle {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 25px;
    margin-top: 15px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    animation: subtitlePulse 2s ease-in-out infinite;
    position: relative;
}

.subtitle::before,
.subtitle::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ffd700;
    animation: diamondPulse 1.5s ease-in-out infinite;
}

.subtitle::before {
    left: -40px;
}

.subtitle::after {
    right: -40px;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.9; letter-spacing: 25px; }
    50% { opacity: 1; letter-spacing: 28px; }
}

.title-decoration {
    margin-top: 15px;
    font-size: 30px;
}

.title-decoration .bolt {
    animation: boltFlash 0.5s ease-in-out infinite alternate;
}

.title-decoration .car-icon {
    font-size: 50px;
    display: inline-block;
    animation: carShake 0.3s ease-in-out infinite;
}

@keyframes boltFlash {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes carShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* 金币显示 */
.coins-display {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.25), rgba(255, 215, 0, 0.15));
    background-size: 200% 200%;
    border: 3px solid transparent;
    border-radius: 50px;
    padding: 18px 35px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: coinGlow 2s ease-in-out infinite, coinGradient 3s ease infinite;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(10px);
}

.coins-display::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700, #ffaa00);
    border-radius: 50px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

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

@keyframes coinGlow {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), 0 5px 20px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.7), 0 5px 20px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
    }
}

.coin-icon {
    font-size: 32px;
    animation: coinSpin 2s linear infinite, coinBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-5px) rotateY(180deg); }
}

.coin-amount {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.coin-label {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 版本选择区域 */
.version-selection {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.version-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.version-option {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.version-option:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.version-option.selected {
    border-color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
    box-shadow: 
        0 0 40px rgba(78, 205, 196, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    animation: selectedPulseVersion 2s ease-in-out infinite;
}

@keyframes selectedPulseVersion {
    0%, 100% { box-shadow: 0 0 40px rgba(78, 205, 196, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 60px rgba(78, 205, 196, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3); }
}

.version-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.version-name {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.version-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
}

/* 地图选择区域 */
.map-selection {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-icon {
    font-size: 28px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.map-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-option {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.map-option:hover::before {
    transform: translateX(100%);
}

.map-option:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.map-option.selected {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    box-shadow: 
        0 0 40px rgba(255, 107, 107, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 60px rgba(255, 107, 107, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3); }
}

/* 键盘导航焦点样式 */
.map-option.keyboard-focus {
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.1));
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px) scale(1.03);
    animation: keyboardFocusPulse 1s ease-in-out infinite;
}

@keyframes keyboardFocusPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.1);
        border-color: #00d4ff;
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4), inset 0 0 30px rgba(0, 212, 255, 0.2);
        border-color: #66e5ff;
    }
}

/* 难度选项键盘焦点样式 */
.difficulty-option.keyboard-focus {
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.1));
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: keyboardFocusPulse 1s ease-in-out infinite;
}

/* 按钮键盘焦点样式 */
.btn.keyboard-focus {
    border-color: #00d4ff;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    animation: btnKeyboardFocusPulse 1s ease-in-out infinite;
}

@keyframes btnKeyboardFocusPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4), inset 0 0 30px rgba(0, 212, 255, 0.3);
    }
}

.map-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: mapIconFloat 3s ease-in-out infinite;
}

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

.map-name {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
}

/* 按钮样式 */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 340px;
    z-index: 1;
    position: relative;
}

.btn {
    padding: 20px 45px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 25%, #ff4757 50%, #ee5a24 75%, #ff4757 100%);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite, btnPulse 2s ease-in-out infinite;
    box-shadow: 
        0 5px 25px rgba(255, 107, 107, 0.5),
        0 0 50px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(255, 107, 107, 0.5), 0 0 50px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 8px 35px rgba(255, 107, 107, 0.7), 0 0 70px rgba(255, 107, 107, 0.5); }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 12px 40px rgba(255, 107, 107, 0.8),
        0 0 80px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 50%, #3742fa 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 
        0 5px 25px rgba(55, 66, 250, 0.4),
        0 0 40px rgba(55, 66, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 12px 40px rgba(55, 66, 250, 0.6),
        0 0 70px rgba(55, 66, 250, 0.4);
    background: linear-gradient(135deg, #5352ed 0%, #3742fa 50%, #5352ed 100%);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-icon {
    font-size: 26px;
    animation: iconBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.btn-primary .btn-icon {
    animation: iconBounce 1s ease-in-out infinite;
}

.btn-secondary .btn-icon {
    animation: iconSpin 3s linear infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-text {
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 版本选择按钮 */
.version-selection {
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.btn-version {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: versionPulse 2s ease-in-out infinite;
}

.btn-version:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

@keyframes versionPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6); }
}

/* 版本选择弹窗 */
.version-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.version-modal.active {
    display: flex;
}

.version-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-modal-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.version-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.version-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.version-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.version-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.version-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.version-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.version-icon {
    font-size: 48px;
    margin-bottom: 5px;
}

.version-name {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.version-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 底部装饰 */
.footer-decoration {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    pointer-events: none;
    z-index: 0;
}

.speedometer {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.speedometer .gauge {
    font-size: 45px;
    animation: gaugePulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 100, 100, 0.5));
}

.speedometer .rpm {
    font-size: 14px;
    color: #fff;
    letter-spacing: 4px;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes gaugePulse {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.racing-stripes {
    display: flex;
    gap: 8px;
}

.racing-stripes .stripe {
    width: 80px;
    height: 10px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #ff6b6b);
    background-size: 200% 100%;
    border-radius: 5px;
    animation: stripeMove 0.8s linear infinite, stripeGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.racing-stripes .stripe:nth-child(2) { animation-delay: 0.2s; }
.racing-stripes .stripe:nth-child(3) { animation-delay: 0.4s; }

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

@keyframes stripeGlow {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 40px rgba(255, 107, 107, 0.8); }
}

/* 升级提示动画 */
@keyframes levelUpPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

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

/* 道具提示动画 */
@keyframes powerupPop {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

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

#app {
    width: 100%;
    height: 100vh;
    position: relative;
}

.page {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

#shop-page {
    justify-content: flex-start;
    padding-top: 40px;
}

.page.active {
    display: flex;
}

/* 首页横向布局 */
#home-page {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

#home-page .main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    z-index: 1;
}

#home-page .left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
}

#home-page .center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

#home-page .right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

#home-page h1,
#settings-page h1,
#shop-page h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#home-page .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 180px;
}

#home-page .coins-display {
    color: #FFD700;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#home-page .map-selection {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 0;
    text-align: center;
}

#home-page .map-selection .section-title {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#home-page .map-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

#home-page .map-option {
    min-width: 90px;
    max-width: 110px;
    padding: 10px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#home-page .map-option .map-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

#home-page .map-option .map-name {
    font-size: 12px;
    margin-bottom: 2px;
}

#home-page .map-option .map-desc {
    font-size: 10px;
    opacity: 0.8;
}

/* 难度选择样式 */
#home-page .difficulty-selection {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 15px;
    margin-top: 10px;
    text-align: center;
}

#home-page .difficulty-selection .section-title {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#home-page .difficulty-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}

#home-page .difficulty-option {
    min-width: 80px;
    max-width: 100px;
    padding: 8px 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#home-page .difficulty-option .difficulty-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

#home-page .difficulty-option .difficulty-name {
    font-size: 11px;
    margin-bottom: 2px;
}

#home-page .difficulty-option .difficulty-desc {
    font-size: 9px;
    opacity: 0.8;
}

#home-page .difficulty-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

#home-page .difficulty-option.selected {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(76, 175, 80, 0.4));
    border-color: #4CAF50;
    box-shadow:
        0 6px 20px rgba(76, 175, 80, 0.5),
        0 0 30px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

#home-page .difficulty-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

#home-page .difficulty-hint {
    color: #FFD700;
    font-size: 10px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#home-page .difficulty-hint.show {
    opacity: 1;
}

.map-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.map-option.selected {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(76, 175, 80, 0.4));
    border-color: #4CAF50;
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.5),
        0 0 40px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
}

#home-page .btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 50%, #ff4757 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(255, 71, 87, 0.4),
        0 0 30px rgba(255, 71, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn {
    padding: 18px 45px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 50%, #ff4757 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px rgba(255, 71, 87, 0.4),
        0 0 40px rgba(255, 71, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(255, 71, 87, 0.6),
        0 0 60px rgba(255, 71, 87, 0.4);
    background-position: 100% 100%;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.settings-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.settings-content label {
    color: white;
    font-size: 18px;
    display: block;
    margin-bottom: 20px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.car-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.car-option {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-option:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.car-option.selected {
    background: rgba(33, 150, 243, 0.6);
    border-color: #2196F3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* 喷漆喷涂区域样式 */
.paint-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-text-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
}

.car-text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.car-text-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.text-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.preview-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.preview-content {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    letter-spacing: 3px;
}

.char-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.shop-section {
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
}

.shop-section h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.upgrade-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.shop-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shop-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.item-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.item-name {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.item-price {
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.item-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.buy-btn {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.4),
        0 0 30px rgba(76, 175, 80, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.6),
        0 0 50px rgba(76, 175, 80, 0.4);
    background-position: 100% 100%;
}

.buy-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.buy-btn:disabled {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.upgrade-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.item-level {
    color: #4CAF50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.upgrade-btn {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 50%, #2196F3 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(33, 150, 243, 0.4),
        0 0 30px rgba(33, 150, 243, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.upgrade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.upgrade-btn:hover::before {
    left: 100%;
}

.upgrade-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(33, 150, 243, 0.6),
        0 0 50px rgba(33, 150, 243, 0.4);
    background-position: 100% 100%;
}

.upgrade-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.upgrade-btn:disabled {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#game-page {
    justify-content: flex-start;
    padding: 0;
}

.game-header {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: auto;
}

.score {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.game-coins {
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
}

.rockets {
    color: #FF6B6B;
    font-size: 20px;
    font-weight: bold;
}

.shield {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.btn-small {
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: scale(1.05);
}

#game-canvas {
    width: 100%;
    height: 100vh;
    background: #333;
    display: block;
}

/* 名字输入页面样式 */
.name-input-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
}

#player-name-input {
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 250px;
    text-align: center;
}

#player-name-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#player-name-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.3);
}

/* 语音提示文字样式 */
.voice-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 5px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    animation: voiceHintPulse 2s ease-in-out infinite;
}

@keyframes voiceHintPulse {
    0%, 100% { 
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
}

/* 排行榜页面样式 */
.leaderboard-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

#leaderboard-table th {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

#leaderboard-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

#leaderboard-table tr:nth-child(1) {
    background: rgba(255, 215, 0, 0.2);
}

#leaderboard-table tr:nth-child(2) {
    background: rgba(192, 192, 192, 0.2);
}

#leaderboard-table tr:nth-child(3) {
    background: rgba(205, 127, 50, 0.2);
}

/* 排行榜提示文字 */
.leaderboard-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==================== 首页进一步优化 ==================== */

/* 标题区域增强 */
.title-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 
        0 0 40px rgba(255, 107, 107, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* 金币显示增强 */
.coins-display {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    animation: coinGlow 2s ease-in-out infinite;
}

@keyframes coinGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.4); }
}

/* 地图选择增强 */
.map-selection {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.map-option {
    position: relative;
    overflow: hidden;
}

.map-option::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: mapShine 3s ease-in-out infinite;
}

@keyframes mapShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* 按钮增强效果 */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: btnShine 2s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 底部装饰增强 */
.footer-decoration {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
}

/* 赛车预览旋转效果 */
.floating-car-preview {
    animation: floatingCar 4s ease-in-out infinite, carRotate 8s linear infinite;
}

@keyframes carRotate {
    0% { transform: translateX(-50%) rotateY(0deg); }
    100% { transform: translateX(-50%) rotateY(360deg); }
}

/* 霓虹文字效果 */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff6b6b,
        0 0 40px #ff6b6b,
        0 0 80px #ff6b6b;
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 速度线增强 */
.speed-lines {
    background: 
        linear-gradient(90deg, transparent 48%, rgba(255, 107, 107, 0.2) 49%, rgba(255, 107, 107, 0.2) 51%, transparent 52%),
        linear-gradient(90deg, transparent 23%, rgba(255, 215, 0, 0.1) 24%, rgba(255, 215, 0, 0.1) 26%, transparent 27%),
        linear-gradient(90deg, transparent 73%, rgba(255, 215, 0, 0.1) 74%, rgba(255, 215, 0, 0.1) 76%, transparent 77%);
}

/* 轮胎轨迹增强 */
.tire-track {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 15px,
        rgba(255, 107, 107, 0.05) 15px,
        rgba(255, 107, 107, 0.05) 30px
    );
}

/* 火焰效果增强 */
.fire-effect {
    filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.8));
    animation: fireFlicker 0.3s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

/* 倒计时灯增强 */
.countdown-lights .light {
    animation: lightPulse 1s ease-in-out infinite;
}

.countdown-lights .light.red {
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.countdown-lights .light.yellow {
    animation-delay: 0.2s;
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.6);
}

.countdown-lights .light.green {
    animation-delay: 0.4s;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

@keyframes lightPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .game-title {
        font-size: 50px;
    }
    
    .title-speed, .title-racer {
        font-size: 40px;
    }
    
    .speedometer-decoration,
    .rpm-gauge {
        width: 80px;
        height: 80px;
    }
    
    .floating-car-preview {
        font-size: 50px;
    }
}

/* ==================== 3D赛车预览 - 优化版 ==================== */

.car-preview-3d {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 120px;
    height: 80px;
    transform-style: preserve-3d;
    animation: carPreviewFloat 4s ease-in-out infinite;
    z-index: 5;
    will-change: transform;
}

@keyframes carPreviewFloat {
    0%, 100% { transform: translateY(0) rotateY(-10deg); }
    50% { transform: translateY(-8px) rotateY(-10deg); }
}

.preview-car-body {
    position: absolute;
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    border-radius: 15px 25px 8px 8px;
    top: 20px;
    left: 10px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    transform: skewX(-8deg);
}

.preview-car-body::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 16px;
    background: #2f3542;
    border-radius: 10px 20px 3px 3px;
    top: -10px;
    left: 25px;
}

.preview-wheel {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #1e272e;
    border-radius: 50%;
    border: 2px solid #57606f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-wheel::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #747d8c;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preview-wheel.fl { top: 35px; left: 15px; }
.preview-wheel.fr { top: 35px; left: 85px; }
.preview-wheel.bl { top: 35px; left: 5px; }
.preview-wheel.br { top: 35px; left: 95px; }

.preview-spoiler {
    position: absolute;
    width: 35px;
    height: 8px;
    background: #ff4757;
    border-radius: 3px;
    top: 12px;
    left: 5px;
}

.preview-spoiler::before,
.preview-spoiler::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 12px;
    background: #2f3542;
    top: 6px;
}

.preview-spoiler::before { left: 6px; }
.preview-spoiler::after { right: 6px; }

.preview-light {
    position: absolute;
    width: 8px;
    height: 5px;
    background: #ffeb3b;
    border-radius: 50%;
    top: 28px;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
}

.preview-light.left { left: 100px; }
.preview-light.right { left: 115px; }

.preview-shadow {
    position: absolute;
    width: 110px;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    bottom: -5px;
    left: 5px;
    border-radius: 50%;
}

/* ==================== 首页增强样式 ==================== */

/* 3D透视道路效果 */
.racing-road-3d {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    perspective: 1000px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.racing-road-surface {
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translateX(-50%) rotateX(60deg);
    background: 
        repeating-linear-gradient(
            0deg,
            #2a2a2a 0px,
            #2a2a2a 40px,
            #3a3a3a 40px,
            #3a3a3a 80px
        );
    animation: roadScroll 0.5s linear infinite;
}

@keyframes roadScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 80px; }
}

/* 道路中心线 */
.road-center-line {
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 20px;
    height: 200%;
    transform: translateX(-50%) rotateX(60deg);
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 30px,
        rgba(255, 215, 0, 0.8) 30px,
        rgba(255, 215, 0, 0.8) 60px
    );
    animation: centerLineScroll 0.5s linear infinite;
}

@keyframes centerLineScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* 速度仪表盘装饰 */
.speedometer-decoration {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #333, #111);
    border: 4px solid #444;
    box-shadow: 
        0 0 30px rgba(255, 100, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: speedometerPulse 2s ease-in-out infinite;
}

.speedometer-decoration::before {
    content: '🏎️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
}

@keyframes speedometerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 100, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(255, 100, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5); }
}

/* 转速表装饰 */
.rpm-gauge {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a);
    border: 3px solid #ff3333;
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.3);
}

.rpm-gauge::before {
    content: 'RPM';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff3333;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.rpm-gauge::after {
    content: '×1000';
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 10px;
}

/* 赛车格子旗背景 */
.checkered-flag-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 40px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.02) 20px,
            rgba(0, 0, 0, 0.02) 40px
        );
    pointer-events: none;
}

/* 光线条纹效果 */
.light-streaks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.light-streak {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    animation: streakMove 3s linear infinite;
}

.light-streak:nth-child(1) { left: 10%; animation-delay: 0s; }
.light-streak:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.light-streak:nth-child(3) { left: 50%; animation-delay: 1s; }
.light-streak:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.light-streak:nth-child(5) { left: 90%; animation-delay: 2s; }

@keyframes streakMove {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* 能量光环效果 */
.energy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #ff6b6b) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.1;
    animation: energyRingRotate 10s linear infinite;
}

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

/* 标题发光效果增强 */
.game-title {
    position: relative;
}

.game-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite;
}

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

/* 按钮光效增强 */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.1) 60deg,
        transparent 120deg
    );
    animation: buttonRotate 4s linear infinite;
}

@keyframes buttonRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 悬浮赛车预览 */
.floating-car-preview {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: floatingCar 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatingCar {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) rotate(-2deg);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: translateX(-50%) translateY(-20px) rotate(2deg);
        filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
    }
}

/* 粒子爆炸效果 */
.particle-burst {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd93d;
    border-radius: 50%;
    animation: particleBurst 2s ease-out infinite;
}

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