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

/* 字体设置 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEEB, #90EE90);
    background-size: cover;
    padding: 20px;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #2F4F4F;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #555;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

nav a {
    text-decoration: none;
    color: #2F4F4F;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #6A5ACD;
    transform: scale(1.1);
}

/* 主内容 */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.module h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #2F4F4F;
}

.module p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

.module pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.module code {
    font-family: 'Courier New', Courier, monospace;
    color: #2F4F4F;
}

/* 示例数据展示 */
.example-data {
    grid-column: 1 / -1;
    background: rgba(245, 245, 245, 0.9);
    padding: 20px;
    border-left: 5px solid #2F4F4F;
    border-radius: 10px;
}

.example-data h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #2F4F4F;
}

.example-data ul {
    list-style: disc inside;
    margin-bottom: 10px;
}

.example-data li {
    margin-bottom: 5px;
    color: #555;
}

.example-data pre {
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    margin: 30px 0;
    font-size: 1.2em;
    color: #2F4F4F;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #555;
    font-size: 1em;
}

/* 适应不同屏幕尺寸 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0;
    }

    .module h2 {
        font-size: 1.5em;
    }

    .reference-note {
        font-size: 1em;
    }
}

@media (min-width: 1440px) {
    body {
        padding: 40px;
    }

    header h1 {
        font-size: 3em;
    }

    .module h2 {
        font-size: 2em;
    }
}

