/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* -- 新配色方案：浅蓝色主题 -- */
    --bg-main-blue: #F0F8FF; /* 主背景色 - 爱丽丝蓝 */
    --bg-section-blue: #E6F3FF; /* 区块背景色 - 更深的浅蓝色 */
    --accent-bright-blue: #1E90FF; /* 强调色 - 道奇蓝 */
    --accent-vibrant-blue: #4169E1; /* 强调色 - 皇家蓝 */
    --text-dark-on-light: #2F4F4F; /* 深色文字 - 用于浅色背景，深青灰色 */
    --text-light-on-dark: #FFFFFF; /* 浅色文字 - 用于深色背景，白色 */
    --border-color-soft: #87CEEB; /* 边框颜色 - 天蓝色，柔和 */
    --shadow-color-general: rgba(0, 0, 0, 0.1); /* 阴影颜色 - 通用 */

    /* -- 旧颜色变量的映射 (兼容和过渡目的) -- */
    --primary-purple: var(--accent-vibrant-blue); /* 原主紫色 -> 皇家蓝 */
    --secondary-purple: var(--accent-vibrant-blue); /* 原次紫色 -> 皇家蓝 */
    --primary-black: var(--text-dark-on-light);    /* 原主黑色 -> 深青灰文字 */
    --secondary-black: var(--text-dark-on-light); /* 原次黑色 -> 深青灰文字 */
    --highlight-purple: var(--accent-bright-blue);/* 原高亮紫 -> 道奇蓝 */
    --text-light: var(--text-light-on-dark);      /* 原浅色文字 -> 白色 */
    --text-dark: var(--text-dark-on-light);       /* 原深色文字 -> 深青灰 */
    --background-dark: var(--bg-main-blue);     /* 原深背景 -> 主蓝背景 */
    --background-deep: var(--bg-section-blue);   /* 原更深背景 -> 区块蓝背景 */
}

body {
    font-family: 'Arial', sans-serif; /* 字体：Arial 或无衬线字体 */
    line-height: 1.6; /*行高 */
    color: var(--text-dark-on-light); /* 文字颜色：深青灰色，用于浅色背景 */
    background-color: var(--bg-main-blue); /* 背景颜色：爱丽丝蓝 */
}

/* Header Styles */
/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--accent-bright-blue), var(--accent-vibrant-blue)); /* 背景：道奇蓝到皇家蓝的渐变 */
    color: var(--text-light-on-dark); /* 文字颜色：白色 */
    padding: 1rem; /* 内边距 */
    display: flex; /* 使用flex布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影效果 */
}

.logo-container {
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
}

.retro-logo {
    font-family: 'Press Start 2P', cursive; /* Logo字体 */
    font-size: 2rem; /* Logo字号 */
    color: var(--text-light-on-dark); /* Logo颜色：白色 */
    text-shadow: 3px 3px 0 var(--accent-vibrant-blue); /* 文字阴影：皇家蓝 */
    letter-spacing: 2px; /* 字间距 */
}

.language-selector {
    display: flex; /* 使用flex布局 */
    gap: 0.5rem; /* 元素间距 */
}

.lang-btn {
    background-color: var(--accent-vibrant-blue); /* 背景颜色：皇家蓝 */
    color: var(--text-light-on-dark); /* 文字颜色：白色 */
    border: none; /* 无边框 */
    padding: 0.5rem 1rem; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    cursor: pointer; /* 鼠标指针：手型 */
    transition: all 0.3s; /* 过渡效果 */
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent-bright-blue); /* 悬停/激活背景：道奇蓝 */
    color: var(--text-light-on-dark); /* 悬停/激活文字：白色 */
    transform: translateY(-2px); /* 轻微上移 */
}

/* Main Content Layout */
/* 主内容布局 */
main {
    display: grid; /* 使用Grid布局 */
    grid-template-columns: 200px 1fr 300px; /* 网格列定义 */
    gap: 1rem; /* 网格间距 */
    padding: 1rem; /* 内边距 */
    max-width: 1600px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
    background: none; /* 无背景色（由body控制） */
}

/* Left Sidebar - Game Links */
/* 左侧边栏 - 游戏链接 */
.game-links {
    background-color: var(--bg-section-blue); /* 背景颜色：浅蓝色 */
    padding: 1rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    border: 1px solid var(--accent-vibrant-blue); /* 边框：皇家蓝 (可能会被!important覆盖) */
    font-family: 'Poppins', Arial, sans-serif; /* 字体 */
    font-size: 1rem; /* 字号 */
}

.game-links h2 {
    color: var(--accent-vibrant-blue); /* 标题颜色：皇家蓝 */
    margin-bottom: 1rem; /* 下外边距 */
    font-size: 1.2rem; /* 标题字号 */
    border-bottom: 2px solid var(--accent-vibrant-blue); /* 下划线：皇家蓝 (可能会被!important覆盖) */
    padding-bottom: 0.5rem; /* 下内边距 */
}

.game-links ul {
    list-style: none; /* 无列表样式 */
    padding-left: 0; /* 左内边距 */
}

.game-links li {
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 0.3rem; /* 下外边距 */
}

.game-links a {
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
    gap: 0.7em; /* 图标与文字间距 */
    font-size: 1.05rem; /* 字号 */
    font-weight: 500; /* 字重 */
    padding: 0.45rem 0.7rem; /* 内边距 */
    border-radius: 6px; /* 圆角 */
    transition: background 0.2s, color 0.2s, transform 0.2s; /* 过渡效果 */
    letter-spacing: 0.01em; /* 字间距 */
    color: var(--text-dark-on-light); /* 文字颜色：深青灰色 */
    text-decoration: none; /* 无下划线 */
}

.game-links a:hover {
    background-color: var(--accent-vibrant-blue); /* 悬停背景：皇家蓝 */
    color: var(--text-light-on-dark); /* 悬停文字：白色 */
    transform: translateX(6px) scale(1.04); /* 悬停效果：右移并放大 */
}

.game-links hr {
    border: 0; /* 无边框 */
    border-top: 1.5px solid var(--border-color-soft); /* 顶部边框：天蓝色，柔和 */
    margin: 0.7rem 0; /* 上下外边距 */
}

.game-links a {
    font-family: 'Poppins', 'Segoe UI Emoji', 'Segoe UI Symbol', Arial, sans-serif; /* 链接字体 */
}

/* Main Game Section */
/* 主游戏区域 */
.main-game {
    background-color: var(--bg-section-blue); /* 背景颜色：浅蓝色 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    overflow: hidden; /* 隐藏溢出内容 */
    border: 1px solid var(--accent-vibrant-blue); /* 边框：皇家蓝 (可能会被!important覆盖) */
}

.game-container {
    position: relative; /* 相对定位 */
    width: 100%; /* 宽度100% */
    height: 600px; /* 高度600px */
}

.game-container iframe {
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    border: none; /* 无边框 */
}

.fullscreen-btn {
    position: absolute; /* 绝对定位 */
    bottom: 1rem; /* 距底部1rem */
    right: 1rem; /* 距右侧1rem */
    background-color: var(--accent-vibrant-blue); /* 背景颜色：皇家蓝 */
    color: var(--text-light-on-dark); /* 文字颜色：白色 */
    border: none; /* 无边框 */
    padding: 0.5rem 1rem; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    cursor: pointer; /* 鼠标指针：手型 */
    transition: all 0.3s; /* 过渡效果 */
}

.fullscreen-btn:hover {
    background-color: var(--accent-bright-blue); /* 悬停背景：道奇蓝 */
    color: var(--text-light-on-dark); /* 悬停文字：白色 */
    transform: translateY(-2px); /* 轻微上移 */
}

/* Game Information Section */
/* 游戏信息区域 */
.game-info {
    padding: 1rem; /* 内边距 */
}

.game-info h2 {
    color: var(--accent-vibrant-blue); /* 标题颜色：皇家蓝 */
    margin-bottom: 1rem; /* 下外边距 */
    border-bottom: 2px solid var(--accent-vibrant-blue); /* 下划线：皇家蓝 (可能会被!important覆盖) */
    padding-bottom: 0.5rem; /* 下内边距 */
}

.game-screenshots {
    display: flex; /* 使用flex布局 */
    gap: 1rem; /* 图片间距 */
    margin-bottom: 1rem; /* 下外边距 */
    overflow-x: auto; /* 水平溢出时显示滚动条 */
}

.game-screenshots img {
    width: 200px; /* 图片宽度 */
    height: 120px; /* 图片高度 */
    object-fit: cover; /* 图片裁剪方式 */
    border-radius: 4px; /* 圆角 */
}

/* 针对 .game-features, .how-to-play 等内容区块的统一样式调整将在此文件下方进行 */
/* 旧的 .game-features, .how-to-play 等区块样式会被下方更具体的规则覆盖 */

.review {
    /* 样式将在下方 "自动检测背景色并适配文字颜色" 部分（已重构）中定义 */
    margin-bottom: 1rem; /* 评论区下外边距 */
}

.review p {
    font-style: italic; /* 斜体 */
    margin-bottom: 0.5rem; /* 段落下外边距 */
}

.review span {
    /* 颜色将在下方定义 */
    font-size: 0.9rem; /* 评论者名称字号 */
}

.faq-item {
    /* 样式将在下方 "自动检测背景色并适配文字颜色" 部分（已重构）中定义 */
    margin-bottom: 1rem; /* FAQ项下外边距 */
}

.faq-item h4 {
    /* 颜色将在下方定义 */
    margin-bottom: 0.5rem; /* FAQ问题下外边距 */
}


/* Right Sidebar - Mini Games */
/* 右侧边栏 - 小游戏列表 */
.mini-games {
    background-color: var(--bg-section-blue); /* 背景颜色：浅蓝色 */
    padding: 1rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    border: 1px solid var(--accent-vibrant-blue); /* 边框：皇家蓝 (可能会被!important覆盖) */
}

.mini-games h2 {
    font-size: 1.5em; /* 标题字号 */
    margin-bottom: 15px; /* 下外边距 */
    color: var(--accent-vibrant-blue); /* 标题颜色：皇家蓝 */
    text-align: center; /* 文本居中 */
}

.mini-game-grid {
    display: grid; /* 使用Grid布局 */
    grid-template-columns: 1fr; /* 单列 */
    gap: 10px; /* 网格间距 */
}

.mini-game {
    border: 1px solid var(--border-color-soft); /* 边框：天蓝色，柔和 */
    border-radius: 8px; /* 圆角 */
    overflow: hidden; /* 隐藏溢出内容 */
    cursor: pointer; /* 鼠标指针：手型 */
    transition: transform 0.2s, box-shadow 0.2s; /* 过渡效果 */
    background-color: var(--bg-main-blue); /* 背景颜色：爱丽丝蓝 */
}

.mini-game:hover {
    transform: translateY(-5px); /* 悬停时上移 */
    box-shadow: 0 6px 12px var(--shadow-color-general); /* 悬停阴影 */
}

.mini-game .game-cover img {
    width: 100%; /* 图片宽度100% */
    height: auto; /* 图片高度自适应 */
    display: block; /* 块级元素 */
}

.mini-game .game-title {
    text-align: center; /* 文本居中 */
    padding: 8px; /* 内边距 */
    font-size: 0.9em; /* 字号 */
    font-weight: bold; /* 字重：粗体 */
    color: var(--text-light-on-dark); /* 文字颜色：白色 */
    background-color: var(--accent-vibrant-blue); /* 背景颜色：皇家蓝 */
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 隐藏溢出文本 */
    text-overflow: ellipsis; /* 溢出文本显示省略号 */
    border-top: 1px solid var(--border-color-soft); /* 顶部边框 */
}

.mini-game iframe {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0; /* 默认透明 */
    transition: opacity 0.3s ease; /* 透明度过渡 */
    z-index: 2; /* 层级 */
}

.mini-game.active .game-cover {
    opacity: 0; /* 激活时封面透明 */
}

.mini-game.active iframe {
    opacity: 1; /* 激活时iframe不透明 */
}

/* Footer Styles */
/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--accent-bright-blue), var(--accent-vibrant-blue)); /* 背景：道奇蓝到皇家蓝渐变 */
    color: var(--text-light-on-dark); /* 文字颜色：白色 */
    padding: 2rem; /* 内边距 */
    margin-top: 2rem; /* 上外边距 */
}

.footer-content {
    max-width: 1200px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
    text-align: center; /* 文本居中 */
}

.copyright {
    font-size: 0.9rem; /* 字号 */
}

.copyright a {
    color: var(--text-light-on-dark); /* 链接颜色：白色 */
    text-decoration: none; /* 无下划线 */
    transition: all 0.3s; /* 过渡 */
}

.copyright a:hover {
    color: var(--accent-bright-blue); /* 悬停链接颜色：道奇蓝 */
    text-decoration: underline; /* 悬停显示下划线 */
}

/* Responsive Design */
/* 响应式设计 */
@media (max-width: 1200px) {
    main {
        grid-template-columns: 150px 1fr 250px; /* 中等屏幕布局调整 */
    }
}

@media (max-width: 992px) {
    main {
        grid-template-columns: 1fr; /* 较小屏幕布局调整：单列 */
    }
    
    .game-links, .mini-games {
        display: none; /* 隐藏侧边栏 */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* 头部元素垂直排列 */
        text-align: center; /* 文本居中 */
    }
    
    .language-selector {
        margin-top: 1rem; /* 语言选择器上外边距 */
    }
    
    .game-container {
        height: 400px; /* 游戏容器高度调整 */
    }
    
    .game-screenshots {
        flex-direction: column; /* 游戏截图垂直排列 */
    }
    
    .game-screenshots img {
        width: 100%; /* 图片宽度100% */
        height: auto; /* 高度自适应 */
    }
    
    .why-content {
        grid-template-columns: 1fr; /* "Why Choose Us"部分单列布局 */
    }
    
    /* .game-links, .mini-games 的背景色已在各自规则中用新变量定义 */
    
    .game-links {
        font-size: 0.95rem; /* 左侧边栏字号调整 */
    }
    
    .game-links a {
        font-size: 1rem; /* 链接字号调整 */
        padding: 0.4rem 0.5rem; /* 链接内边距调整 */
    }
}

/* Game Description Section */
/* 游戏描述区域 - 样式将在下方"重构后的内容区块样式"部分定义 */
.game-description {
    margin-bottom: 2rem;
    padding: 1rem;
    /* background-color: #f8f9fa; 旧样式，将被覆盖 */
    border-radius: 8px;
}

.game-description p {
    line-height: 1.8;
    /* color: #444; 旧样式，将被覆盖 */
}

/* Game Tips Section */
/* 游戏技巧区域 - 样式将在下方"重构后的内容区块样式"部分定义 */
.game-tips {
    margin-bottom: 2rem;
    padding: 1rem;
    /* background-color: #f8f9fa; 旧样式，将被覆盖 */
    border-radius: 8px;
}

.game-tips ul {
    list-style-type: none; /* 无列表样式 */
    padding-left: 0;
}

.game-tips li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative; /* 相对定位，用于图标 */
}

.game-tips li:before {
    content: "💡"; /* 图标 */
    position: absolute;
    left: 0;
    color: var(--accent-bright-blue); /* 图标颜色：道奇蓝 */
}

/* Game Updates Section */
/* 游戏更新区域 - 样式将在下方"重构后的内容区块样式"部分定义 */
.game-updates {
    margin-bottom: 2rem;
    padding: 1rem;
    /* background-color: #f8f9fa; 旧样式，将被覆盖 */
    border-radius: 8px;
}

.game-updates ul {
    list-style-type: none; /* 无列表样式 */
    padding-left: 0;
}

.game-updates li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative; /* 相对定位，用于图标 */
}

.game-updates li:before {
    content: "🔄"; /* 图标 */
    position: absolute;
    left: 0;
    color: var(--accent-vibrant-blue); /* 图标颜色：皇家蓝 */
}

/* Enhanced How to Play Section */
/* 强化版玩法介绍区域 - 样式将在下方"重构后的内容区块样式"部分定义 */
.how-to-play ul {
    list-style-type: none; /* 无列表样式 */
    padding-left: 0;
    margin-top: 1rem;
}

.how-to-play li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative; /* 相对定位，用于图标 */
}

.how-to-play li:before {
    content: "🎮"; /* 图标 */
    position: absolute;
    left: 0;
    color: var(--accent-bright-blue); /* 图标颜色：道奇蓝 */
}

/* Enhanced FAQ Section */
/* 强化版FAQ区域 - .faq-item 样式将在下方"重构后的内容区块样式"部分定义 */
.faq-item {
    /* background-color: #f8f9fa; 旧样式，将被覆盖 */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h4 {
    /* color: #2c3e50; 旧样式，将被覆盖 */
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.faq-item h4:before {
    content: "❓"; /* 图标 */
    margin-right: 0.5rem;
    color: var(--accent-vibrant-blue); /* 图标颜色：皇家蓝 */
}

.faq-item p {
    /* color: #666; 旧样式，将被覆盖 */
    line-height: 1.6;
}

/* Why Section Styles */
/* "为何选择我们"区域 - 样式将在下方"重构后的内容区块样式"部分定义 */
.why-section {
    margin-bottom: 2rem;
    padding: 1rem;
    /* background-color: var(--background-deep); 旧样式，将被覆盖 */
    border-radius: 8px;
    /* border: 1px solid var(--primary-purple); 旧样式，将被覆盖 */
}

.why-section h3 {
    /* color: var(--highlight-purple); 旧样式，将被覆盖 */
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    /* border-bottom: 2px solid var(--primary-purple); 旧样式，将被覆盖 */
    padding-bottom: 0.5rem;
}

.why-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 1.5rem; /* 间距 */
}

.why-item {
    /* background-color: white; 旧样式，将被覆盖 */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color-general); /* 阴影 */
    transition: all 0.3s ease; /* 过渡 */
    /* border: 1px solid var(--primary-purple); 旧样式，将被覆盖 */
}

.why-item:hover {
    transform: translateY(-5px); /* 悬停上移 */
    border-color: var(--accent-vibrant-blue); /* 悬停边框颜色：皇家蓝 (如果边框未被!important移除) */
}

.why-item h4 {
    /* color: var(--highlight-purple); 旧样式，将被覆盖 */
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-item p {
    /* color: var(--text-dark); 旧样式，将被覆盖 */
    line-height: 1.6;
}

/* Game Container Loading State */
/* 游戏容器加载状态 */
.game-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.game-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><circle cx="50" cy="50" fill="none" stroke="%234169E1" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"/></circle></svg>') center center no-repeat; /* 加载动画SVG，颜色改为皇家蓝 */
    background-size: 50px; /* 加载动画大小 */
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-container.loading::after {
    opacity: 1; /* 加载时显示动画 */
}

/* Mini Game Active State */
/* 小游戏激活状态 */
.mini-game.active {
    border: 2px solid var(--accent-vibrant-blue); /* 激活边框：皇家蓝 */
    box-shadow: 0 0 10px var(--accent-vibrant-blue); /* 激活阴影：皇家蓝 */
}

.mini-game.active .game-cover {
    opacity: 0; /* 激活时封面透明 */
}

.mini-game.active iframe {
    opacity: 1; /* 激活时iframe不透明 */
}

/* Game Title Transition */
/* 游戏标题过渡 */
.game-info h2 {
    transition: opacity 0.3s ease; /* 透明度过渡 */
}

.game-info h2.updating {
    opacity: 0; /* 更新时透明 */
}

/* 导航栏新字体和图标样式 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

/* 移除主要区域和内容块的边框 (用户自定义重要样式) */
.game-links,
.mini-games,
.main-game,
.game-features,
.how-to-play,
.player-reviews,
.faq,
.why-section,
.why-item {
    border: none !important; /* 强制无边框 */
}

/* 移除标题下划线边框 (用户自定义重要样式) */
.game-links h2,
.mini-games h2,
.game-info h2,
.why-section h3 {
    border-bottom: none !important; /* 强制无下划线边框 */
}

/* --- 重构后的内容区块样式 --- */
/* 目标：应用新的浅蓝色主题，并确保可读性 */

/* 区块组1 (例如：游戏特色、玩法介绍、评论区、FAQ总区、为何选择我们) - 使用浅蓝色背景 */
.game-features,
.how-to-play,
.player-reviews, /* 此为评论列表的容器 */
.faq, /* 此为FAQ列表的容器 */
.why-section {
    color: var(--text-dark-on-light) !important; /* 文字颜色：深青灰色 (确保覆盖旧important) */
    background-color: var(--bg-section-blue); /* 背景颜色：浅蓝色 */
    padding: 1rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    margin-bottom: 1.5rem; /* 下外边距 */
}

/* 区块组2 (例如：游戏描述、游戏技巧、游戏更新、单个FAQ项) - 使用浅蓝色背景 */
.game-description,
.game-tips,
.game-updates,
.faq-item { /* 单个FAQ项目 */
    color: var(--text-dark-on-light) !important; /* 文字颜色：深青灰色 (确保覆盖旧important) */
    background-color: var(--bg-main-blue); /* 背景颜色：爱丽丝蓝 */
    padding: 1rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    margin-bottom: 1rem; /* 下外边距 (FAQ项间距) */
    border: 1px solid var(--border-color-soft); /* 添加天蓝色边框以区分 */
}

/* 内容区块内的标题 (h3, h4) */
.game-features h3,
.how-to-play h3,
.player-reviews h3, /* 评论区总标题 */
.faq h3, /* FAQ区总标题 */
.why-section h3, /* "为何选择我们"总标题 */
.game-description h3,
.game-tips h3,
.game-updates h3,
.faq-item h4, /* 单个FAQ问题的标题 */
.why-item h4 { /* "为何选择我们"单个项目的标题 */
    color: var(--accent-vibrant-blue) !important; /* 标题颜色：皇家蓝 (确保覆盖旧important) */
    margin-bottom: 0.75rem; /* 标题下外边距 */
}

/* 单独处理评论 (.review) 和 "为何选择我们" 的子项 (.why-item) 的文字和背景 */
.review { /* 单条评论 */
    background-color: var(--bg-main-blue); /* 背景：爱丽丝蓝 */
    padding: 1rem; /* 内边距 */
    border-radius: 6px; /* 圆角 */
    border: 1px solid var(--border-color-soft); /* 边框 */
}
.review p, .review span {
    color: var(--text-dark-on-light) !important; /* 文字颜色：深青灰色 */
}

.why-item { /* "为何选择我们"单个项目 */
    background-color: var(--bg-main-blue); /* 背景：爱丽丝蓝 */
    /* padding, border-radius, box-shadow, transition 已在上方定义 */
    /* border: none !important; 继承自父级，无需重复 */
}
.why-item p {
    color: var(--text-dark-on-light) !important; /* 文字颜色：深青灰色 */
}

/* 移除 .dark-block 和 .light-block 类，因为配色逻辑已改变 */
/* .dark-block, .light-block { display: none; } */ /* 或者直接删除这些类的引用 */


/* 新增的中间小游戏区域样式 */
.central-mini-games-section {
    padding: 20px 0; /* 上下内边距 */
    margin-bottom: 20px; /* 下外边距 */
    /* border-top: 1px solid var(--border-color-soft); 顶部边框 (注释掉，让页面更简洁) */
    /* border-bottom: 1px solid var(--border-color-soft); 底部边框 (注释掉) */
}

.central-mini-games-section h2 {
    font-size: 1.8em; /* 标题字号 */
    color: var(--accent-vibrant-blue); /* 标题颜色：皇家蓝 */
    text-align: center; /* 文本居中 */
    margin-bottom: 20px; /* 下外边距 */
    font-family: 'Press Start 2P', cursive; /* 字体 */
}

/* 中间小游戏网格布局 */
.sub-mini-game-grid {
    display: grid; /* Grid布局 */
    grid-template-columns: repeat(5, 1fr); /* 5列等宽 */
    grid-template-rows: repeat(3, auto); /* 3行，高度自动 */
    gap: 15px; /* 网格间距 */
    padding: 0 10px; /* 左右内边距 */
}

/* 响应式调整：在中等屏幕上改为3列 */
@media (max-width: 1024px) {
    .sub-mini-game-grid {
        grid-template-columns: repeat(3, 1fr); /* 3列 */
    }
}

/* 响应式调整：在小屏幕上改为2列 */
@media (max-width: 600px) {
    .sub-mini-game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列 */
    }
    .central-mini-games-section h2 {
        font-size: 1.5em; /* 减小标题字号 */
    }
}

/* 移除汉堡菜单和手柄图标相关样式 */
.hamburger-menu,
.gamepad-icon {
    display: none !important;
}

/* 移除底部导航栏样式 */
.bottom-nav {
    display: none !important;
} 