/* 大鹅 · 法律租户前台 移动端修版（2026-11-03）
 * 只在窄屏生效，不动桌面版。
 * 目标：① 品牌名不再竖排 ② 导航不溢出、可横滑 ③ 首屏标题不再过大 ④ 广告卡不挤
 */
@media (max-width: 720px) {
  /* 顶部导航：品牌独占一行，按钮横滑 */
  .nav {
    flex-wrap: wrap !important;
    padding: 10px 4vw !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .nav .logo {
    flex: 1 1 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
  }
  .nav .btns {
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px !important;
    scrollbar-width: none;
  }
  .nav .btns::-webkit-scrollbar { display: none; }
  .nav .btns .btn,
  #dgNavTop {
    flex: 0 0 auto !important;
    font-size: 12.5px !important;
    padding: 7px 10px !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
    line-height: 1.2 !important;
  }

  /* 首屏标题：手机上别一行挤太多 */
  .hero h1 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    letter-spacing: .5px !important;
  }
  .hero p { font-size: 13.5px !important; line-height: 1.75 !important; }
  .hero { padding: 22px 5vw !important; }

  /* 推广卡：竖排更舒服 */
  .dgw-card { padding: 14px 14px !important; gap: 10px !important; }
  .dgw-t1 { font-size: 15px !important; line-height: 1.45 !important; }
  .dgw-t2 { font-size: 12px !important; line-height: 1.6 !important; }
  .dgw-cta { width: 100% !important; justify-content: center !important; padding: 11px 16px !important; }

  /* 手机上顶部已有「怎么走」，隐藏悬浮按钮，避免遮挡正文 */
  #dgNavBtn { display: none !important; }

  /* 悬浮件别叠在一起 */
  .dgw-fab { bottom: 120px !important; right: 12px !important; }
  #dgNavBtn { bottom: 176px !important; }
}
