
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(90deg, #00ffff, #00ff00);
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffff;
    animation: float 5s infinite ease-in-out;
    opacity: 0.7;
}

.particle:nth-child(odd) {
    background: #ff00ff;
    animation-duration: 7s;
}

.particle:nth-child(even) {
    background: #00ff00;
    animation-duration: 6s;
}

/* 章节样式 */
section {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, #ff0080, #8000ff);
    -webkit-background-clip: text;
    color: transparent;
}

section h3 {
    font-size: 1.8em;
    margin-top: 30px;
    background: linear-gradient(45deg, #00ffea, #ffea00);
    -webkit-background-clip: text;
    color: transparent;
}

/* 图文并茂布局 */
.content-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.content-image img {
    flex: 1 1 300px;
    max-width: 320px;
    margin: 10px;
    border-radius: 10px;
}

.content-image div {
    flex: 2 1 500px;
    padding: 10px;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 示例数据展示 */
.article-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
}

.article-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.article-section p, .article-section li {
    font-size: 1em;
    line-height: 1.8;
    color: #ddd;
}

.article-section code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }

    section h2 {
        font-size: 2.2em;
    }

    section h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .content-image {
        flex-direction: column;
    }

    .content-image img, .content-image div {
        flex: 1 1 100%;
    }
}

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

    section h2 {
        font-size: 1.8em;
    }

    section h3 {
        font-size: 1.4em;
    }

    .particle {
        display: none;
    }
}

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

    section h2 {
        font-size: 1.5em;
    }

    section h3 {
        font-size: 1.2em;
    }
}

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

    section h2 {
        font-size: 1.2em;
    }

    section h3 {
        font-size: 1em;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    position: relative;
    z-index: 2;
}

footer p {
    margin: 0;
    font-size: 1em;
}

