/* DQHrhx2026 · 全站布局锁定 v4（2026-10-19）
   要点：
   1) 顶栏与内容区铺满宽度（不再留大白边），只控制内距与最大宽 1720；
   2) 导航 9 项常显，字号/内距固定，不随分辨率隐藏；
   3) 恢复右上「登录 / 快捷工具」按钮；
   4) 保留模板旧导航层隐藏（香港用，避免重叠）。 */

:root {
  --DQHrhx2026-gutter: 32px;
  --DQHrhx2026-max: 100%;
}

/* ① 顶栏：铺满宽度，最大 1720 居中，左右固定内距 */
header.zlh-brand {
  width: 100% !important;
  max-width: var(--DQHrhx2026-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 var(--DQHrhx2026-gutter) !important;
  flex-wrap: nowrap !important;
  column-gap: 12px !important;
  box-sizing: border-box !important;
}

/* ② 隐藏与 logo 重复的副标题/城市，以及专题促销位（导航里已有入口，避免顶栏超宽） */
header.zlh-brand .zlh-tagline,
header.zlh-brand .zlh-city,
header.zlh-brand .zlh-topic { display: none !important; }

/* ③ 搜索框固定宽度 */
header.zlh-brand form.zlh-search {
  width: 310px !important;
  min-width: 240px !important;
  flex: 0 0 310px !important;
}

/* ④ 导航：9 项常显、固定字号与内距 */
header.zlh-brand .zlh-homenav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  margin-left: auto !important;
  width: auto !important;
  min-width: max-content !important;
  overflow: visible !important;
}
header.zlh-brand .zlh-homenav > a,
header.zlh-brand .zlh-homenav a[href="/type/7.html"],
header.zlh-brand .zlh-homenav a[href="/type/8.html"],
header.zlh-brand .zlh-homenav a[href="/type/9.html"],
header.zlh-brand .zlh-homenav a[href="/type/3.html"] {
  display: inline-block !important;
  flex: 0 0 auto !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
  padding: 6px 6px !important;
  white-space: nowrap !important;
}

/* ⑤ 右上工具区与登录按钮恢复 */
header.zlh-brand .zlh-brand__tools {
  display: flex !important;
  flex: 0 0 auto !important;
  margin-left: 10px !important;
  align-items: center !important;
  column-gap: 6px !important;
}
header.zlh-brand .zlh-brand__more { display: inline-flex !important; }

/* ⑥ 内容区铺满，最大 1720 居中 */
.zlh-column-list__container,
.zlh-cms__container,
main > .zlh-container,
.zlh-home__wrap,
.zlh-wrap,
.container.zlh-container {
  max-width: var(--DQHrhx2026-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ⑦ 香港：隐藏模板旧导航层（它自带登录按钮会与新顶栏重叠） */
.website-nav-n1 { display: none !important; }

/* 香港：顶栏与内容区铺满，不留白边 */
header.zlh-brand { max-width: 100% !important; }

/* DQHrhx2026 · 右侧快捷服务浮标 v3（2026-10-19 加强视觉）
   设计语言：深蓝渐变实心按钮 + 白色图标 + 光晕阴影，悬停上浮发光；面板白卡圆角 16px。 */

.DQHrhx2026-rail {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 9990;
}
.DQHrhx2026-rail__wrap { position: relative; display: flex; align-items: center; }

/* 按钮本体 */
.DQHrhx2026-rail__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 60px; height: 60px; padding: 0; margin: 0;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px;
  background: linear-gradient(160deg, #1668c8 0%, #0b4e9b 100%);
  color: #fff;
  font-size: 11.5px; line-height: 1; letter-spacing: .5px;
  text-decoration: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 24px rgba(11, 78, 155, .30), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.DQHrhx2026-rail__item svg { width: 22px; height: 22px; }
.DQHrhx2026-rail__item:hover,
.DQHrhx2026-rail__wrap.is-open > .DQHrhx2026-rail__item {
  background: linear-gradient(160deg, #2b8dff 0%, #1067c9 100%);
  transform: translateX(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(12, 92, 190, .42), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* 客服按钮：右上角呼吸点，提示在线 */
.DQHrhx2026-rail__wrap:first-child .DQHrhx2026-rail__item::after {
  content: ""; position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ee08a; box-shadow: 0 0 0 0 rgba(62, 224, 138, .7);
  animation: DQHrhx2026-pulse 2s infinite;
}
@keyframes DQHrhx2026-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 224, 138, .65); }
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0); }
}

/* 顶部按钮：浅色，和主色区分 */
.DQHrhx2026-rail__wrap:last-child .DQHrhx2026-rail__item {
  background: #fff; color: #155ea8;
  border: 1px solid #d8e6f6;
  box-shadow: 0 8px 20px rgba(15, 60, 110, .14);
}
.DQHrhx2026-rail__wrap:last-child .DQHrhx2026-rail__item:hover {
  background: #eef5fd; color: #0b4e9b; transform: translateX(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(15, 60, 110, .20);
}

/* 弹出面板 */
.DQHrhx2026-rail__panel {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: 246px; padding: 16px 16px 14px;
  background: #fff; border: 1px solid #e5eefa; border-radius: 16px;
  box-shadow: 0 24px 54px rgba(9, 38, 74, .22), 0 2px 6px rgba(9, 38, 74, .06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  text-align: left;
}
.DQHrhx2026-rail__wrap.is-open > .DQHrhx2026-rail__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.DQHrhx2026-rail__panel::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; background: #fff; border-right: 1px solid #e5eefa; border-top: 1px solid #e5eefa;
  transform: rotate(45deg); border-radius: 2px;
}
.DQHrhx2026-rail__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #0d3564; letter-spacing: .3px;
}
.DQHrhx2026-rail__title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #2b8dff, #0b4e9b);
}
.DQHrhx2026-rail__panel p { margin: 0 0 9px; font-size: 12.8px; line-height: 1.75; color: #4d6787; }
.DQHrhx2026-rail__mono {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px !important;
  color: #0b4e9b !important; background: #f2f7fe; border: 1px solid #e2edfa;
  border-radius: 10px; padding: 7px 10px; text-align: center;
}
.DQHrhx2026-rail__row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0 !important; }
.DQHrhx2026-rail__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto;
  padding: 8px 12px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(160deg, #1668c8, #0b4e9b); color: #fff !important;
  font-size: 12.5px; line-height: 1.2; text-decoration: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 14px rgba(11, 78, 155, .22);
}
.DQHrhx2026-rail__btn:hover { background: linear-gradient(160deg, #2b8dff, #1067c9); }
.DQHrhx2026-rail__btn--ghost {
  background: #fff; color: #155ea8 !important; border-color: #cfe1f5; box-shadow: none;
}
.DQHrhx2026-rail__btn--ghost:hover { background: #eef5fd; }
.DQHrhx2026-rail__qr {
  display: block; width: 156px; height: auto; margin: 2px auto 8px;
  border-radius: 12px; border: 1px solid #e5eefa; background: #fff;
}
.DQHrhx2026-rail__hint { text-align: center; font-size: 12px !important; color: #7b90a8 !important; margin: 0 !important; }

@media (max-width: 1080px) { .DQHrhx2026-rail { display: none; } }
