
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 页面背景及字体设置 */
body {
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 渐变背景色，符合未来主义风格 */
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px; /* 正文字号 */
    overflow-x: hidden; /* 防止左右滚动条 */
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* 半透明背景 */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #ff6ec4; /* 点缀色悬停效果 */
}
/* 侧边导航样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    background: #1c1c1c;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
.sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}
.sidebar a:hover {
    color: #ff6ec4;
}
/* 主内容区样式 */
.main-content {
    margin-left: 220px;
    padding: 80px 40px 40px 40px;
}
.section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}
.section-content {
    position: relative;
    z-index: 1;
}
/* 标题样式 */
.section h2 {
    font-size: 24px; /* h2标题字号 */
    margin-bottom: 20px;
    color: #ff6ec4; /* 点缀色标题 */
    position: relative;
}
.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6ec4, #7873f5);
    margin-top: 10px;
}
/* 段落样式 */
.section p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ffffff;
}
/* 图片样式 */
.section img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}
/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
pre code {
    color: #ff6ec4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}
/* 按钮样式 */
.button {
    padding: 10px 20px;
    background: radial-gradient(circle, #ff6ec4, #7873f5);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.button:hover {
    background: radial-gradient(circle, #ff7ce5, #8984f7);
    transform: translateY(-5px);
}
/* 动态粒子背景 */
.particle {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    animation: particles 5s infinite;
}
@keyframes particles {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}
/* 手风琴组件样式 */
.accordion {
    background: #1e1e1e;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}
.accordion-header {
    padding: 15px;
    cursor: pointer;
    background: #2a2a2a;
    position: relative;
}
.accordion-header::after {
    content: '\002B'; /* 加号 */
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}
.accordion.active .accordion-header::after {
    transform: rotate(45deg); /* 变成减号 */
}
.accordion-content {
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    background: #1c1c1c;
}
.accordion.active .accordion-content {
    max-height: 200px;
    padding: 15px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-220px);
    }
    .main-content {
        margin-left: 20px;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin-left: 0;
        margin-top: 10px;
    }
}

