
/* 全局样式定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #1C2D4B);
    color: #E0E0E0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle, rgba(10,25,47,1) 0%, rgba(0,0,0,0.7) 100%);
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 3rem;
    color: #64FFDA;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #8A2BE2;
}

.shape {
    width: 200px;
    height: 200px;
    background: #8A2BE2;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    position: absolute;
    top: -50px;
    right: -50px;
    transform: rotate(-45deg);
    animation: float 10s infinite alternate;
}

@keyframes float {
    from { transform: rotate(-45deg) translateY(0); }
    to { transform: rotate(-45deg) translateY(20px); }
}

.article-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article {
    background: #0A192F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.article h2 {
    font-size: 2rem;
    color: #64FFDA;
    margin-bottom: 20px;
}

.article p {
    font-size: 1rem;
    color: #E0E0E0;
    margin-bottom: 15px;
}

.code-block {
    background: #1C2D4B;
    color: #64FFDA;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #8A2BE2;
    background: #0A192F;
    margin-top: auto;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .article h2 {
        font-size: 1.5rem;
    }

    .code-block {
        font-size: 0.8rem;
    }
}

