/* 网站按钮背景修复CSS - 全面覆盖 */
/* 1. 移除所有PDF链接按钮背景 */
.pdf-list a,
.pdf-list a:hover,
.pdf-list a:focus,
.pdf-list a:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* 2. 移除PDF资源区域所有按钮背景 */
.pdf-resources a,
.pdf-resources button,
.pdf-resources input[type="button"],
.pdf-resources input[type="submit"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 3. 移除页面摘要区域所有按钮背景 */
.page-summary-box a,
.page-summary-box button,
.page-summary-box input[type="button"],
.page-summary-box input[type="submit"],
.page-summary-auto a,
.page-summary-auto button,
.page-summary-auto input[type="button"],
.page-summary-auto input[type="submit"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 4. 特别针对PDF文件链接 */
a[href*=".pdf"],
a[href*=".PDF"],
a[href$=".pdf"],
a[href$=".PDF"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* 5. 移除所有悬停状态的背景 */
a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 6. 确保在AMP模式下也生效 */
.amp-mode-mouse a,
.amp-mode-mouse button,
.amp-mode-mouse input[type="button"],
.amp-mode-mouse input[type="submit"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 7. 覆盖可能的内联样式 */
[style*="background"],
[style*="background-color"],
[style*="border"],
[style*="box-shadow"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 8. 修复可能被Bootstrap等框架影响的按钮 */
.btn,
.button,
.wp-block-button__link,
input[type="button"],
input[type="submit"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
/* ===== 网站按钮背景修复CSS - 强制覆盖版 ===== */

/* 核心修复：强制覆盖所有PDF链接背景 */
body.pdf-ux-enhanced a[href*=".pdf"],
body.pdf-ux-enhanced a[href*=".PDF"],
body.pdf-ux-enhanced a[href$=".pdf"],
body.pdf-ux-enhanced a[href$=".PDF"],
body.pdf-ux-enhanced a[href*="download"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    border-width: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
    color: #333333 !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
}

/* 覆盖所有可能的变体 */
body.pdf-resource-page a[href*=".pdf"],
body.pdf-resource-page-simple a[href*=".pdf"],
.amp-mode-mouse a[href*=".pdf"],
.amp-mode-mouse body.pdf-ux-enhanced a[href*=".pdf"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}