
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Neometric', sans-serif;
    color: #4a90e2; /* 霓虹蓝 */
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-top: 40px;
    background: linear-gradient(90deg, #ff79c6, #bd93f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5em;
    margin-top: 60px;
}

h3 {
    font-size: 2em;
    margin-top: 40px;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
    padding: 0 20px;
}

a {
    color: #bd93f9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff79c6;
}

.module {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease-in-out;
}

.module:nth-child(odd) {
    background: linear-gradient(135deg, #1b263b, #415a77);
}

.module:nth-child(even) {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

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

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

.button {
    display: inline-block;
    padding: 15px 30px;
    margin: 20px 0;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
}

.gradient-text {
    background: linear-gradient(90deg, #ff79c6, #bd93f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 1440px) {
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .module {
        flex-direction: column;
    }
    .button {
        width: 100%;
        margin: 10px 0;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    p {
        font-size: 1em;
        padding: 0 10px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
    p {
        font-size: 0.9em;
    }
}

/* 粒子特效 */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: move 5s infinite;
}

@keyframes move {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100vw);
        opacity: 0;
    }
}

/* 示例展示样式 */
.article-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.article-section h2 {
    color: #ff79c6;
}

.article-section pre {
    background: #2d2d2d;
    border-left: 5px solid #ff79c6;
}

.article-section ul {
    list-style: none;
    padding: 0;
}

.article-section ul li::before {
    content: "•";
    color: #ff79c6;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #1b263b;
    color: #fff;
}

.footer a {
    color: #bd93f9;
}

.footer a:hover {
    color: #ff79c6;
}

