/* ========================================
   图片增强效果
   ======================================== */

/* 图片阴影效果 */
.service-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    box-shadow: 0 20px 50px rgba(233, 69, 96, 0.3);
}

/* 图片边框效果 */
.service-image {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 图片容器光晕 */
.card-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(233, 69, 96, 0.3),
        rgba(102, 126, 234, 0.3),
        rgba(79, 172, 254, 0.3),
        rgba(233, 69, 96, 0.3)
    );
    border-radius: 6px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
    animation: border-glow 3s ease infinite;
}

.service-card:hover .card-image::before {
    opacity: 1;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 图片聚焦效果 */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
}

/* 增强的图片对比度 */
.service-image {
    transform: translateZ(0);
    will-change: transform;
}

/* 添加图片加载动画 */
.service-image {
    animation: imageLoad 1s ease-out;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 玻璃态效果增强 */
.image-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 图片高光效果 */
.service-card:hover .service-image {
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(233, 69, 96, 0.4);
}

/* 优化卡片间距 */
.services-grid {
    gap: 40px;
}

/* 响应式图片高度调整 */
@media (min-width: 1440px) {
    .card-image {
        height: 360px;
    }
}

/* 平板设备优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        gap: 30px;
    }
}

/* 手机设备优化 */
@media (max-width: 768px) {
    .services-grid {
        gap: 25px;
    }

    .service-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .service-card:hover {
        box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
    }
}

/* 添加图片过渡效果 */
.service-image {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化悬停时的内容显示 */
.service-card:hover .image-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
}

/* 数字编号效果增强 */
.service-card:nth-child(1)::after {
    content: '01';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(233, 69, 96, 0.15);
    z-index: 0;
    letter-spacing: -5px;
}

.service-card:nth-child(2)::after {
    content: '02';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(102, 126, 234, 0.15);
    z-index: 0;
    letter-spacing: -5px;
}

.service-card:nth-child(3)::after {
    content: '03';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(79, 172, 254, 0.15);
    z-index: 0;
    letter-spacing: -5px;
}

.service-card:nth-child(4)::after {
    content: '04';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(244, 162, 97, 0.15);
    z-index: 0;
    letter-spacing: -5px;
}