
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.8), transparent), linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
    color: #ffffff;
    line-height: 1.6;
}

/* 背景动画关键帧 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏样式 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* 主幕板块 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero .cta-button {
    padding: 15px 30px;
    background-color: rgba(76, 175, 80, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #4CAF50;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.7);
}

/* 模块展示部分 */
.modules {
    padding: 100px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.6);
}

.module-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    width: 300px;
    margin: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.module-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

.module-card ul {
    list-style: none;
    padding: 0;
}

.module-card ul li {
    font-size: 16px;
    margin-bottom: 8px;
}

.module-card ul li b {
    color: #ff9800;
}

/* 文章展示部分 */
.article-section {
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.05);
}

.article-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.article-section p, .article-section li {
    font-size: 18px;
    color: #f0f0f0;
}

.article-section pre {
    background-color: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #ff9800;
}

.article-section .sample-article {
    border: 2px solid #ff5722;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.article-section .sample-article h2 {
    color: #ffffff;
}

.article-section .sample-article h3, .article-section .sample-article h4 {
    color: #ff9800;
}

.article-section .sample-article ul li b {
    color: #ffa726;
}

.article-section .sample-article pre {
    background-color: rgba(0,0,0,0.8);
}

.article-section .sample-article code {
    color: #ffcc80;
}

/* 图片展示部分 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 40px;
    background-color: rgba(0, 0, 0, 0.6);
}

.image-gallery img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 18px;
    color: #ffffff;
}

/* 页脚样式 */
footer {
    padding: 20px 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 16px;
}

/* 响应式设计 */
@media(max-width: 1440px) {
    .hero h1 {
        font-size: 40px;
    }
}

@media(max-width: 1200px) {
    .module-card {
        width: 45%;
    }

    header {
        padding: 15px 30px;
    }

    .modules {
        padding: 80px 30px;
    }
}

@media(max-width: 1024px) {
    .module-card {
        width: 45%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media(max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    .modules {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
    }

    .module-card {
        width: 80%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media(max-width: 480px) {
    header {
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .module-card {
        width: 90%;
    }
}

@media(max-width: 320px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 12px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

