
/* 基础样式设置 */
/* 设置页面的背景颜色、字体和基础排版 */
body {
    margin: 0;
    padding: 0;
    background-color: #F3F4F6; /* 浅灰色背景 */
    color: #333333; /* 深灰色文字 */
    font-family: 'Open Sans', sans-serif; /* 正文字体 */
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 导航栏样式 */
/* 使用固定定位，确保导航栏始终可见 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(243, 244, 246, 0.9); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    z-index: 1000;
}

/* 导航链接样式 */
/* 增加悬停时的颜色变化效果 */
.navbar a {
    color: #1E3A8A; /* 主色调深蓝色 */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #F97316; /* 橙色悬停效果 */
}

/* 主要内容区域 */
/* 使用流式布局和响应式设计，确保内容自适应不同屏幕 */
.main-content {
    padding: 6em 2em 2em 2em; /* 顶部留出导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 章节标题样式 */
/* 使用Montserrat字体，增强专业感 */
h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1E3A8A;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

/* 段落样式 */
/* 确保文字清晰易读 */
p {
    font-size: 1em;
    margin-bottom: 1em;
    color: #333333;
}

/* 代码块样式 */
/* 美化代码显示，增强可读性 */
pre code {
    display: block;
    padding: 1em;
    background-color: #F3F4F6;
    border-left: 5px solid #F97316;
    overflow-x: auto;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
}

pre code::before {
    content: "代码示例";
    position: absolute;
    top: -1.5em;
    left: 0;
    background-color: #F97316;
    color: white;
    padding: 0.2em 0.5em;
    font-size: 0.8em;
    border-radius: 0 0 5px 5px;
}

/* 图片装饰样式 */
/* 添加圆角、阴影和悬停放大效果 */
.decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式网格布局 */
/* 使用Grid布局展示服务卡片 */
.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    padding: 4em 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 2em;
    text-align: center;
}

.service-card:hover {
    transform: scale(1.05);
    background-color: #F3F4F6; /* 浅灰色背景变化 */
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1E3A8A;
    margin-bottom: 1em;
}

.service-card p {
    color: #333333;
}

/* 按钮样式 */
/* 突出行动呼吁按钮 */
.cta-button {
    display: inline-block;
    padding: 0.75em 2em;
    background-color: #F97316;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #D97314; /* 橙色深色悬停效果 */
}

/* 折叠区域样式 */
/* 设计可展开的补充信息区域 */
.collapsible {
    background-color: #1E3A8A;
    color: white;
    cursor: pointer;
    padding: 1em;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    margin-top: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #163a7a;
}

.content {
    padding: 0 1em;
    display: none;
    overflow: hidden;
    background-color: #F3F4F6;
    border-radius: 0 0 5px 5px;
}

.content p {
    color: #333333;
}

/* 底部样式 */
/* 简洁的页脚设计 */
.footer {
    background-color: #1E3A8A;
    color: white;
    text-align: center;
    padding: 2em 0;
    margin-top: 4em;
}

.footer a {
    color: #F97316;
    text-decoration: none;
    margin: 0 0.5em;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #D97314;
}

/* 图片网格装饰 */
/* 布局中装饰图片的排列 */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 2em;
}

.image-grid img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* 导航栏响应式设计 */
/* 当屏幕宽度较小时，调整导航栏布局 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .services-section {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .main-content {
        padding: 6em 1em 1em 1em;
    }
}

/* 过渡效果 */
/* 为页面元素添加平滑过渡 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 去除链接默认下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* 增强页面的视觉层次感 */
.section {
    padding: 4em 0;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

.section:nth-child(odd) {
    background-color: #F3F4F6;
}


