/* 前台广告样式：由插件统一负责，主题只负责布局。更新插件即生效。 */
.dag-ad-img{display:block;width:100%;max-width:100%;height:auto;border-radius:5px}

.index-ad-text,
.index-ad-text.night-bg,
body.night .index-ad-text,
body.night .index-ad-text.night-bg{background:transparent!important}

.dag-ad-text-item,
.dag-ad-item{
    background:linear-gradient(160deg,#fbfdff,#f4f9ff)!important;
    border:1px dashed #cfe3ff!important;
    color:#475467!important;
    text-decoration:none!important;
    transition:border-color .2s,background-color .2s,color .2s!important;
}
.dag-ad-text-item strong,
.dag-ad-item strong{color:inherit!important}
.dag-ad-text-item.is-empty{color:#5f6b7a!important}
.dag-ad-text-item.is-empty strong{color:#5f6b7a!important}
.dag-ad-text-plus{color:#8a94a6!important}

.dag-ad-text-item:hover,
.dag-ad-item:hover{
    background:#eef4ff!important;
    border-color:#007bf5!important;
    color:#007bf5!important;
}
.dag-ad-text-item:hover strong,
.dag-ad-item:hover strong{color:#007bf5!important}
.dag-ad-text-item:hover .dag-ad-text-plus{color:#007bf5!important}

body.night .dag-ad-text-item,
body.night .dag-ad-item{
    background:#292a2d!important;
    border-color:#3b3c41!important;
    color:#c9ccd2!important;
}
body.night .dag-ad-text-item.is-empty,
body.night .dag-ad-text-item.is-empty strong{
    background:#292a2d!important;
    border-color:#3b3c41!important;
    color:#9aa3b2!important;
}
body.night .dag-ad-text-plus{color:#8a94a6!important}
body.night .dag-ad-text-item:hover,
body.night .dag-ad-item:hover{
    background:#303237!important;
    border-color:#409eff!important;
    color:#409eff!important;
}
body.night .dag-ad-text-item:hover strong,
body.night .dag-ad-item:hover strong{color:#409eff!important}
body.night .dag-ad-text-item:hover .dag-ad-text-plus{color:#409eff!important}

/* ===== 站长自定义悬浮广告：左侧 / 右侧 / 底部 =====
   外层不要用 transform：一旦用了，用户代码里的 position:fixed 会以这个容器为参照，
   固定底栏/侧栏会被挤成 0 宽或错位。这里全部用 flex 定位。 */
.dag-float{position:fixed;z-index:9998;pointer-events:none}
.dag-float-l{left:0;top:0;bottom:0;display:flex;align-items:center;padding-left:12px;max-width:240px}
.dag-float-r{right:0;top:0;bottom:0;display:flex;align-items:center;padding-right:12px;max-width:240px}
.dag-float-bottom{left:0;right:0;bottom:0;display:flex;justify-content:center;padding:0 12px}
.dag-float-in{pointer-events:auto;max-width:100%}
.dag-float-in img{display:block;max-width:100%;height:auto}
.dag-float-x{position:absolute;top:-10px;right:-10px;z-index:2;width:22px;height:22px;padding:0;
  border:1px solid #e4e7ec;border-radius:50%;background:#fff;color:#667085;font-size:14px;line-height:20px;
  text-align:center;cursor:pointer;box-shadow:0 2px 6px rgba(16,24,40,.12)}
.dag-float-bottom .dag-float-x{top:4px;right:4px}
.dag-float-x:hover{color:#e5484d;border-color:#fda29b}
body.night .dag-float-x{background:#292a2d;border-color:#3b3c41;color:#c9ccd2}
@media screen and (max-width:1024px){
  .dag-float-l,.dag-float-r{display:none}
}
