@charset "utf-8";
/* ============================================================
   工业熊 · 联系客户经理组件  ocpc-contact.css  v1.0
   新增文件，不改动原有 style.css，回退时直接删除本文件即可
   ============================================================ */

/* ---------- 页头：分配专属客户经理按钮 ---------- */
.gyx-hd { position: relative; display: inline-block; max-width: 100%; margin-top: 6px; }
.gyx-hd__btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: #de0000; color: #fff;
  padding: 8px 14px; border-radius: 3px; cursor: pointer;
  font-family: inherit; text-align: left; line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
  transition: background .15s ease;
}
.gyx-hd__btn:hover, .gyx-hd__btn:focus { background: #c00000; color: #fff; outline: 0; }
.gyx-hd__ico { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; }
.gyx-hd__ico svg { width: 18px; height: 18px; display: block; fill: #fff; }
.gyx-hd__txt { display: block; }
.gyx-hd__t { display: block; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.gyx-hd__s { display: block; font-size: 11px; opacity: .88; margin-top: 2px; letter-spacing: .2px; }
.gyx-hd__caret {
  display: inline-block; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #fff; transition: transform .18s ease;
}
.gyx-hd.is-open .gyx-hd__caret { transform: rotate(180deg); }

/* 下拉面板 */
.gyx-hd__drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1060;
  width: 336px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid #e6e6e6; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
  padding: 14px; display: none; text-align: left;
}
.gyx-hd.is-open .gyx-hd__drop { display: block; }
.gyx-hd__drop:before {
  content: ""; position: absolute; top: -7px; right: 26px;
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid #e6e6e6; border-top: 1px solid #e6e6e6;
  transform: rotate(45deg);
}
.gyx-hd__body { display: flex; gap: 14px; }
.gyx-hd__qr { flex: 0 0 108px; width: 108px; text-align: center; }
.gyx-hd__qr img { width: 108px; height: 108px; display: block; border: 1px solid #eee; background: #fafafa; }
.gyx-hd__qr span { display: block; font-size: 11px; color: #999; margin-top: 6px; line-height: 1.4; }
.gyx-hd__info { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #3b3b3b; }
.gyx-hd__info-t {
  font-size: 14px; font-weight: 700; color: #de0000; margin: 0 0 8px;
  padding-bottom: 8px; border-bottom: 1px dashed #eee;
}
.gyx-hd__info p { margin: 0 0 6px; line-height: 1.5; word-break: break-all; }
.gyx-hd__info p span, .gyx-hd__info p a { color: #3b3b3b; }
.gyx-hd__info p a:hover { color: #de0000; text-decoration: none; }
.gyx-hd__info p em { font-style: normal; color: #999; margin-right: 4px; }
.gyx-hd__more { margin-top: 8px !important; }
.gyx-hd__more a { color: #de0000 !important; font-size: 12px; }

/* ---------- 右侧常驻悬浮按钮 ---------- */
.gyx-float {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 1050; width: 56px; padding: 16px 0;
  border: 0; border-radius: 6px 0 0 6px; cursor: pointer;
  background: #de0000; color: #fff; font-family: inherit;
  box-shadow: -2px 0 14px rgba(0,0,0,.2);
  transition: background .15s ease, width .15s ease;
}
.gyx-float:hover, .gyx-float:focus { background: #c00000; color: #fff; outline: 0; }
.gyx-float__ico { display: block; margin: 0 auto 8px; width: 22px; height: 22px; }
.gyx-float__ico svg { width: 22px; height: 22px; display: block; fill: #fff; margin: 0 auto; }
.gyx-float__txt {
  display: block; writing-mode: vertical-rl; text-orientation: upright;
  letter-spacing: 3px; font-size: 13px; line-height: 1; margin: 0 auto;
}

/* ---------- 弹窗 ---------- */
.gyx-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.52); z-index: 1061; display: none;
}
.gyx-mask.is-open { display: block; }
.gyx-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 1062; width: 92%; max-width: 700px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 6px; display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
.gyx-modal.is-open { display: block; }
.gyx-modal__head {
  position: relative; padding: 18px 52px 14px 22px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(180deg,#fff 0%,#fbfbfb 100%);
}
.gyx-modal__head h3 { margin: 0; font-size: 18px; color: #de0000; font-weight: 700; }
.gyx-modal__head p { margin: 6px 0 0; font-size: 13px; color: #999; }
.gyx-modal__close {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px;
  border: 0; background: transparent; font-size: 24px; line-height: 1;
  color: #bbb; cursor: pointer; border-radius: 50%;
}
.gyx-modal__close:hover { background: #f2f2f2; color: #666; }
.gyx-modal__body { display: flex; gap: 22px; padding: 20px 22px; }
.gyx-modal__qr { flex: 0 0 150px; width: 150px; text-align: center; }
.gyx-modal__qr img { width: 150px; height: 150px; display: block; border: 1px solid #eee; background: #fafafa; }
.gyx-modal__qr span { display: block; font-size: 12px; color: #999; margin-top: 8px; }
.gyx-modal__list { flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.gyx-modal__list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed #eee; line-height: 1.55;
}
.gyx-modal__list li:last-child { border-bottom: 0; }
.gyx-modal__list em {
  flex: 0 0 58px; font-style: normal; color: #999; font-size: 13px; padding-top: 1px;
}
.gyx-modal__list span, .gyx-modal__list a { color: #3b3b3b; word-break: break-all; }
.gyx-modal__list a:hover { color: #de0000; text-decoration: none; }
.gyx-modal__list a.gyx-tel { font-weight: 700; color: #de0000; font-size: 15px; }
.gyx-modal__foot { padding: 0 22px 20px; }
.gyx-modal__cta {
  display: block; text-align: center; background: #de0000; color: #fff;
  padding: 13px 16px; border-radius: 3px; font-size: 15px; font-weight: 700;
  letter-spacing: .5px;
}
.gyx-modal__cta:hover, .gyx-modal__cta:focus { background: #c00000; color: #fff; text-decoration: none; }
.gyx-modal__tip { text-align: center; font-size: 12px; color: #aaa; margin: 10px 0 0; }

/* 无二维码时：隐藏二维码区，信息区全宽 */
.gyx-no-qr .gyx-hd__qr, .gyx-no-qr .gyx-modal__qr { display: none; }

/* 避让底部固定导航 */
.gyx-modal { margin-bottom: 0; }

/* ---------- 联系我们页/侧栏里的触发链接 ---------- */
.index_contact a.gyx-tel-link { color: #de0000; font-weight: 700; }
.index_contact a.gyx-tel-link:hover { text-decoration: none; color: #b00000; }
.index_contact .gyx-assign { margin-top: 12px; }
.index_contact .gyx-assign a {
  display: inline-block; background: #de0000; color: #fff;
  padding: 8px 14px; border-radius: 3px; font-size: 13px;
}
.index_contact .gyx-assign a:hover, .index_contact .gyx-assign a:focus {
  background: #c00000; color: #fff; text-decoration: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 991px) {
  .gyx-hd { margin-top: 10px; }
}
@media (max-width: 767px) {
  #topsearch .gyx-hd { display: block; }
  .gyx-hd__btn { width: 100%; justify-content: flex-start; margin-bottom: 6px; }
  .gyx-hd__drop { left: 0; right: auto; width: calc(100vw - 30px); }
  .gyx-hd__drop:before { right: auto; left: 32px; }

  /* 移动端放左侧：右侧底部被 51.la 在线咨询悬浮件占据，避免重叠 */
  .gyx-float {
    top: auto; bottom: 78px; left: 10px; right: auto; transform: none;
    width: auto; padding: 10px 14px; border-radius: 24px;
    display: flex; align-items: center; gap: 6px;
  }
  .gyx-float__ico { margin: 0; width: 18px; height: 18px; }
  .gyx-float__ico svg { width: 18px; height: 18px; }
  .gyx-float__txt { writing-mode: horizontal-tb; text-orientation: initial; letter-spacing: 1px; font-size: 13px; }

  .gyx-modal { width: calc(100% - 24px); max-height: 82vh; top: 46%; }
  .gyx-modal__head { padding: 14px 48px 12px 16px; }
  .gyx-modal__head h3 { font-size: 16px; }
  .gyx-modal__body { flex-direction: column; gap: 14px; padding: 16px; }
  .gyx-modal__qr { flex: none; width: 100%; }
  .gyx-modal__qr img { margin: 0 auto; }
  .gyx-modal__list em { flex: 0 0 50px; }
  .gyx-modal__foot { padding: 0 16px 16px; }
}
