/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 设置背景图片 */
    background-image: url('lumen.png');
    background-size: contain; /* 让图片完整显示在页面内 */
    background-position: center; /* 背景图片居中显示 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    background-attachment: fixed; /* 背景图片固定，不随页面滚动 */
}

/* 白天模式样式 */
body.light-mode {
    background-color: rgba(244, 244, 244, 0.9); /* 增加透明度，使背景图片可见 */
    color: #333;
}

/* 黑夜模式样式 */
body.dark-mode {
    background-color: rgba(30, 30, 30, 0.9); /* 增加透明度，使背景图片可见 */
    color: black; /* 修改为黑色 */
}

/* 导航栏样式 */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

/* 白天模式导航栏 */
body.light-mode nav {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 黑夜模式导航栏 */
body.dark-mode nav {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

/* 白天模式导航链接 */
body.light-mode nav ul li a {
    color: #333;
}

/* 黑夜模式导航链接 */
body.dark-mode nav ul li a {
    color: #e0e0e0; /* 保持原来的颜色，不改为黑色 */
}

nav ul li a:hover {
    color: #ffd700;
}

/* 通用内容区域样式 */
.content {
    padding: 100px 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8); /* 内容区域增加背景色和透明度，方便阅读文字 */
    border-radius: 10px; /* 内容区域添加圆角 */
    margin-bottom: 30px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 15px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

/* 白天模式页脚 */
body.light-mode footer {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* 黑夜模式页脚 */
body.dark-mode footer {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
    color: black; /* 修改为黑色 */
}

/* 模式切换按钮样式 */
.mode-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode .mode-toggle {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .mode-toggle {
    color: black; /* 修改为黑色 */
}

.mode-toggle:hover {
    background-color: #ffd700;
    color: black;
}