/* style.css */

/* --- 字体引入 --- */
/* 从 Google Fonts 引入 Orbitron 字体 (硬核/科技感) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+JP:wght@400;700&family=Noto+Sans+KR:wght@400;700&family=Noto+Sans:wght@400;700&display=swap');

/* --- 基础重置 --- */
* {
    margin: 0; /* 清除外边距 */
    padding: 0; /* 清除内边距 */
    box-sizing: border-box; /* 设置盒模型为 border-box */
}

/* --- 全局样式 --- */
body {
    /* 优先使用 Orbitron，然后是针对各种语言的 Noto Sans，最后是通用无衬线字体 */
    font-family: 'Orbitron', 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
    line-height: 1.6; /* 设置合适的行高 */
    background-color: #1a1a1a; /* 深色背景，营造夜晚/科技感 */
    color: #e0e0e0; /* 浅色文字，保证对比度 */
    font-size: 16px; /* 基础字号 */
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif; /* 标题使用 Orbitron 字体 */
    margin-bottom: 0.8em; /* 标题下方留出间距 */
    color: #00ffff; /* 青色标题，增加科技感 */
}

h1 {
    font-size: 2.5rem; /* H1 大小 */
}

h2 {
    font-size: 2rem; /* H2 大小 */
    border-bottom: 2px solid #00ffff; /* 给 H2 加下划线 */
    padding-bottom: 0.3em; /* 下划线和文字间距 */
    margin-top: 1.5em; /* Section 标题上方间距 */
}

h3 {
    font-size: 1.5rem; /* H3 大小 */
    color: #f0f0f0; /* H3 使用稍暗的颜色 */
     margin-top: 1em;
}

p {
    margin-bottom: 1em; /* 段落下边距 */
    font-family: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif; /* 正文使用 Noto Sans */
}

a {
    color: #00ffff; /* 链接颜色 */
    text-decoration: none; /* 去除下划线 */
}

a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

img {
    max-width: 100%; /* 图片最大宽度不超过父容器 */
    height: auto; /* 高度自动，保持比例 */
    display: block; /* 消除图片底部的空白间隙 */
}

/* --- 页面布局 --- */
.site-header,
.main-content,
.site-footer {
    padding: 1rem 2rem; /* 上下 1rem，左右 2rem 的内边距 */
}

/* 限制主要内容区域宽度并居中 */
.main-content {
    max-width: 1200px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
}

/* --- 页面头部 (Header) --- */
.site-header {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    background-color: #0f0f0f; /* 头部背景稍暗 */
    border-bottom: 2px solid #00ffff; /* 底部边框 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 1rem; /* 元素间距 */
}

.logo {
    margin: 0; /* 清除 H1 的默认 margin */
    font-size: 1.8rem; /* 调整 Logo 字号 */
    text-shadow: 0 0 5px #00ffff; /* 添加文字辉光效果 */
}

/* 语言选择器 */
.language-selector select {
    padding: 0.5rem; /* 内边距 */
    background-color: #2a2a2a; /* 背景色 */
    color: #e0e0e0; /* 文字颜色 */
    border: 1px solid #00ffff; /* 边框 */
    border-radius: 4px; /* 圆角 */
    font-family: inherit; /* 继承字体 */
    cursor: pointer; /* 鼠标指针样式 */
}

/* --- 游戏区域 (Game Area) --- */
.game-area {
    margin-bottom: 2rem; /* 游戏区域下方间距 */
    text-align: center; /* 按钮居中 */
}

/* Iframe 容器 */
.iframe-container {
    position: relative; /* 用于宽高比控制 */
    width: 100%; /* 宽度撑满 */
    padding-top: 56.25%; /* 16:9 宽高比 (9 / 16 * 100) */
    background-color: #000; /* 加载时的背景色 */
    margin-bottom: 1rem; /* iframe 和按钮间距 */
    overflow: hidden; /* 隐藏溢出 */
}

.iframe-container iframe {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* 覆盖 HTML 中的 frameborder */
}

/* 全屏按钮 */
.fullscreen-btn {
    padding: 0.8rem 1.5rem; /* 内边距 */
    font-size: 1rem; /* 字号 */
    background-color: #00ffff; /* 背景色 */
    color: #1a1a1a; /* 文字颜色 */
    border: none; /* 无边框 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer; /* 鼠标指针 */
    font-family: 'Orbitron', sans-serif; /* 使用标题字体 */
    transition: background-color 0.3s ease; /* 过渡效果 */
}

.fullscreen-btn:hover {
    background-color: #00cccc; /* 悬停颜色变深 */
}

/* --- 内容区域 (Content Sections) --- */
.content-sections section {
    margin-bottom: 2.5rem; /* 每个 section 之间的间距 */
    padding: 1.5rem; /* Section 内部的 padding */
    background-color: rgba(42, 42, 42, 0.5); /* 半透明背景 */
    border-radius: 8px; /* 圆角 */
    border: 1px solid #333; /* 细边框 */
}

/* 截图画廊 (简单网格布局) */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 响应式网格 */
    gap: 1rem; /* 图片间距 */
    margin-top: 1rem;
}

.screenshot-gallery img {
    border: 1px solid #444; /* 图片边框 */
    border-radius: 4px; /* 图片圆角 */
}

/* 评论区域 */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 响应式网格 */
    gap: 1.5rem; /* 评论卡片间距 */
    margin-top: 1rem;
}

.review-card {
    background-color: #2a2a2a; /* 卡片背景 */
    padding: 1rem; /* 内边距 */
    border-radius: 6px; /* 圆角 */
    border-left: 4px solid #00ffff; /* 左侧装饰边框 */
}

.review-card blockquote {
    margin-bottom: 0.5rem; /* 引用和署名间距 */
    font-style: italic; /* 斜体 */
    font-family: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif; /* 评论正文用 Noto Sans */
}

.review-card cite {
    display: block; /* 独占一行 */
    text-align: right; /* 右对齐 */
    font-size: 0.9em; /* 字号稍小 */
    color: #aaa; /* 署名颜色 */
}


/* --- 页面页脚 (Footer) --- */
.site-footer {
    text-align: center; /* 文本居中 */
    padding: 2rem 1rem; /* 内边距 */
    margin-top: 3rem; /* 页脚上方间距 */
    background-color: #0f0f0f; /* 页脚背景 */
    border-top: 1px solid #333; /* 顶部边框 */
    font-size: 0.9em; /* 字号稍小 */
    color: #aaa; /* 文字颜色 */
}

.site-footer p {
    margin-bottom: 0.5rem; /* 段落间距 */
    font-family: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif; /* 页脚使用 Noto Sans */
}

.site-footer a {
    color: #ccc; /* 页脚链接颜色 */
}

.site-footer a:hover {
    color: #00ffff; /* 悬停时颜色 */
}

/* --- 辅助类 --- */
/* 视觉上隐藏元素，但屏幕阅读器可读 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 响应式设计 (简单示例) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .site-header {
        flex-direction: column; /* 头部元素垂直排列 */
        align-items: flex-start; /* 左对齐 */
    }
    .logo {
        font-size: 1.5rem;
    }
    .site-header,
    .main-content,
    .site-footer {
        padding: 1rem; /* 减小内边距 */
    }
    /* 在小屏幕上调整 iframe 容器的高度 */
    .iframe-container {
        padding-top: 75%; /* 调整宽高比为 4:3 */
    }
}

@media (max-width: 480px) {
     .logo {
        font-size: 1.3rem;
     }
     /* 进一步调整 iframe 高度 */
     .iframe-container {
        padding-top: 100%; /* 调整宽高比为 1:1 */
     }
     .screenshot-gallery,
     .reviews-container {
        grid-template-columns: 1fr; /* 单列显示 */
     }
} 