
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #121212, #1A237E);
    color: white;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 20px 0;
}

p {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin: 10px 0;
    padding: 0 20px;
}

code, pre {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.3);
    color: #29B6F6;
    padding: 5px;
    border-radius: 5px;
    display: block;
    margin: 10px 0;
    overflow-x: auto;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: #651FFF;
    color: white;
}

td {
    color: #29B6F6;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(to bottom, #651FFF, #4FC3F7);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.nav-item {
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #FFD740;
}

/* 主体内容 */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

.hero-banner {
    background: linear-gradient(to right, #651FFF, #29B6F6);
    color: white;
    padding: 50px 0;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
}

/* 辅助栏 */
.right-sidebar {
    float: right;
    width: 200px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: static;
        text-align: center;
    }

    .main-content {
        margin-left: 0;
    }

    .right-sidebar {
        float: none;
        width: 100%;
    }
}

/* 粒子效果 */
.particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: particle-animation 5s infinite linear;
}

@keyframes particle-animation {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(100%);
        opacity: 1;
    }
}

