/* 服务内容容器 */
.services-content {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
}

/* 服务头部 */
.service-header {
    margin-bottom: 40px;
}

.service-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
}

.service-highlight {
    color: #fe5722;
    font-family: "宋体", SimSun, serif;
}

.service-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* 产品网格 */
.service-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-product {
    width: 500px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 优化图片容器 - 确保图片完整展示 */
.service-product-image {
    /* height: 200px; */
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.service-product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 改为contain确保图片完整显示 */
    transition: transform 0.5s ease;
}

/* .service-product:hover .service-product-image img {
    transform: scale(1.05);
} */

.service-product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.service-product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.service-product-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-detail-title {
    font-weight: bold;
    color: #666;
    min-width: 70px;
}

.service-detail-value {
    color: #333;
    flex: 1;
    margin-left: 10px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-content {
        padding: 40px 8%;
    }
}

@media (max-width: 992px) {
    .service-product {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .services-content {
        padding: 40px 5%;
        margin-top: 80px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-product {
        width: 100%;
    }
    
    .service-product-image {
        height: 180px;
    }
}
