/* 基本重置，移除浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    /* 设置可爱字体，优先使用 Comic Sans MS，备选 cursive，最后 sans-serif */
    font-family: 'Comic Sans MS', cursive, sans-serif;
    /* 设置基础字体大小 */
    font-size: 16px;
    /* 设置页面背景色 */
    background-color: #f0f8ff; /* 淡蓝色背景 */
    /* 设置文字颜色 */
    color: #333;
    /* 行高 */
    line-height: 1.6;
}

/* 容器，用于限制内容宽度并居中 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* 左右自动边距实现居中 */
    padding: 20px;
}

/* 页面头部样式 */
.site-header {
    /* 使用 RGBA 设置背景色，最后一个值 (0.9) 代表 90% 不透明度 */
    background-color: rgba(70, 130, 180, 0.9); /* 钢蓝色，略微透明 */
    color: #fff; /* 白色文字 */
    padding: 15px 5%; /* 内边距 */
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    flex-wrap: wrap; /* 允许换行 */
}

/* Logo 样式 (H1) */
.logo {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive; /* 公主风格字体 */
    font-size: 2.5em; /* 较大的字体 */
    font-weight: bold;
    color: #ffdab9; /* 桃色，与橙色搭配 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 轻微文字阴影 */
}

/* 语言切换器样式 */
.language-switcher button {
    background-color: #ffa500; /* 橙色按钮背景 */
    color: #fff; /* 白色文字 */
    border: none; /* 无边框 */
    padding: 8px 12px; /* 内边距 */
    margin-left: 5px; /* 左外边距 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer; /* 鼠标指针样式 */
    font-family: inherit; /* 继承父元素字体 */
    transition: background-color 0.3s ease; /* 背景色过渡效果 */
}

/* 语言切换器按钮悬停效果 */
.language-switcher button:hover {
    background-color: #ff8c00; /* 深橙色 */
}

/* 主要内容区域 */
main {
    padding: 20px 5%; /* 内边距 */
}

/* 游戏嵌入区域 */
.game-section {
    text-align: center; /* 居中按钮 */
    margin-bottom: 30px; /* 底部外边距 */
}

/* Iframe 容器样式 */
.iframe-container {
    position: relative; /* 相对定位，用于宽高比 */
    width: 100%; /* 宽度 100% */
    padding-top: 56.25%; /* 16:9 宽高比 (9 / 16 * 100) */
    overflow: hidden; /* 隐藏溢出 */
    margin-bottom: 15px; /* 与按钮的间距 */
}

/* Iframe 样式 */
.iframe-container iframe {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度 100% */
    height: 100%; /* 高度 100% */
    border: 3px solid #4682b4; /* 添加蓝色边框 */
    border-radius: 8px; /* 轻微圆角 */
}

/* 全屏按钮样式 */
#fullscreen-button {
    background-color: #ffa500; /* 橙色背景 */
    color: white; /* 白色文字 */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#fullscreen-button:hover {
    background-color: #ff8c00; /* 深橙色 */
}

/* 游戏截图区域样式 */
.screenshot-section {
    margin-top: 30px; /* 顶部外边距 */
    margin-bottom: 30px; /* 底部外边距 */
    padding: 0 5%; /* 左右内边距 */
    text-align: center; /* 标题居中 */
}

/* 截图区域标题 (H2) */
.screenshot-section h2 {
    color: #4682b4; /* 钢蓝色标题 */
    margin-bottom: 20px; /* 标题下方间距 */
    border-bottom: 2px solid #ffa500; /* 橙色下划线 */
    display: inline-block; /* 让下划线适应文字宽度 */
    padding-bottom: 5px;
}

/* 截图容器样式 */
.screenshots-container {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-around; /* 均匀分布项目 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 15px; /* 项目之间的间距 */
}

/* 单个截图图片样式 */
.screenshot-img {
    max-width: 100%; /* 最大宽度为100% */
    height: auto; /* 高度自动 */
    border: 3px solid #ffa500; /* 橙色边框 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* 轻微阴影 */
    /* 为flex项目设置基础宽度，允许它们换行 */
    flex-basis: calc(33.333% - 20px); /* 尝试每行放3个，减去间距 */
    min-width: 250px; /* 最小宽度，防止过小 */
}

/* 内容区域样式 */
.content-section {
    background-color: #fff; /* 白色背景 */
    padding: 30px;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 轻微阴影 */
}

/* 内容区域标题 (H2) */
.content-section h2 {
    color: #4682b4; /* 钢蓝色标题 */
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffa500; /* 橙色下划线 */
    padding-bottom: 5px;
}
.content-section h2:first-child {
    margin-top: 0;
}

/* 内容区域副标题 (H3) */
.content-section h3 {
    color: #ff8c00; /* 深橙色副标题 */
    margin-top: 15px;
    margin-bottom: 10px;
}

/* 内容区域段落 */
.content-section p {
    margin-bottom: 15px;
}

/* 评论区域样式 */
.reviews {
    margin-top: 20px;
}

/* 单条评论样式 */
.review {
    background-color: #e7f5ff; /* 非常浅的蓝色背景 */
    border-left: 4px solid #ffa500; /* 橙色左边框 */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 评论者名称样式 */
.review .reviewer {
    font-style: italic; /* 斜体 */
    text-align: right; /* 右对齐 */
    color: #555;
    margin-bottom: 0;
}

/* 页面页脚样式 */
.site-footer {
    background-color: #333; /* 深灰色背景 */
    color: #ccc; /* 浅灰色文字 */
    text-align: center; /* 文字居中 */
    padding: 20px 5%;
    margin-top: 30px; /* 顶部外边距 */
    font-size: 0.9em; /* 稍小字体 */
}

.site-footer p {
    margin-bottom: 5px; /* 段落下边距 */
}

.site-footer a {
    color: #ffa500; /* 橙色链接 */
    text-decoration: none; /* 去除下划线 */
}

.site-footer a:hover {
    text-decoration: underline; /* 悬停时显示下划线 */
}

/* 响应式设计：针对小屏幕设备 */
@media (max-width: 768px) {
    /* 头部布局调整 */
    .site-header {
        flex-direction: column; /* 垂直排列 */
        text-align: center; /* 居中 */
    }

    .logo {
        margin-bottom: 10px; /* Logo 下方增加间距 */
        font-size: 2em; /* 稍小字体 */
    }

    .language-switcher {
        margin-top: 10px; /* 切换器上方增加间距 */
    }

    /* 调整内边距 */
    main, .site-header, .site-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .content-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* 进一步缩小字体 */
    body {
        font-size: 14px;
    }

    .logo {
        font-size: 1.8em;
    }

    /* 语言切换器按钮调整 */
    .language-switcher button {
        padding: 6px 10px;
        font-size: 0.9em;
    }

    #fullscreen-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
} 