/* 苹果风格配色系统 */
:root {
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-indigo: #5856D6;
    --apple-orange: #FF9500;
    --apple-pink: #FF2D55;
    --apple-purple: #AF52DE;
    --apple-red: #FF3B30;
    --apple-teal: #5AC8FA;
    --apple-yellow: #FFCC00;
    --apple-gray: #8E8E93;
    --apple-gray2: #AEAEB2;
    --apple-gray3: #C7C7CC;
    --apple-gray4: #D1D1D6;
    --apple-gray5: #E5E5EA;
    --apple-gray6: #F2F2F7;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--apple-gray6);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* 链接样式 */
a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--apple-indigo);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header-gradient {
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header-gradient h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 卡片样式 */
.game-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-card h2 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.5rem;
}

.game-card-content {
    padding: 20px;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 开始游戏按钮覆盖层 */
.play-now-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.play-now-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--apple-green), var(--apple-blue));
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    min-width: 200px;
}

.play-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

.play-now-btn:active {
    transform: scale(0.98);
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* iframe 容器 */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer p {
    margin: 0 0 10px 0;
}

/* 语言切换器 */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-switch select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-gradient h1 {
        font-size: 1.8rem;
    }
    
    .carousel-slide {
        height: 250px;
    }
    
    .game-card h2 {
        font-size: 1.3rem;
    }
    
    .play-now-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .header-gradient {
        padding: 40px 15px;
    }
    
    .header-gradient h1 {
        font-size: 1.5rem;
    }
    
    .carousel-slide {
        height: 200px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .game-card-content {
        padding: 15px;
    }
    
    .language-switch {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }
    
    .play-now-btn {
        padding: 10px 20px;
        font-size: 1rem;
        min-width: 150px;
    }
} 