/* styles.css */

/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e3f2fd; /* 浅蓝色背景 */
}

header {
    background-color: #2196F3; /* 深蓝色 */
    color: white;
    display: flex;            
    justify-content: space-between; 
    align-items: center;      
    padding: 20px;
    margin: 0;
}

header h1 {
    margin: 0;
    padding-left: 20px;
}

/* 菜单按钮 - 右上角 */
.menu-icon-area {
    display: inline-block;
    padding: 10px; 
    cursor: pointer;
    z-index: 1001; 
}

.menu-icon {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon .bar {
    height: 5px;
    width: 100%;
    background-color: white; /* 菜单按钮的颜色为白色 */
    border-radius: 5px;
}

/* 侧边菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px; /* 初始位置 */
    width: 250px;
    height: 100%;
    background-color: black; /* 背景颜色设置为黑色 */
    color: white; /* 文本颜色设置为白色 */
    overflow-y: auto;
    transition: transform 0.5s ease; 
    transform: translateX(-100%); 
    z-index: 1000; 
}

.side-menu.open {
    transform: translateX(250px); /* 打开菜单时显示 */
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    padding: 10px 20px;
}

.side-menu button {
    background: none;
    border: none;
    color: white; /* 确保按钮文本为白色 */
    text-align: left;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.side-menu button .comment {
    font-size: 12px;
    color: #bbdefb; /* 浅蓝色 */
}

/* 导航栏样式 */
nav {
    text-align: center;
    margin: 20px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 15px;
    transition: transform 0.5s;
}

.comment-box {
    border: 1px solid #2196F3; /* 深蓝色边框 */
    padding: 10px;
    background-color: white; /* 白色背景 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: 200px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    position: relative; 
    overflow: hidden; 
}

.comment-box:hover {
    transform: scale(1.05); /* 轻微放大 */
    box-shadow: 0 0 20px 5px rgba(33, 150, 243, 0.7); /* 添加蓝色光晕效果 */
}

.comment {
    margin-top: 5px;
    font-size: 14px;
    color: #333; /* 深色文本 */
    text-align: center;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #2196F3; /* 深蓝色 */
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}
