@charset "UTF-8";
/* ==========================================================================
   Boer Tech · layout.css
   页头 / 主导航 / 搜索 / 页脚 / 移动端悬浮导航 / 全站悬浮组件
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 顶部信息条
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--c-ink);
  color: #c8d0dc;
  font-size: 13px;
  height: 36px;
  line-height: 36px;
}
.topbar .boer-container { display: flex; align-items: center; justify-content: space-between; }
.topbar__left { display: flex; align-items: center; gap: 18px; }
.topbar__item { display: inline-flex; align-items: center; gap: 5px; }
.topbar__item strong { color: #fff; font-weight: 600; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar__links a { color: #c8d0dc; }
.topbar__links a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   2. 页头
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 0 var(--c-line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-2); }
.site-header__main { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

/* LOGO */
.site-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.site-brand__mark {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.5px; box-shadow: var(--sh-primary);
}
.site-brand__text { line-height: 1.25; }
.site-brand__name { font-size: 19px; font-weight: 800; color: var(--c-ink); letter-spacing: .5px; }
.site-brand__slogan { font-size: 12px; color: var(--c-muted); letter-spacing: 1px; }
.site-brand img { max-height: 46px; width: auto; }

/* 页头搜索 */
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search__form { display: flex; height: 40px; border: 2px solid var(--c-primary); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.header-search__input { flex: 1; border: 0; outline: none; padding: 0 18px; font-size: 14px; background: transparent; }
.header-search__btn { width: 62px; background: var(--c-primary); color: #fff; font-size: 15px; flex: none; transition: background var(--dur) var(--ease); }
.header-search__btn:hover { background: var(--c-primary-dark); }
.header-search__hot {
  position: absolute; left: 18px; top: 46px; z-index: 20;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--sh-3); padding: 12px 16px; min-width: 300px; display: none;
}
.header-search.is-open .header-search__hot { display: block; }
.header-search__hot-title { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.header-search__hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.header-search__hot-list a { font-size: 13px; color: var(--c-text); background: var(--c-bg); padding: 4px 11px; border-radius: var(--radius-pill); }
.header-search__hot-list a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* 页头右侧动作 */
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.header-hotline { display: flex; align-items: center; gap: 9px; }
.header-hotline__icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--c-primary-soft); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.header-hotline__text { line-height: 1.3; }
.header-hotline__label { font-size: 12px; color: var(--c-muted); }
.header-hotline__num { font-size: 17px; font-weight: 800; color: var(--c-primary-dark); letter-spacing: .3px; }

/* --------------------------------------------------------------------------
   3. 主导航
   -------------------------------------------------------------------------- */
.site-nav { background: #fff; border-top: 1px solid var(--c-line); position: relative; }
.site-nav__inner { display: flex; align-items: stretch; height: var(--nav-h); }
.site-nav__all { position: relative; flex: none; }
.site-nav__all-btn {
  width: 200px; height: var(--nav-h); background: var(--c-primary); color: #fff;
  font-size: 15px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 8px; letter-spacing: .5px;
}
.site-nav__all-btn:hover { background: var(--c-primary-dark); }
.site-nav__list { display: flex; align-items: stretch; flex: 1; }
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
  display: flex; align-items: center; height: var(--nav-h); padding: 0 20px;
  font-size: 15px; color: var(--c-title); white-space: nowrap; position: relative;
}
.site-nav__list > li > a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
  background: var(--c-primary); transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.site-nav__list > li:hover > a,
.site-nav__list > li.current-menu-item > a { color: var(--c-primary); }
.site-nav__list > li:hover > a::after,
.site-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }

/* 下拉子菜单 */
.site-nav__list .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 188px; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--sh-3);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--dur) var(--ease); z-index: 60; border-top: 2px solid var(--c-primary);
}
.site-nav__list > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__list .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; color: var(--c-text); }
.site-nav__list .sub-menu a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* 全部商品分类面板 */
.cat-panel {
  position: absolute; left: 0; top: var(--nav-h); width: 200px; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--sh-3);
  padding: 6px 0; z-index: 80; display: none; max-height: 62vh; overflow-y: auto;
}
.site-nav__all:hover .cat-panel { display: block; }
.cat-panel__item { position: relative; }
.cat-panel__link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; font-size: 14px; color: var(--c-title);
}
.cat-panel__link:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.cat-panel__link .sign { color: var(--c-muted); font-size: 12px; }
.cat-panel__sub {
  position: absolute; left: 100%; top: 0; min-width: 240px; background: #fff;
  box-shadow: var(--sh-3); border-radius: var(--radius); padding: 14px 18px;
  display: none; z-index: 90;
}
.cat-panel__item:hover .cat-panel__sub { display: block; }
.cat-panel__sub a { display: inline-block; font-size: 13px; color: var(--c-text); margin: 0 12px 10px 0; }
.cat-panel__sub a:hover { color: var(--c-primary); }

/* 导航右侧询价按钮 */
.site-nav__cta { display: flex; align-items: center; margin-left: auto; }

/* 移动端汉堡按钮 */
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: all var(--dur) var(--ease); }

/* --------------------------------------------------------------------------
   4. 页脚
   -------------------------------------------------------------------------- */
.site-footer { background: #232b38; color: #9aa5b5; font-size: 13px; margin-top: 0; }
.site-footer__top { padding: 44px 0 34px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer__title { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 16px; }
.site-footer__links li { margin-bottom: 9px; }
.site-footer__links a { color: #9aa5b5; }
.site-footer__links a:hover { color: #fff; }
.site-footer__about p { line-height: 1.85; margin-bottom: 12px; }
.site-footer__contact li { display: flex; gap: 9px; margin-bottom: 11px; line-height: 1.65; }
.site-footer__contact .ico { flex: none; opacity: .7; }
.site-footer__contact strong { color: #fff; font-weight: 600; }
.site-footer__tel { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .4px; margin-bottom: 6px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 16px 0; font-size: 12.5px; color: #78838f;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer__bottom a { color: #78838f; }
.site-footer__bottom a:hover { color: #c8d0dc; }
.site-footer__badges { display: flex; gap: 10px; align-items: center; }

/* 服务承诺条（页脚上方） */
.footer-promise { background: #1b222d; }
.footer-promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer-promise__item { display: flex; align-items: center; gap: 13px; padding: 22px 18px; border-right: 1px solid rgba(255, 255, 255, .06); }
.footer-promise__item:last-child { border-right: 0; }
.footer-promise__icon { font-size: 25px; flex: none; }
.footer-promise__t { font-size: 14.5px; color: #fff; font-weight: 600; margin-bottom: 3px; }
.footer-promise__d { font-size: 12.5px; color: #8b96a5; line-height: 1.5; }

/* --------------------------------------------------------------------------
   5. 移动端底部悬浮导航（对标参考站）
   -------------------------------------------------------------------------- */
.mobile-nav { display: none; }

/* --------------------------------------------------------------------------
   6. 全站悬浮组件
   -------------------------------------------------------------------------- */
/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 118px; z-index: 880;
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-3); color: var(--c-text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-primary); color: #fff; }

/* 右侧快捷栏 */
.side-tools {
  position: fixed; right: 22px; bottom: 176px; z-index: 880;
  display: flex; flex-direction: column; gap: 10px;
}
.side-tools__item {
  width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--sh-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; color: var(--c-text); line-height: 1.1; gap: 2px;
  transition: all var(--dur) var(--ease); position: relative;
}
.side-tools__item .ico { font-size: 17px; line-height: 1; }
.side-tools__item:hover { background: var(--c-primary); color: #fff; }
.side-tools__item--ai { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff; }
.side-tools__item--ai:hover { filter: brightness(1.08); }

/* 悬浮 AI 客服按钮 */
.float-ai {
  position: fixed; right: 22px; bottom: 56px; z-index: 890;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; box-shadow: var(--sh-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: transform var(--dur) var(--ease);
  animation: ai-pulse 2.6s infinite;
}
.float-ai:hover { transform: scale(1.08); }
.float-ai__label {
  position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--c-ink);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius);
  box-shadow: var(--sh-2);
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(47, 123, 255, .28), 0 0 0 0 rgba(47, 123, 255, .38); }
  50% { box-shadow: 0 6px 18px rgba(47, 123, 255, .28), 0 0 0 12px rgba(47, 123, 255, 0); }
}

/* 营销留资弹窗 */
.marketing-pop {
  position: fixed; right: 22px; bottom: 130px; z-index: 885; width: 300px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--sh-3);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96);
  transition: all .32s var(--ease);
}
.marketing-pop.is-on { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.marketing-pop__close {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .06); color: var(--c-muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.marketing-pop__close:hover { background: rgba(0, 0, 0, .12); color: var(--c-ink); }
.marketing-pop__head { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff; padding: 16px 18px; }
.marketing-pop__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.marketing-pop__desc { font-size: 12.5px; opacity: .9; line-height: 1.55; }
.marketing-pop__body { padding: 16px 18px 18px; }
.marketing-pop__body .field__input { height: 40px; }
.marketing-pop__body .field { margin-bottom: 11px; }

/* 询价弹层 */
.boer-modal {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.boer-modal.is-on { display: flex; }
.boer-modal__mask { position: absolute; inset: 0; background: rgba(16, 22, 32, .58); backdrop-filter: blur(2px); }
.boer-modal__box {
  position: relative; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--sh-3);
  animation: modal-in .28s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.boer-modal__head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--c-line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.boer-modal__title { font-size: 19px; color: var(--c-ink); }
.boer-modal__sub { font-size: 13px; color: var(--c-muted); margin-top: 5px; }
.boer-modal__close { width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg); color: var(--c-text); font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.boer-modal__close:hover { background: var(--c-line); color: var(--c-ink); }
.boer-modal__body { padding: 22px 24px 24px; }

/* 主体内容区最小高度 */
.site-main { min-height: 60vh; }
