
/* 
整体页面设置，包括背景色、字体、网格布局等 
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体，保持简洁现代 */
    background-color: #F7F9FC; /* 背景使用浅灰色，提升通透感 */
    color: #333; /* 正文字体颜色 */
}

/* 固定导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background-color: #12263F; /* 深蓝色背景，传达专业性 */
    display: flex;
    justify-content: space-around; /* 导航链接均匀分布 */
    padding: 15px 0;
    z-index: 1000; /* 确保导航栏在最上层 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影，增加层次感 */
}

.navbar a {
    color: #F7F9FC; /* 白色字体 */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif; /* 使用Montserrat字体，增强层次 */
    font-weight: 500;
    transition: color 0.3s ease; /* 平滑过渡效果 */
}

.navbar a:hover {
    color: #00BFFF; /* 悬停时字体颜色变化 */
}

/* 主要容器样式，采用网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 每块最小500px，自动适应 */
    gap: 40px; /* 模块之间的间距 */
    padding: 100px 20px 40px; /* 顶部留出导航栏空间 */
}

/* 模块样式，保持独立成块 */
.module {
    background-color: #FFF; /* 白色背景 */
    padding: 20px;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果，增加立体感 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡 */
}

.module:hover {
    transform: translateY(-10px); /* 悬停时稍微上移 */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* 加深阴影 */
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* 使用Montserrat字体 */
    color: #12263F; /* 深蓝色 */
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

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

/* 代码块样式 */
pre {
    background-color: #F0F0F0; /* 灰色背景 */
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #D6336C; /* 点缀色，用于代码 */
}

/* 按钮样式 */
.button {
    background: #00BFFF; /* 亮蓝色背景 */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border-radius: 4px; /* 圆角 */
}

.button:hover {
    background: linear-gradient(45deg, #00BFFF, #FF9500); /* 渐变背景 */
    transform: scale(1.05); /* 放大效果 */
}

/* 图片样式，确保美观的呈现方式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.02); /* 悬停时稍微放大 */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* 加深阴影 */
}

/* 响应式设计，适配不同屏幕 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* 垂直排列导航链接 */
        padding: 10px 0;
    }

    .container {
        grid-template-columns: 1fr; /* 单列布局 */
        padding: 80px 10px 20px;
    }

    img.decorative {
        max-width: 100%; /* 全宽显示 */
    }
}

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

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

/* 数据可视化图表样式 */
.chart-bar {
    fill: #4A278B; /* 辅色调 */
    transition: fill 0.3s ease;
}

.chart-bar:hover {
    fill: #00BFFF; /* 点缀色 */
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* 渐现效果 */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 模块化布局网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12列网格系统 */
    gap: 15px;
    padding: 20px;
}

.grid-item {
    grid-column: span 6; /* 每块占6列 */
    background-color: #FFF;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

/* 三维卡片效果 */
.card {
    perspective: 1000px; /* 3D视角 */
}

.card-inner {
    position: relative;
    width: 300px;
    height: 200px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg); /* 翻转效果 */
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.card-back {
    background-color: #FF9500; /* 点缀色 */
    color: white;
    transform: rotateY(180deg);
}

/* 留白设计，通过间距控制 */
.spacing {
    margin: 20px 0;
}

