/* 全局样式，去除默认边距和内边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF; /* 纯白背景 */
    color: #000000; /* 纯黑文字 */
}

/* 导航栏样式 */
.navbar {
    background: #FFFFFF; /* 白色背景 */
    border-right: 4px solid #000000; /* 黑色边框 */
    box-shadow: 0 0 20px rgba(255, 204, 128, 0.3);
    width: 20%;
    height: 85vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-radius: 0 20px 0 0; /* 添加圆角，更可爱 */
}

.navbar ul {
    list-style-type: none;
}

.navbar ul li {
    padding: 15px;
    transition: all 0.3s ease;
    border-bottom: 2px solid #000000; /* 黑色分隔线 */
    margin: 0 10px; /* 左右留出间距 */
}

.navbar ul li:last-child {
    border-bottom: none; 
}

.navbar ul li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px; /* 悬停时添加圆角 */
}

.navbar ul li a {
    color: #000000; /* 黑色文字 */
    font-size: 16px; /* 增大文字大小 */
    text-decoration: none;
    display: block;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2); /* 调整文字阴影 */
    text-align: center; /* 文字居中 */
}

.navbar ul li .sub-menu {
    display: block;
    background-color: #ede8e8bc;
    border-radius: 10px; /* 子菜单圆角 */
    margin-top: 10px;
    border: 2px solid #000000;
    padding: 5px; /* 内边距 */
}

.navbar ul li .sub-menu li {
    padding: 10px;
    border-bottom: 1px solid #BBDEFB; /* 更浅的蓝色分隔线 */
    margin: 0; /* 子菜单列表项取消左右间距 */
}

.navbar ul li .sub-menu li:last-child {
    border-bottom: none;
}

/* 左侧页脚样式 */
.left-footer {
    background: #FFFFFF; /* 白色背景 */
    border-top: 4px solid #000000;
    box-shadow: 0 0 20px rgba(255, 160, 122, 0.3);
    width: 20%;
    height: 15vh;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 20px 0; /* 页脚添加圆角 */
    padding: 10px; /* 增加内边距 */
}

.left-footer ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 3列 */
    grid-template-rows: repeat(1, 1fr); /* 2行 */
    gap: 20px; /* 网格间距 */
    width: 100%; /* 使用100%宽度，撑满父容器 */
    height: 100%; /* 使用100%高度，撑满父容器 */
    align-items: center; /* 垂直居中 */
}

.left-footer ul li {
    text-align: center; /* 文字居中 */
}

.left-footer ul li a {
    color: #000000; /* 黑色文字 */
    font-size: 14px; /* 调整文字大小 */
    font-weight: 500; /* 中等字重 */
    text-decoration: none;
    font-size: 14px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2); /* 调整文字阴影 */
    text-align: center; /* 文字居中 */
}

/* iframe 所在容器样式 */
.content {
    position: fixed;
    top: 1%;
    right: 1%;
    bottom: 5px;
    left: calc(20% + 5px); 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF; /* 白色背景 */
    border: 2px solid #000000; /* 增加黑色边框 */
    border-radius: 15px; /* 增加圆角半径 */
    box-shadow: 0 0 20px rgba(221, 160, 221, 0.1); /* 调整阴影 */
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px; /* 让 iframe 也有圆角，和容器保持一致 */
}
