
/* 整体页面的主背景采用线性渐变，营造深邃的宇宙氛围 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77);
    color: #ffffff;
    transition: background 0.5s ease;
}

/* 导航栏样式，固定在顶部，半透明背景 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.8);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 导航按钮，采用霓虹色彩，悬停时出现光晕效果 */
.nav-button {
    margin: 0 15px;
    padding: 10px 20px;
    background: radial-gradient(circle, #00ffcc, #00aacc);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.nav-button:hover {
    box-shadow: 0 0 20px #00ffcc, 0 0 30px #00ffcc;
    transform: scale(1.05);
}

/* 主容器，使用网格布局，间距和填充适应不同屏幕 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 50px 50px 50px;
    max-width: 1920px;
    margin: 0 auto;
}

/* 模块卡片样式，半透明背景，圆角，阴影效果 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 模块的标题样式，使用Orbitron字体，突出科技感 */
.module h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffcc;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

/* 模块的描述文本，使用柔和的白色 */
.module p {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
    text-align: justify;
}

/* 图像样式，圆角，阴影，悬停时放大 */
.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

/* 文章内容的样式，与模块区分开来 */
article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 文章中的标题样式 */
article h2, article h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffcc;
    margin-top: 20px;
    margin-bottom: 10px;
}

article h2 {
    font-size: 2.5em;
    text-align: center;
}

article h3 {
    font-size: 2em;
}

/* 段落样式，调整行高和字体大小 */
article p {
    font-size: 1em;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
}

/* 代码块样式，与正文区分，背景深色，圆角，内边距 */
article pre {
    background: #1b263b;
    border-radius: 10px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 高亮显示关键部分 */
.highlight {
    background: rgba(0, 255, 204, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 图片库的样式，使用Flexbox布局 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.image-gallery img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.7);
}

/* 提示信息的样式，使用醒目颜色和字体 */
.prompt-message {
    text-align: center;
    font-size: 1.5em;
    color: #ff6ec4;
    margin: 40px 0;
}

/* 响应式设计，适配各种屏幕尺寸 */
@media (max-width: 768px) {
    .container {
        padding: 100px 20px 20px 20px;
    }

    .module {
        padding: 15px;
    }

    .image-gallery img {
        width: 100%;
        height: auto;
    }

    article h2 {
        font-size: 2em;
    }

    article h3 {
        font-size: 1.5em;
    }
}

/* 添加全局过渡效果 */
* {
    transition: all 0.3s ease;
}

