/* zoryra-ux-20260918 — mobile header type, unified full-width mega, AI quote size, gold format chips */

/* 1) Intro mobile header: 简介 / 搜索 / 登录官网 + 获取即时报价 only */
@media (max-width: 900px) {
  html body .site-header .header-utils .util-btn,
  html body .site-header .header-utils .util-chip,
  html body .site-header .header-utils .intro-lang-btn,
  html body .header-utils .util-btn,
  html body .header-utils .util-chip,
  html body .header-utils .intro-lang-btn {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    padding: 0.55rem 0.78rem !important;
    min-height: 48px !important;
    letter-spacing: 0 !important;
  }

  html body .site-header .header-cta,
  html body .site-header .header-utils .btn.primary,
  html body .header-utils .btn.primary.header-cta {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    padding: 0.58rem 1.05rem !important;
    min-height: 44px !important;
  }
}

/* 2) Unified mobile mega: one full-width sheet, no leftover overlay, no 2-col void */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  html body .site-header,
  html body .header-nav,
  html body .header-nav-inner,
  html body .nav-item,
  html body .zoryra-main-subnav,
  html body .site-subnav,
  html body .site-subnav-track,
  html body .site-subnav-main,
  html body .site-subnav-item {
    overflow: visible !important;
  }

  /* Native leftover megas: never a tiny clipped overlay. Same sheet as injected panel. */
  html body .nav-mega,
  html body .nav-item.has-menu .nav-mega,
  html body .nav-item.has-menu:hover .nav-mega,
  html body .nav-item.has-menu:focus-within .nav-mega,
  html body .nav-item.has-menu.is-open .nav-mega,
  html body .nav-mega.cols-2,
  html body .nav-mega.cols-3,
  html body #zoryra-mega-panel,
  html body #zoryra-mega-panel.mega-panel,
  html body #zoryra-mega-panel.mega-panel.is-open,
  html body .zoryra-item-mega,
  html body .mega-panel.zoryra-item-mega,
  html body .zoryra-main-subnav .site-subnav-item.has-mega > .mega-panel.zoryra-item-mega,
  html body .zoryra-main-subnav .site-subnav-item.has-mega.is-open > .mega-panel.zoryra-item-mega,
  html body .mega-panel.site-mega.is-open {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.14) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: min(78vh, calc(100dvh - 7rem)) !important;
    z-index: 50000 !important;
    background: #fff !important;
  }

  html body .nav-item.has-menu.is-open .nav-mega,
  html body .nav-item.has-menu:focus-within .nav-mega,
  html body #zoryra-mega-panel.mega-panel.is-open,
  html body .site-subnav-item.has-mega.is-open > .mega-panel,
  html body .zoryra-item-mega.is-open,
  html[data-mega-open="1"] #zoryra-mega-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* If injected subnav is present, hide native dropdown clones so only one pattern shows */
  body:has(#zoryra-main-subnav) .site-header .header-nav .nav-mega,
  body:has(#zoryra-main-subnav) .nav-item.has-menu .nav-mega {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body #zoryra-mega-panel .mega-inner,
  html body .zoryra-item-mega .mega-inner,
  html body .nav-mega,
  html body .nav-item.has-menu.is-open .nav-mega,
  html body #zoryra-mega-panel .mega-grid,
  html body .zoryra-item-mega .mega-grid,
  html body #zoryra-mega-panel .mega-cols,
  html body .zoryra-item-mega .mega-cols {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0.55rem !important;
  }

  html body #zoryra-mega-panel .mega-inner,
  html body .zoryra-item-mega .mega-inner {
    padding: 0.85rem 0.9rem 1.05rem !important;
  }

  html body .nav-mega-link span,
  html body .nav-item.has-menu.is-open .nav-mega-link span,
  html body #zoryra-mega-panel .mega-copy span,
  html body .zoryra-item-mega .mega-copy span,
  html body #zoryra-mega-panel .mega-col-list span,
  html body .zoryra-item-mega .mega-col-list span {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body .nav-mega-link,
  html body .mega-item,
  html body .mega-col-list a {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body .nav-mega-link strong,
  html body .mega-copy strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* 3) Gold AI 即时报价 banner: larger label on mobile only */
@media (max-width: 900px) {
  html.zoryra-m-ai a.zoryra-m-ai-quote,
  html.zoryra-m-ai #zoryra-m-ai-quote,
  html a#zoryra-m-ai-quote,
  html a.zoryra-m-ai-quote {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    min-height: 2.75rem !important;
    padding: 0.55rem 1.05rem !important;
    line-height: 1.2 !important;
  }
}

/* 4) Desktop dropzone format chips: same gold as AI 即时报价 */
html body .quote-format-list li,
html[lang] body .quote-format-list li,
html body .quote-drop-empty .quote-format-list li,
html body .quote-hero-teaser-drop .quote-format-list li,
html.zoryra-p1-home body .quote-hero-teaser-drop .quote-format-list li,
html.zoryra-p1-home[lang] body .quote-hero-teaser-drop .quote-format-list li {
  background: #e8b84a !important;
  color: #1a1408 !important;
  border-color: #d4a43c !important;
}

html body .quote-format-list li:hover,
html body .quote-hero-teaser-drop .quote-format-list li:hover {
  background: #f0c45a !important;
  color: #1a1408 !important;
}

/* 5) App WebView: company PDF stays tappable */
html.is-app-webview a.is-hero-pdf,
html.is-app-webview a[href*="Zoryra-Company-Profile"],
html.is-app-webview a.float-quote-mobile-pdf,
html.is-app-webview a.chat-rail-btn.is-pdf,
html.is-app-webview a.mega-item[href*=".pdf"],
html.is-app-webview a[data-z-app-pdf] {
  pointer-events: auto !important;
  z-index: 60 !important;
}

/* 6) Homepage mobile: 登录 / 注册 / 简中 only — beat beauty 12.18px + wrap-fix 0.88rem */
@media (max-width: 900px) {
  html body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/login"],
  html body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/register"],
  html body .site-header .site-header-actions .site-header-auth-slot a.btn.site-header-register,
  html body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost,
  html[lang] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/login"],
  html[lang] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/register"],
  html[lang="zh"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/login"],
  html[lang="zh"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/register"],
  html[lang="zh"] body .site-header .site-header-actions .site-header-auth-slot a.btn.site-header-register,
  html[lang="zh-CN"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/login"],
  html[lang="zh-CN"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/register"],
  html[lang="zh-TW"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/login"],
  html[lang="zh-TW"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost[href*="/register"],
  html[lang^="zh"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost,
  html body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html body .site-header .site-header-actions button.locale-switch-btn.lang-switch,
  html[lang] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html[lang="zh"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html[lang="zh-CN"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html[lang="zh-TW"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html[lang^="zh"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html.is-app-webview body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost,
  html.is-app-webview body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn,
  html.is-app-webview[lang^="zh"] body .site-header .site-header-actions .site-header-auth-slot a.btn.btn-ghost,
  html.is-app-webview[lang^="zh"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.55rem 0.95rem !important;
    padding-inline: 0.95rem !important;
  }

  html body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn > span,
  html[lang="zh"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn > span,
  html[lang^="zh"] body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn > span,
  html.is-app-webview body .site-header .site-header-actions .locale-switch button.lang-switch.locale-switch-btn > span {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }
}
