
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1E274F, #3498DB);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    margin: 20px 0;
}

p {
    font-size: 16px;
    color: #C0C0C0;
    text-align: justify;
    margin: 10px 0;
}

a {
    color: #FF9800;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #1E274F, #2C3E50);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF9800;
}

.navbar .menu {
    display: flex;
    gap: 20px;
}

.navbar .menu a {
    color: #FFFFFF;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar .menu a:hover {
    background: linear-gradient(to right, #FF9800, #FFD700);
    color: #1E274F;
}

/* 主容器布局 */
.main-container {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module {
    background: linear-gradient(to bottom, #2C3E50, #1E274F);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 示例数据展示模块 */
.data-module {
    background: linear-gradient(to right, #3498DB, #1E274F);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.data-module li {
    background: #2C3E50;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    color: #FFFFFF;
}

.data-module li strong {
    color: #FF9800;
}

/* 文章排版样式 */
.article-container {
    background: #1E274F;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.article-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.article-container pre {
    background: #2C3E50;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
}

.article-container code {
    color: #FF9800;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .article-container pre {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    .module img {
        height: 150px;
        object-fit: cover;
    }
}

