/* ========================================
   我们的服务页面专用样式
   ======================================== */

/* 幻灯片容器 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide:nth-child(1) {
    background-color: #667eea;
}

.slide:nth-child(2) {
    background-color: #764ba2;
}

.slide:nth-child(3) {
    background-color: #667eea;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 75vw;
    width: 75%;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: #667eea;
    transform: scale(1.2);
}

/* 服务介绍区域 */
.services-intro {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-intro-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
}

.services-intro-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-intro-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.services-intro-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 服务卡片网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-card ul li {
    color: #666;
    font-size: 15px;
    line-height: 2;
    padding: 5px 0;
}

.service-card .btn-consult {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.service-card .btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 服务详情区域 - 交替布局 */
.service-detail {
    padding: 100px 0;
    background: #ffffff;
}

.service-detail:nth-child(even) {
    background: #f8f9fa;
}

.service-detail:nth-child(odd) {
    background: #ffffff;
}

.service-detail-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-detail.reverse .service-detail-container {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    min-height: 400px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.service-detail-image svg {
    width: 500px;
    height: 500px;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h3 {
    font-size: 36px;
    color: #333;
    margin-bottom: 25px;
}

.service-detail-content p {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.service-detail-content ul li {
    font-size: 16px;
    color: #666;
    line-height: 2.2;
    padding-left: 30px;
    position: relative;
}

.service-detail-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.service-detail-content .btn-learn-more {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.service-detail-content .btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* CTA 区域 */
.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.services-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.services-cta .services-intro-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
}

.services-cta .cta-button {
    display: inline-block;
    padding: 15px 45px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.services-cta .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 入场动画特效 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-detail-image {
    animation: scaleIn 0.8s ease-out;
}

.service-detail-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-detail-content h3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.service-detail-content p {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.service-detail-content ul li {
    animation: fadeInUp 0.5s ease-out both;
}

.service-detail-content ul li:nth-child(1) {
    animation-delay: 0.5s;
}

.service-detail-content ul li:nth-child(2) {
    animation-delay: 0.6s;
}

.service-detail-content ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.service-detail-content ul li:nth-child(4) {
    animation-delay: 0.8s;
}

.service-detail-content .btn-learn-more {
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* 滚动触发动画 */
.service-detail {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-detail.visible .service-detail-image {
    animation: scaleIn 0.8s ease-out;
}

.service-detail.visible .service-detail-content h3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.service-detail.visible .service-detail-content p {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.service-detail.visible .service-detail-content ul li {
    animation: fadeInUp 0.5s ease-out both;
}

.service-detail.visible .service-detail-content ul li:nth-child(1) {
    animation-delay: 0.5s;
}

.service-detail.visible .service-detail-content ul li:nth-child(2) {
    animation-delay: 0.6s;
}

.service-detail.visible .service-detail-content ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.service-detail.visible .service-detail-content ul li:nth-child(4) {
    animation-delay: 0.8s;
}

.service-detail.visible .service-detail-content .btn-learn-more {
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* 响应式 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-container {
        gap: 40px;
    }
    
    .service-detail-image svg {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .services-intro {
        padding: 50px 0;
    }
    
    .services-intro-header h2 {
        font-size: 28px;
    }
    
    .services-intro-header p {
        font-size: 16px;
    }
    
    .services-intro-container {
        max-width: 100%;
        width: 95%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-detail-container {
        max-width: 100%;
        width: 95%;
        flex-direction: column !important;
        gap: 30px;
    }
    
    .service-detail-image {
        width: 100%;
        min-height: 250px;
    }
    
    .service-detail-image svg {
        width: 160px;
        height: 160px;
    }
    
    .service-detail-content h3 {
        font-size: 28px;
    }
    
    .services-cta {
        padding: 50px 0;
    }
    
    .services-cta h2 {
        font-size: 28px;
    }
    
    .services-cta p {
        font-size: 16px;
    }
    
    .services-cta .services-intro-container {
        max-width: 100%;
        width: 95%;
    }
}
