* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #5C3A21;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== 扇舞·折光叠影 - 动态扇骨光栅背景 ===== */
.fan-dance-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #F9F5F0;
    overflow: hidden;
}

/* 旋转放射光栅（扇骨光影） */
.fan-dance-bg::before {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 50%;
    width: 300vw;
    height: 300vw;
    transform: translate(-50%, 0);
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        rgba(210, 170, 120, 0.12) 0deg 7.5deg,
        transparent 7.5deg 15deg
    );
    animation: fanRotate 40s linear infinite;
    border-radius: 50%;
}

@keyframes fanRotate {
    from { transform: translate(-50%, 0) rotate(0deg); }
    to { transform: translate(-50%, 0) rotate(360deg); }
}

/* 柔焦光晕 - 暖金 */
.fan-dance-bg::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 160, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(65px);
    animation: goldGlow 22s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 20px) scale(1.3); }
}

/* 额外光晕 - 浅杏色 */
.fan-dance-bg .blob-apricot {
    position: absolute;
    bottom: -5%;
    left: 5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 220, 180, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: apricotGlow 26s ease-in-out infinite;
}

@keyframes apricotGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -15px) scale(1.2); }
    66% { transform: translate(-20px, -25px) scale(0.8); }
}

/* 金箔粒子层 */
.fan-dance-bg .gold-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fan-dance-bg .gold-particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(200, 160, 80, 0.9);
    border-radius: 50%;
    box-shadow:
        60px 80px 0 rgba(210, 170, 90, 0.7),
        160px 45px 0 rgba(190, 145, 70, 0.8),
        250px 120px 0 rgba(220, 180, 100, 0.6),
        320px 30px 0 rgba(200, 160, 80, 0.7),
        40px 200px 0 rgba(230, 190, 110, 0.8),
        110px 250px 0 rgba(195, 155, 75, 0.6),
        280px 210px 0 rgba(215, 175, 95, 0.7),
        340px 160px 0 rgba(200, 165, 85, 0.8),
        180px 300px 0 rgba(225, 185, 105, 0.6),
        300px 280px 0 rgba(205, 160, 80, 0.7),
        15px 320px 0 rgba(190, 150, 70, 0.6),
        120px 360px 0 rgba(210, 170, 90, 0.7);
    animation: particleFloat 5s ease-in-out infinite;
}

.fan-dance-bg .gold-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(240, 200, 120, 0.8);
    border-radius: 50%;
    box-shadow:
        75px 150px 0 rgba(215, 175, 95, 0.6),
        200px 90px 0 rgba(195, 155, 75, 0.7),
        310px 220px 0 rgba(225, 185, 105, 0.5),
        140px 280px 0 rgba(200, 165, 85, 0.7),
        350px 60px 0 rgba(210, 170, 90, 0.6);
    animation: particleFloat 6.5s ease-in-out infinite reverse;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-12px); opacity: 1; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ===== 扇舞·折光叠影 - 象牙白卡片动画（8秒周期横向偏移）===== */
@keyframes cardFanBreeze {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

.game-card {
    background: #FFFCF7;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200,160,90,0.15);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFanBreeze 8s ease-in-out var(--float-delay, 0s) infinite;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(180,140,90,0.15);
}

.game-card[data-float-dur] {
    --float-delay: calc(attr(data-float-delay) * 1s);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
        0 16px 40px rgba(180,140,90,0.15),
        0 0 24px rgba(200,160,90,0.12),
        inset 0 0 10px rgba(255,240,210,0.08);
    animation-play-state: paused !important;
    backdrop-filter: blur(12px);
}

.game-card:hover img {
    transform: scale(1.03);
}

/* ===== 扇形流光动画 (8秒周期) ===== */
.card-sweep-light {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 215, 0, 0.12) 45%,
        rgba(255, 215, 0, 0.22) 50%,
        rgba(255, 215, 0, 0.12) 55%,
        transparent 80%
    );
    z-index: 8;
    pointer-events: none;
    animation: cardSweepGleam 8s ease-in-out infinite;
}

@keyframes cardSweepGleam {
    0%, 65% { left: -100%; opacity: 0; }
    72% { opacity: 1; }
    85% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

/* ===== 触摸反馈 - 放射淡金射线 ===== */
.game-card:active {
    transform: scale(0.98) translateY(2px) !important;
    box-shadow:
        inset 4px 4px 18px rgba(0, 0, 0, 0.04),
        0 4px 24px rgba(180,140,90,0.15),
        0 0 36px rgba(200,160,90,0.12);
}

.card-star-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: 20px;
}
.game-card:active .card-star-ring::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 3px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(200,160,90,0.8), transparent);
    transform: translateX(-50%);
    box-shadow:
        -18px 0 0 0 rgba(200,160,90,0.6),
        18px 0 0 0 rgba(200,160,90,0.6);
    animation: goldenRaysFade 0.5s ease-out forwards;
    pointer-events: none;
}
@keyframes goldenRaysFade {
    0% { opacity: 1; height: 35px; }
    100% { opacity: 0; height: 60px; }
}

/* ===== 标题样式 - 深檀木色+金色竖线装饰 ===== */
.game-card h3 {
    padding-left: 14px;
    position: relative;
    font-weight: 600;
}

.game-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #C8A060, #D4AA70);
    border-radius: 2px;
}

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;
    }
}

.related-game {
    transition: all 0.35s ease;
    border-radius: 20px;
    background: #FFFCF7;
    box-shadow: 0 8px 30px rgba(180,140,90,0.15);
}

.related-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(180,140,90,0.15), 0 0 24px rgba(200,160,90,0.18);
}

button {
    transition: all 0.3s ease;
    background: rgba(230,195,145,0.3);
    border: 1px solid rgba(200,160,90,0.6);
    color: #5C3A21;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(200,160,90,0.32);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: rgba(200, 160, 90, 0.3);
    color: #5C3A21;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F9F5F0;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 160, 90, 0.38);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 160, 90, 0.58);
}