/* 广告位通用样式（列表插入广告 / 横幅），抽自 root.css，供搜索、分类、标签、作者等未加载 root/index/detail 的页面使用 */
.ad-slot {
  position:relative;
  border:1px solid hsla(0,0%,100%,.18);
  border-radius:10px;
  background:linear-gradient(90deg,#ffffff1f,#ffffff0a 50%,#ffffff12),#111215;
  overflow:hidden;
  -webkit-backdrop-filter:blur(84px);
  backdrop-filter:blur(84px)
}
.ad-slot:before {
  content:"";
  position:absolute;
  top:-1px;
  left:3px;
  width:110px;
  height:0;
  pointer-events:none;
  border-top:4px solid;
  border-image-source:linear-gradient(90deg,hsla(0,0%,100%,0),#3752ff 50%,hsla(0,0%,100%,0));
  border-image-slice:1;
  transform:rotate(90deg);
  transform-origin:left top;
  filter:blur(1px);
  backdrop-filter:blur(1px);
  -webkit-backdrop-filter:blur(1px);
  opacity:1
}
.ad-slot__link,.ad-slot__missing {
  min-height:104px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:16px;
  padding:20px 15px
}
.ad-slot__label {
  justify-self:end;
  align-self:start;
  order:2;
  width:-moz-max-content;
  width:max-content;
  min-width:84px;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 12px;
  border-radius:4px;
  background:#3752ff;
  color:#fff;
  font-size:14px;
  font-weight:600
}
.ad-slot__label-icon {
  width:20px;
  height:20px;
  display:inline-block;
  background:currentColor;
  mask-image:var(--ad-icon-url);
  mask-position:center;
  mask-repeat:no-repeat;
  mask-size:contain;
  -webkit-mask-image:var(--ad-icon-url);
  -webkit-mask-position:center;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-size:contain
}
.ad-slot__copy {
  display:grid;
  gap:6px;
  align-self:end
}
.ad-slot__copy img {
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:6px
}
/* 图片广告：图片铺满卡片，「广告」角标漂浮在图片左上角（对齐设计稿） */
.ad-slot--image .ad-slot__link {
  position:relative;
  display:block;
  min-height:0;
  padding:0
}
.ad-slot--image .ad-slot__link img {
  display:block;
  width:100%;
  height:auto;
  border-radius:inherit
}
.ad-slot--image .ad-slot__label {
  position:absolute;
  top:16px;
  left:16px;
  right:auto;
  z-index:2;
  justify-self:start;
  box-shadow:0 2px 8px rgba(0,0,0,.35)
}
.ad-slot--poster {
  min-height:clamp(360px,52vw,660px);
  border-color:#3752ff0d;
  background:linear-gradient(180deg,#05060800 42%,#050608e0),radial-gradient(ellipse at 50% 0,rgba(55,82,255,.07),rgba(55,82,255,.02) 42%,transparent 76%),#342f1f;
  -webkit-backdrop-filter:none;
  backdrop-filter:none
}
.ad-slot--poster:before {
  display:none
}
.ad-slot--poster .ad-slot__link,.ad-slot--poster .ad-slot__missing {
  position:relative;
  min-height:inherit;
  display:block;
  padding:44px 54px 56px
}
.ad-slot--poster .ad-slot__label {
  position:absolute;
  top:44px;
  left:54px;
  min-width:112px;
  min-height:44px;
  justify-self:start;
  font-size:20px;
  line-height:28px
}
.ad-slot--poster .ad-slot__label-icon {
  width:24px;
  height:24px
}
.ad-slot--poster .ad-slot__copy {
  position:absolute;
  right:54px;
  bottom:56px;
  left:54px
}
.ad-slot--poster .ad-slot__copy strong {
  font-size:30px;
  line-height:42px
}
.ad-slot--poster .ad-slot__copy small {
  font-size:20px;
  line-height:30px
}
.ad-slot__copy strong,.ad-slot__missing span {
  color:#f5f5f6;
  font-size:16px;
  line-height:32px
}
.ad-slot__copy small,.ad-slot__missing small {
  color:#f5f5f6;
  font-size:12px;
  line-height:20px;
  opacity:.82
}
.ad-slot__missing {
  grid-template-columns:1fr
}
@media(max-width:720px) {
  .ad-slot__link {
    min-height:88px;
    padding:16px
  }
  .ad-slot:before {
    left:2px
  }
  .ad-slot--poster {
    min-height:360px
  }
  .ad-slot--poster .ad-slot__link,.ad-slot--poster .ad-slot__missing {
    padding:28px 30px 32px
  }
  .ad-slot--poster .ad-slot__label {
    top:28px;
    left:30px;
    min-width:96px;
    min-height:38px;
    font-size:16px
  }
  .ad-slot--poster .ad-slot__copy {
    right:30px;
    bottom:32px;
    left:30px
  }
  .ad-slot--poster .ad-slot__copy strong {
    font-size:22px;
    line-height:32px
  }
  .ad-slot--poster .ad-slot__copy small {
    font-size:15px;
    line-height:24px
  }
}
