/* Service Page Styles */

/* Page Header */
.service-header {
    background: linear-gradient(rgba(0, 0, 32, 0.7), rgba(0, 0, 32, 0.7)), url('../images/service-banner.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.page-header-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    font-size: 16px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* Service Introduction */
.service-intro {
    padding: 80px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.subtitle {
    color: #0d6efd;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.intro-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Service Sections */
.service-section {
    padding: 80px 0;
    overflow: hidden;
}

.bg-light {
    background-color: #f8f9fa;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

/* 偶数行（左图右文）的样式 */
.bg-light .service-content {
    flex-direction: row;
}

/* 奇数行（左文右图）的样式 */
.service-section:not(.bg-light) .service-content {
    flex-direction: row-reverse;
}

/* 设置文本和图片区域的样式 */
.service-text {
    flex: 1;
    min-width: 45%;
    position: relative;
    z-index: 2;
}

.service-image {
    flex: 1;
    min-width: 45%;
    position: relative;
    z-index: 1;
}

/* 确保图片填充容器并保持比例 */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: scale(1.02);
}
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 400px;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.02);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.service-text:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.3);
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.service-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.service-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
}

.service-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #0d6efd;
}

.service-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.service-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-btn:hover {
    background-color: #0d6efd;
    color: #fff;
}

.service-btn:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.9)), url('../images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/circuit-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background-color: #fff;
    color: #0d6efd;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .service-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .service-content {
        flex-direction: column;
    }
    
    .service-content.reverse {
        flex-direction: column;
    }
    
    .service-text, .service-image {
        width: 100%;
        min-width: 100%;
    }
    
    .service-image {
        margin-top: 40px;
        order: 2;
    }
    
    .service-text {
        order: 1;
    }
    
    .service-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 36px;
    }
    
    .title {
        font-size: 30px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .service-header {
        padding: 80px 0;
    }
    
    .page-header-content h1 {
        font-size: 30px;
    }
    
    .service-intro {
        padding: 60px 0;
    }
    
    .title {
        font-size: 26px;
    }
    
    .intro-description, .cta-content p {
        font-size: 16px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .service-image img {
        height: 280px;
    }
}