
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    font-size: 16px; /* 设置基础字体大小 */
    color: #ffffff; /* 设置全局文字颜色为白色 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 采用线性渐变背景色 */
    transition: background 0.5s ease; /* 背景色渐变过渡效果 */
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定导航栏在顶部 */
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    backdrop-filter: blur(10px); /* 磨砂效果 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* 导航栏内边距 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 导航栏阴影 */
    z-index: 1000; /* 确保导航栏在最上层 */
    transition: background 0.3s ease; /* 背景色过渡效果 */
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.7); /* 悬停时加深背景色 */
}

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

.navbar a:hover {
    color: #ff5722; /* 悬停时颜色变化 */
}

/* 主内容区样式 */
.main-content {
    padding: 100px 20px 50px 20px; /* 顶部留出导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: rgba(42, 82, 152, 0.8); /* 内容区背景色 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 文章内容样式 */
article {
    background: #ffffff;
    color: #333333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

article h2, article h3 {
    color: #1e3c72;
    margin-top: 20px;
}

article p {
    line-height: 1.6;
    font-size: 16px;
}

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 图像样式 */
img.decorative {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* CTA按钮样式 */
.cta-button {
    background: linear-gradient(45deg, #ff5722, #ff8a65);
    border: none;
    padding: 15px 30px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(45deg, #ff8a65, #ff5722);
    transform: translateY(-3px);
}

/* 客户评价轮播区域样式 */
.testimonial-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 40px;
    background: #1e3c72;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.testimonial {
    min-width: 100%;
    transition: transform 0.5s ease;
    text-align: center;
}

.testimonial img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.testimonial .position {
    font-style: italic;
    color: #ff5722;
}

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

    .navbar a {
        margin: 10px 0;
        font-size: 18px;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 80px 10px 30px 10px;
    }

    .testimonial-carousel {
        flex-direction: column;
        padding: 20px;
    }
}

/* 代码示例块样式 */
.code-example {
    background: #282c34;
    color: #61dafb;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin: 20px 0;
}

.code-example:hover {
    background: #3c4048;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
}

/* 提示信息样式 */
.notice {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffeb3b;
    color: #333333;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-weight: bold;
}

/* 动画效果 */
@keyframes moveLine {
    0% { background-position: 0%; }
    100% { background-position: 100%; }
}

.split-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3c72, transparent);
    margin: 20px 0;
    animation: moveLine 3s infinite;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #2a5298;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collapsible:hover {
    background-color: #ff5722;
}

.collapsible:after {
    content: '\002B';
    color: white;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2212";
}

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

.content p {
    color: #333333;
    font-size: 16px;
}


