/* Dantful Services Styles - 匹配实际网站样式 */

.dantful-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 服务项目样式 */
.service-item {
    margin-bottom: 80px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 服务布局 */
.service-layout {
    display: flex;
    align-items: center;
    min-height: 400px;
}

.service-layout.reverse {
    flex-direction: row-reverse;
}

/* 图片列样式 */
.service-image-column {
    flex: 1;
    padding: 0;
}

.service-image {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

/* 内容列样式 */
.service-content-column {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 服务标题 */
.service-title {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 服务描述 */
.service-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* 按钮容器 */
.service-button-container {
    margin: 0;
}

/* 服务按钮 */
.service-button .wp-block-button__link {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 30px !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-button .wp-block-button__link:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .service-content-column {
        padding: 40px 30px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .dantful-services-container {
        padding: 20px 15px;
    }
    
    .service-layout,
    .service-layout.reverse {
        flex-direction: column;
        min-height: auto;
    }
    
    .service-image-column {
        order: 1;
    }
    
    .service-content-column {
        order: 2;
        padding: 30px 25px;
    }
    
    .service-image img {
        height: 250px;
    }
    
    .service-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .service-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .service-item {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .service-content-column {
        padding: 25px 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 13px;
    }
    
    .service-button .wp-block-button__link {
        padding: 12px 25px !important;
        font-size: 13px;
    }
}

/* 分隔线样式 */
.service-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
}

/* 图片悬停效果 */
.service-image-column {
    position: relative;
    overflow: hidden;
}

.service-image-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-item:hover .service-image-column::before {
    opacity: 1;
}

/* 内容悬停效果 */
.service-content-column {
    position: relative;
}

.service-content-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover .service-content-column::before {
    transform: scaleY(1);
}

/* 加载动画 */
.service-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮悬停动画 */
.service-button .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-button .wp-block-button__link:hover::before {
    left: 100%;
}

/* 标题悬停效果 */
.service-title {
    position: relative;
    overflow: hidden;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.service-item:hover .service-title::after {
    width: 100%;
} 