/* AdSense 手动单元容器样式 */
.lc-ad {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px auto;
  text-align: center;
  min-height: 0;
  clear: both;
  overflow: hidden;
}
.lc-ad--header {
  margin: 12px auto 18px;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;
}
.lc-ad--inTop,
.lc-ad--inMid,
.lc-ad--inBottom {
  margin: 20px auto;
  max-width: 660px;
}
.lc-ad--sidebar {
  margin: 0 auto 18px;
  max-width: 320px;
  min-height: 250px;
}
.lc-ad--footer {
  margin: 24px auto 8px;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;
}
.m-mainright .lc-ad--sidebar {
  width: 300px;
}
.m-maintxt .lc-ad,
.htmlcontent .lc-ad {
  text-indent: 0;
}
@media (max-width: 979px) {
  .lc-ad--sidebar {
    max-width: 100%;
    min-height: 0;
    margin: 16px auto;
  }
  .lc-ad--inTop,
  .lc-ad--inMid,
  .lc-ad--inBottom {
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }
}

/* 手机正文：顶栏焕新 + 去掉 Auto Ads 首屏占位 */
header.g-to16,
.g-to16 {
  background: linear-gradient(135deg, #0f9d8a, #14b8a6) !important;
  box-shadow: 0 4px 14px rgba(15, 157, 138, .2);
}
.w-newmian .google-auto-placed,
.g-newview .google-auto-placed,
.m-maintxt .google-auto-placed,
.htmlcontent .google-auto-placed {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
/* 仅手机端强制通栏图；PC 交给 main.css，避免比例盒/图表被拉扁 */
@media (max-width: 979px) {
  .w-newmian img,
  .g-newview img,
  .m-maintxt img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  figure.section.img .img-wrap[style*="padding-bottom"] {
    padding-bottom: 0 !important;
    height: auto !important;
  }
  figure.section.img .img-wrap img {
    position: static !important;
    display: block !important;
    object-fit: contain !important;
  }
}

/* 失效图片占位（正文紧凑） */
img.lc-img-fallback {
  object-fit: contain !important;
  background: #e6f7f4 !important;
  border-radius: 12px;
  max-height: 160px !important;
  width: 100% !important;
  height: auto !important;
  margin: 12px auto !important;
  display: block;
}
.htmlcontent img.lc-img-fallback,
.m-maintxt img.lc-img-fallback,
.img-wrap img.lc-img-fallback {
  position: static !important;
  max-height: 160px !important;
  background: #e6f7f4 !important;
}
.img-wrap.lc-img-wrap-fallback,
figure.section.img.lc-img-wrap-fallback,
.img-wrap:has(> img.lc-img-fallback) {
  height: auto !important;
  padding-bottom: 0 !important;
  max-height: 160px !important;
  margin: 12px auto !important;
}
