/* Shared site layout: header, navigation, footer. */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 400;
  font-display: block;
  src: url('../fonts/barlow-condensed-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: block;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: block;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-display: block;
  src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
}

:root {
  --font-barlow: 'Barlow Condensed';
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Microsoft Yahei", sans-serif;
}

@media (max-width: 767px) {
  html.is-android body,
  html.is-android input,
  html.is-android textarea,
  html.is-android select,
  html.is-android button {
    -webkit-font-smoothing: auto;
    text-rendering: optimizeLegibility;
  }

  html.is-android .hd-mobile-a,
  html.is-android .hd-mobile-sub-a,
  html.is-android .mbn-item,
  html.is-android .ft-desc,
  html.is-android .ft-address,
  html.is-android .ft-contact-link,
  html.is-android .ft-link,
  html.is-android .ft-bottom-inner p {
    font-weight: 500 !important;
  }

  html.is-android .mbn-item,
  html.is-android .ft-desc,
  html.is-android .ft-address,
  html.is-android .ft-link,
  html.is-android .ft-bottom-inner p {
    color: #475569 !important;
  }
}

#site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  background: #fff !important;
  font-family: var(--font-system) !important;
  -webkit-font-smoothing: antialiased;
  transition: all .3s ease !important;
}

#site-header,
#site-header * {
  box-sizing: border-box !important;
}

#site-header .hd-container {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

#site-header .hd-inner {
  display: flex !important;
  height: 96px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#site-header .hd-logo-link {
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  text-decoration: none !important;
}

#site-header .hd-logo {
  display: block !important;
  height: 64px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  margin: 0 !important;
}

#site-header #hd-desktop-nav {
  display: none !important;
  align-items: center !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#site-header .hd-nav-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 96px !important;
}

#site-header .hd-nav-a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
}

#site-header .hd-nav-a:hover {
  color: #0172c2 !important;
}

#site-header .hd-dropdown {
  position: absolute !important;
  top: 82px !important;
  left: 50% !important;
  z-index: 60 !important;
  width: auto !important;
  min-width: 168px !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  list-style: none !important;
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .11) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, 8px) !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}

#site-header .hd-nav-item:hover .hd-dropdown,
#site-header .hd-nav-item:focus-within .hd-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

#site-header .hd-dropdown li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#site-header .hd-dropdown-a {
  position: relative !important;
  display: block !important;
  padding: 8px 18px 8px 22px !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: color .16s ease, background-color .16s ease, padding-left .16s ease !important;
}

#site-header .hd-dropdown-a:before {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  top: 9px !important;
  bottom: 9px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #ff8c00 !important;
  opacity: 0 !important;
  transform: scaleY(.45) !important;
  transition: opacity .16s ease, transform .16s ease !important;
}

#site-header .hd-dropdown-a:hover {
  color: #ff8c00 !important;
  background: rgba(255, 140, 0, .06) !important;
  padding-left: 26px !important;
}

#site-header .hd-dropdown-a:hover:before {
  opacity: 1 !important;
  transform: scaleY(1) !important;
}

#site-header .hd-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#site-header .hd-quote {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #ff8c00 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  margin: 0 !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

#site-header .hd-quote:hover {
  background: #e67e00 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 26px rgba(255, 140, 0, .24) !important;
}

#site-header #hd-menu-btn {
  display: flex !important;
  width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #1a1a2e !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

#site-header #hd-icon-close {
  display: none;
}

#site-header #hd-mobile-nav {
  display: none;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 96px !important;
  bottom: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  background: #fff !important;
  border-top: 1px solid #f3f4f6 !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12) !important;
}

#site-header #hd-mobile-nav.is-open {
  display: block;
}

#site-header .hd-mobile-nav-inner {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 16px !important;
  padding-bottom: 32px !important;
}

#site-header .hd-mobile-a {
  display: block !important;
  position: relative !important;
  border-bottom: 1px solid #eef2f7 !important;
  border-radius: 8px !important;
  padding: 12px 36px 12px 10px !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 650 !important;
  transition: color .16s ease, background-color .16s ease, padding-left .16s ease !important;
}

#site-header .hd-mobile-a:hover,
#site-header .hd-mobile-a.is-open {
  background: rgba(255, 140, 0, .06) !important;
  color: #ff8c00 !important;
  padding-left: 16px !important;
}

#site-header .hd-mobile-a.has-sub::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #94a3b8 !important;
  border-bottom: 2px solid #94a3b8 !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transition: transform .18s ease !important;
}

#site-header .hd-mobile-a.has-sub:hover::after,
#site-header .hd-mobile-a.has-sub.is-open::after {
  border-color: #ff8c00 !important;
}

#site-header .hd-mobile-a.has-sub.is-open::after {
  transform: translateY(-35%) rotate(225deg) !important;
}

#site-header .hd-mobile-subnav {
  display: none !important;
  margin: 0 0 8px 0 !important;
  padding: 8px 0 8px 14px !important;
  border-left: 2px solid rgba(255, 140, 0, .18) !important;
  background: linear-gradient(90deg, rgba(255, 140, 0, .045), rgba(255, 140, 0, 0)) !important;
}

#site-header .hd-mobile-subnav.is-open {
  display: block !important;
}

#site-header .hd-mobile-sub-a {
  display: block !important;
  border-radius: 7px !important;
  padding: 7px 10px 7px 14px !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  transition: color .16s ease, background-color .16s ease, padding-left .16s ease !important;
}

#site-header .hd-mobile-sub-a:hover {
  background: rgba(255, 140, 0, .08) !important;
  color: #ff8c00 !important;
  padding-left: 20px !important;
}

#site-header .hd-mobile-quote {
  display: block !important;
  margin-top: 12px !important;
  border-radius: 6px !important;
  background: #ff8c00 !important;
  color: #fff !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
}

.hd-spacer {
  height: 96px;
}

/* ===== 手机端底部导航 ===== */
#mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#mbn-spacer { display: none; }
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 4px 5px;
  color: #6b7280;
  text-decoration: none;
  font-size: 10px;
  font-family: system-ui, sans-serif;
  gap: 3px;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.mbn-item img { width: 22px; height: 22px; object-fit: contain; opacity: .55; transition: opacity .15s; }
.mbn-item:active, .mbn-item:hover { color: #0172c2; }
.mbn-item:active img, .mbn-item:hover img { opacity: 1; }

/* 手机端导航缩小 + 底部导航显示 + footer精简 */
@media (max-width: 767px) {
  /* 顶部导航缩小 */
  #site-header .hd-inner {
    height: 64px !important;
  }
  #site-header .hd-logo {
    height: 42px !important;
  }
  #site-header .hd-actions {
    gap: 7px !important;
  }
  #site-header .hd-quote {
    display: none !important;
  }
  #site-header #hd-menu-btn {
    width: 36px !important;
    height: 36px !important;
  }
  #site-header #hd-mobile-nav {
    top: 64px !important;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #site-header .hd-mobile-nav-inner {
    padding: 14px 20px 22px !important;
  }
  #site-header .hd-mobile-a {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 15px !important;
    line-height: 22px !important;
  }
  #site-header .hd-mobile-sub-a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 13px !important;
    line-height: 19px !important;
  }
  .hd-spacer {
    height: 64px;
  }
  /* 底部导航显示 */
  #mobile-bottom-nav { display: flex !important; }
  #mbn-spacer { display: block !important; height: 58px; }
  /* Footer 手机端隐藏：CTA区、版权栏；主 footer 由底部导航替代 */
  .site-prefooter { display: none !important; }
  .ft-bottom { display: none !important; }
  .site-footer {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ft-main {
    padding: 58px 24px 64px !important;
  }
  .ft-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }
  .ft-brand {
    margin-bottom: 26px !important;
  }
  .ft-brand-mark {
    height: 42px !important;
  }
  .ft-brand-name {
    font-size: 30px !important;
    line-height: 38px !important;
  }
  .ft-desc {
    max-width: none !important;
    margin-top: 0 !important;
    color: #cbd5e1 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    white-space: normal !important;
  }
  .ft-address {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 26px !important;
    margin-bottom: 14px !important;
    gap: 14px !important;
    font-size: 16px !important;
    line-height: 28px !important;
  }
  .ft-title {
    margin-bottom: 22px !important;
    font-size: 13px !important;
    line-height: 18px !important;
    letter-spacing: .22em !important;
  }
  .ft-contact-list {
    gap: 18px !important;
    margin-bottom: 26px !important;
  }
  .ft-brand-contact {
    margin-top: 0 !important;
    gap: 14px !important;
  }
  .ft-contact-link {
    gap: 14px !important;
    font-size: 17px !important;
    line-height: 28px !important;
  }
  .ft-contact-icon {
    width: 16px !important;
    height: 28px !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  .ft-qrcode {
    width: 152px !important;
    margin-top: 30px !important;
  }
  .ft-qrcode img {
    width: 152px !important;
    height: 152px !important;
    padding: 7px !important;
    border-radius: 8px !important;
  }
  .ft-qrcode span {
    margin-top: 14px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
  .site-footer {
    display: none !important;
  }
}

/* 平板竖屏：保留桌面/平板布局，只增加底部快捷菜单 */
@media (min-width: 768px) and (max-width: 1023px) {
  #mobile-bottom-nav {
    display: flex !important;
  }

  #mbn-spacer {
    display: block !important;
    height: 58px;
  }

  #site-header #hd-mobile-nav {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 640px) {
  #site-header .hd-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #site-header .hd-quote {
    display: inline-flex !important;
  }
}

/* iPad 竖屏：顶部只保留菜单按钮，底部快捷菜单已覆盖版权入口 */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  #site-header .hd-quote {
    display: none !important;
  }

  .ft-bottom {
    display: none !important;
  }

  .site-footer {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  #site-header .hd-container {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  #site-header #hd-desktop-nav {
    display: flex !important;
  }

  #site-header #hd-menu-btn {
    display: none !important;
  }

  #site-header #hd-mobile-nav,
  #site-header #hd-mobile-nav.is-open {
    display: none !important;
  }
}

.site-prefooter {
  position: relative;
  padding: 72px 16px 0;
}

.ft-container {
  max-width: 1280px;
  margin: 0 auto;
}

.ft-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 28px 32px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ft-cta-inner:hover {
  transform: translateY(-2px);
  background: rgba(255, 140, 0, .06);
  border-color: rgba(255, 140, 0, .28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.ft-eyebrow {
  font-family: var(--font-system);
  color: #7cc7ff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 10px;
}

.ft-cta-title {
  font-family: var(--font-barlow), "Barlow Condensed", sans-serif;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  margin-bottom: 10px;
  transition: color .28s ease;
}

.ft-cta-inner:hover .ft-cta-title {
  color: #ff8c00;
}

.ft-cta-text {
  font-family: var(--font-system);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 23px;
  margin: 0;
}

.ft-cta-link {
  font-family: var(--font-system);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0172c2;
  color: #fff;
  padding: 0 22px;
  height: 46px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  flex-shrink: 0;
}

.ft-cta-link:hover {
  background: #ff8c00;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 140, 0, .22);
}

.site-footer {
  background: #111827;
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: var(--font-system);
  line-height: normal;
}

.ft-top-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #0172c2, transparent);
  pointer-events: none;
}

.ft-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 114, 194, .18), transparent 40%), linear-gradient(180deg, #16162b 0%, #101726 100%);
  pointer-events: none;
}

.ft-main {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

.ft-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) repeat(4, minmax(130px, .55fr));
  gap: 34px;
  align-items: start;
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 28px;
}

.ft-brand-mark {
  width: 4px;
  height: 34px;
  background: #ff8c00;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.ft-brand-name {
  font-family: var(--font-system);
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  color: #2aa7ff;
}

.ft-desc {
  font-family: var(--font-system);
  color: #cbd5e1;
  font-size: 15px;
  line-height: 26px;
  margin-top: 0;
  margin-bottom: 24px;
  max-width: 420px;
  white-space: nowrap;
}

.ft-address {
  font-family: var(--font-system);
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-style: normal;
  font-size: 13px;
  color: #94a3b8;
  max-width: 420px;
  line-height: 21px;
}

.ft-address span {
  display: block;
  flex: 1;
}

.ft-brand-contact {
  margin-top: 0;
  margin-bottom: 0;
  gap: 10px;
}

.ft-brand-contact li {
  margin: 0;
  padding: 0;
}

.ft-brand-contact .ft-contact-link {
  max-width: 420px;
  padding: 0;
  gap: 10px;
  color: #94a3b8;
  align-items: flex-start;
  line-height: 21px;
  min-height: 21px;
}

.ft-brand-qrcode {
  margin-top: 22px;
  margin-left: 0;
}

.ft-icon {
  margin-top: 2px;
  width: 14px;
  height: 21px;
  flex-shrink: 0;
  color: #7cc7ff;
}

.ft-title {
  font-family: var(--font-system);
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
}

.ft-links,
.ft-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ft-links {
  gap: 13px;
}

.ft-contact-list {
  gap: 14px;
  margin-bottom: 20px;
}

.ft-link {
  font-family: var(--font-system);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 24px;
  max-width: 100%;
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s, padding-left .2s;
}

.ft-link:hover {
  background: rgba(255, 140, 0, .08);
  color: #fff;
  transform: translateY(-1px);
  padding-left: 8px;
}

.ft-link-line {
  display: inline-block;
  height: 1px;
  width: 10px;
  background: #475569;
  flex-shrink: 0;
  transition: background .2s;
}

.ft-link:hover .ft-link-line {
  background: #ff8c00;
}

.ft-contact-link {
  font-family: var(--font-system);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 24px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s, padding-left .2s;
}

.ft-contact-link:hover {
  background: rgba(255, 140, 0, .08);
  color: #fff;
  transform: translateY(-1px);
  padding-left: 8px;
}

.ft-brand-contact .ft-contact-link:hover {
  background: transparent;
  color: #cbd5e1;
  padding-left: 0;
}

.ft-contact-icon {
  display: flex;
  width: 14px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: #7cc7ff;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.ft-contact-link:hover .ft-contact-icon {
  color: #ff8c00;
}

.ft-qrcode {
  width: 120px;
  margin-top: 22px;
  transition: transform .2s, background .2s;
  border-radius: 8px;
}

.ft-qrcode:hover {
  transform: translateY(-2px);
}

.ft-qrcode img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
}

.ft-qrcode span {
  font-family: var(--font-system);
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 20px;
}

.ft-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.ft-bottom-inner {
  font-family: var(--font-system);
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 20px;
  color: #475569;
}

.ft-bottom-inner p {
  margin: 0;
}

.ft-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ft-legal-link {
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  padding: 3px 6px;
  transition: color .2s, background .2s, transform .2s;
}

.ft-legal-link:hover {
  background: rgba(255, 140, 0, .08);
  color: #ff8c00;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .ft-brand-col {
    grid-column: 1 / -1;
  }

  .ft-desc {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .ft-cta-inner {
    grid-template-columns: 1fr;
  }

  .ft-cta-title {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== Global Quote Modal ===== */
.gq-lock {
  overflow: hidden;
}

.gq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.gq-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gq-dialog {
  font-family: var(--font-system);
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(290px, .86fr) minmax(390px, 1.24fr);
  gap: 34px;
  padding: 36px 46px 30px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78)),
    rgba(255, 255, 255, .82);
  box-shadow: 0 32px 90px rgba(15, 23, 42, .24);
  transform: translateY(12px) scale(.985);
  transition: transform .24s ease;
}

.gq-modal.is-open .gq-dialog {
  transform: none;
}

.gq-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #0b2341;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.gq-close:hover {
  color: #ff8c00;
  border-color: rgba(255, 140, 0, .35);
  background: #fff;
  transform: translateY(-1px);
}

.gq-copy {
  padding: 18px 0 4px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.gq-eyebrow,
.gq-form label > span,
.gq-code-wrap > span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #64748b;
}

.gq-eyebrow {
  margin: 0 0 12px;
  color: #ff8c00;
}

.gq-copy h2 {
  font-family: var(--font-barlow);
  margin: 0;
  max-width: 410px;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: 0;
  color: #082345;
}

.gq-intro {
  margin: 16px 0 0;
  max-width: 410px;
  font-size: 17px;
  line-height: 26px;
  color: #64748b;
}

.gq-benefits {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #334155;
  font-size: 16px;
  line-height: 24px;
}

.gq-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gq-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ff8c00;
  background: rgba(255, 140, 0, .1);
}

.gq-brand-logo {
  margin-top: auto;
  padding-top: 18px;
}

.gq-brand-logo img {
  display: block;
  width: 190px;
  max-width: 68%;
  height: auto;
  opacity: .92;
}

.gq-form {
  position: relative;
  margin-top: 4px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gq-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 14px;
  align-items: start;
}

.gq-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.gq-form-grid label {
  min-height: 66px;
}

.gq-form label > span,
.gq-code-wrap > span {
  margin: 0;
  min-height: 16px;
}

.gq-form em {
  font-style: normal;
  color: #ef4444;
}

.gq-form input,
.gq-form select,
.gq-form textarea {
  font-family: var(--font-system);
  width: 100%;
  margin-top: 0;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: #0b2341;
  font-size: 16px;
  line-height: 22px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.gq-form input,
.gq-form select {
  height: 46px;
  padding: 0 15px;
}

.gq-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #0b2341 50%),
    linear-gradient(135deg, #0b2341 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.gq-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 13px 15px;
}

.gq-form input:focus,
.gq-form select:focus,
.gq-form textarea:focus {
  border-color: #ff8c00;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, .11);
}

.gq-wide,
.gq-code-wrap {
  margin-top: 0;
}

.gq-file-row {
  margin: 0;
}

.gq-file-row input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gq-file-row label {
  display: inline-flex;
  flex-direction: row;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.gq-file-row label:hover {
  border-color: #ff8c00;
  background: #ff8c00;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 140, 0, .22);
}

.gq-file-row label.is-selected {
  border-color: rgba(255, 140, 0, .55);
  background: #fff7ed;
  color: #ff7a00;
  box-shadow: 0 10px 22px rgba(255, 140, 0, .12);
}

.gq-file-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gq-file-row p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 18px;
}

.gq-file-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 18px;
}

.gq-file-feedback.is-visible {
  display: flex;
}

.gq-file-feedback.is-success {
  color: #1f4f85;
}

.gq-file-feedback.is-error {
  color: #dc2626;
}

.gq-file-name {
  display: block;
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.gq-file-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ff7a00;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}

.gq-file-clear:hover {
  color: #d96100;
  text-decoration: underline;
}

.gq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gq-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gq-code-row {
  display: grid;
  grid-template-columns: 122px 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.gq-code-row input {
  margin-top: 0;
}

.gq-captcha,
.gq-refresh {
  height: 46px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: rgba(248, 250, 252, .9);
  color: #0b2341;
  cursor: pointer;
}

.gq-captcha {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: line-through;
  text-decoration-color: #ff8c00;
}

.gq-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s, background .2s;
}

.gq-refresh:hover {
  color: #ff8c00;
  border-color: rgba(255, 140, 0, .38);
  background: rgba(255, 140, 0, .08);
}

.gq-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-system);
  width: 100%;
  height: 50px;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  background: #ff8c00;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(255, 140, 0, .18);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.gq-submit-arrow {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.gq-submit:hover {
  background: #e67e00;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(255, 140, 0, .25);
}

.gq-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.gq-status {
  min-height: 20px;
  margin: -8px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.gq-status.is-success {
  color: #15803d;
}

.gq-status.is-error {
  color: #dc2626;
}

.gq-note {
  margin: -10px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
}

/* Shared circular arrow controls */
.mobile-carousel-nav button,
.support-page .download-pager-btn,
.strength-gallery-arrow,
.pd-page .gallery-nav-btn,
.pd-page .related-nav-btn,
.owl-theme .owl-controls .owl-buttons .owl-prev,
.owl-theme .owl-controls .owl-buttons .owl-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  border-radius: 999px !important;
  color: rgba(15, 23, 42, 0.34) !important;
  background-color: rgba(226, 232, 240, 0.62) !important;
  background-image: none !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer;
  opacity: 1 !important;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.mobile-carousel-nav button:hover,
.support-page .download-pager-btn:hover,
.strength-gallery-arrow:hover,
.pd-page .gallery-nav-btn:hover,
.pd-page .related-nav-btn:hover,
.owl-theme .owl-controls .owl-buttons .owl-prev:hover,
.owl-theme .owl-controls .owl-buttons .owl-next:hover {
  color: rgba(15, 23, 42, 0.72) !important;
  background-color: rgba(203, 213, 225, 0.96) !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10) !important;
  transform: translateY(-1px) !important;
}

.support-page .download-pager-btn.disabled,
.support-page .download-pager-btn:disabled,
.mobile-carousel-nav button[disabled],
.pd-page .gallery-nav-btn:disabled,
.pd-page .related-nav-btn:disabled {
  opacity: 0.38 !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
}

.owl-theme .owl-controls .owl-buttons .owl-prev,
.owl-theme .owl-controls .owl-buttons .owl-next {
  position: relative;
  font-size: 0 !important;
  line-height: 0 !important;
}

.owl-theme .owl-controls .owl-buttons .owl-prev:before,
.owl-theme .owl-controls .owl-buttons .owl-next:before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.owl-theme .owl-controls .owl-buttons .owl-prev:before {
  transform: translateX(2px) rotate(-45deg);
}

.owl-theme .owl-controls .owl-buttons .owl-next:before {
  transform: translateX(-2px) rotate(135deg);
}

@media (max-width: 640px) {
  .mobile-carousel-nav button,
  .support-page .download-pager-btn,
  .strength-gallery-arrow,
  .pd-page .gallery-nav-btn,
  .pd-page .related-nav-btn,
  .owl-theme .owl-controls .owl-buttons .owl-prev,
  .owl-theme .owl-controls .owl-buttons .owl-next {
    width: 46px !important;
    height: 46px !important;
  }

  .support-page .download-pager-btn svg,
  .strength-gallery-arrow svg,
  .pd-page .gallery-nav-btn svg,
  .pd-page .related-nav-btn svg,
  .mobile-carousel-nav button svg {
    width: 20px !important;
    height: 20px !important;
  }

  .owl-theme .owl-controls .owl-buttons .owl-prev:before,
  .owl-theme .owl-controls .owl-buttons .owl-next:before {
    width: 10px;
    height: 10px;
    border-top-width: 2.5px;
    border-left-width: 2.5px;
  }
}

@media (max-width: 860px) {
  .gq-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .gq-dialog {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 18px 20px;
    max-height: calc(100vh - 28px);
  }

  .gq-close {
    top: 12px;
    right: 12px;
  }

  .gq-copy {
    padding-top: 4px;
    min-height: 0;
  }

  .gq-copy h2 {
    max-width: 330px;
    font-size: 46px;
  }

  .gq-intro {
    margin-top: 16px;
    font-size: 15px;
    line-height: 25px;
  }

  .gq-benefits {
    margin-top: 20px;
    gap: 12px;
    font-size: 14px;
  }

  .gq-brand-logo {
    display: none;
  }

  .gq-form {
    margin-top: 0;
    padding: 18px;
    gap: 18px;
  }

  .gq-form-grid {
    row-gap: 20px;
  }

  .gq-form-grid {
    grid-template-columns: 1fr;
  }

  .gq-code-row {
    grid-template-columns: 106px 44px minmax(0, 1fr);
    gap: 8px;
  }

  .gq-captcha,
  .gq-refresh {
    width: 100%;
    height: 44px;
  }

  .gq-captcha {
    font-size: 16px;
    letter-spacing: .16em;
  }

  .gq-code-row input {
    height: 44px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .gq-dialog {
    gap: 18px;
    padding: 44px 20px 20px;
  }

  .gq-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 26px;
    align-items: end;
    padding-top: 0;
  }

  .gq-copy h2,
  .gq-intro {
    grid-column: 1;
  }

  .gq-copy h2 {
    max-width: 320px;
    font-size: 44px;
  }

  .gq-intro {
    margin-top: 14px;
  }

  .gq-copy .gq-eyebrow {
    grid-column: 1 / -1;
  }

  .gq-copy .gq-benefits {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: end;
    margin-top: 0;
    padding-bottom: 2px;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .gq-benefit-icon {
    width: 36px;
    height: 36px;
  }

  .gq-form {
    padding: 20px;
    gap: 13px;
  }

  .gq-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .gq-form textarea {
    min-height: 86px;
  }
}

/* Legacy Android/Huawei fallback for inset shorthand. */
.ft-bg,
.gq-modal,
.gq-backdrop {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

@media (max-width: 767px) {
  html.is-android body,
  html.is-android button,
  html.is-android input,
  html.is-android select,
  html.is-android textarea {
    -webkit-font-smoothing: auto !important;
    font-synthesis-weight: auto;
    text-rendering: geometricPrecision;
  }

  html.is-android #site-header,
  html.is-android #site-header *,
  html.is-android .site-footer,
  html.is-android .site-footer *,
  html.is-android .gq-modal,
  html.is-android .gq-modal * {
    -webkit-font-smoothing: auto !important;
    text-rendering: geometricPrecision;
  }

  html.is-android .hd-mobile-a,
  html.is-android .hd-mobile-sub-a,
  html.is-android .mbn-item,
  html.is-android .ft-desc,
  html.is-android .ft-address,
  html.is-android .ft-contact-link,
  html.is-android .ft-link,
  html.is-android .ft-bottom-inner p,
  html.is-android .gq-intro,
  html.is-android .gq-benefits,
  html.is-android .gq-form input,
  html.is-android .gq-form textarea,
  html.is-android .gq-form select {
    color: #334155 !important;
    font-weight: 500 !important;
  }

  html.is-android .hd-mobile-quote,
  html.is-android .gq-title,
  html.is-android .gq-form button,
  html.is-android .mbn-item span {
    font-weight: 700 !important;
  }
}
