/* 全站右侧客服栏基础布局（各页主题色仍由页面内样式覆盖） */
.side-contact {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-contact .side-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  position: relative;
  color: #0ea5e9;
}
.side-contact .side-item:hover {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  transform: scale(1.1);
}
.side-contact .side-item svg {
  width: 24px;
  height: 24px;
}
.side-contact .side-popup {
  position: absolute;
  right: 64px;
  top: 0;
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: 0.3s;
}
.side-contact .side-item:hover .side-popup,
.side-contact .side-item.is-open .side-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.side-contact .side-item.is-open {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  z-index: 10002;
}
.side-contact .side-popup::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-right: 1px solid rgba(14, 165, 233, 0.1);
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}
.side-contact .side-popup .qr-code {
  width: 170px;
  height: 170px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-contact .side-popup p {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  font-weight: 500;
}
.side-contact .side-popup .info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 500;
}
.side-contact .side-popup .info-line:last-child {
  border-bottom: none;
}
.side-contact .side-popup .info-line svg {
  width: 20px;
  height: 20px;
  color: #0ea5e9;
  flex-shrink: 0;
}
/* 手机端：遮罩 flex 居中弹层（不用 left:50%+transform，兼容华为浏览器） */
.side-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 16px)) max(16px, env(safe-area-inset-right, 16px))
    max(16px, env(safe-area-inset-bottom, 16px)) max(16px, env(safe-area-inset-left, 16px));
  box-sizing: border-box;
  transition: opacity 0.25s, visibility 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.side-contact-backdrop.show {
  opacity: 1;
  visibility: visible;
}

body.side-sheet-open {
  overflow: hidden;
}

.side-contact-sheet-wrap {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  flex-shrink: 0;
  pointer-events: none;
}

.side-contact-sheet {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-height: min(75vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.side-contact-sheet.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 禁止手机/触屏用 hover 弹出侧栏内旧弹层（各页内联样式会覆盖，需 !important） */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .side-popup,
  .side-item .side-popup,
  .side-contact .side-item .side-popup {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .side-item:hover .side-popup,
  .side-contact .side-item:hover .side-popup {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

.side-contact-sheet .side-sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.side-contact-sheet .qr-code {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 10px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.side-contact-sheet .qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.side-contact-sheet p {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

.side-contact-sheet .info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.side-contact-sheet .info-line:last-child {
  border-bottom: none;
}

.side-contact-sheet .info-line svg {
  width: 20px;
  height: 20px;
  color: #0ea5e9;
  flex-shrink: 0;
}

.side-contact-sheet .info-line a {
  color: #0284c7;
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 768px) {
  .side-contact {
    right: 12px;
    top: auto;
    bottom: 88px;
    transform: none;
    gap: 10px;
    z-index: 10001;
  }

  .side-contact .side-item {
    width: 46px;
    height: 46px;
  }

  .side-contact .side-item svg {
    width: 22px;
    height: 22px;
  }

  .side-item .side-icon-qq {
    width: 24px;
    height: 24px;
  }

  /* 手机端用 body 级弹层，隐藏侧栏内原弹层 */
  .side-contact .side-item .side-popup {
    display: none !important;
  }

  .side-contact .side-item:hover {
    transform: none;
  }
}

/* 全站页脚「联系方式」可读性：非链接文字与电话链接统一高对比 */
footer .footer-col ul li {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
footer .footer-col ul li.footer-addr {
  line-height: 1.7;
  word-break: break-word;
}
footer .footer-col ul li a,
footer .footer-col ul li a.tel-link {
  color: #fde68a;
  opacity: 1;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}
footer .footer-col ul li a:hover,
footer .footer-col ul li a.tel-link:hover {
  color: #fff;
  opacity: 1;
}

/* 右侧客服栏：QQ 图标、弹层链接 */
.side-item .side-icon-qq {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
}
.side-popup .info-line a {
  color: inherit;
  font-weight: 600;
  transition: color 0.2s;
}
.side-popup .info-line a:hover {
  color: #0284c7;
}
.side-popup .qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.side-item.side-item-cta {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-color: transparent;
}
.side-item.side-item-cta:hover {
  color: #fff;
  transform: scale(1.1);
}
.side-popup .side-cta-text {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: inherit;
}

/* 页脚品牌区 Logo 固定尺寸（避免 img{max-width:100%} 被撑满整列） */
footer .footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 100%;
  text-decoration: none;
}
footer .footer-brand .logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  min-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
footer .footer-brand .logo-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}
footer .footer-brand p {
  max-width: 360px;
}
