
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a0dab, #8b00ff);
    color: #ffffff;
    overflow-x: hidden;
}

/* 渐变背景与动态粒子效果 */
.main-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0dab, #8b00ff);
    overflow: hidden;
}

.particle-effect {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-500px); opacity: 0; }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 13, 171, 0.5);
    display: flex;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(26, 13, 171, 1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
}

.navbar a:hover {
    text-shadow: 0 0 10px #00e676, 0 0 20px #00e676;
}

/* 主要内容样式 */
.container {
    padding: 100px 50px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00e676;
    text-shadow: 0 0 5px #00e676;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

a {
    color: #00e676;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.button {
    background-color: #1a0dab;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border-radius: 5px;
}

.button:hover {
    box-shadow: 0 0 10px #1a0dab, 0 0 20px #1a0dab, 0 0 30px #1a0dab;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 示例数据展示 */
.sample-data {
    background: rgba(26, 13, 171, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-data h2 {
    color: #ff9800;
}

.sample-data ul {
    list-style-type: disc;
    margin-left: 20px;
}

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

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 80px 40px 40px 40px;
    }

    .navbar a {
        font-size: 16px;
        margin: 0 10px;
    }

    h1 {
        font-size: 36px;
    }

    p {
        font-size: 16px;
    }
}

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

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }
}

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

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .navbar a {
        font-size: 14px;
    }
}

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

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .navbar a {
        font-size: 12px;
        margin: 0 8px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 10px 10px 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    .navbar a {
        font-size: 10px;
        margin: 0 5px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 20px 5px 5px 5px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 14px;
    }

    .navbar a {
        font-size: 8px;
        margin: 0 3px;
    }

    p {
        font-size: 12px;
    }
}

