
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f2027, #2c5364);
    color: #dcdde1;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin-top: 2rem;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    padding: 0 1rem;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.card {
    width: calc(33% - 20px);
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background-color: #4cd137;
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin: 1rem;
    font-size: 0.9em;
    overflow-x: auto;
}

code {
    color: #4cd137;
    font-family: monospace;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #4cd137;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background-color: #44bd32;
}

header {
    position: relative;
    height: 300px;
    background: linear-gradient(to bottom, #0f2027, #2c5364);
    animation: gradientMove 15s infinite alternate;
}

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

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #dcdde1;
    margin-top: 2rem;
}

