* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FBFAF5;
    color: #2C3A4A;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 瓷韵·釉彩流光 - 动态釉池背景 ===== */
.porcelain-glaze-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #FBFAF5;
    overflow: hidden;
}

/* 釉彩光斑 - 靛蓝 */
.porcelain-glaze-bg::before {
    content: '';
    position: absolute;
    top: -5%;
    left: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(70, 130, 180, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: glazeBlue 22s ease-in-out infinite;
}

/* 釉彩光斑 - 矾红 */
.porcelain-glaze-bg::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: 5%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(200, 80, 60, 0.38) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(95px);
    animation: glazeRed 26s ease-in-out infinite;
}

/* 釉彩光斑 - 天青（需额外元素） */
.porcelain-glaze-bg .glaze-cyan {
    position: absolute;
    top: 35%;
    left: -8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(130, 190, 210, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(85px);
    animation: glazeCyan 18s ease-in-out infinite;
}

/* 釉彩光斑 - 淡粉（需额外元素） */
.porcelain-glaze-bg .glaze-pink {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(240, 180, 180, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: glazePink 24s ease-in-out infinite;
}

/* 金缮细丝粒子 */
.porcelain-glaze-bg .gold-filament {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        linear-gradient(45deg, rgba(232, 197, 122, 0.4) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(232, 197, 122, 0.3) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 40px 20px;
    animation: filamentShimmer 10s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes glazeBlue {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 20px) scale(1.2); }
}

@keyframes glazeRed {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -15px) scale(1.15); }
    66% { transform: translate(15px, 25px) scale(0.9); }
}

@keyframes glazeCyan {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.2); }
}

@keyframes glazePink {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 10px) scale(1.1); }
}

@keyframes filamentShimmer {
    0%, 100% { opacity: 0.3; background-position: 0 0, 40px 20px; }
    50% { opacity: 0.6; background-position: 30px 15px, 10px 5px; }
}

.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: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(251,250,245,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232,197,122,0.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(180,190,210,0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: cardFloat 7s ease-in-out infinite;
}

/* 卡片每7秒轻微浮动并改变阴影角度 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 24px rgba(180,190,210,0.25);
    }
    33% {
        transform: translateY(-3px);
        box-shadow: 0 6px 28px rgba(180,190,210,0.3);
    }
    66% {
        transform: translateY(-1px);
        box-shadow: 0 5px 26px rgba(190,185,205,0.27);
    }
}

.game-card:hover,
.related-game:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(180,190,210,0.35);
    border-color: rgba(232,197,122,0.9);
}

.game-card:hover img,
.related-game:hover img {
    transform: scale(1.08);
}

/* 触摸反馈 - 金线边缘亮起 + 釉面反光扫过 */
.game-card:active,
.related-game:active {
    border-color: #E8C57A;
    box-shadow: 0 0 0 2px #E8C57A, 0 12px 36px rgba(232,197,122,0.4), inset 0 0 30px rgba(255,255,255,0.9);
}

.game-card:active::before,
.related-game:active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    z-index: 10;
    animation: glazeSweep 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes glazeSweep {
    0% { left: -100%; }
    100% { left: 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.3s ease;
    background: linear-gradient(135deg, rgba(130,190,210,0.35) 0%, rgba(240,180,180,0.3) 100%);
    border: 1px solid rgba(232,197,122,0.6);
    color: #2C3A4A;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(130,190,210,0.4);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: rgba(70, 130, 180, 0.3);
    color: #2C3A4A;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(251,250,245,0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(70,130,180,0.6), rgba(200,80,60,0.6));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(200,80,60,0.6), rgba(240,180,180,0.6));
}