
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4caf50, #2196f3, #9c27b0);
    background-size: 300% 300%;
    animation: gradient-animation 10s ease infinite;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    gap: 20px;
}
h1, h2, h3 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #4caf50, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
a {
    color: #ffeb3b;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #fff;
    text-shadow: 0 0 10px #ffeb3b;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #4caf50, #2196f3, #9c27b0) 1;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
}
.button {
    background: linear-gradient(135deg, #4caf50, #2196f3, #9c27b0);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.button:hover {
    box-shadow: 0 0 10px #ffeb3b;
}
.section {
    padding: 40px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}
.section:nth-child(even) {
    background: rgba(0, 0, 0, 0.6);
}
.section-title {
    text-align: center;
    margin-bottom: 20px;
}
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 40px;
}
.footer p {
    font-size: 0.9rem;
}
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

