
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #FFFFFF; /* 背景设为白色 */
    color: #333333; /* 文字颜色为深灰 */
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

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

.navbar a:hover {
    color: #00AEEF; /* 电光蓝悬停效果 */
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #00AEEF;
}

/* 主内容区样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 0 auto; /* 顶部预留导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    grid-gap: 40px;
}

/* 模块块样式 */
.section {
    background-color: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333333;
}

.section p {
    font-size: 16px;
    color: #555555;
}

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

.section img:hover {
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

code {
    color: #D63384;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.btn-primary {
    background-color: #00AEEF;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: #008ecf;
    transform: scale(1.05);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #E0E0E0;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
    color: #333333;
}

tr:hover {
    background-color: #f9f9f9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

/* 滚动动画 */
.dynamic-background {
    background: linear-gradient(135deg, #00AEEF, #F5A623);
    animation: backgroundMove 10s infinite linear;
}

@keyframes backgroundMove {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 图表样式 */
.chart {
    width: 100%;
    height: 400px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    position: relative;
}

.chart:hover .tooltip {
    display: block;
}

.tooltip {
    display: none;
    position: absolute;
    background: rgba(0,0,0,0.7);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
    top: 10px;
    left: 10px;
    font-size: 14px;
}

