/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f4f7fa;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #1a2b5f;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00aaff;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 首页轮播Banner */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-btn {
    padding: 12px 30px;
    background: #00aaff;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    background: #007acc;
    transform: translateY(-3px);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    margin: 0 15px;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #00aaff;
}

/* 服务 */
.services {
    padding: 80px 5%;
    text-align: center;
    background: white;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a2b5f;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    border-bottom: 3px solid #00aaff;
}

.services h2:after {
    display: none;
}

.services-intro {
    max-width: 800px;
    margin: 30px auto;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    background: #f4f7fa;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a2b5f;
    padding: 20px;
    border-right: 3px solid #00aaff;
}

.service-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #1a2b5f;
}

.service-icon img[src$=".svg"] {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 图片加载失败时的样式 */
.service-icon img:not([src]), 
.service-icon img[src=""],
.service-icon img[src*="data:image/svg+xml"] {
    opacity: 0.8;
    background: #1a2b5f;
}

.service-icon img:hover {
    transform: scale(1.1);
}

.service-content {
    flex: 1;
    padding: 30px;
}

.service-item h3 {
    font-size: 24px;
    color: #1a2b5f;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #00aaff;
}

.service-item h3:after {
    display: none;
}

.service-item p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.service-item ul {
    margin: 15px 0 15px 20px;
    color: #555;
}

.service-item li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    list-style: none;
    display: flex;
    align-items: center;
}

.service-item li:before {
    display: none;
}

.service-item li {
    position: relative;
    padding-left: 0;
    margin-bottom: 8px;
}

.service-item li span.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00aaff;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.service-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #1a2b5f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.service-btn:hover {
    background: #2a3b6f;
    transform: translateY(-3px);
}

/* 联系我们 */
.contact {
    padding: 80px 5%;
    background: #1a2b5f;
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    border-bottom: 3px solid #00aaff;
}

.contact h2:after {
    display: none;
}

.contact-info {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.contact a:hover {
    color: #7fccff;
    text-decoration: underline;
}

.contact-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: #00aaff;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
    background: #007acc;
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    background: #1a2b5f;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #7fccff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1a2b5f;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }
    
    .services h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-icon {
        flex: 0 0 auto;
        padding: 20px;
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #00aaff;
    }
    
    .service-icon img {
        width: 100px;
        height: 100px;
    }
    
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 28px;
    }
    
    .services,
    .contact {
        padding: 60px 5%;
    }
    
    .services-intro {
        font-size: 16px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-item h3 {
        font-size: 20px;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .prev-btn, .next-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin: 0 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
} 