/* 水彩排序游戏 - 自定义样式 */

/* 游戏容器样式 */
.game-container {
    min-height: 400px;
    max-height: 600px;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 推荐游戏卡片样式 */
.game-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-card:active {
    transform: scale(0.95);
}

/* 游戏卡片图片容器 */
.game-card .h-48 {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.game-card .h-48::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .h-48::before {
    opacity: 1;
}

/* 标签样式 */
.game-card .absolute {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 评分星星动画 */
.game-card .text-yellow-500 {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 特性卡片样式 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 步骤指示器 */
.step-indicator {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-indicator:hover {
    transform: scale(1.1);
}

/* FAQ项目 */
.faq-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        height: 70vh;
        min-height: 350px;
    }
    
    .game-card {
        margin-bottom: 1rem;
    }
    
    .game-card .h-48 {
        height: 8rem;
    }
}

@media (max-width: 640px) {
    .game-container {
        height: 60vh;
        min-height: 300px;
    }
    
    .game-card .h-48 {
        height: 6rem;
    }
    
    .game-card .text-xl {
        font-size: 1.1rem;
    }
    
    .game-card .text-sm {
        font-size: 0.8rem;
    }
}

/* 设备特定样式 */
.device-mobile .game-container {
    height: 50vh;
    min-height: 280px;
}

.device-tablet .game-container {
    height: 70vh;
    min-height: 400px;
}

.device-desktop .game-container {
    height: 80vh;
    min-height: 500px;
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 语言切换器样式 */
.language-switcher select {
    transition: all 0.2s ease;
}

.language-switcher select:hover {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
.game-card:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 打印样式 */
@media print {
    .game-container,
    .game-card,
    header,
    footer {
        display: none !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .game-card {
        border: 2px solid #000;
    }
    
    .game-card:hover {
        border-color: #007AFF;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .game-card,
    .feature-card,
    .step-indicator,
    .faq-item {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .text-yellow-500 {
        animation: none;
    }
}

/* 暗色模式支持（未来扩展） */
@media (prefers-color-scheme: dark) {
    /* 暗色模式样式可以在这里定义 */
}

/* 语言切换器样式优化 */
.language-selector {
    transition: all 0.2s ease;
}

.language-selector:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 渐变背景动画 */
.gradient-bg {
    background: linear-gradient(-45deg, #007AFF, #34C759, #AF52DE, #FF9500);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 按钮样式 */
.btn-apple {
    background: linear-gradient(135deg, #007AFF, #0056D3);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-apple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* 无障碍访问优化 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus状态优化 */
*:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
} 