
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #00008B, #4B0082, #00FF00);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    color: #fff;
    line-height: 1.6;
    padding: 20px;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #00FF7F;
}
h1 {
    text-align: center;
    text-shadow: 0 0 10px #8A2BE2, 0 0 20px #8A2BE2;
}
a {
    color: #00FF7F;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFD700;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.grid-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: scale(1.05);
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #00FF7F;
}
th {
    background: rgba(0, 0, 0, 0.6);
    color: #FFD700;
}
td {
    background: rgba(0, 0, 0, 0.4);
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #8A2BE2;
    color: #fff;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
    background: #00FF7F;
}
.header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 1000;
}
.menu-icon {
    cursor: pointer;
    display: none;
    font-size: 24px;
}
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

