/* ============================================================
 * 博恒仿真教学系统官网 · 增强层样式
 * 控制胶囊（语言 / 用户协议）+ 独立「购买须知」卡片 + 用户协议弹窗
 * ============================================================ */

/* ---------- 顶部控制胶囊 ---------- */
.bh-ctl {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 9600; display: flex; align-items: center; gap: 4px;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(195, 208, 229, 0.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
}
.bh-ctl button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; cursor: pointer;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #3A4E6E;
  transition: background .2s, color .2s;
}
.bh-ctl button:hover { background: rgba(8, 145, 178, 0.10); color: #0E7490; }
.bh-ctl button svg { width: 14px; height: 14px; flex: none; }
.bh-ctl .bh-sep { width: 1px; height: 16px; background: rgba(195, 208, 229, 0.6); margin: 0 2px; }
.bh-ctl .bh-lang { display: flex; gap: 2px; }
.bh-ctl .bh-lang button { padding: 6px 9px; font-size: 11.5px; }
.bh-ctl .bh-lang button.on { background: #0891B2; color: #fff; }
@media (max-width: 640px) { .bh-ctl { top: 10px; } .bh-ctl button span.t { display: none; } }

/* ---------- 独立「购买须知」卡片（第三页中列区域） ---------- */
.bh-slide { position: relative; }
.bh-notice {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  margin-top: 14px; padding: 22px 18px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(251, 191, 36, 0.14), rgba(8, 145, 178, 0.07));
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.10);
}
.bh-notice-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(217, 119, 6, 0.14); color: #D97706; }
.bh-notice-ico svg { width: 23px; height: 23px; }
.bh-notice-txt { display: flex; flex-direction: column; gap: 5px; }
.bh-notice-txt b { font-size: 13.5px; font-weight: 800; color: #16233B; letter-spacing: .04em; }
.bh-notice-txt i { font-style: normal; font-size: 12.5px; line-height: 1.75; color: #3A4E6E; }
/* 大屏：卡片悬浮于左右栏之间的中列区域（参考红框），小屏自然回落为块级卡片 */
@media (min-width: 1024px) {
  .bh-notice {
    position: absolute; top: 50%; left: 29.5%; transform: translateY(-50%);
    width: 23%; min-width: 230px; max-width: 340px; margin-top: 0;
  }
}

/* ---------- 用户协议弹窗 ---------- */
.bh-md-mask {
  position: fixed; inset: 0; z-index: 9700;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 25, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: bhFade .22s ease;
}
.bh-md {
  width: min(760px, 92vw); max-height: 84vh; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: #F7FAFE; border: 1px solid rgba(195, 208, 229, 0.6);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  animation: bhUp .28s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.bh-md header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid rgba(195, 208, 229, 0.5); }
.bh-md header h2 { margin: 0; font-size: 16px; font-weight: 800; color: #16233B; }
.bh-md header button { border: none; background: transparent; cursor: pointer; color: #5E7191; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.bh-md header button:hover { background: rgba(8, 145, 178, 0.12); color: #0E7490; }
.bh-md .bh-md-body { overflow-y: auto; padding: 20px 26px 30px; font-size: 13.5px; line-height: 1.9; color: #3A4E6E; }
.bh-md h1 { display: none; }
.bh-md h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 800; color: #16233B; }
.bh-md h4 { margin: 16px 0 6px; font-size: 13.5px; font-weight: 700; color: #0E7490; }
.bh-md p { margin: 8px 0; }
.bh-md ul, .bh-md ol { margin: 8px 0; padding-left: 22px; }
.bh-md li { margin: 4px 0; }
.bh-md strong { color: #16233B; }
.bh-md hr { border: none; border-top: 1px dashed rgba(195, 208, 229, 0.8); margin: 18px 0; }
@keyframes bhFade { from { opacity: 0; } }
@keyframes bhUp { from { opacity: 0; transform: translateY(14px) scale(.98); } }
