
/* 通用样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4B6587, #A5B4FC);
    color: #F9FAFB;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.navbar h1 {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #10B981;
}

.navbar a {
    color: #F9FAFB;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.navbar a:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: scale(1.05);
}

/* 主体内容样式 */
.main-content {
    margin-left: 250px;
    padding: 40px;
    background: rgba(249, 250, 251, 0.1);
    backdrop-filter: blur(10px);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.main-content h2, .main-content h3, .main-content h4 {
    color: #FF5722;
}

.main-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-content pre {
    background: rgba(75, 101, 135, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.main-content code {
    color: #A5B4FC;
    font-family: 'Courier New', Courier, monospace;
}

/* 卡片样式 */
.card {
    background: rgba(75, 101, 135, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    color: #F9FAFB;
    margin-bottom: 20px;
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: scale(1.02);
    background: rgba(75, 101, 135, 0.9);
}

/* 按钮样式 */
.button {
    background-color: #10B981;
    color: #F9FAFB;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    background-color: #FF5722;
}

/* 渐变背景动画 */
.gradient-background {
    background: linear-gradient(to bottom, #4B6587, #A5B4FC);
    animation: gradientMove 15s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.2;
    animation: particlesMove 20s linear infinite;
    z-index: -1;
}

@keyframes particlesMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-1000px, 1000px); }
}

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

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

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

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: relative;
        backdrop-filter: none;
    }
    .navbar a {
        display: inline-block;
        margin: 10px;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-content h2 {
        font-size: 1.5em;
    }
    .main-content p, .main-content pre {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .navbar h1 {
        font-size: 1.2em;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

