
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 背景渐变色 */
    color: #ffffff; /* 文字颜色 */
    font-family: 'Roboto', sans-serif; /* 字体 */
    line-height: 1.6;
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.2); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 玻璃拟态效果 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    z-index: 1000;
}

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

.navbar a:hover {
    color: #ffd700; /* 悬停变色 */
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    position: fixed;
    top: 60px;
    left: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
    color: #ffffff;
    margin: 15px 0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    padding: 10px;
    border-radius: 4px;
}

.sidebar a:hover {
    background: rgba(255, 215, 0, 0.3);
    color: #000000;
}

/* 主内容区样式 */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 80px 20px 20px 220px; /* 上、右、下、左内边距 */
}

.card {
    background: rgba(255, 255, 255, 0.1); /* 半透明卡片背景 */
    backdrop-filter: blur(10px); /* 玻璃拟态效果 */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); /* 悬停上移 */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* 文章样式 */
article {
    max-width: 800px;
    margin: 0 auto;
}

article h2, article h3, article h4 {
    color: #ffd700; /* 标题颜色 */
}

article p {
    font-size: 16px;
    margin: 10px 0;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影 */
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05); /* 悬停放大 */
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7); /* 背景颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

code.language-css {
    color: #00ff7f; /* 代码颜色 */
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    background: #1e3c72;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: filter 0.3s ease, background 0.3s ease;
}

.btn:hover {
    filter: blur(2px);
    background: #2a5298;
}

/* 菜单项样式 */
.menu-item {
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.3s ease;
}

.menu-item:hover {
    filter: blur(1px);
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .main-content {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}

/* 导航系统样式 */
.nav-system {
    position: fixed;
    top: 120px;
    left: 220px;
    z-index: 999;
}

.nav-system a {
    display: block;
    margin: 10px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-system a:hover {
    color: #ffd700;
}

/* 动画与过渡效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animated {
    animation: fadeIn 1s ease-in-out;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #ffffff;
}

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

tr:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* 数据可视化3D展示 */
.three-d-chart {
    width: 100%;
    height: 400px;
    perspective: 1000px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.chart-inner {
    width: 100%;
    height: 100%;
    transform: rotateY(20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.chart-inner:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* 高亮文本 */
.highlight {
    color: #ffd700;
}

/* 章节导航系统 */
.chapter-nav {
    margin-bottom: 20px;
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
}

.chapter-nav li {
    margin: 5px 0;
}

.chapter-nav a {
    color: #ffd700;
    text-decoration: none;
    font-size: 16px;
}

.chapter-nav a:hover {
    text-decoration: underline;
}

/* 提示文字样式 */
.reference-note {
    font-size: 18px;
    color: #ffd700;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 2s ease-in-out;
}

