/* 基本重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 盒子模型计算方式 */
}

html, body {
    height: 100%; /* 让html和body占据整个视口高度 */
    font-family: sans-serif; /* 默认使用无衬线字体 */
    line-height: 1.6; /* 设置基础行高 */
    color: #333; /* 默认文字颜色 */
    background-color: #f0f8ff; /* 设置一个淡雅的背景色 (AliceBlue) */
}

body {
    display: flex; /* 使用Flexbox布局 */
    flex-direction: column; /* 主轴方向为垂直 */
}

main {
    flex-grow: 1; /* 让main区域占据剩余空间 */
    padding: 20px;
    max-width: 1200px; /* 限制主体内容最大宽度 */
    margin: 0 auto; /* 居中显示 */
    width: 100%;
}

/* 链接样式 */
a {
    color: #007bff; /* 链接颜色 */
    text-decoration: none; /* 去除下划线 */
}

a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 标题样式 */
h1, h2, h3 {
    margin-bottom: 15px; /* 标题下边距 */
    color: #ff6347; /* 标题颜色 (Tomato) */
    font-family: 'Pacifico', cursive; /* H1/H2/H3 使用活泼字体 */
}

h1 {
    font-size: 2.5em; /* H1 字体大小 */
    text-align: center; /* 居中 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* 添加轻微阴影 */
}

h2 {
    font-size: 2em; /* H2 字体大小 */
    border-bottom: 2px solid #add8e6; /* 添加下边框 (LightBlue) */
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5em; /* H3 字体大小 */
    color: #4682b4; /* H3 颜色 (SteelBlue) */
}

/* 段落和列表样式 */
p, ul {
    margin-bottom: 15px; /* 段落和列表下边距 */
}

ul {
    padding-left: 20px; /* 列表左内边距 */
}

li {
    margin-bottom: 8px; /* 列表项下边距 */
}

/* 头部样式 */
.site-header {
    background-color: #ffb6c1; /* 头部背景色 (LightPink) */
    padding: 15px 30px; /* 内边距 */
    display: flex; /* 使用Flexbox布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 底部阴影 */
}

.logo {
    font-family: 'Pacifico', cursive; /* 使用活泼字体 */
    font-size: 2.2em; /* Logo字体大小 */
    color: #fff; /* Logo文字颜色 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* 文字阴影 */
    /* 简化的扑克牌/动漫风格尝试 */
    font-weight: bold;
}

/* 语言切换器样式 */
.language-switcher button {
    background-color: #ff69b4; /* 按钮背景色 (HotPink) */
    color: white; /* 文字颜色 */
    border: none; /* 无边框 */
    padding: 8px 15px; /* 内边距 */
    margin-left: 5px; /* 左外边距 */
    border-radius: 15px; /* 圆角 */
    cursor: pointer; /* 鼠标指针样式 */
    transition: background-color 0.3s ease; /* 背景色过渡效果 */
    font-size: 0.9em;
}

.language-switcher button:hover {
    background-color: #ff1493; /* 鼠标悬停背景色 (DeepPink) */
}

/* 游戏区域样式 */
#game-section {
    margin-bottom: 30px; /* 下边距 */
    text-align: center; /* 内部元素居中（按钮）*/
}

.iframe-container {
    width: 100%;
    /* 保持16:9的宽高比，可根据实际iframe调整 */
    /* padding-top: 56.25%;  */
    /* 或者使用固定高度 */
    height: 70vh; /* 设置一个相对视口的高度 */
    max-height: 600px; /* 最大高度限制 */
    position: relative; /* 用于绝对定位iframe */
    background-color: #eee; /* iframe加载时的背景色 */
    border-radius: 10px; /* 圆角 */
    overflow: hidden; /* 隐藏超出部分 */
    margin: 0 auto 15px auto; /* 居中并添加下边距 */
}

.iframe-container iframe {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%; /* 填充容器宽度 */
    height: 100%; /* 填充容器高度 */
    border: none; /* 移除iframe边框 */
}

/* 全屏按钮样式 */
#fullscreen-button {
    background-color: #32cd32; /* 按钮背景色 (LimeGreen) */
    color: white; /* 文字颜色 */
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* 圆角 */
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#fullscreen-button:hover {
    background-color: #228b22; /* 鼠标悬停背景色 (ForestGreen) */
}

/* 内容区域 Section 样式 */
section {
    background-color: #fff; /* Section 背景色 */
    padding: 25px; /* 内边距 */
    margin-bottom: 25px; /* 下边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* 轻微阴影 */
}

/* 特性列表样式 */
#features ul {
    list-style: none; /* 移除默认列表样式 */
    padding-left: 0;
}

#features li {
    background-color: #e0ffff; /* 列表项背景色 (LightCyan) */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 5px solid #40e0d0; /* 左侧边框 (Turquoise) */
}

/* 评论区域样式 */
#reviews .review {
    background-color: #fffacd; /* 评论背景色 (LemonChiffon) */
    border: 1px dashed #ffd700; /* 虚线边框 (Gold) */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

#reviews .review p {
    margin-bottom: 8px; /* 评论内容下边距 */
    font-style: italic; /* 斜体 */
}

#reviews .review span {
    display: block; /* 块级元素 */
    text-align: right; /* 右对齐 */
    font-size: 0.9em;
    color: #888; /* 评论者名称颜色 */
}

/* 底部样式 */
.site-footer {
    background-color: #add8e6; /* 底部背景色 (LightBlue) */
    color: #333; /* 文字颜色 */
    padding: 20px; /* 内边距 */
    text-align: center; /* 文字居中 */
    font-size: 0.9em; /* 字体大小 */
    margin-top: 30px; /* 与主体内容的上边距 */
}

.footer-content p {
    margin-bottom: 5px; /* 段落下边距 */
}

.footer-content a {
    color: #191970; /* 链接颜色 (MidnightBlue) */
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 在屏幕宽度小于768px时应用的样式 */
    .site-header {
        flex-direction: column; /* 头部内容垂直排列 */
        padding: 15px;
    }

    .logo {
        margin-bottom: 10px; /* Logo下边距 */
        font-size: 1.8em; /* 调整Logo字体大小 */
    }

    .language-switcher {
        margin-top: 10px; /* 语言切换器上边距 */
    }

    .language-switcher button {
        padding: 6px 10px; /* 调整按钮内边距 */
        font-size: 0.8em;
    }

    main {
        padding: 15px; /* 调整主体内边距 */
    }

    h1 {
        font-size: 2em; /* 调整H1字体大小 */
    }

    h2 {
        font-size: 1.6em; /* 调整H2字体大小 */
    }

    h3 {
        font-size: 1.3em; /* 调整H3字体大小 */
    }

    .iframe-container {
        height: 50vh; /* 调整iframe容器高度 */
    }
}

@media (max-width: 480px) {
    /* 在屏幕宽度小于480px时应用的样式 */
    .logo {
        font-size: 1.6em;
    }

    .language-switcher button {
        display: block; /* 按钮块级显示 */
        width: 100%; /* 宽度100% */
        margin: 5px 0; /* 上下外边距 */
    }

    .iframe-container {
        height: 45vh; /* 进一步调整iframe容器高度 */
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    section {
        padding: 15px; /* 调整section内边距 */
    }
} 