.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: 80px !important;
  border: 0 !important;
  color: #fff !important;
  background: #072b50 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.lead-modal-open {
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #4ea6e8, #176ab1);
  box-shadow: 0 12px 30px rgba(18, 91, 151, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.88);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  box-shadow: 0 16px 34px rgba(18, 91, 151, .42), 0 0 0 5px rgba(78, 166, 232, .13);
}

.back-to-top span {
  font-size: 21px;
  line-height: 18px;
}

.back-to-top small {
  font-size: 10px;
  line-height: 14px;
}

.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(5, 24, 45, .58);
  backdrop-filter: blur(7px);
  animation: lead-backdrop-in .22s ease both;
}

.lead-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  color: #27364a;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 25, 48, .28);
  animation: lead-modal-in .3s cubic-bezier(.22, 1, .36, 1) both;
}

.lead-modal-header {
  min-height: 96px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e8ed;
}

.lead-modal-header h2 {
  margin: 0;
  color: #202c3b;
  font-size: 30px;
  line-height: 1.2;
}

.lead-modal-close {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #9aa5b3;
  background: transparent;
  font: 300 50px/42px Arial, sans-serif;
}

.lead-modal-close:hover,
.lead-modal-close:focus-visible {
  color: #486c8e;
}

.lead-form {
  padding: 30px;
  display: grid;
  gap: 22px;
}

.lead-form label {
  display: grid;
  gap: 10px;
}

.lead-form label > span {
  color: #334155;
  font-size: 17px;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  border: 2px solid #e4e8ed;
  border-radius: 12px;
  outline: none;
  color: #1f2937;
  background: #fbfcfe;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lead-form input,
.lead-form select {
  height: 58px;
}

.lead-form textarea {
  min-height: 116px;
  padding-top: 16px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #a8b2bf;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: #55a6e3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 145, 210, .12);
}

.lead-form-feedback {
  margin: -4px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
}

.lead-form-feedback.success {
  color: #157347;
  background: #ecf8f1;
}

.lead-form-feedback.error {
  color: #b5472f;
  background: #fff1ed;
}

.lead-submit {
  height: 62px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff821d, #f45a08);
  box-shadow: 0 12px 24px rgba(238, 104, 22, .22);
  font-size: 19px;
  font-weight: 700;
}

.lead-submit:hover:not(:disabled),
.lead-submit:focus-visible:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.lead-submit:disabled,
.lead-modal-close:disabled {
  cursor: wait;
  opacity: .65;
}

@keyframes lead-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lead-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-header .nav-wrap {
  width: min(1200px, calc(100% - 48px));
  height: 100% !important;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.site-header .brand {
  width: 221px !important;
  height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: visible !important;
  background: transparent !important;
}

.site-header .brand img {
  width: 221px !important;
  height: 56px !important;
  display: block;
  object-fit: contain !important;
}

.site-header .main-nav {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 100% !important;
  margin-left: auto !important;
  display: flex;
  align-items: stretch;
  justify-content: flex-start !important;
  gap: 54px !important;
}

/* 导航链接的去下划线必须由**这张表**负责，不能指望各页 CSS 里的 `a{text-decoration:none}`。
   页面 CSS 是切路由时整张换掉的，换表的那一瞬间那两条 `a` 规则会跟着消失，
   UA 默认下划线就会在每一个 tab 下面闪一下。按选择器特异性这行本来也压得住 UA 样式，
   加 !important 只是为了连页面 CSS 里任何带 `a` 的规则都一并压住。 */
.site-header a {
  text-decoration: none !important;
}

.site-header .main-nav a {
  position: relative;
  height: 100% !important;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .8) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header .main-nav a::after {
  content: none !important;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a.active {
  color: #fff !important;
}

.site-header .main-nav a.active::after {
  content: "" !important;
  position: absolute;
  left: 50% !important;
  right: auto !important;
  bottom: 0;
  width: 30px !important;
  height: 6px !important;
  border-radius: 4px 4px 0 0;
  background: #f39a2f !important;
  transform: translateX(-50%);
}

.site-header .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px 8px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: transparent;
}

.site-header .nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
}

.site-header .phone,
.site-header .nav-call {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header { height: 70px !important; }
  .site-header .brand,
  .site-header .brand img { width: 190px !important; height: 48px !important; }
  .site-header .nav-toggle { display: block; }
  .site-header .main-nav {
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    height: auto !important;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    border-radius: 0 0 14px 14px;
    background: #072b50;
    box-shadow: 0 18px 32px rgba(4, 25, 47, .2);
  }
  .site-header .main-nav.open { display: flex; }
  .site-header .main-nav a { min-height: 48px; justify-content: center; }
  .site-header .main-nav a.active::after { bottom: 5px; height: 3px !important; }
}

@media (max-width: 430px) {
  .site-header .nav-wrap { width: calc(100% - 30px); }
  .site-header .brand,
  .site-header .brand img { width: 175px !important; }

  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .lead-modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .lead-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .lead-modal-header {
    min-height: 78px;
    padding: 19px 20px;
  }

  .lead-modal-header h2 { font-size: 25px; }
  .lead-form { padding: 22px 20px 28px; gap: 17px; }
  .lead-form label > span { font-size: 16px; }
  .lead-form input,
  .lead-form select { height: 52px; }
  .lead-form textarea { min-height: 96px; }
  .lead-submit { height: 56px; }
}
