/* 
 * 全局样式重置 
 * 移除默认样式，确保跨浏览器一致性
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
 * 基础样式设置
 * 使用Apple风格的字体和颜色
 */
:root {
    /* Apple风格配色 */
    --apple-blue: #007AFF;
    --apple-light-blue: #64A9EF;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-white: #FFFFFF;
    --apple-black: #000000;
    --apple-red: #FF3B30;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--apple-black);
    background-color: var(--apple-white);
}

/* 
 * 容器样式
 * 限制内容宽度并居中显示
 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 
 * 导航栏样式
 * 实现顶部固定导航栏
 */
header {
    background-color: var(--apple-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--apple-black);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--apple-gray);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--apple-blue);
}

/* 
 * 英雄区域样式
 * 突出显示游戏标题和简介
 */
.hero {
    background: linear-gradient(to right, #007AFF, #64A9EF);
    color: var(--apple-white);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 24px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--apple-white);
    color: var(--apple-blue);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 
 * 游戏区域样式
 * 设置iframe容器及响应式布局
 */
.game-section {
    padding: 60px 0;
}

.game-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--apple-black);
}

.game-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 
 * 关于游戏部分样式
 */
.about-section {
    padding: 60px 0;
    background-color: var(--apple-light-gray);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--apple-black);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* 
 * 游戏特性样式
 * 使用Grid布局展示特性卡片
 */
.features-section {
    padding: 60px 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--apple-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--apple-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--apple-blue);
}

.feature-card p {
    color: var(--apple-gray);
}

/* 
 * 游戏攻略样式
 */
.tips-section {
    padding: 60px 0;
    background-color: var(--apple-light-gray);
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--apple-black);
}

.tips-content {
    max-width: 800px;
    margin: 0 auto;
}

.tips-list {
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 15px;
    font-size: 18px;
}

/* 
 * 页脚样式
 */
footer {
    background-color: var(--apple-black);
    color: var(--apple-white);
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: var(--apple-light-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin-bottom: 10px;
}

/* 
 * 响应式设计
 * 为不同屏幕尺寸优化布局
 */
@media screen and (max-width: 768px) {
    /* 导航栏响应式调整 */
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    /* 英雄区域响应式调整 */
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .tagline {
        font-size: 20px;
    }
    
    /* 游戏容器响应式调整 */
    .game-container {
        aspect-ratio: 4 / 3;  /* 移动端更合适的比例 */
    }
    
    /* 特性网格响应式调整 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    /* 超小屏幕额外调整 */
    .hero h1 {
        font-size: 30px;
    }
    
    .hero .tagline {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 12px 24px;
    }
    
    .about-text p,
    .tips-list li {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 30px;
    }
} 