/* web_index_float广告位专用浮动广告样式 */
.ad-float-web {
    position: fixed;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    z-index: 9999;
}

.ad-float-web:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ad-float-web img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.ad-float-web a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 关闭按钮样式 */
.float-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.float-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.float-close:active {
    transform: scale(0.9);
}

/* 防止选中文本 */
.ad-float-web {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}