
/* 全局样式设定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #1E3A8A, #8B5CF6);
    color: #E5E5E5;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    background: rgba(30, 58, 138, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

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

.navbar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #22C55E;
}

/* 主页横幅样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(270deg, #1E3A8A, #8B5CF6);
    position: relative;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 48px;
    color: #FFFFFF;
    text-align: center;
    max-width: 800px;
}

.hero::after {
    content: '这是一个网页样式设计参考';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    color: #FFFFFF;
    opacity: 0.7;
}

/* 主要内容区样式 */
.main-content {
    padding: 80px 20px 20px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    grid-gap: 40px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    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 6px 12px rgba(0,0,0,0.2);
}

/* 图片样式 */
.module img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.module img:hover {
    transform: scale(1.05);
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

article h2, article h3 {
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
}

article p {
    font-size: 16px;
    color: #E5E5E5;
}

pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
}

pre code {
    color: #22C55E;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(45deg, #047857, #22C55E);
    border: none;
    border-radius: 25px;
    color: #FFFFFF;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(45deg, #22C55E, #047857);
    transform: scale(1.05);
}

/* 客户评价轮播样式 */
.testimonial-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonial {
    min-width: 100%;
    transition: transform 1s ease;
}

@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

.testimonial-container {
    animation: slide 20s infinite;
}

/* 滚动淡入动画样式 */
.fade-in {
    opacity: 0.9;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

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

    .hero h1 {
        font-size: 32px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
}

