/* 相关服务横向滚动样式 - 独立CSS */
.related-services-horizontal {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.related-services-horizontal .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.related-services-horizontal .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    position: relative;
}

.related-services-horizontal .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #FF2E6C 0%, #E6C15A 100%);
    border-radius: 2px;
}

.related-services-horizontal .services-scroll-container {
    position: relative;
    overflow: hidden;
}

.related-services-horizontal .services-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-services-horizontal .services-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.related-services-horizontal .service-card-horizontal {
    flex: none;
    width: 18rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-services-horizontal .service-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.related-services-horizontal .service-image-placeholder {
    width: 100%;
    height: 10rem;
    background: linear-gradient(135deg, #FF2E6C 0%, #E6C15A 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-services-horizontal .service-emoji-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.related-services-horizontal .service-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.related-services-horizontal .service-content {
    padding: 1.25rem;
}

.related-services-horizontal .service-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.related-services-horizontal .service-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.related-services-horizontal .service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-services-horizontal .service-count {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
}

.related-services-horizontal .service-link {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-services-horizontal .service-link:hover {
    color: #1d4ed8;
}

/* 滚动指示器 */
.related-services-horizontal .scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.related-services-horizontal .scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.related-services-horizontal .scroll-dot.active {
    background: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .related-services-horizontal {
        padding: 3rem 0;
    }
    
    .related-services-horizontal .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .related-services-horizontal .service-card-horizontal {
        width: 16rem;
    }
    
    .related-services-horizontal .services-scroll-wrapper {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .related-services-horizontal .service-card-horizontal {
        width: 14rem;
    }
    
    .related-services-horizontal .service-image-placeholder {
        height: 8rem;
    }
    
    .related-services-horizontal .service-emoji-icon {
        font-size: 2.5rem;
    }
    
    .related-services-horizontal .service-content {
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.related-services-horizontal .service-card-horizontal {
    animation: slideInFromRight 0.6s ease forwards;
}

.related-services-horizontal .service-card-horizontal:nth-child(2) {
    animation-delay: 0.1s;
}

.related-services-horizontal .service-card-horizontal:nth-child(3) {
    animation-delay: 0.2s;
}

.related-services-horizontal .service-card-horizontal:nth-child(4) {
    animation-delay: 0.3s;
}

.related-services-horizontal .service-card-horizontal:nth-child(5) {
    animation-delay: 0.4s;
}
