
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A192F, #171717);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #6C5CE7;
    margin-bottom: 15px;
}
h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 20px;
}
h2 {
    font-size: 2em;
    margin-top: 30px;
}
h3 {
    font-size: 1.75em;
    margin-top: 25px;
}
h4 {
    font-size: 1.5em;
    margin-top: 20px;
}
p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #FFFFFF;
}
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}
code {
    font-family: 'Roboto Mono', monospace;
    color: #00FFA3;
}
a {
    color: #00FFA3;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #6C5CE7;
}
button {
    background: #6C5CE7;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
button:hover {
    background: #00FFA3;
    transform: scale(1.05);
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.tab-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.tab-item.active {
    background: #6C5CE7;
    color: #FFFFFF;
    transform: scale(1.1);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.article-section {
    background: rgba(24, 24, 24, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}
.article-section h2 {
    text-align: center;
    margin-bottom: 20px;
}
.article-section pre {
    background: #1f1f1f;
    color: #00FFA3;
    border-left: 5px solid #6C5CE7;
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
}
@media (max-width: 1440px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}
@media (max-width: 1200px) {
    .tabs {
        flex-direction: row;
    }
}
@media (max-width: 1024px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
}
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    .tab-item {
        width: 80%;
        text-align: center;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    .tabs {
        flex-direction: column;
    }
    .tab-item {
        width: 100%;
    }
}
@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
}

