.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9997;
    display: none;
}

.iframe_shangqiao {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 8px 40px rgb(0 0 0 / 40%);
    border-radius: 8px 8px 8px 8px;
    z-index: 9998;
    display: none;
}

.close-button {
    position: absolute;
    top: 0px;
    right: -32px;
    width: 30px;
    height: 30px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.close-icon {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-icon::after {
    content: "X";
}

@media (min-width: 768px) {
    .iframe_shangqiao {
        width: 50%;
        height: 80%;
    }

    .close-small {
        display: none;
    }
}

@media (max-width: 767px) {
    .iframe_shangqiao {
        width: 90%;
        height: 95%;
    }

    .close-button {
        right: 0px;
        width: 20px;
        height: 40px;
    }
    
    .close-icon {
        width: 20px;
        height: 40px;
        background-color: transparent;
        border-radius: none;
    }

    .close-icon1::after {
        content: "X";
    }
}

/* 产品列表li容器统一排版 */
li {
    padding-bottom: 12px; /* 底部增加留白，不贴li下边缘 */
}


/* 立即咨询按钮核心样式 */
.item-btn.chatOpen.btn-private {
    width: fit-content !important;
    display: block;
    margin: 4px auto 0; /* 上边距改为4px，和标题分开，不贴紧 */
    /* rem自适应单位，手机自动缩小 */
    padding: 0.38rem 1.6rem;
    border-radius: 0.5rem;
    border: 1px solid #73c990;
    background: #ffffff;
    color: #369256;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.26s ease-in-out;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}
/* 悬浮：绿底白字 */
.item-btn.chatOpen.btn-private:hover {
    background-color: #73c990;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(115, 201, 144, 0.22);
}
/* 点击弹窗保持原色，仅轻微收缩 */
.item-btn.chatOpen.btn-private:active {
    background: #fff !important;
    color: #369256 !important;
    border-color: #73c990 !important;
    transform: scale(0.96);
}

/* 手机端整套同步缩小（字体+内边距+圆角一起变小，不会框大字大） */
@media screen and (max-width: 640px) {
    .item-btn.chatOpen.btn-private {
        padding: 0.3rem 1.1rem;
        font-size: 0.82rem;
        border-radius: 0.35rem;
        margin-top: 3px; /* 手机端也保留一点间距不贴紧 */
    }
    li > a > p {
        font-size: 13px;
        margin-bottom: 6px;
    }
}