
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #1e3c72, #2a5298, #00d4ff, #00ffcb);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
    overflow-x: hidden;
}

/* 渐变动画关键帧 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.nav-item {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #00ffcb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 主要标题样式 */
.main-title {
    font-size: 48px;
    text-align: center;
    margin-top: 100px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
                 0 0 20px rgba(255, 255, 255, 0.6);
}

/* 模块化内容样式 */
.module {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
.module h2, .module h3 {
    color: #00ffcb;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 203, 0.8);
}

/* 段落样式 */
.module p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 代码块样式 */
.module pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.module code {
    color: #00ffcb;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 按钮样式 */
button {
    background-color: #00d4ff;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

button:hover {
    transform: scale(1.1);
    background-color: #00ffcb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 示例展示样式 */
.reference {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-left: 5px solid #00ffcb;
    margin: 30px 0;
    border-radius: 5px;
}

.reference h2 {
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-title {
        font-size: 42px;
    }
}

@media (max-width: 1200px) {
    .main-title {
        font-size: 36px;
    }
    .navbar {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    .module {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 30px;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 24px;
    }
    .module {
        padding: 15px;
    }
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .main-title {
        font-size: 20px;
    }
    .module h2, .module h3 {
        font-size: 20px;
    }
    .module p {
        font-size: 14px;
    }
}

