/* 广告横幅样式 */
.ad-banner-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

/* 广告图片容器 */
.promo-showcase-wrapper {
    display: block;
    margin-bottom: 20px;
}

.promo-showcase-link {
    display: block;
    text-decoration: none;
}

.promo-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.promo-showcase-link:hover .promo-showcase-img {
    transform: scale(1.02);
}

/* 联系按钮容器 */
.promo-contact-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.promo-btn-text {
    display: inline-block;
}

/* 电话按钮 - 绿色渐变 */
.promo-btn-phone {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.promo-btn-phone:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

/* 邮件按钮 - 蓝色渐变 */
.promo-btn-email {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.promo-btn-email:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
}

/* 微信按钮 - 绿色渐变 */
.promo-btn-wechat {
    background: linear-gradient(135deg, #09B981 0%, #059669 100%);
    color: white;
}

.promo-btn-wechat:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* WhatsApp 按钮 - 文本白色（背景使用内联颜色或自定义颜色） */
.promo-btn-whatsapp {
    color: white;
}

.promo-btn-whatsapp .promo-btn-text,
.promo-btn-whatsapp .promo-icon {
    color: white;
}


/* 响应式设计 */
@media (max-width: 600px) {
    .promo-showcase-wrapper {
        margin-bottom: 15px;
    }

    .promo-btn {
        min-width: 85px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .promo-contact-group {
        gap: 10px;
    }

    .promo-floating-container {
        bottom: 20px;
    }

    .promo-floating-container[data-position="right"] {
        right: 15px;
    }

    .promo-floating-container[data-position="left"] {
        left: 15px;
    }

    .promo-floating-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .promo-floating-menu {
        min-width: 140px;
        bottom: 65px;
    }

    .promo-floating-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .promo-floating-item:hover {
        padding-left: 18px;
    }
}

/* 复制提示气泡 */
.promo-copy-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* 二维码模态弹窗样式 */
.promo-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.promo-qr-content {
    position: relative;
    z-index: 100001;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    max-width: 360px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.promo-qr-close {
    position: absolute;
    right: 8px;
    top: 6px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}
.promo-qr-body {
    text-align: center;
}
.promo-qr-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 6px auto 12px;
}
.promo-qr-caption {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.promo-qr-copy {
    background: #09B981;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.promo-qr-text {
    font-size: 13px;
    color: #333;
    word-break: break-all;
    max-width: 180px;
    text-align: center;
}

/* 阻止页面在打开模态时滚动（通过 body 类控制） */
body.promo-qr-open {
    overflow: hidden !important;
}

/* 自定义外部链接按钮样式：确保文本为白色 */
.promo-btn-custom {
    color: #ffffff;
}
.promo-btn-custom .promo-icon,
.promo-btn-custom .promo-btn-text {
    color: #ffffff;
}
