
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #ffffff;
}

p {
    line-height: 1.6;
    margin: 20px 0;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* 侧边导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(180deg, #141e30, #243b55);
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 20px 0;
    text-align: center;
}

.navbar a {
    color: #ffffff;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: background 0.3s;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 内容区域 */
.content {
    margin-left: 250px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    overflow: hidden;
}

.section {
    padding: 60px 20px;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
    color: #00d1ff;
}

.section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.code-block {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    max-width: 800px;
    margin: 20px auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #00ffcc;
}

.code-block code {
    display: block;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00d1ff;
    color: #ffffff;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.button:hover {
    background: #00b4d8;
    transform: scale(1.05);
}

/* 渐变按钮 */
.gradient-button {
    background: linear-gradient(45deg, #00d1ff, #00ffcc);
}

.gradient-button:hover {
    background: linear-gradient(45deg, #00b4d8, #00e5b4);
}

/* 图片样式 */
.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

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

    .section h2 {
        font-size: 32px;
    }

    .section p {
        font-size: 17px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        width: 200px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        width: 180px;
    }

    .container {
        flex-direction: column;
    }

    .content {
        margin-left: 0;
    }

    .section {
        padding: 40px 10px;
    }

    .section h2 {
        font-size: 24px;
    }

    .section p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 160px;
    }

    .section h2 {
        font-size: 22px;
    }

    .section p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 140px;
    }

    .section h2 {
        font-size: 20px;
    }

    .section p {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .navbar {
        width: 120px;
    }

    .section h2 {
        font-size: 18px;
    }

    .section p {
        font-size: 12px;
    }
}

/* 粒子动画 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

@keyframes particleMove {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleMove linear infinite;
}


