
/* 
整体页面样式
采用HTML5和CSS3技术，实现响应式设计和视觉美学。
主色调为蓝色和紫色，辅以橙色和粉色点缀，营造科技感与梦幻感。
使用Flexbox和Grid布局，确保内容模块化且易于导航。
*/

/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E3C72, #2A5298, #8E2DE2, #4A00E0);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    line-height: 1.6;
}

/* 渐变背景动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD93D;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FFD93D;
}

/* 侧边导航栏 */
.sidebar {
    position: fixed;
    top: 80px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #FFD93D;
}

/* 面包屑导航 */
.breadcrumb {
    margin-top: 80px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
}

/* 主要内容区 */
.main-content {
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.main-content .sidebar {
    display: none;
}

.main-content .content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.main-content .content p {
    font-size: 16px;
    color: #FFFFFF;
}

.main-content .content pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.main-content .content code {
    color: #4A90E2;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #6A82FB, #FC5C7D);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #FC5C7D, #6A82FB);
    transform: scale(1.05);
}

/* 卡片容器 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
}

/* 几何图形 */
.geometric-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #FF6B6B, #FFD93D);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transition: transform 0.5s ease, background 0.5s ease;
}

.geometric-shape:hover {
    transform: scale(1.2) rotate(45deg);
    background: linear-gradient(45deg, #6BFFB8, #93D9FF);
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
    margin-right: 10px;
}

.icon:hover {
    stroke: #FFD93D;
}

/* 响应式设计 */
@media (max-width: 1920px) {
    .main-content {
        padding: 100px 60px;
    }

    .navbar {
        padding: 20px 60px;
    }

    .breadcrumb {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 80px 20px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar {
        display: none;
    }

    .navbar .logo {
        font-size: 20px;
    }

    .breadcrumb {
        margin-top: 60px;
    }
}

/* 折叠区域 */
.collapsible {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: 10px;
    border-radius: 10px;
}

.collapsible:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-collapsible {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
}

.code-example {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-example code {
    color: #4A90E2;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px 0;
    font-size: 18px;
    color: #FFD93D;
}

/* 数据可视化图表 */
.chart {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    position: absolute;
    bottom: 0;
    width: 40px;
    background: #FFD93D;
    animation: grow 2s ease forwards;
}

@keyframes grow {
    from { height: 0; }
    to { height: 100%; }
}

/* 动画优化 */
.animated-element {
    will-change: transform, opacity;
}

