
/* 全局样式设置，包括字体、颜色和基础布局 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027 70%, #203a43 25%, #2c5364 5%);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 统一的标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #ecf0f1;
    margin-bottom: 20px;
}

/* 段落样式，确保可读性 */
p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 按钮样式，包含悬停动画 */
.button {
    background: #2ecc71;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    transform: scale(1.05);
}

/* 导航栏样式，固定在顶部 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

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

.navbar a:hover {
    color: #2ecc71;
}

/* 侧边导航样式，响应式显示 */
.sidebar {
    position: fixed;
    top: 60px;
    right: 0;
    width: 250px;
    background: rgba(44, 62, 80, 0.95);
    padding: 20px;
    display: none;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

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

.sidebar a:hover {
    color: #2ecc71;
}

/* 卡片式布局样式 */
.core-module {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 100px 20px 40px 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 45%;
    margin: 10px 0;
    padding: 20px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 信任感展示区样式 */
.trust-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: rgba(44, 62, 80, 0.8);
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #2ecc71;
    padding: 15px 25px;
    margin: 10px 0;
    width: 60%;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s ease;
}

.testimonial:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 图表和数据可视化区域样式 */
.chart {
    width: 100%;
    height: 400px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 40px 0;
}

.chart svg {
    width: 100%;
    height: 100%;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 微动画应用于按钮 */
.button {
    transition: background 0.5s ease, transform 0.3s ease;
}

.button:hover {
    background: #3498db;
    transform: translateY(-5px);
}

/* 响应式设计媒体查询 */
@media (max-width: 768px) {
    .core-module {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .sidebar {
        display: none;
    }

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

    .navbar a {
        margin: 5px 0;
    }

    .trust-section {
        padding: 20px 10px;
    }

    .testimonial {
        width: 90%;
    }

    .chart {
        height: 300px;
    }
}

/* 图片样式，包含圆角、阴影和悬停效果 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 底部导航样式 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px;
    text-align: center;
    color: #ecf0f1;
    font-size: 14px;
}

.footer a {
    color: #2ecc71;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #27ae60;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 100px;
    left: 10px;
    background: rgba(44, 62, 80, 0.8);
    padding: 10px;
    border-radius: 5px;
}

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

.chapter-nav a:hover {
    color: #2ecc71;
}

/* 代码块样式，区别于文章内容 */
pre code {
    display: block;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #2ecc71;
    margin-bottom: 20px;
}

