/* 浮动联系客服按钮（所有页面通用） */
#contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2763ff 0%, #1d52e0 100%);
  color: #fff;
  padding: 13px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(39, 99, 255, 0.35);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#contact-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(39, 99, 255, 0.5);
}
#contact-fab .fab-icon {
  font-size: 18px;
  line-height: 1;
}

/* 模态弹窗 */
#contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
#contact-modal.open {
  display: flex;
  animation: cm-fade-in 0.2s ease;
}
@keyframes cm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cm-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.cm-box {
  position: relative;
  background: #fff;
  padding: 32px 28px 24px;
  border-radius: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: cm-zoom-in 0.25s ease;
}
@keyframes cm-zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cm-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 28px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.cm-close:hover {
  color: #1e293b;
  background: #f1f5f9;
}
.cm-box h3 {
  margin: 0 0 18px;
  color: #1e293b;
  font-size: 19px;
  font-weight: 700;
}
.cm-qr-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cm-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cm-qr-fallback {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
  padding: 16px;
}
.cm-qr-fallback strong {
  color: #475569;
  font-size: 15px;
}
.cm-qr-tip {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 20px;
}
.cm-info {
  text-align: left;
  border-top: 1px solid #eef0f4;
  padding-top: 16px;
  margin-top: 8px;
}
.cm-row {
  display: flex;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
}
.cm-label {
  width: 78px;
  color: #94a3b8;
  font-size: 12px;
  flex-shrink: 0;
}
.cm-val {
  flex: 1;
  color: #1e293b;
  font-weight: 600;
  word-break: break-all;
}
a.cm-val {
  color: #2763ff;
  text-decoration: none;
}
a.cm-val:hover {
  text-decoration: underline;
}
.cm-copy {
  background: #eef3ff;
  color: #2763ff;
  border: none;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cm-copy:hover {
  background: #dbe5ff;
}

@media (max-width: 480px) {
  #contact-fab .fab-text {
    display: none;
  }
  #contact-fab {
    padding: 14px;
    right: 16px;
    bottom: 16px;
  }
  .cm-box {
    padding: 28px 20px 20px;
  }
  .cm-qr-wrap {
    width: 180px;
    height: 180px;
  }
}


.cm-perk {
  background: linear-gradient(90deg, #fff7e6 0%, #ffe8c4 100%);
  color: #c2410c;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: inline-block;
  border: 1px solid #fed7aa;
  line-height: 1.4;
}


.cm-cta-main {
  display: block;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  text-align: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin: 8px 0 8px;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
  transition: all 0.2s;
}
.cm-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(7, 193, 96, 0.45);
  color: #fff;
  text-decoration: none;
}
.cm-cta-tip {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 0 18px;
  text-align: center;
}
