
/* 
整体页面采用深蓝与黑色为主色调，辅以霓虹蓝和紫色作为辅助色，点缀色使用青色以增强视觉冲击力。
主色用于背景和主要内容区域，辅色用于按钮、链接等交互元素，点缀色用于强调和装饰。
*/

/* 基础样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 正文字体 */
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); /* 主背景渐变 */
    color: #ecf0f1; /* 文字颜色 */
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto Black', sans-serif; /* 标题字体 */
    color: #ffffff;
    margin: 20px 0 10px 0;
}

/* 正文段落 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 高亮文本 */
.text-highlight {
    color: #00c6ff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
}

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

.navbar a {
    text-decoration: none;
    color: #00c6ff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #9b59b6;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px 20px; /* 留出导航栏空间 */
}

/* 卡片式布局 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

/* 图片样式 */
img.decorative {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    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.7);
}

/* 代码块样式 */
pre code {
    display: block;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00c6ff;
}

/* 按钮样式 */
button {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #9b59b6, #3498db);
    transform: scale(1.05);
}

/* 链接样式 */
a.internal-link {
    color: #00c6ff;
    text-decoration: none;
    border-bottom: 1px dotted #00c6ff;
}

a.internal-link:hover {
    color: #9b59b6;
    border-bottom: 1px solid #9b59b6;
}

/* 导航链接的放大效果 */
.navbar a.internal-link:hover {
    transform: scale(1.1);
}

/* 分隔线样式 */
.separator {
    height: 2px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    margin: 40px 0;
    border: none;
}

/* 渐变线条 */
.gradient-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3498db, #9b59b6, #8e44ad);
    margin: 30px 0;
    border: none;
}

/* 留白区块 */
.spacing {
    padding: 50px 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    img.decorative {
        width: 100%;
        height: auto;
    }

    .container {
        padding: 100px 10px 30px 10px;
    }
}

/* 动态背景效果 */
.dynamic-background {
    background: linear-gradient(270deg, #00c6ff, #0072ff, #00c6ff);
    background-size: 600% 600%;
    animation: moveLight 10s ease infinite;
}

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

/* 粒子动画 */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    animation: particleMove 5s linear infinite;
}

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

/* 固定侧边导航栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
    z-index: 999;
}

.dashboard {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* 条形图样式 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 10px;
}

.bar {
    width: 30px;
    background: linear-gradient(to top, #3498db, #9b59b6);
    transition: height 0.3s ease;
}

.bar:hover {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        padding: 15px;
    }

    .dashboard {
        width: 250px;
        top: 10px;
        right: 10px;
    }

    .card {
        border-radius: 8px;
    }
}

