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

:root {
    /* -- New Black & Dark Blue Alternating Theme -- */
    --theme-black: #121212;               /* Soft black for main backgrounds */
    --theme-dark-blue: #0D1B2A;           /* Deep dark blue for section backgrounds */
    --theme-text-on-dark: #EAEAEA;        /* Light gray for text on dark surfaces */
    --theme-accent-blue: #3A7CA5;         /* Moderately bright blue for accents */
    --theme-accent-blue-hover: #5F9FCA;   /* Lighter blue for hover states */
    --theme-border-dark: #2A3B4D;         /* Subtle border for dark theme */
    --theme-shadow-dark: rgba(200, 220, 255, 0.05); /* Very subtle light shadow/glow */

    /* -- Mapping old variables to the new theme -- */
    /* Backgrounds */
    --bg-main-yellow: var(--theme-black);       /* Main page background */
    --bg-section-green: var(--theme-dark-blue); /* Section, game list backgrounds */

    /* Text */
    --text-dark-on-light: var(--theme-text-on-dark); /* Default text color */
    --text-light-on-dark: var(--theme-text-on-dark); /* Text on already dark elements (like header) */

    /* Accents */
    --accent-bright-yellow: var(--theme-accent-blue); /* Primary accent (e.g., logo, buttons) */
    --accent-vibrant-green: var(--theme-accent-blue-hover); /* Secondary/hover accent */

    /* Borders */
    --border-color-soft: var(--theme-border-dark);

    /* Shadows */
    --shadow-color-general: var(--theme-shadow-dark);

    /* -- Fallback for old direct variable usage (should be minimal) -- */
    --primary-purple: var(--theme-accent-blue);
    --secondary-purple: var(--theme-accent-blue-hover);
    --primary-black: var(--theme-text-on-dark); /* This was text, now it's bg in some old contexts */
    --secondary-black: var(--theme-text-on-dark);
    --highlight-purple: var(--theme-accent-blue);
    --text-light: var(--theme-text-on-dark);
    --text-dark: var(--theme-text-on-dark); /* Ensure this doesn't conflict where it means dark text on light bg */
    --background-dark: var(--theme-black);
    --background-deep: var(--theme-dark-blue);
}

body {
    font-family: 'Arial', sans-serif; /* 字体：Arial 或无衬线字体 */
    line-height: 1.6; /*行高 */
    color: var(--text-dark-on-light); /* 文字颜色：将使用新的 --theme-text-on-dark */
    background-color: var(--bg-main-yellow); /* 背景颜色：将使用新的 --theme-black */
}

/* Header Styles */
/* 头部样式 */
header {
    /* New gradient for dark theme: from dark blue to a slightly darker shade or black */
    background: linear-gradient(135deg, var(--theme-dark-blue), #08131F);
    color: var(--text-light-on-dark); /* 文字颜色：将使用新的 --theme-text-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(--accent-bright-yellow); /* Logo颜色：将使用新的 --theme-accent-blue */
    /* Adjust text shadow for dark theme */
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5); /* Softer black shadow, or a very dark blue */
    letter-spacing: 2px; /* 字间距 */
}

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

.lang-btn {
    background-color: var(--accent-vibrant-green); /* 背景颜色：将使用 --theme-accent-blue-hover or similar */
    color: var(--theme-black); /* Text color on buttons - needs to be dark for light blue bg */
    border: 1px solid var(--theme-border-dark); /* Subtle border */
    padding: 0.5rem 1rem; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    cursor: pointer; /* 鼠标指针：手型 */
    transition: all 0.3s; /* 过渡效果 */
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent-bright-yellow); /* 悬停/激活背景：将使用 --theme-accent-blue */
    color: var(--theme-text-on-dark); /* Text color on hover/active - needs to be light for darker blue bg */
    border-color: var(--theme-accent-blue);
    transform: translateY(-2px); /* 轻微上移 */
}

/* Main Content Layout */
/* 主内容布局 */
main {
    display: grid; /* 使用Grid布局 */
    /* 定义网格区域的名称，方便布局 */
    grid-template-areas:
        "top top top"
        "left main-content right"
        "bottom bottom bottom";
    /* 定义列宽：两侧区域显著更宽(各8fr)，中间区域更窄(1fr) */
    grid-template-columns: 1fr 4fr 1fr !important;
    /* 定义行高：顶部和底部高度自动，中间区域占据剩余空间 */
    grid-template-rows: auto 1fr auto; 
    gap: 1rem !important;
    padding: 1rem; /* 内边距 */
    max-width: 100%; /* 最大宽度占满父容器 */
    min-height: calc(100vh - 70px - 2rem); /* 最小高度，大约为视口高度减去header高度和padding (假设header约70px) */
    margin: 0 auto; /* 水平居中 */
    background: none; /* 无背景色（由body控制） */
}

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

.game-links h2 {
    color: var(--accent-vibrant-green); /* 标题颜色：鲜绿色 */
    margin-bottom: 1rem; /* 下外边距 */
    font-size: 1.2rem; /* 标题字号 */
    border-bottom: 2px solid var(--accent-vibrant-green); /* 下划线：鲜绿色 (可能会被!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-green); /* 悬停背景：鲜绿色 */
    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 {
    grid-area: main-content; /* 指定该元素在网格中的位置为 'main-content' */
    background-color: var(--bg-section-green); /* 背景颜色：浅薄荷绿 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    overflow: hidden; /* 隐藏溢出内容 */
    border: 1px solid var(--accent-vibrant-green); /* 边框：鲜绿色 */
    display: flex; /* 使用flex布局，使其子元素（game-container, game-info）能更好控制 */
    flex-direction: column; /* flex子元素垂直排列 */
}

.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-green); /* 背景颜色：将使用 --theme-accent-blue-hover */
    color: var(--theme-black); /* Text color on button */
    border: 1px solid var(--theme-border-dark); /* 无边框 */
    padding: 0.5rem 1rem; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    cursor: pointer; /* 鼠标指针：手型 */
    transition: all 0.3s; /* 过渡效果 */
}

.fullscreen-btn:hover {
    background-color: var(--accent-bright-yellow); /* 悬停背景：将使用 --theme-accent-blue */
    color: var(--theme-text-on-dark); /* 悬停文字 */
    border-color: var(--theme-accent-blue);
    transform: translateY(-2px); /* 轻微上移 */
}

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

.game-info h2 {
    color: var(--accent-vibrant-green); /* 标题颜色：鲜绿色 */
    margin-bottom: 1rem; /* 下外边距 */
    border-bottom: 2px solid var(--accent-vibrant-green); /* 下划线：鲜绿色 (可能会被!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-green); /* 背景颜色：浅薄荷绿 */
    padding: 1rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    border: 1px solid var(--accent-vibrant-green); /* 边框：鲜绿色 (可能会被!important覆盖) */
}

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

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

.mini-game {
    position: relative; /* Added for absolute positioning of title */
    cursor: pointer; /* Indicate clickable */
    overflow: hidden; /* Hide parts of title initially if needed */
    border-radius: 8px; /* Match container border-radius */
    box-shadow: 0 4px 8px var(--theme-shadow-dark); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
    background-color: var(--theme-dark-blue); /* Background for padding area */
    /* Ensure consistent size if images are not uniform */
    display: flex; /* Use flex to center cover if needed */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack image and potential title area */
}

.mini-game:hover {
    transform: translateY(-5px) scale(1.03); /* Lift and slightly enlarge on hover */
    box-shadow: 0 6px 12px var(--theme-accent-blue-hover); /* More prominent shadow on hover */
}

.mini-game .game-cover {
    position: relative; /* Needed for absolute positioning of title */
    width: 100%;
    height: auto; /* Allow height based on image aspect ratio */
    /* If you want fixed height covers, set height and use object-fit on img */
}

.mini-game .game-cover img {
    display: block; /* Remove extra space below image */
    width: 100%; /* Image takes full width of cover */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Match parent border-radius */
    transition: transform 0.3s ease; /* Smooth scaling on hover */
}

.mini-game:hover .game-cover img {
    transform: scale(1.05); /* Slightly scale image on hover */
}

.mini-game .game-title {
    position: absolute; /* Position title over the image */
    bottom: 0; /* Align to the bottom */
    left: 0; /* Align to the left */
    width: 100%; /* Take full width */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    color: var(--theme-text-on-dark); /* Light text color */
    text-align: center; /* Center the text */
    padding: 0.5rem 0.2rem; /* Add some padding */
    font-size: 0.85rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth fade in/out */
    pointer-events: none; /* Allow clicking through the title to the game cover */
}

.mini-game:hover .game-title {
    opacity: 1; /* Make title visible on hover */
}

.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-vibrant-green), var(--text-dark-on-light)); /* 背景：鲜绿到深绿渐变 */
    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(--accent-bright-yellow); /* 链接颜色：将使用 --theme-accent-blue */
    text-decoration: none; /* 无下划线 */
    transition: all 0.3s; /* 过渡 */
}

.copyright a:hover {
    color: var(--accent-vibrant-green); /* 悬停链接颜色：将使用 --theme-accent-blue-hover */
    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-yellow); /* 图标颜色：亮黄色 */
}

/* 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-green); /* 图标颜色：鲜绿色 */
}

/* 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-yellow); /* 图标颜色：亮黄色 */
}

/* 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-green); /* 图标颜色：鲜绿色 */
}

.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-green); /* 悬停边框颜色：鲜绿色 (如果边框未被!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%;
    /* Update SVG fill/stroke to a light color for dark theme */
    background: rgba(0, 0, 0, 0.7) 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="%233A7CA5" 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;
    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-green); /* 激活边框：鲜绿色 */
    box-shadow: 0 0 10px var(--accent-vibrant-green); /* 激活阴影：鲜绿色 */
}

.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');

/* 移除主要区域和内容块的边框 (用户自定义重要样式) */
/* This !important might need to be removed if borders are desired in the dark theme */
/* .game-links,
.mini-games,
.main-game,
.game-features,
.how-to-play,
.player-reviews,
.faq,
.why-section,
.why-item {
    border: none !important; (Consider if some subtle borders are needed with --theme-border-dark)
    If no border, then this rule is fine. If borders are desired, remove !important or the rule.
} */

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

/* --- 重构后的内容区块样式 --- */
/* Re-evaluate these for the dark theme */

/* 区块组1 (e.g., game features, etc.) - these were --bg-section-green, now --theme-dark-blue */
.game-features,
.how-to-play,
.player-reviews, 
.faq, 
.why-section {
    color: var(--theme-text-on-dark) !important; 
    background-color: var(--theme-dark-blue); /* This is already mapped */
    padding: 1rem; 
    border-radius: 8px; 
    margin-bottom: 1.5rem; 
    border: 1px solid var(--theme-border-dark); /* Add subtle border for definition */
}

/* 区块组2 (e.g., game description) - these were --bg-main-yellow, now --theme-black */
.game-description,
.game-tips,
.game-updates,
.faq-item { 
    color: var(--theme-text-on-dark) !important; 
    background-color: var(--theme-black); /* This is already mapped */
    padding: 1rem; 
    border-radius: 8px; 
    margin-bottom: 1rem; 
    border: 1px solid var(--theme-border-dark); /* Add subtle border */
}

/* Content block titles (h3, h4) */
.game-features h3,
.how-to-play h3,
.player-reviews h3, 
.faq h3, 
.why-section h3,
.game-description h3,
.game-tips h3,
.game-updates h3,
.faq-item h4, 
.why-item h4 {
    color: var(--theme-accent-blue) !important; /* Titles use accent blue */
    margin-bottom: 0.75rem; 
}

/* Reviews and Why-items */
.review { 
    background-color: var(--theme-black); /* Reviews on main black background */
    padding: 1rem; 
    border-radius: 6px; 
    border: 1px solid var(--theme-border-dark);
}
.review p, .review span {
    color: var(--theme-text-on-dark) !important;
}

.why-item { 
    background-color: var(--theme-black); /* Why-items on main black background */
    border: 1px solid var(--theme-border-dark); /* Add border */
}
.why-item p {
    color: var(--theme-text-on-dark) !important; 
}


/* New styles for the game lists in the new layout */
.game-list {
    background-color: var(--theme-dark-blue); /* Game lists on section dark blue */
    padding: 1rem;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px var(--theme-shadow-dark); Let's remove heavy shadows for dark theme */
    border: 1px solid var(--theme-border-dark);
    overflow-y: auto;
}

.game-list h2 { /* Titles inside game lists, if they are uncommented */
    color: var(--theme-text-on-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--theme-border-dark);
    padding-bottom: 0.3rem;
}

/* Central mini games section (if ever uncommented) */
.central-mini-games-section {
    padding: 20px 0; 
    margin-bottom: 20px; 
}

.central-mini-games-section h2 {
    font-size: 1.8em; 
    color: var(--theme-accent-blue); /* Use accent blue for these titles */
    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; /* 减小标题字号 */
    }
}

/* 将主游戏区域分配到网格中间 */
.main-game {
    grid-area: main-content; /* 指定该元素在网格中的位置为 'main-content' */
    background-color: var(--bg-section-green); /* 背景颜色：浅薄荷绿 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 10px var(--shadow-color-general); /* 阴影 */
    overflow: hidden; /* 隐藏溢出内容 */
    border: 1px solid var(--accent-vibrant-green); /* 边框：鲜绿色 */
    display: flex; /* 使用flex布局，使其子元素（game-container, game-info）能更好控制 */
    flex-direction: column; /* flex子元素垂直排列 */
}

.game-list h2 {
    color: var(--text-dark-on-light); /* 标题颜色 */
    margin-bottom: 0.5rem; /* 下外边距 */
    font-size: 1.1rem; /* 标题字号 */
    border-bottom: 1px solid var(--border-color-soft); /* 下边框 */
    padding-bottom: 0.3rem; /* 内边距 */
}

.top-games {
    grid-area: top; /* 分配到 'top' 网格区域 */
    min-height: 100px; /* 顶部游戏列表最小高度，根据内容调整 */
    display: grid; /* 让内部游戏项可以横向排列 */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* 横向自动填充，每个最小120px */
    gap: 0.5rem; /* 游戏项间距 */
}

.left-games {
    grid-area: left; /* 分配到 'left' 网格区域 */
    /* 左侧容器宽度由main的grid-template-columns定义 */
    display: grid; /* 使用Grid布局来排列内部游戏项 */
    grid-template-columns: repeat(2, 1fr); /* 将游戏项恢复为两列 */
    gap: 0.5rem; /* 游戏项之间的间距 */
    align-content: start; /* 内容从顶部开始排列，防止拉伸 */
}

.right-games {
    grid-area: right; /* 分配到 'right' 网格区域 */
    /* 右侧容器宽度由main的grid-template-columns定义 */
    display: grid; /* 让内部游戏项可以排列 */
    grid-template-columns: 1fr; /* 将游戏项改为单列 */
    gap: 0.5rem; /* 游戏项间距 */
    align-content: start; /* 内容从顶部开始排列 */
}

.bottom-games {
    grid-area: bottom; /* 分配到 'bottom' 网格区域 */
    min-height: 100px; /* 底部游戏列表最小高度，根据内容调整 */
    display: grid; /* 让内部游戏项可以横向排列 */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* 横向自动填充 */
    gap: 0.5rem; /* 游戏项间距 */
}

/* 确保这是CSS文件的最后一行，不要在此后添加任何样式 */ 