/*
 * Legacy 兼容层 — 修复旧站(yun300)迁移内容的渲染
 * 背景: 2026-09-18 迁移时,全部页面正文是旧站裸 HTML(c_portalRes、w_common 等模块),
 * 没有对应样式表;页头设计为"透明+白字悬浮在深色 hero 图上",而 legacy 内容没有 hero,
 * 导致页头白字盖白底不可见、旧搜索框裸露、1x1 占位图破图。
 * 本文件统一修复,不动数据库内容。上线日期: 2026-09-30
 */

/* ===== 1. 页头: 常驻深色底,白字可读(原设计依赖 hero 图衬底,legacy 页没有) ===== */
body .site-header-shell {
    background: rgba(10, 10, 12, 0.95) !important;
    background-color: rgba(10, 10, 12, 0.95) !important;
}
body .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/* 页头是 fixed 悬浮,legacy 内容没有 hero 缓冲区,给内容留出页头高度 */
body .main.pagebox { padding-top: 120px; }

/* ===== 2. 隐藏旧站遗留模块 ===== */
/* 旧站搜索模块(搜索图标/En/搜索面板,已被主题页头取代) */
[id^="c_portalResSearch_"] { display: none !important; }
/* 空横幅(无图时是一块白底空区;有真图的横幅保留) */
[id^="c_portalResEbizads_banner"]:not(:has(img)) { display: none !important; }

/* ===== 3. 隐藏迁移占位图(1x1 假图,真图在旧站已丢失) ===== */
.pagebox img[src$="__missing.png"],
.pagebox img[src$="upload-s.png"] { visibility: hidden; }

/* ===== 4. 图片不超出容器(yun300 布局之外的基本保障) ===== */
.pagebox img { max-width: 100%; height: auto; }
