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

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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A2463, #1C1C38);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #39FF14;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 300;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #39FF14;
}

/* 主内容 */
main {
    flex: 1;
    padding: 80px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 提示信息 */
.notice {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #FF038D;
}

/* 内容容器 */
.content {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 文章样式 */
article {
    margin-bottom: 40px;
}

article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #7B2CBF;
    margin-bottom: 20px;
}

article h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #39FF14;
    margin-top: 20px;
    margin-bottom: 10px;
}

article h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #FF038D;
    margin-top: 15px;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 15px;
    color: #ffffff;
}

article ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Roboto', monospace;
    color: #39FF14;
}

/* 示例数据展示 */
.example-data {
    margin-top: 40px;
}

.example-data h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #03C9FF;
    margin-bottom: 20px;
}

.example-data ul {
    list-style: square inside;
    color: #ffffff;
}

.example-data ul li {
    margin-bottom: 10px;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .content {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .content {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .navbar ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.2rem;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .notice {
        font-size: 1rem;
    }

    article h2 {
        font-size: 1.3rem;
    }

    .image-gallery img {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .content {
        padding: 15px;
    }

    article h2 {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-200px); opacity: 0; }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #39FF14;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

.button {
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    background: #7B2CBF;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: #FF038D;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.button:hover::after {
    width: 200px;
    height: 200px;
}

