/* 麦信官网 - 移动端独立样式 v3 (仅 <=1023px 生效) */
/* 配色: 主色=官网深绿 #2D8B7A / 强调=橙色 #E8900C */
.mx-mobile-only { display: none; }

@media (max-width: 1023px) {
  /* ===== 顶栏（替换 PC header）===== */
  /* 注意: 不要包含 [class*="topbar"]，否则会误杀 .mx-topbar-right */
  header, nav, [class*="navbar"], [class*="nav-bar"], [class*="Header"], [class*="z-50"] { display: none !important; }

  body { font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; padding-top: 54px; padding-bottom: 64px; background: #fff; }

  /* 首页：默认隐藏原PC内容，等JS注入移动端内容后再显示 */
  body:not(:has(.mx-home-extra)) main { visibility: hidden !important; min-height: 0 !important; }
  .mx-home-extra { display: block !important; }
  p, li { line-height: 1.85; }
  h1, h2, h3 { line-height: 1.3; }

  /* 顶栏：脉信 | 咨询 ≡ */
  .mx-topbar { display: flex !important; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 10000; padding: 0 16px; background: #fff; border-bottom: 1px solid #e8e8e8; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
  .mx-logo { font-size: 17px; font-weight: 700; color: #1a1a1a; text-decoration: none; letter-spacing: 0.5px; }
  .mx-topbar-right { display: flex; align-items: center; gap: 14px; }
  .mx-consult { font-size: 14px; color: #2D8B7A; text-decoration: none; font-weight: 600; padding: 6px 12px; background: #eaf4f1; border-radius: 999px; }
  .mx-burger { background: none; border: none; padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
  .mx-burger span { width: 22px; height: 2px; background: #333; display: block; border-radius: 1px; }

  /* ===== 抽屉菜单 ===== */
  .mx-drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 10001; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .mx-drawer-mask.show { opacity: 1; visibility: visible; }
  .mx-drawer { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 300px; background: #fff; z-index: 10002; transform: translateX(100%); transition: transform .28s ease; box-shadow: -4px 0 24px rgba(0,0,0,.12); }
  .mx-drawer.show { transform: translateX(0); }
  .mx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eee; font-weight: 700; font-size: 16px; color: #1a1a1a; }
  .mx-close { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 4px; }
  .mx-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
  .mx-drawer-nav > a, .mx-prod-title { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; font-size: 15px; font-weight: 500; color: #1a1a1a; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
  .mx-prod-sub { display: none; background: #fafafa; }
  .mx-prod.open .mx-prod-sub { display: block; }
  .mx-prod-sub a { display: block; padding: 12px 18px 12px 32px; font-size: 14px; color: #555; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
  .mx-drawer-foot { padding: 16px 18px; border-top: 1px solid #eee; }
  .mx-call { display: block; background: #2D8B7A; color: #fff; text-align: center; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 6px; }
  .mx-call-sub { text-align: center; font-size: 12px; color: #888; }

  /* ===== 通用区块标题（绿色竖条 + 间距）===== */
  .mx-sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
  .mx-sec-title::before { content: ""; width: 4px; height: 18px; background: #2D8B7A; border-radius: 2px; flex-shrink: 0; }
  .mx-sec-sub { font-size: 13px; color: #999; margin: 0 0 16px; padding-left: 12px; }

  /* ===== Hero 区块（绿渐变背景）===== */
  .mx-hero { background: linear-gradient(135deg, #2D8B7A 0%, #3a9d8a 50%, #4aab98 100%); padding: 32px 20px 28px; color: #fff; }
  .mx-hero-title { font-size: 23px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
  .mx-hero-sub { font-size: 14px; opacity: 0.92; line-height: 1.6; margin: 0 0 20px; }
  .mx-hero-btns { display: flex; gap: 10px; }
  .mx-btn-primary { flex: 1; background: #E8900C; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 4px 12px rgba(232,144,12,.3); }
  .mx-btn-outline { flex: 1; background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.8); border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; }

  /* ===== 核心智能体（白底 + 卡片阴影）===== */
  .mx-products { padding: 26px 16px 22px; background: #fff; }
  .mx-prod-card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid #eef0f1; border-radius: 14px; padding: 15px 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
  .mx-prod-icon { width: 44px; height: 44px; border-radius: 11px; background: #eaf4f1; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .mx-prod-info { flex: 1; min-width: 0; }
  .mx-prod-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
  .mx-prod-desc { font-size: 12px; color: #888; margin-top: 3px; }
  .mx-prod-benefit { font-size: 12px; color: #2D8B7A; font-weight: 600; margin-top: 4px; }

  /* ===== 标杆案例（浅灰底 + 白卡阴影）===== */
  .mx-cases { padding: 26px 16px 22px; background: #e6efec; border-top: 1px solid #d6e3de; border-bottom: 1px solid #d6e3de; }
  .mx-case-card { background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.10); position: relative; border: 1px solid #e3ebe8; }
  .mx-case-tag { position: absolute; top: 16px; right: 16px; font-size: 11px; color: #2D8B7A; background: #eaf4f1; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
  .mx-case-name { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; padding-right: 60px; }
  .mx-case-desc { font-size: 13px; color: #777; line-height: 1.55; margin: 0 0 12px; }
  .mx-case-metric { font-size: 26px; font-weight: 800; color: #2D8B7A; display: inline-block; }
  .mx-case-metric-label { font-size: 12px; color: #999; margin-left: 5px; }

  /* ===== 服务优势（白底 + 2x2 卡片）===== */
  .mx-advantages { padding: 26px 16px 22px; background: #fff; }
  .mx-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mx-adv-item { background: #f6f8f9; border: 1px solid #eef0f1; border-radius: 14px; padding: 16px 14px; font-size: 13px; color: #444; line-height: 1.55; box-shadow: 0 1px 6px rgba(0,0,0,.03); }
  .mx-adv-item b { display: block; font-size: 14px; color: #1a1a1a; margin-bottom: 4px; font-weight: 600; }

  /* ===== 服务客户（浅灰底 + 标签）===== */
  .mx-clients { padding: 26px 16px 22px; background: #e6efec; border-top: 1px solid #d6e3de; border-bottom: 1px solid #d6e3de; }
  .mx-client-tags { display: flex; flex-wrap: wrap; gap: 9px; }
  .mx-client-tag { font-size: 12px; color: #2D8B7A; background: #fff; border: 1px solid #cfe6df; padding: 6px 13px; border-radius: 999px; font-weight: 500; box-shadow: 0 1px 4px rgba(45,139,122,.06); }

  /* ===== CTA 底部（绿渐变）===== */
  .mx-cta { background: linear-gradient(135deg, #2D8B7A, #3a9d8a); padding: 30px 20px; text-align: center; color: #fff; }
  .mx-cta h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 8px; }
  .mx-cta .sub { font-size: 13px; opacity: 0.92; margin: 0 0 18px; }
  .mx-cta a { display: inline-block; background: #E8900C; color: #fff; padding: 13px 32px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 4px 12px rgba(232,144,12,.3); }

  /* ===== 常驻留言条（底部固定）===== */
  .mx-lead-bar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; padding: 10px 12px; background: #fff; border-top: 1px solid #e8e8e8; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
  .mx-lead-input { flex: 1; min-width: 0; border: 1px solid #ddd; border-radius: 9px; padding: 11px 12px; font-size: 14px; color: #1a1a1a; outline: none; }
  .mx-lead-submit { background: #E8900C; color: #fff; border: none; border-radius: 9px; padding: 11px 17px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(232,144,12,.3); }
  .mx-lead-call { background: #2D8B7A; color: #fff; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; text-decoration: none; flex-shrink: 0; box-shadow: 0 2px 8px rgba(45,139,122,.3); }

  /* 原有「我们的优势」压缩（兜底，移动端首页此区块已被隐藏） */
  #advantages { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}
