/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    background-color: #000; /* 背景为黑色 */
    color: #fff;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* 防止页面滚动 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 游戏容器 */
.container {
    width: 800px;
    height: 600px;
    position: fixed; /* 固定定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 顶部div容器 */
.top-div-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
}

/* 标题居中最上 */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 80px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

/* 游戏画布 */
#game-board {
    display: block;
    margin: 0 auto;
    border: 2px solid #fff;
    background-color: #f0f0f0;
    position: relative;
}

/* 底部按钮区域 */
.buttons-section {
    position: relative;
    margin-top: 20px;
    text-align: center;
    z-index: 5;
}

/* 调整按钮大小 */
button {
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 调整绿色包裹元素大小 */
.green-title-wrapper,
.green-list-wrapper,
.green-score-wrapper,
.green-highscore-wrapper {
    padding: 3px 6px;
    border-radius: 3px;
}

.green-title-wrapper h3 {
    font-size: 0.9rem;
}

.green-list-wrapper li {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.green-score-wrapper div,
.green-highscore-wrapper div {
    font-size: 0.9rem;
}

/* 游戏画布 */
#game-board {
    display: block;
    margin: 0 auto;
    border: 2px solid #fff;
    background-color: #f0f0f0;
}

/* 成绩容器 */
.scores-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 20px;
}

/* 最左侧区域 */
.left-section {
    position: absolute;
    left: -30px; /* 修改为-30px，向左移动30px */
    top: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 最右侧区域 */
.right-section {
    position: absolute;
    right: -30px; /* 修改为-30px，向右移动30px */
    top: 200px;
    text-align: right;
}

.right-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.right-section ul {
    list-style: none;
}

.right-section li {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

/* 底部按钮区域 */
.buttons-section {
    position: relative;
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* 游戏结束弹窗 */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #333;
    width: 200px;  /* 从100px修改为200px */
    height: 200px; /* 从100px修改为200px */
    border-radius: 10px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* 从10px修改为20px */
    box-sizing: border-box;
}

.popup-content h2 {
    margin-bottom: 10px; /* 从5px修改为10px */
    font-size: 24px; /* 从12px修改为24px */
}

.popup-content p {
    margin-bottom: 6px; /* 从3px修改为6px */
    font-size: 20px; /* 从10px修改为20px */
}

.popup-content button {
    margin-top: 10px; /* 从5px修改为10px */
    padding: 6px 16px; /* 从3px 8px修改为6px 16px */
    font-size: 16px; /* 从8px修改为16px */
}

/* 添加绿色包裹元素的样式 */
.green-title-wrapper {
    background-color: #4CAF50;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: block; /* 修改为block而不是inline-block */
}

.green-list-wrapper {
    background-color: #4CAF50;
    padding: 10px 15px;
    border-radius: 5px;
    display: block; /* 修改为block而不是inline-block */
    text-align: right;
}

这样修改后，这两个元素将强制各自占据一行，实现明确的上下分布效果。
.green-list-wrapper ul {
    margin: 0;
    padding: 0;
}

.green-list-wrapper li {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    list-style: none;
}

/* 分数和最高分的绿色包裹样式 */
.green-score-wrapper {
    background-color: #4CAF50;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.green-score-wrapper div {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.green-highscore-wrapper {
    background-color: #4CAF50;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
}

.green-highscore-wrapper div {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

/* 移除原来的right-section和left-section下的样式，避免冲突 */
.right-section h3 {
    /* 清空原来的样式 */
    font-size: inherit;
    margin-bottom: inherit;
    color: inherit;
}

.right-section ul {
    /* 清空原来的样式 */
    list-style: inherit;
}

.right-section li {
    /* 清空原来的样式 */
    font-size: inherit;
    margin-bottom: inherit;
    color: inherit;
}

.left-section div {
    /* 清空原来的样式，让绿色包裹样式生效 */
    font-size: inherit;
    color: inherit;
}