﻿/* 保持原有样式不变 */
* {
    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;
    }

/* 案例详情页样式 */
.case-detail-header {
    background: linear-gradient(135deg, #e6f7f3, #fff);
    padding: 40px 0;
    margin-bottom: 60px;
}

.case-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-path {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

    .case-path a {
        color: #666;
        text-decoration: none;
    }

        .case-path a:hover {
            color:  #2563eb;
        }

.case-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

    .case-meta span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .case-meta i {
        color:  #2563eb;
    }

.case-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 60px;
}

.case-banner {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.case-intro {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .case-intro h3 {
        font-size: 22px;
        margin-bottom: 15px;
        color: #333;
    }

    .case-intro p {
        font-size: 16px;
        line-height: 1.8;
        color: #555;
        margin-bottom: 15px;
    }

.case-details {
    margin-bottom: 40px;
}

    .case-details h3 {
        font-size: 22px;
        margin-bottom: 20px;
        color: #333;
    }

.case-image-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.case-image-item {
    border-radius: 8px;
    overflow: hidden;
}

    .case-image-item img {
        width: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

        .case-image-item img:hover {
            transform: scale(1.03);
        }

.case-text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.case-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.case-page-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .case-page-btn:hover {
        background: #dbeafe;
        color:  #2563eb;
    }

    .case-page-btn i {
        font-size: 18px;
    }

.prev-case {
    justify-content: flex-start;
}

.next-case {
    justify-content: flex-end;
}

.case-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.related-cases {
    margin-bottom: 80px;
}

.related-title {
    font-size: 26px;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    display: inline-block;
}

    .related-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 60px;
        height: 3px;
        background-color:  #2563eb;
        border-radius: 2px;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    }

    .related-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.related-info {
    padding: 20px;
}

    .related-info h4 {
        font-size: 18px;
        color: #333;
        margin-bottom: 10px;
        transition: color 0.3s ease;
    }

.related-card:hover .related-info h4 {
    color:  #2563eb;
}

.related-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
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: #dbeafe;
        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;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-title {
        font-size: 26px;
    }

    .case-banner {
        height: 300px;
    }

    .case-content {
        padding: 25px;
    }

    .case-image-group {
        grid-template-columns: 1fr;
    }

    .related-title {
        font-size: 22px;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 14px;
    }

    .contact-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .case-detail-header {
        padding: 30px 0;
    }

    .case-title {
        font-size: 22px;
    }

    .case-banner {
        height: 200px;
    }

    .case-content {
        padding: 15px;
    }

    .case-intro h3, .case-details h3 {
        font-size: 18px;
    }

    .case-intro p, .case-text-content p {
        font-size: 14px;
    }

    .case-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .case-page-btn {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
