/* 服务页面专用样式 */
.service-main {
    padding-top: 0;
}

.service-hero {
    height: 40vh;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.service-process {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    z-index: 0;
}

.service-process h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.process-timeline {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.process-timeline::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    top: 40px;
    left: 10%;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
    animation: drawLine 1.5s ease forwards;
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

.process-step {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: stepFadeIn 0.5s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }
.process-step:nth-child(5) { animation-delay: 1s; }

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.process-step:hover .step-icon::before {
    transform: translateY(0);
}

.process-step:hover .step-icon i {
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    margin: 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.process-step:hover h3 {
    color: var(--secondary-color);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.process-step:hover p {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-5px);
}

/* 保持其他现有样式不变 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.service-container {
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-category:hover .service-image::before {
    opacity: 1;
}

.service-info {
    padding: 1.5rem;
    flex: 1;
}

.service-info h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.service-category:hover .service-info h2::after {
    width: 100px;
}

.service-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.service-description ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-description ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.service-description ul li:before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.service-description ul li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.service-description ul li:hover:before {
    transform: translateX(3px);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.service-category:hover .service-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-text {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.service-category:hover .overlay-text {
    opacity: 1;
    transform: translateX(0);
}
.cases-count {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    transform: translateY(20px);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.5s ease;
    text-align: right;
    padding-right: 1rem;
    margin-bottom: 0.5rem;
}
.service-category:hover .cases-count {
    opacity: 1;
    transform: translateY(0);
}
.count-number {
    color: var(--accent-color);
    font-size: 0;
    margin-left: 4px;
    transition: font-size 1s ease;
    display: inline-block;
}

.service-category:hover .count-number {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .service-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .service-category {
        margin-bottom: 2rem;
    }

    .service-info h2 {
        font-size: 1.3rem;
    }

    .service-description {
        padding: 1rem;
    }
}
