/* 苹果风格配色 */
: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-gray1: #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;
    /* 设置行高为1.6倍，提高可读性 */
    line-height: 1.6;
    /* 移除默认边距 */
    margin: 0;
    /* 设置平滑滚动效果 */
    scroll-behavior: smooth;
}

/* 容器样式 */
.container {
    /* 设置最大宽度，确保在大屏幕上不会过宽 */
    max-width: 1200px;
    /* 水平居中 */
    margin: 0 auto;
    /* 左右添加内边距，防止内容贴边 */
    padding: 0 20px;
}

/* 头部样式 */
.header {
    /* 创建从蓝色到靛蓝色的渐变背景 */
    background: linear-gradient(to right, var(--apple-blue), var(--apple-indigo));
    /* 文本颜色设为白色，与深色背景形成对比 */
    color: white;
    /* 上下添加内边距 */
    padding: 2rem 0;
    /* 文本居中 */
    text-align: center;
    /* 底部圆角 */
    border-radius: 0 0 15px 15px;
    /* 添加阴影效果 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 游戏标题样式 */
.game-title {
    /* 设置大字体大小 */
    font-size: 2.5rem;
    /* 设置粗体 */
    font-weight: 700;
    /* 添加底部边距 */
    margin-bottom: 0.5rem;
}

/* 游戏副标题样式 */
.game-subtitle {
    /* 设置字体大小 */
    font-size: 1.25rem;
    /* 稍微降低不透明度，增加层次感 */
    opacity: 0.9;
    /* 限制宽度，提高可读性 */
    max-width: 800px;
    /* 水平居中 */
    margin: 0 auto;
}

/* 游戏容器样式 */
.game-container {
    /* 白色背景 */
    background-color: white;
    /* 圆角边框 */
    border-radius: 15px;
    /* 隐藏溢出内容 */
    overflow: hidden;
    /* 添加阴影 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 上下添加边距 */
    margin: 2rem 0;
}

/* 游戏iframe样式 */
.game-iframe {
    /* 设置宽度占满容器 */
    width: 100%;
    /* 设置高度 */
    height: 600px;
    /* 移除边框 */
    border: none;
}

/* 内容区块样式 */
.content-section {
    /* 添加内边距 */
    padding: 2rem;
    /* 白色背景 */
    background-color: white;
    /* 圆角边框 */
    border-radius: 15px;
    /* 底部添加外边距 */
    margin-bottom: 2rem;
    /* 添加阴影 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 二级标题样式 */
h2 {
    /* 使用苹果蓝色 */
    color: var(--apple-blue);
    /* 设置字体大小 */
    font-size: 1.75rem;
    /* 设置字体粗细 */
    font-weight: 600;
    /* 底部添加外边距 */
    margin-bottom: 1rem;
    /* 添加底部边框 */
    border-bottom: 2px solid var(--apple-gray5);
    /* 底部添加内边距 */
    padding-bottom: 0.5rem;
}

/* 特性卡片样式 */
.feature-card {
    /* 设置背景色 */
    background-color: var(--apple-gray6);
    /* 圆角边框 */
    border-radius: 10px;
    /* 添加内边距 */
    padding: 1.5rem;
    /* 设置高度为100%，确保在同一行的卡片高度一致 */
    height: 100%;
    /* 添加过渡效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 特性卡片悬停效果 */
.feature-card:hover {
    /* 向上移动效果 */
    transform: translateY(-5px);
    /* 增强阴影效果 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 特性图标样式 */
.feature-icon {
    /* 设置字体大小 */
    font-size: 2rem;
    /* 底部添加外边距 */
    margin-bottom: 1rem;
    /* 设置颜色为苹果蓝 */
    color: var(--apple-blue);
}

/* 页脚样式 */
footer {
    /* 深色背景 */
    background-color: #333;
    /* 白色文本 */
    color: white;
    /* 添加内边距 */
    padding: 2rem 0;
    /* 文本居中 */
    text-align: center;
    /* 顶部圆角 */
    border-radius: 15px 15px 0 0;
}

/* 播放按钮样式 */
.btn-play {
    /* 蓝色背景 */
    background-color: var(--apple-blue);
    /* 白色文本 */
    color: white;
    /* 添加内边距 */
    padding: 0.75rem 2rem;
    /* 圆形边框 */
    border-radius: 30px;
    /* 设置字体粗细 */
    font-weight: 600;
    /* 移除下划线 */
    text-decoration: none;
    /* 设置为内联块级元素 */
    display: inline-block;
    /* 添加过渡效果 */
    transition: background-color 0.3s ease;
    /* 顶部添加外边距 */
    margin-top: 1rem;
    /* 添加阴影效果 */
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.3);
}

/* 播放按钮悬停效果 */
.btn-play:hover {
    /* 深蓝色背景 */
    background-color: #0062cc;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    /* 调整游戏iframe高度 */
    .game-iframe {
        height: 400px;
    }
    
    /* 减小游戏标题字体 */
    .game-title {
        font-size: 2rem;
    }
    
    /* 减小游戏副标题字体 */
    .game-subtitle {
        font-size: 1rem;
    }
    
    /* 减少内容区块内边距 */
    .content-section {
        padding: 1.5rem;
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 480px) {
    /* 进一步减小游戏iframe高度 */
    .game-iframe {
        height: 300px;
    }
    
    /* 进一步减小游戏标题字体 */
    .game-title {
        font-size: 1.75rem;
    }
    
    /* 将特性网格改为单列 */
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    /* 减少内容区块内边距 */
    .content-section {
        padding: 1rem;
    }
} 