* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F7F7FA;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 光谱·错层虹栅 - RGB细纹光栅背景 ===== */
.raster-spectrum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #F7F7FA;
    overflow: hidden;
}

/* RGB细纹光栅 */
.raster-spectrum-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 0, 0.08) 0px,
        rgba(255, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 3px,
        rgba(0, 255, 0, 0.08) 3px,
        rgba(0, 255, 0, 0.08) 4px,
        transparent 4px,
        transparent 6px,
        rgba(0, 0, 255, 0.08) 6px,
        rgba(0, 0, 255, 0.08) 7px,
        transparent 7px,
        transparent 9px
    );
    animation: rasterScroll 15s linear infinite;
}

/* 柔焦红斑 */
.raster-spectrum-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 100, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(75px);
    animation: redDrift 20s ease-in-out infinite;
}

/* 绿斑 */
.raster-spectrum-bg .glow-green {
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 220, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: greenDrift 24s ease-in-out infinite;
}

/* 蓝斑 */
.raster-spectrum-bg .glow-blue {
    position: absolute;
    top: 45%;
    left: 30%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(80, 160, 240, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: blueDrift 18s ease-in-out infinite;
}

@keyframes rasterScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes redDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -15px) scale(1.2); }
}

@keyframes greenDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.15); }
}

@keyframes blueDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -25px) scale(1.25); }
}

.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;
    }
}

/* ===== 光谱·错层虹栅 - RGB色散卡片 ===== */
.game-card,
.related-game {
    background: rgba(247,247,250,0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 2px 2px 0 rgba(255,0,0,0.18), -2px -2px 0 rgba(0,0,255,0.18);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: shadowShift 8s ease-in-out infinite;
}

.game-card:hover,
.related-game:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 4px 4px 0 rgba(255,0,0,0.28), -4px -4px 0 rgba(0,0,255,0.28), 0 12px 32px rgba(0,0,0,0.12);
    border-color: rgba(180, 180, 180, 0.8);
}

.game-card:hover img,
.related-game:hover img {
    transform: scale(1.08);
}

/* 触摸反馈 - 三色投影重合 */
.game-card:active,
.related-game:active {
    box-shadow: 0 2px 8px rgba(128,128,128,0.35), inset 0 0 20px rgba(255,255,255,0.9);
    transition: all 0.2s ease-out;
}

/* 标题光栅错印效果 */
.raster-title {
    position: relative;
    display: inline-block;
}

.raster-title::before,
.raster-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    font-size: inherit;
    font-weight: inherit;
    pointer-events: none;
    opacity: 0.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.raster-title::before {
    color: #00CED1;
    transform: translate(-1px, 0);
    z-index: -1;
}

.raster-title::after {
    color: #FF1493;
    transform: translate(1px, 0);
    z-index: -2;
}

/* 投影微变动画 */
@keyframes shadowShift {
    0%, 100% {
        box-shadow: 2px 2px 0 rgba(255,0,0,0.18), -2px -2px 0 rgba(0,0,255,0.18);
    }
    33% {
        box-shadow: 3px 2px 0 rgba(255,0,0,0.22), -3px -2px 0 rgba(0,0,255,0.22);
    }
    66% {
        box-shadow: 2px 3px 0 rgba(255,0,0,0.16), -2px -3px 0 rgba(0,0,255,0.16);
    }
}

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.3s ease;
    background: linear-gradient(135deg, rgba(255,0,0,0.06), rgba(0,255,0,0.06), rgba(0,0,255,0.06));
    border: 2px solid transparent;
    color: #333;
    position: relative;
}

button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, rgba(255,0,0,0.5), rgba(0,255,0,0.5), rgba(0,0,255,0.5));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 0 rgba(255,0,0,0.2), -3px -3px 0 rgba(0,0,255,0.2);
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: linear-gradient(90deg, rgba(255,0,0,0.2), rgba(0,255,0,0.2), rgba(0,0,255,0.2));
    color: #333;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(247,247,250,0.95);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,0,0,0.4), rgba(0,255,0,0.4), rgba(0,0,255,0.4));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255,0,0,0.6), rgba(0,255,0,0.6), rgba(0,0,255,0.6));
}