/* 服务报价页面样式 */
body {
    background-color: #ebebebe8 !important;
    /* 使用!important提高优先级 */
}

/* 顶部banner区域 */
.service-top-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.service-top-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 主体内容区域 */

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
}

/* 产品显示区域 */
.product-display {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-top: 3vh;
}

.product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 产品信息基础样式 - 以1920px为基准计算百分比 */
.product-info {
    position: absolute;
    top: 0;
    width: 25vw;
    max-width: 300px;
    height: 100%;


    background: #9163CC;
    color: #fff;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-title {
    font-size: clamp(40px, 1vw, 70px);
    /* 基于1920px基准: 114px/1920px = 5.94vw */
    font-weight: bold;
    margin-bottom: 10px
        /* 基于1920px基准: 50px/1920px = 2.6vh */
}

.product-desc {
    font-size: clamp(12px, 1vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-ideograph;
}

.product-order {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 15%;
    background: #fff;
    color: #9163CC;
    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(1rem, 1vw, 1.2rem);
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-order:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.product-logo-container {
    text-align: center;
    margin: 20px 0;
}

.product-logo-container::before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
}

.product-logo {
    width: 10vw;
    max-width: 180px;
    height: auto;
    margin-top: 20px;
}

/* 奇数产品（第1,3,5个） - 左侧布局 */
.product-odd .product-info {
    left: 10.42%;
}

/* 基于1920px基准: 200px/1920px = 10.42% */


/* 偶数产品（第2,4,6个） - 右侧布局 */
.product-even .product-info {
    right: 10.42%;
}

/* 基于1920px基准: 200px/1920px = 10.42% */



/* 咨询我们样式 */
.contact-section {
    background: linear-gradient(135deg, #8C68C7 0%, #fbf9ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    margin: 3vh 0;
}

.contact-us-content {
    /* background-color: aqua; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-title {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
}

.contact-btn {
    background: linear-gradient(135deg, #9163CC 0%, #B084E6 100%);
    color: white;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 99, 204, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 99, 204, 0.4);
}

/* 响应式适配 - 以480px 和 768px 作为响应断点，1200px为基准布局 */
/*------------------------------------------------- 768px 移动端适配 - 参考1024px的垂直布局---------------------------------------------- */
@media (max-width: 768px) {
    .product-display {
        height: auto;
        flex-direction: column;
        margin-top: 1vh;

    }

    /* 奇偶数产品统一处理 - 紧凑布局 */
    .product-odd .product-info,
    .product-even .product-info {
        /* 彻底重置定位，确保奇偶数完全一致 */
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        min-width: auto;
        height: auto;
        min-height: 130px;
        /* 大幅减少最小高度 */
        max-height: 250px;
        /* 大幅减少最大高度 */
        padding: 10px 25px;
        /* 减少内边距 */
        margin-bottom: 1vh;
        /* 添加与背景图的间距 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #9163CC;
        box-sizing: border-box;
        /* 确保边距计算正确 */
    }


    /* 768px不需要::after伪元素，直接使用背景图 */

    .product-title {
        font-size: clamp(28px, 1vw, 38px);
        /* 减小字体 */
        margin-bottom: 10px;
        /* 减少边距 */
    }

    .product-desc {
        font-size: clamp(12px, 1vw, 14px);
        margin-bottom: 12px;
        line-height: 1.5;
        text-align: center;
        padding: 0 60px;

    }

    .product-order {
        font-size: 13px;
        padding: 5px 25px;
        align-self: center;
    }

    .product-logo {
        width: 80px;
    }

    .product-logo-container {
        margin-top: 12px;
    }

    .contact-section {
        display: flex;
        height: auto;
        padding: 20px 15px;
        /* 增加左右内边距 */
        margin: 1vh 0;
        /* 减少上下间距 */
    }

    .contact-us-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        max-width: 100%;
    }

    .contact-title {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }

    .contact-btn {
        font-size: 14px;
        padding: 6px 20px;
        text-decoration: none;
    }
}

/* ----------------------------------------480px 小屏幕适配 - iPhone等移动设备优化 ----------------------------------------- */
@media (max-width: 480px) {
    .service-top-banner img {
        min-height: 20vh;
    }

    .product-display {
        height: auto;
        display: flex;
        flex-direction: column;
        /* 减少产品之间的间距 */
    }

    /* 奇偶数产品统一处理 - 紧凑布局 */
    .product-odd .product-info,
    .product-even .product-info {
        /* 彻底重置定位，确保奇偶数完全一致 */
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        /* 大幅减少最大高度 */
        padding: 10px 15px;
        /* 减少内边距 */
        margin-bottom: 1vh;
        /* 添加与背景图的间距 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #9163CC;
        box-sizing: border-box;
        /* 确保边距计算正确 */
    }

    /* 不再需要::after伪元素，直接使用背景图 */

    .product-title {
        font-size: clamp(18px, 5vw, 24px);
        /* 进一步减小字体 */
        margin-bottom: 6px;
        /* 减少边距 */
        line-height: 1.2;
    }

    .product-desc {
        font-size: clamp(9px, 2.2vw, 11px);
        /* 减小字体 */
        margin-bottom: 8px;
        /* 减少边距 */
        line-height: 1.5;
        /* 进一步减少行高 */
        padding: 0 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* 限制最多显示2行 */
        -webkit-box-orient: vertical;
    }

    .product-order {
        font-size: 10px;
        /* 减小按钮字体 */
        padding: 4px 12px;
        /* 减小按钮尺寸 */
        align-self: center;
        white-space: nowrap;
        /* 防止按钮文字换行 */
    }

    .product-logo {
        width: 50px;
        /* 进一步减小logo尺寸 */
        height: auto;
        margin-top: 1vh;
    }

    .product-logo-container {
        margin-top: 5px;
        /* 减少边距 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .product-logo-container::before {
        width: 25px;
        /* 减小装饰线 */
        margin-bottom: 5px;
    }

    /* 小屏幕咨询区域优化 */
    .contact-section {
        padding: 15px 10px;
        margin: 1vh 0;
    }

    .contact-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .contact-btn {
        font-size: 12px;
        padding: 5px 15px;
    }
}