/* 会议会展全站公共组件（矿业AI展厅全站串联方案 §4/§6）
 * 由 template/default-new/meeting/_site-head.php 统一加载；
 * hall.css / meeting-portal.css 只保留页面私有样式，公共件以本文件为真相。
 */

/* ===== 统一媒体回退 .mfb（meeting_media_html() 输出结构） =====
 * 容器自带哈希渐变背景与 ::before 首字；有图时 <img> 绝对定位覆盖，
 * img 缺失或 onerror 移除后自然露出回退，任何媒体位不留空白。 */
.mfb { position: relative; overflow: hidden; background: #0a2242; }
.mfb::before { content: attr(data-fb); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-weight: 800; font-size: 42px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mfb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 小尺寸变体（卡片角标内首字缩小） */
.mfb.mfb-sm::before { font-size: 22px; }
.mfb.mfb-xs::before { font-size: 15px; }

/* ===== 统一面包屑 .mcrumb（叠 Hero 下沿，透明底） ===== */
.mcrumb { position: relative; z-index: 3; width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 14px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: rgba(226,238,250,.72); }
.mcrumb a { color: rgba(226,238,250,.85); text-decoration: none; transition: color .15s; }
.mcrumb a:hover { color: #fcd34d; }
.mcrumb .sep { color: rgba(226,238,250,.4); font-size: 11px; }
.mcrumb .cur { color: #fcd34d; font-weight: 600; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcrumb .back { margin-left: auto; color: rgba(226,238,250,.85); }
.mcrumb .back:hover { color: #fcd34d; }
/* 浅色底变体（无 Hero 的列表页：白/浅灰背景页顶） */
.mcrumb.on-light { color: #6b7280; }
.mcrumb.on-light a { color: #4b5563; }
.mcrumb.on-light a:hover { color: #0a2242; }
.mcrumb.on-light .sep { color: #c3c9d1; }
.mcrumb.on-light .cur { color: #b26a00; }
.mcrumb.on-light .back { color: #1156c4; }

/* ===== Hero 有真图时提高可见度（覆盖 hall.css .hero .bg img 的 .22） ===== */
.hero.has-media .bg img { opacity: .5; }
.hero.has-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,34,66,.25), rgba(10,34,66,.72)); pointer-events: none; }
.hero.has-media .hero-inner, .hero.has-media .hero-note { position: relative; z-index: 2; }

/* ===== 统一 TAB 组件（馆页三 TAB，G4 接入） ===== */
.mtabs { display: flex; gap: 4px; border-bottom: 2px solid #eef0f3; margin-bottom: 18px; }
.mtabs button { position: relative; padding: 10px 22px; font-size: 14.5px; border: none; background: none; cursor: pointer; color: #4e5969; font-weight: 600; }
.mtabs button .cnt { font-size: 12px; color: #9ca3af; margin-left: 4px; font-weight: 400; }
.mtabs button.on { color: #0a2242; }
.mtabs button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: linear-gradient(90deg,#f59e0b,#d97706); border-radius: 2px; }
.mtabs button.on .cnt { color: #b26a00; }

/* ===== 窄屏收口 ===== */
@media (max-width: 768px) {
	.mcrumb { width: calc(100% - 28px); padding-top: 10px; }
	.mcrumb .back { display: none; }
	.mtabs button { padding: 9px 12px; font-size: 13px; }
}
