﻿/* 四图横排区域 - 重构版（适配参考图排版） */
.four-images-wrapper {
    width: 100%;
    max-width: 1200px !important;
    margin: 10px auto 20px auto;
    padding: 20px 0 40px 0 !important;
    box-sizing: border-box;
}

/* 标题区域 */
.four-images-title {
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
    padding: 0 20px;
}

.four-images-title h2 {
    font-size: 30px !important;
    color: #ffff00 !important;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.four-images-title p {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0;
    line-height: 1.4;
}

/* 列表容器 - 四图强制一行 */
.four-images-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* 业务卡片 - 适配参考图排版 */
.four-images-list .biz-card {
    flex: 1 1 calc(25% - 9px) !important;
    max-width: calc(25% - 9px) !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important; /* 轻微背景区分 */
    border: 0px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
}

/* 图片容器 */
.biz-img {
    width: 100%;
    height: 157px;
    overflow: hidden;
}

.biz-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 参考图用cover更美观 */
    display: block;
    transition: none !important;
}

/* 卡片内容 - 补充描述排版 */
.biz-content {
    padding: 15px;
    text-align: left; /* 参考图是左对齐 */
    box-sizing: border-box;
}

.biz-content h3 {
    font-size: 18px;
    color: #fff !important;
    margin: 0 0 8px 0; /* 缩小标题与描述间距 */
    font-weight: 600;
}

/* 业务描述文本（新增） */
.biz-desc {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
    margin: 0 0 12px 0; /* 描述与按钮间距 */
    height: 68px; /* 固定高度，避免卡片高度不一致 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 最多显示4行 */
    -webkit-box-orient: vertical;
}

/* 链接按钮区域 */
.biz-links {
    display: flex;
    justify-content: flex-end; /* 核心：靠右对齐 */
    gap: 10px; /* 缩小按钮间距 */
    flex-wrap: wrap;
}

/* Font Awesome图标 */
.four-images-wrapper .fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    margin-right: 5px !important;
    color: inherit !important;
}

/* 按钮样式（适配参考图） */
.link-case {
    padding: 5px 25px; /* 缩小按钮尺寸 */
    background: rgba(0, 136, 204, 0.5);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px !important;
    transition: opacity 0.3s ease;
    display: inline-block;
    border-radius: 2px;
}

.link-price {
    padding: 5px 25px;
    background: rgba(255, 102, 0, 0.5);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px !important;
    transition: opacity 0.3s ease;
    display: inline-block;
    border-radius: 2px;
}

/* 交互效果 */
.four-images-list .biz-card:hover {
    transform: translateY(-5px);
}

.biz-links a:hover {
    opacity: 0.9;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .four-images-list {
        padding: 0 20px;
        gap: 10px;
    }
    .four-images-list .biz-card {
        flex: 1 1 calc(25% - 7.5px) !important;
        max-width: calc(25% - 7.5px) !important;
    }
}

@media (max-width: 1024px) {
    .four-images-list {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .four-images-list .biz-card {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    .biz-img {
        height: auto;
    }
    .biz-desc {
        height: auto;
        -webkit-line-clamp: unset;
    }
}

@media (max-width: 480px) {
    .four-images-list .biz-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .four-images-title h2 {
        font-size: 24px !important;
    }
}