
/* 
整体页面的基本样式设置
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1E273D 70%, #F8F9FA 25%, #FFA726 5%);
    color: #1E273D;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background: rgba(30, 39, 61, 0.8); /* 半透明背景 */
    backdrop-filter: blur(5px); /* 磨砂玻璃效果 */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
    color: #F8F9FA;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFA726; /* 点缀色用于悬停效果 */
}

/* 主要内容容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 保证每个板块至少500px宽 */
    gap: 20px;
    padding: 100px 20px 20px 20px; /* 顶部留出导航栏空间 */
}

/* 文章区域样式 */
article {
    background: rgba(248, 249, 250, 0.8); /* 用于区分背景 */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 标题样式 */
h2, h3 {
    color: #1E273D;
    margin-bottom: 15px;
    font-weight: bold;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* 段落样式 */
p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #1E273D;
}

/* 代码块样式 */
pre code {
    display: block;
    padding: 15px;
    background: #2D3A4B;
    color: #F8F9FA;
    border-radius: 5px;
    overflow-x: auto;
    position: relative;
    font-size: 14px;
}

/* 代码块前置标题 */
pre code::before {
    content: "代码示例";
    display: block;
    background: #FFA726;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 0;
}

/* 按钮样式 */
.button {
    background-color: #FFA726;
    border: none;
    padding: 10px 20px;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    background-color: #FF9800;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

/* 卡片式设计 */
.card {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 80px 10px 10px 10px;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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

/* 折叠面板样式 */
.collapsible {
    background-color: #FFA726;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #FF9800;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 数据可视化图表样式 */
.line-chart {
    position: relative;
    width: 100%;
    height: 300px;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.pie-chart {
    position: relative;
    width: 100%;
    height: 300px;
    background: #FFFFFF;
    border-radius: 50%;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

/* 提示信息样式 */
.notice {
    background: #FFA726;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

