/* --- 全局和基础样式 --- */
* {
    margin: 0; /* 清除默认外边距 */
    padding: 0; /* 清除默认内边距 */
    box-sizing: border-box; /* 边框和内边距包含在元素宽高内 */
}

body {
    font-family: 'Arial', sans-serif; /* 默认字体，稍后替换为活泼字体 */
    line-height: 1.6; /* 设置行高，提高可读性 */
    color: #333; /* 默认文字颜色 */
    background-color: #f0f8ff; /* 浅蓝色背景，模拟天空/浅海 */
}

/* --- 链接样式 --- */
a {
    color: #0077cc; /* 链接颜色 */
    text-decoration: none; /* 去掉下划线 */
}

a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* --- 页面容器 (可选，用于限制最大宽度) --- */
.container {
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 15px; /* 两侧留白 */
}

/* --- 头部样式 --- */
header {
    background-color: #ffffff; /* 头部背景白色，像浪花 */
    padding: 15px 30px; /* 头部内边距 */
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    border-bottom: 2px solid #add8e6; /* 浅蓝色下边框 */
}

.logo .logo-text {
    font-size: 2.2em; /* Logo 字体大小 */
    font-weight: bold; /* 加粗 */
    color: #005f9e; /* 深蓝色 */
    /* TODO: 应用漫画风格字体和效果 */
    text-shadow: 1px 1px 1px #add8e6; /* 浅蓝阴影 */
    cursor: default; /* 鼠标样式为默认 */
}

.language-switcher button {
    background-color: #e0f0ff; /* 按钮背景淡蓝色 */
    border: 1px solid #add8e6; /* 按钮边框 */
    padding: 5px 10px; /* 按钮内边距 */
    margin-left: 5px; /* 按钮左外边距 */
    cursor: pointer; /* 鼠标样式为手型 */
    border-radius: 5px; /* 圆角 */
    transition: background-color 0.3s ease; /* 背景色过渡效果 */
}

.language-switcher button:hover {
    background-color: #add8e6; /* 悬停时背景变深 */
}

/* --- 主要内容区域 --- */
main {
    padding: 20px 0; /* 主要内容上下内边距 */
}

/* --- 游戏 Iframe 容器 --- */
#game-container {
    position: relative; /* 相对定位，用于定位全屏按钮 */
    width: 100%; /* 宽度占满父容器 */
    padding-top: 56.25%; /* 16:9 宽高比 (高度/宽度 * 100%) */
    background-color: #000; /* 加载时背景黑色 */
    margin-bottom: 30px; /* 和下方内容间距 */
}

#game-iframe {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    border: none; /* 移除边框 */
}

#fullscreen-btn {
    position: absolute; /* 绝对定位 */
    bottom: 10px; /* 距离底部10px */
    right: 10px; /* 距离右侧10px */
    background-color: rgba(0, 119, 204, 0.8); /* 半透明蓝色背景 */
    color: white; /* 文字白色 */
    border: none; /* 无边框 */
    padding: 8px 15px; /* 内边距 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer; /* 鼠标手型 */
    z-index: 10; /* 确保在 iframe 上方 */
    transition: background-color 0.3s ease; /* 过渡效果 */
}

#fullscreen-btn:hover {
    background-color: rgba(0, 95, 158, 1); /* 悬停时加深 */
}

/* --- 游戏信息和 SEO 内容区域 --- */
#game-info {
    padding: 0 30px; /* 内容区域左右内边距 */
    background-color: #ffffff; /* 内容区域背景白色 */
    border-radius: 8px; /* 轻微圆角 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 轻微阴影 */
    /* margin: 0 15px; */ /* 移除左右外边距，由父级 .container 控制 */
}

#game-info h1, #game-info h2, #game-info h3 {
    color: #005f9e; /* 标题颜色 - 深蓝色 */
    margin-top: 25px; /* 标题上外边距 */
    margin-bottom: 10px; /* 标题下外边距 */
    border-bottom: 1px solid #e0f0ff; /* 标题下划淡蓝线 */
    padding-bottom: 5px; /* 标题与下划线间距 */
}

#game-info h1 {
    font-size: 2em; /* H1 字体大小 */
    text-align: center; /* H1 居中 */
    border-bottom: 2px solid #0077cc; /* H1 下划线加重 */
}

#game-info h2 {
    font-size: 1.6em; /* H2 字体大小 */
}

#game-info h3 {
    font-size: 1.3em; /* H3 字体大小 */
    color: #0077cc; /* H3 颜色稍浅 */
    border-bottom: none; /* H3 无下划线 */
}

#game-info article, #game-info .screenshots, #game-info .reviews {
    margin-bottom: 30px; /* 每个内容块下外边距 */
}

.screenshots img {
    max-width: 100%; /* 图片最大宽度为其容器宽度 */
    height: auto; /* 高度自动 */
    border: 1px solid #ccc; /* 图片边框 */
    margin: 5px; /* 图片间距 */
    border-radius: 4px; /* 图片圆角 */
}

.reviews blockquote {
    background-color: #e0f0ff; /* 评论背景淡蓝 */
    border-left: 5px solid #0077cc; /* 左侧蓝色边框 */
    margin: 15px 0; /* 上下外边距 */
    padding: 15px; /* 内边距 */
    border-radius: 0 5px 5px 0; /* 圆角 */
    font-style: italic; /* 斜体 */
}

/* --- 底部样式 --- */
footer {
    background-color: #005f9e; /* 底部背景深蓝色 */
    color: #ffffff; /* 底部文字白色 */
    text-align: center; /* 文字居中 */
    padding: 20px 15px; /* 内边距 */
    margin-top: 30px; /* 与上方内容间距 */
}

footer p {
    margin-bottom: 5px; /* 段落下边距 */
}

footer a {
    color: #add8e6; /* 底部链接颜色浅蓝 */
    text-decoration: underline; /* 底部链接加下划线 */
}

footer a:hover {
    color: #ffffff; /* 悬停时变白 */
}

/* --- 响应式设计 --- */
@media (max-width: 768px) { /* 屏幕宽度小于 768px 时应用 */
    header {
        flex-direction: column; /* 头部元素垂直排列 */
        padding: 15px; /* 调整内边距 */
    }

    .logo {
        margin-bottom: 10px; /* Logo 下方间距 */
    }

    .language-switcher {
        margin-top: 10px; /* 语言切换器上方间距 */
    }

    #game-info {
        padding: 0 15px; /* 调整内容区内边距 */
        /* margin: 0 5px; */ /* 移除左右外边距，由父级 .container 控制 */
    }

    #game-info h1 {
        font-size: 1.8em; /* 调整 H1 字体大小 */
    }

    #game-info h2 {
        font-size: 1.4em; /* 调整 H2 字体大小 */
    }

    .screenshots img {
        max-width: 90%; /* 移动端截图稍小 */
        display: block; /* 让图片块级显示，方便居中 */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) { /* 屏幕宽度小于 480px 时应用 */
    .logo .logo-text {
        font-size: 1.8em; /* 进一步缩小 Logo 字体 */
    }

    .language-switcher button {
        padding: 4px 8px; /* 缩小按钮尺寸 */
        font-size: 0.9em; /* 缩小按钮字体 */
    }

    #game-info h1 {
        font-size: 1.6em;
    }

    #game-info h2 {
        font-size: 1.3em;
    }

     #game-info h3 {
        font-size: 1.1em;
    }

    footer {
        padding: 15px 10px; /* 调整底部内边距 */
        font-size: 0.9em; /* 调整底部字体大小 */
    }
} 