
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #2E0249, #FF00C7, #00FFEA);
    color: #F5F5F5;
    background-color: #0F0F0F;
}
header {
    background: linear-gradient(135deg, #2E0249, #FF00C7, #00FFEA);
    padding: 20px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #FFFFFF;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
nav a {
    color: #FF6F00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover {
    color: #00FFEA;
}
.main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.section {
    background: #2E0249;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.section:hover {
    transform: scale(1.05);
}
.section img {
    width: 100%;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: filter 0.3s;
}
.section img:hover {
    filter: brightness(1.2) contrast(1.1);
}
.article {
    grid-column: 1 / -1;
    background: #0F0F0F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.article h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    color: #FFFFFF;
    margin-bottom: 20px;
}
.article p, .article pre, .article table {
    color: #F5F5F5;
    line-height: 1.6;
    margin-bottom: 20px;
}
.article pre {
    background: #2E0249;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    font-family: 'Courier New', monospace;
    color: #00FFEA;
}
.article table {
    width: 100%;
    border-collapse: collapse;
}
.article table, .article th, .article td {
    border: 1px solid #FF6F00;
}
.article th, .article td {
    padding: 10px;
    text-align: left;
}
.footer {
    background: #2E0249;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}
.footer a {
    color: #FF6F00;
    text-decoration: none;
    margin: 0 10px;
}
.footer a:hover {
    color: #00FFEA;
}
/* 响应式设计 */
@media (max-width: 1440px) {
    .main {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    header h1 {
        font-size: 2em;
    }
    nav {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .main {
        padding: 20px 10px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .section {
        padding: 15px;
    }
}
@media (max-width: 320px) {
    nav a {
        font-size: 0.9em;
    }
    .article {
        padding: 20px;
    }
}

