﻿
/* 语言版本切换 */

 /* ============================================================
     以下为「底部悬浮联系栏」正式代码，复制到你网站即可使用
     ============================================================ */
 /* 仅在移动端显示（≤768px）；桌面端隐藏 */
  @media (min-width: 769px) {
    .mobile-contact-bar,
    .contact-panel-mask { display: none !important; }
  }

  /* 底部固定悬浮栏 */
  .mobile-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    height: 58px;
    /* 适配 iPhone 底部安全区 */
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  }

  /* 每个按钮等分 */
  .mobile-contact-bar .mc-item {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    border: none !important;
    color: #fff !important;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }
  .mobile-contact-bar .mc-item svg {
    width: 22px;
    height: 22px;
    fill: #fff !important;
  }
  .mobile-contact-bar .mc-item span {
    color: #fff !important;
  }

  /* 各按钮配色（!important 防止被网站全局重置样式覆盖） */
  .mc-mail   { background: #1e88e5 !important; }  /* 邮件 - 蓝 */
  .mc-wechat { background: #07c160 !important; }  /* 微信 - 绿 */
  .mc-mobile { background: #ff9500 !important; }  /* 手机 - 橙 */
  .mc-phone  { background: #ff3b30 !important; }  /* 电话 - 红 */

  /* 微信面板遮罩 */
  .contact-panel-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    display: none;
  }
  .contact-panel-mask.show { display: block; }

  /* 微信面板 */
  .contact-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .contact-panel.show { transform: translateY(0); }
  .contact-panel h3 {
    font-size: 16px;
    margin-bottom: 14px;
    text-align: center;
  }
  /* 微信号行 */
  .cp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 15px;
    color: #333;
  }
  .cp-row b { color: #07c160; }
  /* 二维码占位 */
  .cp-qrcode {
    width: 150px;
    height: 150px;
    margin: 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f3f5;
    border-radius: 10px;
    color: #999;
    font-size: 13px;
    text-align: center;
  }
  .cp-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  .cp-close {
    display: block;
    margin: 14px auto 0;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f2f3f5;
    font-size: 15px;
    color: #666;
    cursor: pointer;
  }