
/* 页面全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #0A192F, #000C1F);
    color: #ffffff;
    line-height: 1.6;
}

/* 标题与段落的字体调整 */
h1, h2, h3, h4 {
    font-weight: bold;
    color: #645DD7;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #c7d2e5;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.navbar h1 {
    font-size: 24px;
    margin: 0;
}

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

.navbar li a {
    text-decoration: none;
    color: #645DD7;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #38E54D;
}

/* 主体内容区域 */
.main-content {
    margin-top: 70px;
}

/* 模块化设计 */
.module {
    padding: 50px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module:nth-child(even) {
    background: rgba(10, 25, 47, 0.9);
}

.module-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.module-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.module-item {
    flex: 1 1 calc(50% - 20px);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.module-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    alt="";
}

/* 文章展示区 */
.article-section {
    background: linear-gradient(to right, #0A192F, #000C1F);
    padding: 50px;
}

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

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content pre {
    background: #0D1117;
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    border-radius: 4px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #645DD7;
    padding: 8px;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-item {
        flex: 1 1 100%;
    }

    body {
        font-size: 14px;
    }

    .article-section {
        padding: 20px;
    }
}

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

.module-item {
    animation: fadeIn 1s ease-in-out;
}

button {
    background: #645DD7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

