/*==================左侧广告=======================*/
@media (min-width:576px) {
    .yn-left-ads {
        display: flex;
    }

    .yn-ad-left {
        padding: 0 6px;
    }
}

@media (min-width:992px) {
    .yn-left-ads {
        display: block;
    }

    .yn-ad-left {
        padding: 0;
    }
}

/*==================文字跑马灯=======================*/
.yn_ad_tip .body_box {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.yn_ad_tip .content_box {
    display: flex;
}

.yn_ad_tip .content_box img {
    width: 36px;
    height: 36px;
}

.yn_ad_tip .content_box a {
    display: flex;
    align-items: center;
}

.yn_ad_tip .name_box {
    color: var(--yn-red-main);
    font-size: 13px;
    margin-left: 12px;
}

.yn_ad_tip .name_box:hover {
    color: var(--yn-form-submit-hover-bg-color);
}

@media (min-width:768px) {
    .yn_ad_tip .name_box {
        font-size: 17px;
        font-weight: 500;
    }
}

/*==================大通栏广告=======================*/
.yn_ad_top .content_box img {
    width: 100%;
    height: calc(100vw * 0.633 - 24px);
    object-fit: cover;
    border-radius: 4px;
}

@media (min-width:768px) {
    .yn_ad_top .content_box img {
        width: 100%;
        min-height: 200px;
        max-height: 200px;
    }
}

/*==================小通栏广告=======================*/
.yn_ad_top_small .content_box img {
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/*==================页脚广告=======================*/
.yn_ad_footer .content_box img {
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/*==================网站右下角弹框=======================*/

/* 弹框容器 */
.yn_ad_dialog_right_bottom .ad-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.yn_ad_dialog_right_bottom .ad-popup.show {
    transform: translateY(0);
    opacity: 1;
}

/* 弹框头部 */
.yn_ad_dialog_right_bottom .ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    /* background: linear-gradient(to right, #ff5f6d, #ffc371); */
    background-color: var(--yn-form-submit-bg-color);
    color: white;
}

/* 关闭按钮 */
.yn_ad_dialog_right_bottom .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* 广告内容 */
.yn_ad_dialog_right_bottom .ad-content {
    padding: 8px 16px 16px 16px;
}

.yn_ad_dialog_right_bottom .ad-title {
    margin-top: 0;
    color: #333;
}

.yn_ad_dialog_right_bottom .ad-image {
    width: 100%;
    height: 160px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    object-fit: cover;
}

.yn_ad_dialog_right_bottom .ad-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.yn_ad_dialog_right_bottom .oper-box {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.yn_ad_dialog_right_bottom .ad-cta {
    display: inline-block;
    padding: 6px 10px;
    /* background: linear-gradient(to right, #ff5f6d, #ffc371); */
    color: var(--yn-form-submit-color);
    background-color: var(--yn-form-submit-bg-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.2s;
    font-size: 14px;


}

.yn_ad_dialog_right_bottom .ad-cta:hover {
    transform: translateY(-2px);
    color: var(--yn-form-submit-hover-color);
    background-color: var(--yn-form-submit-hover-bg-color);
}

/* 热点标记 - 结合您之前的需求 */
.yn_ad_dialog_right_bottom .hot-badge {
    display: inline-block;
    width: 36px;
    height: 36px;
    /* background-image: url(/template/1/travel1/images/icon/hot.gif); */
    /* 这里应替换为您之前生成的Hot动图 */
    background-size: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .yn_ad_dialog_right_bottom .ad-popup {
        width: 90%;
        max-width: 300px;
        right: 5%;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .yn_ad_dialog_right_bottom .ad-popup {
        width: 95%;
        right: 2.5%;
    }

    .yn_ad_dialog_right_bottom .ad-header {
        padding: 8px 12px;
    }

    .yn_ad_dialog_right_bottom .ad-content {
        padding: 12px;
    }
}

/**==================================只有图片=======================*/
.yn_ad_dialog_right_bottom_1 .ad-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border-radius: 4px;
    
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;

    width: 240px;
    height: 386px;
}

.yn_ad_dialog_right_bottom_1 .ad-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.yn_ad_dialog_right_bottom_1 .content-box {
    /* position: relative; */
    width: 240px;
    height: 386px;
}

.yn_ad_dialog_right_bottom_1 .img-box {
    width: 100%;
    height: 360px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yn_ad_dialog_right_bottom_1 .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yn_ad_dialog_right_bottom_1 .oper-box{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 6px;
}

.yn_ad_dialog_right_bottom_1 .close-btn {
    background: none;
    border: none;
    color: #333;
    /* background-color: var(--yn-grey-main); */
    border: 1px solid var(--yn-grey-main);
    font-size: 10px;
    cursor: pointer;
    padding: 0;

    border-radius: 50% 50%;

    width: 20px;
    height: 20px;


    /* position: absolute;
    top: 0px;
    right: 0px; */
}
