
/* 基础样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 主色调蓝紫色渐变 */
    color: #ffffff; /* 文字颜色为白色 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00ff7f; /* 绿色点缀色 */
}

/* 移动端导航 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        display: none;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 30px;
        border-radius: 8px;
        padding: 20px;
    }

    .navbar ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

/* 背景极光效果 */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite; /* 渐变动画 */
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px; /* 顶部留出导航空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.5);
}

/* 图片样式 */
.module img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.module img:hover {
    transform: scale(1.05);
}

/* 章节导航 */
.chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-nav li {
    margin: 10px 0;
}

.chapter-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.chapter-nav a:hover {
    color: #ffa500; /* 橙色点缀色 */
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    border-bottom: 2px solid #00ff7f;
    padding-bottom: 10px;
}

h3 {
    font-size: 2em;
    margin-top: 20px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #add8e6;
    margin-bottom: 15px;
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff7f;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.7);
}

td {
    background: rgba(0, 0, 0, 0.5);
}

/* 提示语样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-left: 4px solid #ffa500;
    margin: 20px 0;
    font-size: 18px;
}

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.active, .collapsible:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
}

