:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --accent-color: #00ffff;
    --hover-color: #9146ff;
}

/* 新增的性能优化和可访问性样式 */
.lazy-image {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 焦点状态样式 */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #1a1a1a;
        --text-color: #ffffff;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 社交分享按钮样式 */
.share-button {
    transition: transform 0.2s ease;
}

.share-button:hover {
    transform: scale(1.1);
}

.tooltip {
    visibility: hidden;
    position: absolute;
    background: var(--secondary-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.share-button:hover .tooltip {
    visibility: visible;
}

body {
    background-color: var(--primary-bg);
    color: white;
    font-family: 'Arial', sans-serif;
}

.game-title {
    font-family: 'Press Start 2P', cursive;
}

.carousel-container {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.game-card {
    background: var(--secondary-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.neon-button {
    background: var(--accent-color);
    color: var(--primary-bg);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.neon-button:hover {
    background: var(--hover-color);
    box-shadow: 0 0 15px var(--hover-color);
}

.countdown {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-color);
}