﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}
/* 导航栏：突出科技感，固定顶部 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    transition: all 0.3s ease;
}

    nav.scrolled {
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb; /* 科技蓝，强化品牌 */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-logo i {
        font-size: 28px;
    }

.nav-links {
    display: flex;
    align-items: center;
}

    .nav-links a {
        margin: 0 15px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s, transform 0.3s;
        position: relative;
    }

        .nav-links a:hover {
            color: #2563eb;
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #2563eb;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a.active {
            color: #2563eb;
        }

            .nav-links a.active::after {
                width: 100%;
            }

.contact-btn {
    background: #2563eb;
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    margin-left: 10px;
}

    .contact-btn:hover {
        background: #1d4ed8;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    }

    .contact-btn::after {
        display: none;
    }

/* 服务头部横幅 */
.service-banner {
    background: linear-gradient(135deg, #dbeafe, #fff);
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin-bottom: 80px;
}

    .service-banner::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url('https://picsum.photos/id/180/1200/400');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        top: 0;
        left: 0;
        z-index: 0;
    }

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.service-banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
}

.service-banner p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* 服务内容区域 */
.service-container {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

/* 服务导航标签 */
.service-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.service-tab {
    padding: 10px 20px;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    border: 1px solid transparent;
}

    .service-tab:hover {
        color: #2563eb;
    }

    .service-tab.active {
        background: #2563eb;
        color: white;
    }

/* 服务详情卡片 */
.service-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .service-detail.visible {
        opacity: 1;
        transform: translateY(0);
    }

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-icon {
    width: 80px;
    height: 80px;
    background-color: #dbeafe;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .detail-icon i {
        font-size: 36px;
        color: #2563eb;
    }

.detail-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.detail-title p {
    color: #666;
    font-size: 16px;
}

/* 服务内容 */
.service-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.service-text {
    flex: 1;
    min-width: 300px;
}

    .service-text p {
        font-size: 16px;
        color: #666;
        line-height: 1.8;
        margin-bottom: 20px;
    }

.service-features {
    margin: 30px 0;
}

    .service-features h3 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #333;
    }

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .feature-item i {
        color: #2563eb;
        margin-top: 5px;
    }

    .feature-item span {
        color: #555;
        line-height: 1.6;
    }

.service-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .service-image:hover img {
        transform: scale(1.03);
    }

/* 服务流程 */
.service-process {
    margin: 60px 0;
}

    .service-process h3 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 40px;
        color: #333;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }

        .service-process h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: #2563eb;
            border-radius: 2px;
        }

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -25px;
    width: calc(100% + 50px);
    height: 2px;
    background-color: #eee;
    z-index: 0;
}

.process-step:last-child::before {
    display: none;
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.process-step p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 相关案例 */
.related-cases {
    margin: 80px 0;
}

    .related-cases h3 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 40px;
        color: #333;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }

        .related-cases h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: #2563eb;
            border-radius: 2px;
        }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    cursor: pointer;
}

    .case-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .case-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .case-card:hover img {
        transform: scale(1.05);
    }

.case-info {
    padding: 25px;
}

.case-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.case-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* 咨询模块 */
.consult-section {
    background: linear-gradient(135deg, #dbeafe, #f8f9fa);
    padding: 60px 20px;
    border-radius: 15px;
    margin: 80px 0;
    text-align: center;
}

    .consult-section h3 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #333;
    }

    .consult-section p {
        font-size: 16px;
        color: #666;
        max-width: 600px;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

.consult-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .consult-btn:hover {
        background: #1d4ed8;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    }

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background-color: #2563eb;
    }

.footer-col p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #2563eb;
            padding-left: 5px;
        }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .footer-contact i {
        color: #2563eb;
    }

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #aaa;
}

/* 在线客服悬浮按钮 */
.floating-service {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 998;
}

.service-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

    .service-toggle:hover {
        transform: scale(1.1);
        background: #1d4ed8;
    }

.service-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
}

    .service-panel.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .service-panel h4 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }

.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

    .service-option:hover {
        background: #eff6ff;
        transform: translateX(5px);
    }

    .service-option i {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

.service-qq i {
    background: #12b7f5;
    color: white;
}

.service-phone i {
    background: #2563eb;
    color: white;
}

.service-wechat i {
    background: #7bb32e;
    color: white;
}

.service-info h5 {
    font-size: 16px;
    margin-bottom: 3px;
}

.service-info p {
    font-size: 14px;
    color: #666;
}

.wechat-image-container {
    text-align: center;
    padding: 10px 0;
}

    .wechat-image-container img {
        width: 100%;
        max-width: 220px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        margin: 10px 0;
    }
/* 动画效果 */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-banner h1 {
        font-size: 34px;
    }

    .service-detail {
        padding: 25px;
    }

    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .process-step {
        min-width: 150px;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 14px;
    }

    .contact-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service-banner h1 {
        font-size: 28px;
    }

    .service-tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .service-detail {
        padding: 20px 15px;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step::before {
        display: none;
    }

    .process-step {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

        .process-step:last-child {
            border-bottom: none;
        }

    .nav-links {
        display: none;
    }
}

