
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #0A1F44, #181825);
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}
a {
    color: #FF8CFA;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    position: relative;
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(90deg, #6B3CC9, #FF8CFA);
    color: #fff;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-45deg);
    animation: headerGlow 8s infinite alternate;
}
@keyframes headerGlow {
    from { transform: rotate(-45deg) translateX(-10%); }
    to { transform: rotate(-45deg) translateX(10%); }
}
.header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.section {
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}
.section:nth-child(even) {
    background: linear-gradient(to right, #0A1F44, #181825);
}
.section:nth-child(odd) {
    background: linear-gradient(to left, #0A1F44, #181825);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.1);
}
.article-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.article-content pre {
    background: #0A1F44;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article-content code {
    color: #39FF14;
    font-family: 'Courier New', monospace;
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .article-content {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

