/* =============================================================
 * React 版补充样式
 * 原模板中由 JS 动态实现的行为（导航悬停/吸顶、返回顶部、电梯导航、
 * 律师查询弹窗、公告跑马灯、模块自动高度）在 React 版中以组件实现，
 * 本文件补齐其所需的最小样式。其余全部沿用模板导出的原始 CSS。
 * ============================================================= */

/* 原模板 webTop 固定 1200px 宽导致 body 撑到 1200px；
   窄窗口下需统一全宽容器宽度，避免滚动后右侧出现空白条。 */
body { min-width: 1200px; }

/* ---------- 导航：悬停高亮（原版由 JS 添加 itemHover 类） ---------- */
#navV2 .item:hover,
#navV2 .item.selected { background: #000000; }
#navV2 .item.selected a,
#navV2 .item:hover a { color: #ffffff; }

/* 导航吸顶（滚动后固定到顶部，原版 _navPositionFixTop=true） */
#webNavTable.rx-nav-fixed #webNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* navV2 模板中为 absolute top:110，吸顶时必须贴到视口顶部 */
#webNavTable.rx-nav-fixed #navV2 {
  top: 0 !important;
  left: 0 !important;
}
#webNavTable.rx-nav-fixed #webNav > div { margin: 0 auto; }

/* ---------- 律师查询弹窗 ---------- */
#lawyerQueryModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
#lawyerQueryModal.rx-open { display: flex; }
#lawyerQueryModal .rx-modal-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: 'Microsoft YaHei', sans-serif;
}
#lawyerQueryModal .rx-modal-head {
  background: #fff;
  border-bottom: 1px solid #eee;
  color: #333;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#lawyerQueryModal .rx-modal-close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
#lawyerQueryModal .rx-modal-body {
  padding: 24px 20px;
  text-align: center;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}
#lawyerQueryModal .rx-modal-go {
  background: #303b53;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 24px;
  font-size: 15px;
  cursor: pointer;
}

/* ---------- 公告跑马灯（原版 noticeMarqueeUpDown） ---------- */
.noticeContainer { overflow: hidden; }
.noticeMarqueeUD { overflow: hidden; }

/* ---------- 模块自动高度兜底 ---------- */
.rx-autoheight { position: relative; }

/* 图片直接加载，替代模板懒加载占位（不影响视觉） */
.floatImgWrap img.float_in_img,
.formMiddleContent img {
  max-width: 100%;
}

/* ---------- logo 页横幅波纹动画（原页面内联样式） ---------- */
.wave-ripple {
  animation: waveDrift 4s ease-in-out infinite;
}
@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

/* ---------- Tab 模块：固定 tab 内容高度（原版 JS 动态计算，空列表=200px） ---------- */
.formTabContent .f_tab_pack_content { height: 200px !important; }

/* ---------- 模块高度覆盖：原版 JS 会对各模块内联设置 height:auto/计算值，
     覆盖 siteModule.min.css 中的固定高度。React 版无此 JS，以下用 !important 还原。 ---------- */
/* QA 页 tab 模块 module1249：原版 JS 设 height:auto，CSS 默认 1855px */
#module1249 { height: auto !important; }

/* ---------- banner 内 zone：原版 JS 按 site width(1200px) 动态设置 .fk-inBannerListZone 宽度，
     覆盖 .fk-moduleZone 默认 960px。React 版无此 JS，用 !important 还原。 ---------- */
.fk-inBannerListZone { width: 1200px !important; margin-left: -600px !important; }
