
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #E8F3E8, #F4F9F4, #A6D8D8);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundAnimation 15s linear infinite;
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 布局容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.3), transparent);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

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

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

header .cta-button {
    background-color: #FFB457;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

header .cta-button:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

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

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

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

.module .icon {
    width: 50px;
    height: 50px;
    fill: #A6D8D8;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.module:hover .icon {
    transform: scale(1.2);
    fill: #FFD700;
}

.module a {
    color: #FFB457;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.module a:hover {
    color: #FFD700;
}

/* 示例展示样式 */
.example-display {
    grid-column: 1 / -1;
    background-color: #FFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.example-display h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.example-display article {
    margin-bottom: 20px;
}

.example-display h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 15px;
}

.example-display pre {
    background-color: #F4F9F4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 10px;
}

.example-display code {
    font-family: 'Roboto Mono', monospace;
    color: #555;
    font-size: 0.95em;
}

.example-display ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #555;
}

.example-display a {
    color: #FFB457;
    text-decoration: none;
}

.example-display a:hover {
    color: #FFD700;
}

/* 图片样式 */
img.deco {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

img.icon-img {
    width: 50px;
    height: 50px;
}

/* 动画粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes moveUp {
    from { transform: translateY(100px); opacity: 1; }
    to { transform: translateY(-100px); opacity: 0; }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #FFB457;
    border-radius: 50%;
    animation: moveUp 5s infinite linear;
}

/* 代码块样式 */
.code-block {
    background-color: #F4F9F4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Roboto Mono', monospace;
    color: #333;
    font-size: 0.95em;
}

/* 页脚样式 */
footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 320px) {
    header h1 {
        font-size: 1.8em;
    }
    .module h2 {
        font-size: 1.5em;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    .module h2 {
        font-size: 1.6em;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    .module h2 {
        font-size: 1.7em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header h1 {
        font-size: 2.4em;
    }
    .module h2 {
        font-size: 1.8em;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    header h1 {
        font-size: 2.6em;
    }
    .module h2 {
        font-size: 1.9em;
    }
}

@media (min-width: 1201px) {
    header h1 {
        font-size: 3em;
    }
    .module h2 {
        font-size: 2em;
    }
}

