* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #E0F2F5;
    color: #1A3A44;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 幻海·浮游水母 - 动态深海幻境背景 ===== */
.jellyfish-ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #E0F2F5;
    overflow: hidden;
}

/* 水中光柱 */
.jellyfish-ocean-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.6) 45%, rgba(200,240,255,0.4) 50%, transparent 55%);
    filter: blur(35px);
    animation: lightBeam 20s ease-in-out infinite;
}

@keyframes lightBeam {
    0%, 100% { transform: translateX(-5%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(5%) translateY(-10px); opacity: 1; }
}

/* 柔焦淡蓝光晕 */
.jellyfish-ocean-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(150, 210, 240, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: blueHalo 24s ease-in-out infinite;
}

@keyframes blueHalo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 20px) scale(1.2); }
}

/* 柔焦淡紫光晕（需额外元素） */
.jellyfish-ocean-bg .glow-purple {
    position: absolute;
    top: 30%;
    left: -5%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(180, 170, 220, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(85px);
    animation: purpleHalo 22s ease-in-out infinite;
}

@keyframes purpleHalo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -10px) scale(1.15); }
}

/* 气泡层1（需额外元素） */
.jellyfish-ocean-bg .bubbles1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.8) 4px, transparent 5px),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.7) 6px, transparent 7px),
        radial-gradient(circle at 45% 80%, rgba(255,255,255,0.8) 3px, transparent 4px),
        radial-gradient(circle at 85% 60%, rgba(255,255,255,0.6) 5px, transparent 6px),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.7) 4px, transparent 5px);
    animation: bubblesRise 9s linear infinite;
}

/* 气泡层2（需额外元素） */
.jellyfish-ocean-bg .bubbles2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.5) 5px, transparent 6px),
        radial-gradient(circle at 60% 20%, rgba(255,255,255,0.8) 3px, transparent 4px),
        radial-gradient(circle at 80% 85%, rgba(255,255,255,0.6) 6px, transparent 7px),
        radial-gradient(circle at 15% 40%, rgba(255,255,255,0.7) 4px, transparent 5px);
    animation: bubblesRise 11s linear infinite reverse;
}

@keyframes bubblesRise {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* 浮游水母剪影（需额外元素） */
.jellyfish-ocean-bg .mini-jelly {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        50px 150px 0 rgba(200, 230, 255, 0.6),
        200px 100px 0 rgba(180, 220, 245, 0.5),
        300px 250px 0 rgba(200, 230, 255, 0.7),
        120px 300px 0 rgba(210, 235, 255, 0.5);
    animation: jellyDrift 14s ease-in-out infinite;
}
.jellyfish-ocean-bg .mini-jelly::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow:
        80px 200px 0 rgba(255,255,255,0.4),
        250px 60px 0 rgba(255,255,255,0.5),
        330px 320px 0 rgba(255,255,255,0.6),
        30px 360px 0 rgba(255,255,255,0.4);
    animation: jellyDrift 16s ease-in-out infinite reverse;
}

@keyframes jellyDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -10px); }
}

.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.4);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(100,160,190,0.18), 0 0 20px rgba(150,210,240,0.12);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: jellyfishCardFloat 8s ease-in-out infinite;
}

@keyframes jellyfishCardFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.92;
        box-shadow: 0 8px 25px rgba(100,160,190,0.18), 0 0 20px rgba(150,210,240,0.12);
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
        box-shadow: 0 10px 30px rgba(100,160,190,0.24), 0 0 25px rgba(150,210,240,0.18);
    }
}

/* 触摸反馈 - 磨砂变清晰 + 淡蓝色波纹扩散 */
.game-card:active,
.related-game:active {
    transform: scale(0.98);
    animation: none !important;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.65);
    box-shadow:
        0 4px 20px rgba(100,160,190,0.28),
        0 0 0 3px solid rgba(130,200,230,0.4);
}

/* 触摸时边缘出现淡蓝色波纹扩散 */
.game-card:active::before,
.related-game:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(150,210,240,0.7) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        45px -45px 0 3px rgba(130, 200, 230, 0.9),
        -42px -48px 0 2.5px rgba(150, 210, 240, 0.88),
        52px -55px 0 2px rgba(180, 170, 220, 0.86),
        -48px -58px 0 2px rgba(160, 220, 245, 0.89),
        32px 42px 0 2px rgba(200, 230, 255, 0.85),
        -45px 46px 0 2.5px rgba(130, 200, 230, 0.87),
        58px 12px 0 2px rgba(180, 170, 220, 0.84),
        -52px -15px 0 2.5px rgba(150, 210, 240, 0.86);
    animation: blueRippleSpread 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes blueRippleSpread {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(5); 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(200, 240, 255, 0.6),
        rgba(255, 255, 255, 0.5),
        rgba(200, 240, 255, 0.6),
        transparent
    );
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    animation: lightBeamSweep 0.5s ease-out forwards;
}

@keyframes lightBeamSweep {
    0% { left: -100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.game-card:hover,
.related-game:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(100,160,190,0.26), 0 0 30px rgba(150,210,240,0.2);
}

.game-card:hover img,
.related-game:hover img {
    transform: scale(1.06);
}

/* 标题文字 - 深海蓝 + 小水母触须状细线装饰 */
.desert-card-title {
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: #1A3A44;
    letter-spacing: 0.3px;
}

.desert-card-title::before {
    content: '~';
    margin-right: 5px;
    font-size: 1em;
    color: #82C8E6;
    font-weight: 300;
}

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(130, 200, 230, 0.25), rgba(180, 170, 220, 0.2));
    border: 2px solid rgba(130, 200, 230, 0.5);
    color: #1A3A44;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 3px 3px 10px rgba(100, 160, 190, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 15px rgba(100, 160, 190, 0.32),
        0 0 15px rgba(150, 210, 240, 0.35);
    border-color: #82C8E6;
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

a {
    transition: all 0.4s ease;
    color: #2A4048;
}

a:hover {
    color: #1A3A44;
}

::selection {
    background: rgba(130, 200, 230, 0.4);
    color: #fff;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #E0F2F5;
    border-left: 2px solid rgba(130, 200, 230, 0.15);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(130, 200, 230, 0.7), rgba(180, 170, 220, 0.7));
    border-radius: 7px;
    border: 2px solid rgba(130, 200, 230, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(130, 200, 230, 0.9), rgba(180, 170, 220, 0.9));
}