
/* 基础样式与渐变背景 */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #007acc 0%, #8e44ad 50%, #3498db 100%);
    animation: aurora-flow 10s infinite;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 1em;
}

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

a:hover {
    color: #ff4d4d;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 代码块样式 */
pre {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

code {
    color: #e74c3c;
}

/* 按钮样式 */
button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 叠加图层效果 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

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

    h1, h2, h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 12px;
    }
}

