* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #EEEAF5;
    color: #2C2A33;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 律动·频谱霓虹 - 动态频谱舞台背景 ===== */
.spectrum-beat-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #EEEAF5;
    overflow: hidden;
}

/* 扫描光带 */
.spectrum-beat-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: skewX(-5deg);
    animation: scanBeam 6s linear infinite;
    z-index: 2;
}

@keyframes scanBeam {
    0% { left: -20%; }
    100% { left: 120%; }
}

/* 频谱柱容器（底部） */
.spectrum-beat-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        linear-gradient(0deg, rgba(255,100,150,0.4) 20%, transparent 20%),
        linear-gradient(0deg, rgba(0,220,220,0.4) 35%, transparent 35%),
        linear-gradient(0deg, rgba(255,230,50,0.4) 50%, transparent 50%),
        linear-gradient(0deg, rgba(180,130,255,0.4) 15%, transparent 15%);
    background-size: 60px 100%, 50px 100%, 70px 100%, 55px 100%;
    background-position: 10% 100%, 35% 100%, 60% 100%, 85% 100%;
    background-repeat: no-repeat;
    filter: blur(8px);
    animation: spectrumBounce 1.2s ease-in-out infinite alternate;
}

@keyframes spectrumBounce {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.2); }
}

/* 跳动光点层 */
.spectrum-beat-bg .beat-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        30px 60px 0 rgba(255, 100, 150, 0.8),
        120px 180px 0 rgba(0, 220, 220, 0.7),
        250px 100px 0 rgba(255, 230, 50, 0.9),
        340px 250px 0 rgba(180, 130, 255, 0.7),
        80px 280px 0 rgba(255, 80, 150, 0.8),
        200px 300px 0 rgba(0, 220, 220, 0.8);
    animation: dotJump 0.8s ease-in-out infinite;
}

/* 第二组光点 */
.spectrum-beat-bg .beat-dots2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        15px 130px 0 rgba(255, 230, 50, 0.7),
        160px 30px 0 rgba(180, 130, 255, 0.8),
        280px 200px 0 rgba(255, 100, 150, 0.9),
        330px 80px 0 rgba(0, 220, 220, 0.7),
        45px 330px 0 rgba(255, 80, 150, 0.8);
    animation: dotJump 1.1s ease-in-out infinite reverse;
}

@keyframes dotJump {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-12px); opacity: 1; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ===== 律动·频谱霓虹 - 声波卡片样式 ===== */
.game-card,
.related-game {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(5px);
    border-radius: 16px 16px 8px 8px;
    box-shadow:
        3px 4px 12px rgba(44,42,51,0.08),
        0 0 0 1px rgba(255,255,255,0.5),
        4px 0 15px var(--glow-a, rgba(255,80,150,0.15)),
        -4px 0 15px var(--glow-b, rgba(0,230,230,0.12));
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: cardBounce 6s ease-in-out infinite;
}

@keyframes cardBounce {
    0%, 85%, 100% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(-3px);
    }
    /* 每6秒弹跳一下并散发波纹 */
    92% {
        transform: translateY(0);
        box-shadow:
            3px 4px 12px rgba(44,42,51,0.08),
            0 0 0 1px rgba(255,255,255,0.5),
            4px 0 15px var(--glow-a, rgba(255,80,150,0.15)),
            -4px 0 15px var(--glow-b, rgba(0,230,230,0.12)),
            0 0 25px var(--glow-a, rgba(255,80,150,0.2));
    }
}

/* 触摸反馈 - 声波圈扩散 + 频谱光扫过 + 振动 */
.game-card:active,
.related-game:active {
    transform: scale(0.97);
    animation: none !important;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.9);
    box-shadow:
        5px 8px 20px rgba(44,42,51,0.15),
        0 0 0 2px solid rgba(180,130,255,0.3),
        0 0 30px var(--glow-a, rgba(255,80,150,0.25));
}

/* 触摸时边缘声波圈扩散 */
.game-card:active::before,
.related-game:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border-radius: 16px;
    border: 2px solid var(--glow-a, rgba(255,80,150,0.4));
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
    animation: waveRingSpread 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes waveRingSpread {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* 触摸时内部扫过彩色频谱光 */
.game-card:active::after,
.related-game:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 130, 255, 0.35),
        rgba(0, 230, 230, 0.3),
        rgba(255, 240, 50, 0.25),
        rgba(255, 80, 150, 0.3),
        transparent
    );
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    animation: spectrumSweep 0.45s ease-out forwards;
}

@keyframes spectrumSweep {
    0% { left: -100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* 触摸时卡片微微振动 */
.game-card:active,
.related-game:active {
    animation: cardVibrate 0.3s ease !important;
}

@keyframes cardVibrate {
    0%, 100% { transform: scale(0.97) translateX(0); }
    20% { transform: scale(0.97) translateX(-1px); }
    40% { transform: scale(0.97) translateX(1px); }
    60% { transform: scale(0.97) translateX(-1px); }
    80% { transform: scale(0.97) translateX(1px); }
}

.game-card:hover,
.related-game:hover {
    transform: translateY(-5px);
    box-shadow:
        5px 8px 22px rgba(44,42,51,0.14),
        0 0 0 1px rgba(255,255,255,0.7),
        6px 0 20px var(--glow-a, rgba(255,80,150,0.22)),
        -6px 0 20px var(--glow-b, rgba(0,230,230,0.18));
}

.game-card:hover img,
.related-game:hover img {
    transform: scale(1.05);
}

/* 标题文字 - 深灰 + 彩色频谱竖线前缀 */
.neon-card-title {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: #2C2A33;
    letter-spacing: 0.3px;
}

.neon-card-title::before {
    content: '';
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background: linear-gradient(180deg,
        #FF6496 0%,
        #FF6496 33%,
        #00E6E6 33%,
        #00E6E6 66%,
        #FFF032 66%,
        #FFF032 100%
    );
}

hr, .divider {
    display: none;
}

hr.dashed, .divider-dashed {
    display: none;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

button {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(180, 130, 255, 0.25), rgba(0, 230, 230, 0.18));
    border: 2px solid rgba(180, 130, 255, 0.35);
    color: #2C2A33;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 2px 3px 8px rgba(44,42,51,0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        3px 5px 12px rgba(44,42,51,0.18),
        0 0 0 1px rgba(180,130,255,0.4);
    border-color: #B482FF;
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

a {
    transition: all 0.4s ease;
    color: #3A3545;
}

a:hover {
    color: #B482FF;
}

::selection {
    background: rgba(180, 130, 255, 0.35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #EEEAF5;
    border-left: 2px solid rgba(180,130,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(200, 190, 225, 0.7), rgba(180, 170, 215, 0.7));
    border-radius: 7px;
    border: 2px solid rgba(180,130,255,0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(210, 200, 235, 0.9), rgba(190, 180, 225, 0.9));
}