/* ===== ALLWIN UNIFIED MOBILE HEADER ===== */

@media (max-width: 768px) {

  /* 深蓝顶部区域 */
  .top-bar {
    padding: 14px 0 13px !important;
  }

  .top-bar-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 18px !important;
    text-align: center !important;
  }

  /* 三个卖点纵向排列，整组居中 */
  .top-bar-left {
    width: auto !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  .top-bar-left span {
    display: block !important;
    width: auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.04em !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  /* CTA 单独放在卖点下面 */
  .call-expert {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 88vw !important;
    padding: 10px 20px !important;
    margin: 2px auto 0 !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  /* 白色导航栏 */
  .nav-container,
  .header-inner,
  .header-content,
  .navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    min-width: 0 !important;
    min-height: 92px !important;
  }

  .nav-container {
    height: 92px !important;
    overflow: visible !important;
  }

  .logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .logo a {
    display: flex !important;
    align-items: center !important;
  }

  .header-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 190px !important;
    max-height: 66px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .header-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* 手机端 CTA 已经在深蓝区域，白色导航里的红色 CTA 隐藏 */
  .header-actions > .btn.btn-primary {
    display: none !important;
  }

  .lang-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    padding: 7px 4px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .nav-toggle {
    flex: 0 0 auto !important;
    display: flex !important;
    padding: 8px 3px !important;
    gap: 5px !important;
  }

  .nav-toggle span {
    width: 25px !important;
    height: 3px !important;
  }
}

@media (max-width: 390px) {

  .top-bar-left span {
    font-size: 12px !important;
  }

  .call-expert {
    min-width: 205px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
  }

  .header-logo {
    max-width: 172px !important;
    max-height: 60px !important;
  }

  .nav-container {
    min-height: 86px !important;
    height: 86px !important;
  }
}

/* ===== END ALLWIN UNIFIED MOBILE HEADER ===== */
