
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
h1 {
    background: linear-gradient(90deg, #1E90FF, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    text-align: center;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
a {
    color: #ff6f61;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    text-align: left;
}
th {
    background: rgba(255, 255, 255, 0.1);
}
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #16213e, #0f3460);
    z-index: 1000;
    padding: 1rem 0;
}
.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header nav a {
    margin: 0 0.5rem;
}
.footer {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    padding: 2rem 0;
    text-align: center;
}
.icon {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

