.card-close {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 0;
    width: 25px;
    height: 25px;
    text-align: center;
    display: inline-block;
    color: #d8d8d8;
}

.blue_large {
    color: #1355d7;
    font-size: 20px;
}

p.gray_text {
    color: #747474;
}

#wx-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.webchat-dialog {
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 999;
    background: #fff;
    width: 677px;
    height: 470px;
    font-size: 16px;
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 2px 10px #8a8a8a;
    box-shadow: 0 2px 10px #8a8a8a;
}

.webchat-dialog .content {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 99;
    background: #fff;
}

.webchat-dialog .content .al-it-st {
    padding: 10px 0 10px 5px;
}

.webchat-dialog .content .title-1 {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

.webchat-dialog .content .img-qr {
    width: 30%;
    padding-top: 40px;
    text-align: center;
}

.webchat-dialog .content .img-qr .img-tips {
    font-size: 14px;
    margin: 0;
    color: #494848;
}

.webchat-dialog .hover-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    bottom: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    background-color: transparent;
}

.content-left {
    width: 338.5px;
    height: 100%;
    background-color: #e5ecfa;
    border-radius: 10px;
}

.content-left p.title_text {
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.content-left p {
    margin: 10px auto;
    font-size: 14px;
    text-align: center;
}

.content-left span {
    font-size: 14px;
}

.content-left .text-item p.title_text {
    font-size: 18px;
}

.content-left .text-item img.gou {
    width: 14px;
    height: 10px;
    margin-right: 5px;
}

.content-left .text-item {
    margin-top: 54px;
    margin-left: 55px;
}

.content-left .text-item .number {
    font-size: 25px;
}

.content-left .text-item p {
    font-size: 14px;
    text-align: left;
}

.content-right {
    border-radius: 10px;
    display: flex;
    width: 338.5px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-right p {
    font-size: 14px;
    line-height: 2;
}

.content-right .qrcode {
    width: 150px;
}

.mobile-card {
    display: none;
    margin-top: 41.5px;
}

.mobile-card img.gou {
    width: 14px;
    height: 10px;
    margin-right: 5px;
}

.mobile-card .qrcode {
    width: 120px;
    margin: 20px auto;
}

.mobile-card p {
    text-align: center;
    font-size: 14px;
    line-height: 2;
}

.mobile-card p.left {
    text-align: left;
    margin-left: 52px;
}

@media screen and (max-width: 500px) {
    .webchat-dialog {
        width: 272px;
        height: 389px;
    }

    .webchat-dialog .content {
        display: unset;
    }

    .pc_card {
        display: none !important;
    }

    .mobile-card {
        display: block;
    }

    .webchat-dialog .content .img-qr {
        width: 40%;
        padding-top: 36px;
    }
}
/* ============================================================
   二维码尺寸控制（2026-10-17）
   ============================================================
   问题：弹层里 PC 端的二维码 img 没有 width 属性，
        原图 396×396 就按 396px 渲染，而容器只有 339px 宽 → 溢出。
   （实测：本地 img 实际 396×396，容器 339×470）

   官网实测值：
     PC 端   .content-right 里的 img → 140×140
     移动端  .mobile-card  里的 img → 120×120
   官网是靠 JS 运行时设的（CSS 里查不到规则），这里改成显式 CSS，
   更可靠且不依赖 JS。

   ⚠ 只作用于 #default-dialog 弹层内的二维码，
     不影响页面别处（右侧客服浮窗 widgetPC 用的是别的类）。
   ============================================================ */
.webchat-dialog .ocpc_qrcode {
    text-align: center;
}

.webchat-dialog .ocpc_qrcode img {
    display: inline-block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    box-sizing: border-box;
}

/* PC 端（.pc_card）：对齐官网 140px */
.webchat-dialog .pc_card .ocpc_qrcode img,
.webchat-dialog .content-right .ocpc_qrcode img {
    width: 140px;
    height: 140px;
}

/* 移动端（.mobile-card）：对齐官网 120px */
.webchat-dialog .mobile-card .ocpc_qrcode img {
    width: 120px;
    height: 120px;
}

/* 防止容器被撑破：容器宽度自适应图片，不再固定 */
.webchat-dialog .content-right .qrcode {
    width: auto;
    max-width: 100%;
}
