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

/* Tailwind 自定义样式 */
:root {
    --apple-blue: #007AFF;
    --apple-blue-dark: #0056b3;
    --apple-red: #FF3B30;
    --apple-green: #34C759;
    --apple-purple: #AF52DE;
    --apple-yellow: #FFCC00;
    --apple-orange: #FF9500;
    --apple-dark: #1C1C1E;
    --apple-gray: #8E8E93;
    --apple-lightgray: #F2F2F7;
}

/* 头部渐变 */
.hero-gradient {
    background: linear-gradient(135deg, #fc466b, #3f5efb);
    animation: gradientFlow 10s ease infinite;
    background-size: 200% 200%;
}

/* 分页导航样式 */
.pagination-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
}

.page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 游戏卡片样式 */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 语言切换按钮样式 */
.lang-btn {
    color: #666;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    color: var(--apple-blue);
    font-weight: bold;
    background-color: rgba(0, 122, 255, 0.1);
}

.lang-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 修复header语言下拉菜单 */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}