/* --- 全局重置和基础样式 --- */
:root {
    /* 定义颜色变量 (可根据街斗风格调整) */
    --primary-color: #ff4500; /* 橙红色 */
    --secondary-color: #1e90ff; /* 道奇蓝 */
    --dark-bg: #1a1a1a; /* 深色背景 */
    --light-text: #f0f0f0; /* 浅色文本 */
    --dark-text: #333; /* 深色文本 */
    --card-bg: #2a2a2a; /* 卡片背景 */
    --border-color: #444; /* 边框颜色 */

    /* 定义字体变量 */
    --body-font: 'Arial', sans-serif; /* 清晰的字体 */
    --heading-font: 'Impact', Haettenschweiler, 'Arial Narrow Bold', sans-serif; /* 冲击力强的标题字体 */
}

*,
*::before,
*::after {
    /* 盒子模型设置为 border-box */
    box-sizing: border-box;
    /* 去除默认的 margin 和 padding */
    margin: 0;
    padding: 0;
}

body {
    /* 设置页面字体 */
    font-family: var(--body-font);
    /* 设置基本字体大小 */
    font-size: 16px;
    /* 设置行高 */
    line-height: 1.6;
    /* 设置背景颜色 (深色) */
    background-color: var(--dark-bg);
    /* 设置文字颜色 (浅色) */
    color: var(--light-text);
    /* 平滑字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 可以添加背景图片实现街斗风格 */
    /* background-image: url('../assets/images/street_background.jpg'); */
    /* background-size: cover; */
    /* background-attachment: fixed; */
}

img {
    /* 防止图片溢出容器 */
    max-width: 100%;
    /* 保持图片垂直对齐 */
    vertical-align: middle;
}

a {
    /* 设置链接颜色 */
    color: var(--secondary-color);
    /* 去除下划线 */
    text-decoration: none;
    /* 添加过渡效果 */
    transition: color 0.3s ease;
}

a:hover {
    /* 鼠标悬停时改变颜色 */
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    /* 设置标题字体 */
    font-family: var(--heading-font);
    /* 设置标题外边距 */
    margin-bottom: 0.75em;
    /* 设置标题颜色 */
    color: var(--primary-color);
    /* 标题粗细 */
    font-weight: bold;
    /* 标题行高 */
    line-height: 1.2;
}

h1 { font-size: 2.5rem; } /* H1 字号 */
h2 { font-size: 2rem; }   /* H2 字号 */
h3 { font-size: 1.75rem; } /* H3 字号 */
h4 { font-size: 1.5rem; } /* H4 字号 */

/* --- 布局容器 --- */
main,
header,
footer,
section {
    /* 设置通用内边距 */
    padding: 2rem 5%; /* 上下 2rem, 左右 5% */
}

/* --- 头部样式 --- */
header {
    /* 使用 Flexbox 布局 */
    display: flex;
    /* 子元素两端对齐 */
    justify-content: space-between;
    /* 子元素垂直居中 */
    align-items: center;
    /* 头部背景 */
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    /* 边框底部 */
    border-bottom: 2px solid var(--primary-color);
    /* 固定在顶部 */
    position: sticky;
    top: 0;
    z-index: 1000; /* 确保在最上层 */
    padding-top: 1rem; /* 调整内边距 */
    padding-bottom: 1rem;
}

.logo {
    /* Logo 字体大小 */
    font-size: 1.8rem;
    /* Logo 字体 */
    font-family: var(--heading-font);
    /* Logo 颜色 */
    color: #fff;
    /* Logo 粗细 */
    font-weight: bold;
    /* 文字描边效果 (模拟 3D/闪光) */
    text-shadow: 1px 1px 0px var(--primary-color),
                 -1px -1px 0px var(--secondary-color),
                 0px 0px 8px rgba(255, 255, 255, 0.8); /* 白色发光 */
    /* TODO: 添加更复杂的 3D/闪光效果 (可能需要 JS 或 SVG) */
}

.language-switcher button {
    /* 按钮背景 */
    background-color: var(--secondary-color);
    /* 按钮文字颜色 */
    color: var(--light-text);
    /* 去除边框 */
    border: none;
    /* 内边距 */
    padding: 0.5em 1em;
    /* 外边距 */
    margin-left: 0.5em;
    /* 字体大小 */
    font-size: 0.9rem;
    /* 鼠标指针 */
    cursor: pointer;
    /* 圆角 */
    border-radius: 4px;
    /* 过渡效果 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.language-switcher button:hover {
    /* 鼠标悬停背景 */
    background-color: var(--primary-color);
    /* 轻微放大效果 */
    transform: scale(1.05);
}

/* --- 游戏区域样式 --- */
#game-section {
    /* 设置相对定位，用于按钮定位 */
    position: relative;
    /* 内边距调整 */
    padding: 1rem 5%;
    text-align: center; /* 居中按钮 */
}

#game-container {
    /* 容器宽度 */
    width: 100%;
    /* 设置高度或宽高比 (例如 16:9) */
    /* height: 70vh;  或者使用下面的 padding-top 技巧 */
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 (9 / 16 * 100) */
    background-color: #000; /* iframe 加载时的背景 */
    margin-bottom: 1rem; /* 与按钮的间距 */
}

#game-iframe {
    /* 绝对定位，填充容器 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* 确保无边框 */
}

#fullscreen-button {
    /* 按钮样式 */
    padding: 0.8em 1.5em;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#fullscreen-button:hover {
    /* 鼠标悬停效果 */
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- 主要内容区域 --- */
main {
    /* 可以添加内边距 */
    padding-top: 2rem;
}

main section {
    /* 每个内容区域的下边距 */
    margin-bottom: 3rem;
    /* 背景和边框，区分区域 */
    background-color: rgba(0, 0, 0, 0.3); /* 轻微透明背景 */
    padding: 2rem; /* 区域内边距 */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- 截图画廊样式 --- */
.screenshot-gallery {
    /* 使用 Grid 布局 */
    display: grid;
    /* 列数和间距 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 响应式列 */
    gap: 1.5rem; /* 间距 */
}

.screenshot-gallery figure {
    /* 图片容器 */
    margin: 0;
    text-align: center;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.screenshot-gallery img {
    /* 图片圆角 */
    border-radius: 4px;
    /* 下边距 */
    margin-bottom: 0.5rem;
    border: 2px solid var(--secondary-color); /* 添加边框 */
    /* 设置固定高度 */
    height: 200px; /* 你可以根据需要调整这个值 */
    /* 设置宽度为 100% 以填充容器 */
    width: 100%;
    /* 保持宽高比并填充，裁剪多余部分 */
    object-fit: cover;
    /* 防止图片溢出容器 (现在由 width/height 控制) */
    /* max-width: 100%; */
    /* 保持图片垂直对齐 */
    vertical-align: middle;
}

.screenshot-gallery figcaption {
    /* 标题样式 */
    font-size: 0.9rem;
    color: #ccc; /* 稍浅的文字颜色 */
}

/* --- 特点列表样式 --- */
#features ul {
    /* 去除默认列表样式 */
    list-style: none;
    padding-left: 0;
}

#features li {
    /* 列表项样式 */
    background-color: var(--card-bg);
    padding: 0.8em 1.2em;
    margin-bottom: 0.8em;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color); /* 左侧强调线 */
}

#features li strong {
    /* 强调文字颜色 */
    color: var(--primary-color);
}

/* --- 评论卡片样式 --- */
.review-cards {
    /* 使用 Flexbox 或 Grid 布局 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    /* 卡片背景 */
    background-color: var(--card-bg);
    /* 内边距 */
    padding: 1.5rem;
    /* 圆角 */
    border-radius: 6px;
    /* 边框 */
    border: 1px solid var(--border-color);
    /* 阴影效果 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.review-card p {
    /* 评论文字样式 */
    font-style: italic;
    margin-bottom: 1em;
}

.review-card footer {
    /* 作者样式 */
    text-align: right;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* --- 附加内容区域 --- */
#additional-content article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color); /* 分隔线 */
}

#additional-content article:last-child {
    border-bottom: none; /* 最后一个不需要分隔线 */
}

/* --- 页脚样式 --- */
footer {
    /* 页脚背景 */
    background-color: #111; /* 更深的背景 */
    /* 文字居中 */
    text-align: center;
    /* 文字颜色 */
    color: #aaa;
    /* 内边距 */
    padding: 1.5rem 5%;
    /* 边框顶部 */
    border-top: 2px solid var(--primary-color);
    /* 字体大小 */
    font-size: 0.9rem;
}

footer p {
    /* 段落间距 */
    margin-bottom: 0.5em;
}

footer a {
    /* 链接颜色 */
    color: #ccc;
}

footer a:hover {
    /* 悬停时链接颜色 */
    color: var(--primary-color);
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    /* 调整标题字号 */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    /* 调整头部布局 */
    header {
        flex-direction: column; /* 垂直排列 */
        text-align: center;
    }

    .logo {
        margin-bottom: 0.5rem; /* Logo 和按钮间距 */
    }

    .language-switcher {
        margin-top: 0.5rem; /* 按钮组上边距 */
    }

    /* 调整主体和区域内边距 */
    main,
    header,
    footer,
    section {
        padding: 1.5rem 5%;
    }

    #game-container {
        /* 在小屏幕上可能需要调整高度或比例 */
        /* padding-top: 75%; */ /* 例如调整为 4:3 */
    }
}

@media (max-width: 480px) {
     /* 进一步调整小屏幕样式 */
    body {
        font-size: 15px; /* 略微减小字体 */
    }

    .logo {
        font-size: 1.5rem; /* 减小 Logo 字号 */
    }

    .language-switcher button {
        padding: 0.4em 0.8em; /* 减小按钮内边距 */
        font-size: 0.8rem;
    }

    /* 调整截图和评论卡片的列数 */
    .screenshot-gallery,
    .review-cards {
        grid-template-columns: 1fr; /* 单列显示 */
    }
} 