/* 服务项目页面样式 */
.services-categories {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* 服务网格布局 */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.service-card-image .image-placeholder i {
    font-size: 5rem;
}

.service-card-item:hover .image-placeholder {
    transform: scale(1.1);
}

/* 遮罩层 */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card-item:hover .service-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.8rem 2rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
}

/* 服务卡片信息 */
.service-card-info {
    padding: 1.5rem;
    text-align: center;
}

.service-card-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.service-card-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 弹窗样式 */
.service-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 3rem;
}

.modal-service-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 2rem;
}

.modal-service-image i {
    font-size: 6rem;
}

.modal-service-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-service-body h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.modal-service-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.modal-service-features {
    margin-bottom: 2rem;
}

.modal-service-features li {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-service-features i {
    color: var(--primary-color);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.service-section-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-section-image .image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-section-image .image-placeholder i {
    font-size: 6rem;
}

.service-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-section-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-section-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features li {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
}

/* 服务流程 */
.service-process {
    padding: 5rem 0;
    background: var(--bg-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .services-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .modal-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid-layout {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 2rem auto;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-service-image {
        height: 200px;
    }

    .modal-service-image i {
        font-size: 4rem;
    }

    .modal-service-body h2 {
        font-size: 1.5rem;
    }
}
