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

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;700&display=swap');

/* body样式 */
body {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #121212, #1E1E1E);
    overflow-x: hidden;
    padding: 20px;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 1000;
}

nav a {
    color: #4C6EF5;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFA500;
}

/* 主页标题样式 */
.header {
    text-align: center;
    margin-top: 120px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5em;
    color: #4C6EF5;
    text-shadow: 0 0 10px #4C6EF5, 0 0 20px #FFA500;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* 各模块样式 */
.section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* 示例文章样式 */
.sample-article {
    border-top: 2px solid #4C6EF5;
    padding-top: 20px;
    background-color: rgba(255, 255, 255, 0.05);
}

.sample-article h2,
.sample-article h3,
.sample-article h4 {
    font-family: 'Bebas Neue', sans-serif;
    color: #4C6EF5;
    margin-bottom: 15px;
}

.sample-article p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.sample-article pre {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.sample-article code {
    color: #FFA500;
    font-family: 'Roboto', sans-serif;
}

/* 图片画廊样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 30px;
    color: #AAAAAA;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #4C6EF5;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header {
        font-size: 3em;
    }

    nav a {
        font-size: 1em;
    }

    .image-gallery img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 1200px) {
    .header {
        font-size: 2.8em;
    }

    .image-gallery img {
        width: 130px;
        height: 130px;
    }
}

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

    .section {
        padding: 25px;
    }

    .image-gallery img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .header {
        font-size: 2.5em;
    }

    .image-gallery img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 2em;
    }

    nav a {
        font-size: 0.9em;
    }

    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 320px) {
    .header {
        font-size: 1.8em;
    }

    .image-gallery img {
        width: 70px;
        height: 70px;
    }
}

