/* 文章纯白/纯黑的写死底色改为透明跟随页面渐变；配置了渐变（如九肖十码 #e8fff9）的保留渐变 */
#articleList > .article-item,
.article-item,
.art-title,
.art-content {
  background: transparent !important;
}

/* 没有配置底色的卡片/内容区 → 透明 */
.article-gold-card-wrap:not([style*="background:"]),
.article-table-box:not([style*="background:"]) {
  background: transparent !important;
}

/* 写死纯白底色的卡片/内容区 → 透明 */
.article-gold-card-wrap[style*="background:#ffffff"],
.article-gold-card-wrap[style*="background:#fff;"],
.article-table-box[style*="background:#ffffff"],
.article-table-box[style*="background:#fff;"],
.article-gold-title-bar[style*="background:#ffffff"],
.article-gold-title-bar[style*="background:#fff;"] {
  background: transparent !important;
}

/* 九肖十码等表格内部的纯黑/纯白号码格透明；渐变底色和黄色开奖高亮保留 */
.article-table-box table td[style*="background:#000;"],
.article-table-box table td[style*="background:#000000;"],
.article-table-box table td[style*="background:#fff;"],
.article-table-box table td[style*="background:#ffffff;"] {
  background: transparent !important;
}

/* 九肖十码整块外框强制直角：兼容旧数据里写死的 border-radius:12px */
.article-table-box div[style*="margin-bottom:14px"],
.article-gold-item-box div[style*="margin-bottom:14px"],
.article-table-box div[style*="margin:0 0 14px"],
.article-gold-item-box div[style*="margin:0 0 14px"],
.article-table-box div[style*="border:2px solid #e6c000"],
.article-table-box div[style*="border:3px solid #e6c000"] {
  border-radius: 0 !important;
}

/* 承载表格的内容区也改为直角，避免容器圆角把外框裁圆 */
.article-table-box,
.article-gold-item-box,
.article-gold-card-wrap {
  border-radius: 0 !important;
}

/* 黑底容器透明，避免九肖十码外框外面多出一圈黑边 */
.article-table-box[style*="background:#000"],
.article-table-box[style*="background:#000000"],
.article-gold-item-box[style*="background:#000"],
.article-gold-item-box[style*="background:#000000"],
.article-gold-card-wrap[style*="background:#000"],
.article-gold-card-wrap[style*="background:#000000"],
#articleList > .article-item[style*="background:#000"],
#articleList > .article-item[style*="background:#000000"] {
  background: transparent !important;
}

/* 旧块自身若写死黑底，也一并去掉 */
#articleList div[style*="background:#000;"],
#articleList div[style*="background:#000000;"] {
  background: transparent !important;
}

/* 兜底：文章区任何写死的黑底一律透明（含无分号、black、rgb(0,0,0) 写法） */
#articleList [style*="background:#000"],
#articleList [style*="background: black"],
#articleList [style*="background:black"],
#articleList [style*="background: rgb(0, 0, 0)"],
#articleList [style*="background:rgb(0,0,0)"],
#articleList [style*="background: #000"],
#articleList [style*="background: #000000"],
#articleList [style*="background-color:#000"],
#articleList [style*="background-color: #000"] {
  background: transparent !important;
  box-shadow: none !important;
}

/* 外框/容器上的黑色描边也去掉 */
#articleList [style*="solid #000"],
#articleList [style*="solid black"],
#articleList [style*="1px solid rgb(0, 0, 0)"] {
  border-color: transparent !important;
}
/* 只要内容区里放了九肖十码块，外层容器一律透明：
   旧块自身没有底色，外层若带深色底就会在块四周透出一圈"黑边" */
.article-table-box:has(div[style*="margin-bottom:14px"]),
.article-gold-card-wrap:has(div[style*="margin-bottom:14px"]),
.article-gold-item-box:has(div[style*="margin-bottom:14px"]),
.article-table-box:has(div[style*="margin:0 0 14px"]),
.article-gold-card-wrap:has(div[style*="margin:0 0 14px"]),
.article-gold-item-box:has(div[style*="margin:0 0 14px"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* 九肖十码外框统一成 315 的细直角框：
   100vw + 负边距会超出容器，导致左边框被裁掉，这里改成 100% 贴合容器 */
#articleList div[style*="margin-bottom:14px"],
.article-table-box div[style*="margin-bottom:14px"],
.article-gold-item-box div[style*="margin-bottom:14px"],
#articleList div[style*="margin:0 0 14px"],
.article-table-box div[style*="margin:0 0 14px"],
.article-gold-item-box div[style*="margin:0 0 14px"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
  box-sizing: border-box !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 0 !important;
}

/* 文本采集文章原样渲染：限宽换行，避免自带样式溢出容器 */
.article-raw-box {
  overflow-x: auto;
  word-break: break-word;
  line-height: 1.7;
}
.article-raw-box img {
  max-width: 100%;
  height: auto;
}
.article-raw-box table {
  max-width: 100%;
  border-collapse: collapse;
}
.article-raw-box * {
  max-width: 100%;
}
