html {
    position: relative;
}

.hy-ad-float {
    display: none;
    position: fixed;
    top: 108px;
    width: 160px;
    max-height: calc(100vh - 140px);
    z-index: 80;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.hy-ad-float.is-left {
    left: max(24px, calc((100vw - 1200px) / 4 - 68px));
}

.hy-ad-float.is-right {
    right: max(24px, calc((100vw - 1200px) / 4 - 68px));
}

.hy-ad-float.hy-ad-page-home {
    top: 100px;
}

.hy-ad-float.hy-ad-page-tag,
.hy-ad-float.hy-ad-page-book {
    top: 112px;
}

.hy-ad-slot {
    position: relative;
    background: #f5f5f5;
}

.hy-ad-banner {
    width: 100%;
    max-width: 360px;
    margin: 12px auto;
    overflow: hidden;
}

.hy-ad-read {
    max-width: 600px;
    margin: 16px auto 0;
}

.hy-ad-banner .hy-ad-inner iframe,
.hy-ad-banner .hy-ad-inner ins,
.hy-ad-read .hy-ad-inner iframe,
.hy-ad-read .hy-ad-inner ins {
    max-width: 100% !important;
}

.hy-ad-ball {
    display: none;
    position: fixed;
    left: 8px;
    bottom: 80px;
    width: 72px;
    height: 72px;
    z-index: 2;
    overflow: hidden;
    border-radius: 8px;
}

.hy-ad-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 1px 6px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}

.hy-ad-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    font-size: 16px;
    line-height: 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.hy-ad-inner {
    min-height: 0;
    overflow: hidden;
}

.hy-ad-banner-item .hy-ad-banner {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hy-ad-banner-item .hy-ad-slot {
    width: 100%;
    height: 100%;
}

.hy-ad-banner-item .hy-ad-inner {
    width: 100%;
    height: 100%;
}

@media (min-width: 1600px) {
    .hy-ad-float {
        display: block;
    }
}

@media (max-width: 768px) {
    .hy-ad-ball {
        display: block;
    }
}
