/**
 * Template2 - 样式增强
 * 视觉和交互优化
 * 在主样式之后加载
 */

/* ===== 通用区域标题样式 ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: #0f172a;
}

.text-center .section-title {
    display: block;
}

.text-center .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 区域间距优化 ===== */
section {
    padding: 6rem 0;
}

section.py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

section.bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    section.py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .text-center .section-title::after {
        width: 60px;
        bottom: -0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
}

/* ===== 卡片增强 ===== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.card-text {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===== 服务卡片特殊样式 ===== */
.service-card {
    position: relative;
    background: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .card-body {
    padding: 2.5rem;
}

/* ===== 案例/作品卡片 ===== */
.work-card, .news-card {
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover, .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.work-image, .news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f1f5f9;
}

.work-image img, .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-image img,
.news-card:hover .news-image img {
    transform: scale(1.1);
}

.work-content, .news-content {
    padding: 2rem;
}

.work-title, .news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.work-title a, .news-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-title a:hover, .news-title a:hover {
    color: #2563eb;
}

.work-description, .news-excerpt {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===== FAQ 手风琴样式 ===== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.75rem !important;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    border-bottom: none;
}

.accordion-button {
    background: white;
    color: #0f172a;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1.5rem 1.75rem;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    color: #2563eb;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem 1.75rem;
    color: #64748b;
    line-height: 1.8;
    background: white;
}

/* ===== 客户评价卡片 ===== */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #dbeafe;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: #0f172a;
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.author-title {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* ===== 合作伙伴优化 ===== */
.partner-logo-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-wrapper:hover {
    transform: scale(1.05);
}

.partner-logo {
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
}

/* ===== Trust Badges 样式优化 ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 180px;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.trust-badge i {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.trust-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-label {
    display: block;
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== 页面头部 Page Header ===== */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* ===== 响应式间距调整 ===== */
@media (max-width: 992px) {
    .card-body, .service-card .card-body {
        padding: 1.75rem;
    }
    
    .work-content, .news-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card-body, .service-card .card-body {
        padding: 1.5rem;
    }
    
    .work-content, .news-content {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .trust-badge {
        min-width: 150px;
        padding: 1.25rem;
    }
    
    .trust-number {
        font-size: 2rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== 滚动行为优化 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 链接悬停效果 ===== */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* ===== 图片加载优化 ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    transition: transform 0.3s ease;
}

/* ===== CTA区域样式 - Template2: 浅色背景风格 ===== */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2,
.cta-section .cta-title {
    color: #0f172a;
    font-weight: 800;
}

.cta-section .cta-subtitle {
    color: #64748b;
}

.cta-section .btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.cta-section .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Swiper 轮播样式优化 ===== */

/* 服务轮播容器 */
.services-slider-wrapper {
    padding: 0 60px;
}

.servicesSwiper {
    padding-bottom: 50px;
}

.servicesSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.servicesSwiper .service-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* 服务轮播导航按钮 */
.services-prev,
.services-next {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #2563eb;
    transition: all 0.3s ease;
}

.services-prev:after,
.services-next:after {
    font-size: 20px;
    font-weight: 700;
}

.services-prev:hover,
.services-next:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* 服务轮播分页器 */
.services-pagination {
    bottom: 0 !important;
}

.services-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.services-pagination .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 30px;
    border-radius: 6px;
}

/* 客户评价轮播容器 */
.testimonials-slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonialsSwiper {
    padding-bottom: 50px;
}

/* 客户评价大卡片样式 */
.testimonial-card-large {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-large::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.testimonial-text-large {
    font-size: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 2.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    text-align: left;
}

.author-info .author-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.author-info .author-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.author-rating {
    display: flex;
    gap: 0.25rem;
}

.author-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/* 客户评价轮播导航按钮 */
.testimonials-prev,
.testimonials-next {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #2563eb;
    transition: all 0.3s ease;
}

.testimonials-prev:after,
.testimonials-next:after {
    font-size: 20px;
    font-weight: 700;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* 客户评价轮播分页器 */
.testimonials-pagination {
    bottom: 0 !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 30px;
    border-radius: 6px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-slider-wrapper,
    .testimonials-slider-wrapper {
        padding: 0 40px;
    }
    
    .services-prev,
    .services-next,
    .testimonials-prev,
    .testimonials-next {
        width: 40px;
        height: 40px;
    }
    
    .services-prev:after,
    .services-next:after,
    .testimonials-prev:after,
    .testimonials-next:after {
        font-size: 16px;
    }
    
    .testimonial-card-large {
        padding: 3rem 2rem;
        min-height: 300px;
    }
    
    .quote-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-text-large {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-author-large {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .services-slider-wrapper,
    .testimonials-slider-wrapper {
        padding: 0 30px;
    }
    
    .testimonial-card-large {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text-large {
        font-size: 1.1rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

