
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out;
}

header p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #a0c1d1;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 主内容区 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    min-width: 280px;
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
}

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

.module h3 {
    margin-bottom: 10px;
    color: #00FFFF;
}

.module p {
    font-size: 1em;
    color: #d1e8e2;
}

.module .features {
    margin-top: 10px;
}

.module .features li {
    margin-bottom: 5px;
    list-style: disc inside;
    color: #a0c1d1;
}

/* 示例数据展示 */
.sample-article {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.sample-article h2 {
    color: #FF6F61;
    margin-bottom: 15px;
    text-align: center;
}

.sample-article p {
    margin-bottom: 15px;
}

.sample-article pre {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-article code {
    color: #00FFEB;
}

.sample-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

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

.sample-article th {
    background: #333333;
}

.sample-article caption {
    caption-side: top;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .module {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }

    .sample-article {
        padding: 15px;
    }
}

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