/* 引入 Google 字体 */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* 全局样式 */
body {
    font-family: sans-serif; /* 默认字体 */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    background-color: #f0f8ff; /* 淡蓝色背景，体现可爱风格 */
    color: #333; /* 主要文字颜色 */
}

/* 页面容器 */
.container {
    /* max-width: 1200px; */ /* 移除最大宽度限制 */
    width: 80%; /* 设置宽度为页面宽度的 80% */
    margin: 0 auto; /* 居中显示 */
    padding: 0 20px; /* 左右留白 (这个可以保留，避免内容紧贴边缘) */
}

/* 页眉 */
.site-header {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    padding: 15px 0;
    border-bottom: 2px solid #add8e6; /* 淡蓝色下边框 */
}

/* Logo 样式 (需要添加卡通字体) */
.logo {
    font-family: 'Luckiest Guy', cursive; /* 应用卡通字体 */
    font-size: 2.2em; /* 稍微调整字号 */
    font-weight: normal; /* Luckiest Guy 本身很粗，不需要额外加粗 */
    color: #ff6347; /* 番茄色，醒目 */
    /* 稍后添加卡通字体样式 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* 添加一点文字阴影 */
}

/* 语言切换器 */
.language-switcher label {
    margin-right: 5px;
}

.language-switcher select {
    padding: 5px 8px; /* 微调内边距 */
    border-radius: 4px;
    background-color: #ff8c00; /* 暗橙色背景 */
    color: white; /* 白色文字 */
    border: 1px solid #e57e00; /* 稍深一点的橙色边框 */
    cursor: pointer; /* 添加手型光标 */
    font-weight: bold; /* 文字加粗一点 */
}

/* 鼠标悬停和聚焦时的样式 */
.language-switcher select:hover,
.language-switcher select:focus {
    background-color: #e57e00; /* 悬停时背景变深一点 */
    border-color: #cc7000;
    outline: none; /* 移除默认的聚焦轮廓 */
}

/* 游戏区域 */
#game-section {
    margin-top: 20px;
    text-align: center; /* 按钮居中 */
}

/* iframe 容器 */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
    border: 5px solid #add8e6; /* 添加边框 */
    border-radius: 10px; /* 圆角 */
}

/* 游戏 iframe */
#game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 全屏按钮 */
#fullscreen-btn {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #4682b4; /* 钢蓝色 */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* 过渡效果 */
}

#fullscreen-btn:hover {
    background-color: #5a9bd4; /* 悬停时变亮 */
}

/* 内容区域 */
#content-section {
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    overflow: hidden; /* 确保背景色不会超出圆角 */
}

/* 为每个内容板块添加内边距 */
#content-section .content-block {
    padding: 20px;
}

/* 默认（奇数）板块背景为白色 */
#content-section .content-block:nth-of-type(odd) {
    background-color: #ffffff;
}

/* 偶数板块背景为淡黄色 */
#content-section .content-block:nth-of-type(even) {
    background-color: #fffbeb; /* 淡黄色 */
}

#content-section h1,
#content-section h2,
#content-section h3 {
    font-family: 'Luckiest Guy', cursive; /* 应用卡通字体 */
    font-weight: normal; /* Luckiest Guy 本身很粗，不需要额外加粗 */
    color: #ff6347; /* 标题使用 Logo 颜色 */
    /* 稍后添加卡通字体样式 */
}

#content-section h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
}

#content-section h2 {
    font-size: 1.8em;
    margin-top: 30px;
    border-bottom: 1px solid #eee; /* 分隔线 */
    padding-bottom: 5px;
}

#content-section h3 {
    font-size: 1.4em;
    margin-top: 20px;
}

/* 游戏截图区域 */
.screenshots {
    display: grid; /* 使用 Grid 布局 */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 响应式列 */
    gap: 15px; /* 图片间距 */
    margin-top: 15px;
}

.screenshots img {
    width: 100%;
    height: 270px; /* 设置一个固定的高度，你可以根据需要调整这个值 */
    object-fit: cover; /* 保持宽高比填充，超出部分裁剪 */
    border-radius: 5px;
    /* 将边框改为橙色虚线 */
    border: 3px dashed #ff8c00; /* 使用暗橙色 (#ff8c00) 虚线边框，宽度为 3px */
}

/* 玩家评论 */
.reviews p {
    background-color: #f9f9f9; /* 浅灰色背景 */
    border-left: 4px solid #4682b4; /* 左侧边框 */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 页脚 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #add8e6; /* 淡蓝色上边框 */
    font-size: 0.9em;
    color: #555;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: #4682b4; /* 链接颜色 */
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* 移动端垂直排列 */
        align-items: flex-start; /* 左对齐 */
    }

    .language-switcher {
        margin-top: 10px;
    }

    #content-section h1 {
        font-size: 1.8em;
    }

    #content-section h2 {
        font-size: 1.5em;
    }

    #content-section h3 {
        font-size: 1.2em;
    }
}

/* 全屏时的 iframe 样式 (由 JS 控制添加/移除此类) */
body.fullscreen-active .iframe-container {
    position: fixed; /* 固定定位，覆盖整个屏幕 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0; /* 移除 padding-bottom */
    z-index: 1000; /* 置于顶层 */
    border: none; /* 移除边框 */
    border-radius: 0; /* 移除圆角 */
}

body.fullscreen-active header,
body.fullscreen-active main > *:not(#game-section),
body.fullscreen-active footer,
body.fullscreen-active #fullscreen-btn {
    display: none; /* 全屏时隐藏其他元素 */
}

/* 卡通字体 (示例，需要替换为实际字体) */
/* @font-face {
    font-family: 'YourCartoonFont';
    src: url('path/to/cartoon-font.woff2') format('woff2'),
         url('path/to/cartoon-font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.logo, #content-section h1, #content-section h2, #content-section h3 {
    font-family: 'YourCartoonFont', sans-serif; 
}*/ 