
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif, Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #651FFF, #0074D9);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #FFC107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

a {
    color: #FFEB3B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF9800;
}

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

/* 模块化设计 */
.module {
    background: linear-gradient(to bottom, #FFC107, #FF9800);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    color: #333;
    transition: transform 0.3s ease;
}

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

/* 图片样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* 渐变按钮 */
.gradient-btn {
    background: linear-gradient(90deg, #00BCD4, #009688);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gradient-btn:hover {
    background: linear-gradient(90deg, #FF5722, #FF9800);
}

/* 代码块样式 */
pre {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

