/* 
 * 全局样式 (Global styles)
 * ================================================
 */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* 自定义滚动条 (Custom scrollbar) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #1A5536;
}

::-webkit-scrollbar-thumb {
    background-color: #F9FFFC;
    border-radius: 5px;
}

/* 自定义选择文本样式 (Custom text selection) */
::selection {
    background-color: #2D8653;
    color: #F9FFFC;
}

/* 
 * 动画效果 (Animation effects)
 * ================================================
 */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Logo hover effect */
.logo a {
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* 
 * 游戏容器样式 (Game container styles)
 * ================================================
 */
.game-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto 2rem;
}

/* 全屏按钮 (Fullscreen button) */
#fullscreen-btn {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 
 * 截图区域样式 (Screenshot area styles)
 * ================================================
 */
.screenshot {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.screenshot:hover {
    transform: translateY(-5px);
}

.screenshot img {
    transition: transform 0.5s ease;
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* 
 * 功能卡片样式 (Feature card styles)
 * ================================================
 */
.feature, .reason, .review {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover, .reason:hover, .review:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 
 * 时间线样式 (Timeline styles)
 * ================================================
 */
.timeline-item {
    position: relative;
}

@media (min-width: 768px) {
    .timeline-item::before {
        content: '';
        position: absolute;
        left: 25%;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateX(-50%);
    }
    
    .timeline-item:last-child::before {
        height: 50%;
    }
}

/* 
 * 响应式调整 (Responsive adjustments)
 * ================================================
 */
@media (max-width: 640px) {
    .game-container {
        height: 60vh !important;
    }
}

/* 
 * 多语言支持样式 (Language support styles)
 * ================================================
 */
.language-switcher select {
    cursor: pointer;
    outline: none;
    border: 2px solid #F9FFFC;
} 