
/* 
 * 全局样式设置
 * 设定网页的基本字体、背景色以及盒模型
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Baskerville', serif; /* 选择复古风格的衬线字体 */
    font-size: 16px; /* 设置基础字体大小 */
    line-height: 1.6;
    background: linear-gradient(135deg, #F5F5DC 70%, #8B5E3C 25%, #FFD700 5%); /* 使用渐变背景，遵循黄金比例配色 */
    color: #333;
    overflow-x: hidden; /* 防止左右滚动条出现 */
}

/* 
 * 导航栏样式
 * 固定在页面顶部，包含网站主要导航链接
 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #8B5E3C; /* 主色：温暖的棕褐色 */
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5em;
    color: #FFF;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: #FFF;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FFD700; /* 点缀色：金色 */
}

/* 
 * 主内容区样式
 * 包含所有主要内容和图片
 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    padding: 5px 5%;
}

/* 
 * 文章内容样式
 * 确保内容的可读性和排版的美观
 */
article {
    grid-column: 2 / span 10;
    background-color: #FFF8DC; /* 辅色：米色 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-image: url('https://images.gptkong.com/demo/sample12.png'); /* 使用示例图片作为背景 */
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

/* 文章标题样式 */
article h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #8B5E3C;
}

article h3 {
    font-size: 1.6em;
    margin-top: 20px;
    color: #556B2F;
}

article section {
    margin-bottom: 15px;
    font-size: 1em;
    color: #333;
    line-height: 1.8;
}

/* 
 * 图片样式
 * 设置圆角、阴影和悬停效果
 */
img.decorative {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 
 * 数据示例模块样式
 * 展示示例数据，采用卡片布局
 */
.data-examples {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.data-examples .card {
    background-color: #F5F5DC; /* 辅色：米色 */
    padding: 15px;
    border: 1px solid #D2B48C;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.data-examples .card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #556B2F;
}

.data-examples .card p {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

/* 
 * 模态窗口样式
 * 用于展示详细内容或交互
 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #FFF8DC;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}

/* 
 * 按钮样式
 * 统一设计风格的按钮
 */
.button {
    background-color: #556B2F; /* 辅色：墨绿色 */
    color: #FFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    background-color: #6B8E23;
}

/* 
 * 响应式设计
 * 确保网页在不同设备上的显示效果
 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .container {
        padding: 100px 2%;
    }

    .data-examples {
        grid-template-columns: 1fr;
    }
}

/* 
 * 章节导航样式
 * 清晰的导航系统，帮助用户快速定位
 */
.chapter-nav {
    position: fixed;
    top: 20%;
    right: 20px;
    background-color: rgba(139, 94, 60, 0.8);
    padding: 10px;
    border-radius: 10px;
}

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

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

.chapter-nav ul li a {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.9em;
}

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

/* 
 * 滚动动画
 * 平滑滚动效果
 */
html {
    scroll-behavior: smooth;
}

/* 
 * 高级CSS3动画和过渡效果
 * 丰富网页的交互体验
 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 
 * 表格样式
 * 用于展示数据的表格设计
 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #D2B48C;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #8B5E3C;
    color: #FFF;
}

table tr:nth-child(even) {
    background-color: #FFF8DC;
}

/* 
 * 按钮链接样式
 * 统一按钮风格，便于识别的互动元素
 */
a.button-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    background-color: #556B2F;
    color: #FFF;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

a.button-link:hover {
    background-color: #6B8E23;
}

/* 
 * 总结
 * 以上CSS代码通过多样化的排版、颜色搭配以及高级的CSS3特性，实现了一个复古风格且现代化的响应式网页设计，满足用户在金融科技领域的多样化需求。
 */

