/**
 * @author LYJ
 * @date 2026/4/27
 *
 * Copyright (c) 2026, YANGCHUANG All Rights Reserved.
 */
/* STICKY-FOOTER: 统一页脚贴底 */
body{display:flex;flex-direction:column;min-height:100vh;margin:0;}
body > main {
  flex: 1 0 auto;
}

.topbar {
  height: 34px;
  color: #fff;
  background: #003768;
  font-size: 12px;
}

.topbar .wrap,
.header-inner,
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

.site-header {
  height: 134px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 500px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  background: url("./images/brand-mark.png") center / contain no-repeat;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: #101826;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.brand em {
  display: block;
  margin-top: 7px;
  color: #34465c;
  font-style: normal;
  font-size: 14px;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 72px;
}

.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  color: #617083;
}

.info-item p {
  margin: 0;
}

.info-item b {
  display: block;
  color: #20304a;
  font-size: 16px;
  line-height: 1.25;
}

.info-item small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
}

.phone b {
  color: var(--blue-900);
  font-size: 28px;
  letter-spacing: .015em;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 50px;
  color: #fff;
  background: var(--blue-900);
  box-shadow: 0 5px 16px rgba(0, 49, 96, .18);
}

.nav-inner {
  justify-content: flex-start;
}

.main-nav a {
  min-width: 108px;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s, color .18s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: #0c5fb8;
}
.main-nav a.active {
  color: #fff;
  background: #0a4e97;
  box-shadow: inset 0 -3px 0 var(--orange, #f39c12);
}

.search {
  margin-left: auto;
  width: 50px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
}

.search .ui-icon {
  width: 25px;
  height: 25px;
}

.bottom-contact {
  position: static;
  flex-shrink: 0;
  margin-top: 0;
  color: #fff;
  background: linear-gradient(90deg, #003567, #004986);
  box-shadow: 0 -10px 28px rgba(0, 35, 68, .16);
}

.contact-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: center;
}

.bottom-contact h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.bottom-contact p {
  margin: 5px 0 0;
  color: #cfe2f2;
}

.bottom-contact form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 128px;
  gap: 13px;
  align-items: center;
}

.bottom-contact input,
.bottom-contact select {
  height: 42px;
  border: 1px solid #b9cbe0;
  border-radius: 4px;
  padding: 0 14px;
  outline: none;
}

.bottom-contact button {
  height: 42px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.bottom-contact small {
  grid-column: 1 / -1;
  color: #c9dced;
}

.site-footer {
  flex-shrink: 0;
  color: #d5e4f1;
  background: #082f58;
  border-top: 4px solid #0b568f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 42px;
  padding: 34px 0 28px;
}

.footer-brand-link {
  min-width: 0;
  gap: 0;
  color: #fff;
}

.footer-brand-link strong {
  color: #fff;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 9px;
  color: #c9d9e7;
  font-size: 13px;
  line-height: 1.65;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 38px;
  color: #a9bdcf;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 12px;
}

.float-tools {
  position: fixed;
  right: 18px;
  bottom: 124px;
  z-index: 60;
  width: 70px;
  overflow: visible;
  background: #fff;
  border: 1px solid #dce7f1;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(10, 48, 88, .12);
}
.float-tools > a:first-child { border-radius: 6px 6px 0 0; }
.float-tools > a:last-child,
.float-tools > button:last-child { border-radius: 0 0 6px 6px; }

.float-tools a,
.float-tools button {
  width: 100%;
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--blue-900);
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e8eef5;
  font-size: 12px;
  font-weight: 800;
}

.float-tools a:last-child,
.float-tools button:last-child {
  border-bottom: 0;
}

.float-tools .ui-icon {
  width: 24px;
  height: 24px;
}

.float-tools span:not(.ui-icon) {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .site-header {
    height: auto;
    padding: 20px 0;
  }

  .header-inner,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .brand {
    min-width: 0;
  }

  .header-info {
    gap: 20px;
    flex-wrap: wrap;
  }

  .bottom-contact form {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    padding: 12px 0;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: none;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 20px;
  }

  .header-info {
    display: none;
  }

  .nav-inner {
    overflow-x: auto;
  }

  .main-nav a {
    min-width: 96px;
    padding: 0 12px;
  }

  .bottom-contact form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }
}

/* 2026-06-23 nav normalization: design header has 9 short menu items */
.main-nav a { min-width: 120px; }
.main-nav a:nth-child(4),
.main-nav a:nth-child(5) { min-width: 120px; }
@media (max-width: 720px) {
  .main-nav a,
  .main-nav a:nth-child(4),
  .main-nav a:nth-child(5) { min-width: 96px; }
}
.site-search-panel[hidden] {
  display: none;
}

.site-search-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 86px 18px 18px;
  background: rgba(7, 30, 54, .46);
  backdrop-filter: blur(8px);
}

.search-card {
  width: min(720px, 100%);
  color: #1f3450;
  background: #fff;
  border: 1px solid rgba(16, 64, 106, .12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 25, 50, .25);
  overflow: hidden;
}

.search-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #e6edf5;
}

.search-card-head b,
.search-card-head span {
  display: block;
}

.search-card-head b {
  font-size: 18px;
}

.search-card-head span {
  margin-top: 4px;
  color: #6c7e91;
  font-size: 13px;
}

.search-card-head button {
  width: 34px;
  height: 34px;
  border: 0;
  color: #35506c;
  background: #f1f6fb;
  border-radius: 4px;
  font-size: 22px;
  cursor: pointer;
}

.search-input {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 22px 8px;
  padding: 0 14px;
  border: 1px solid #cfdceb;
  border-radius: 6px;
  background: #f8fbff;
}

.search-input .ui-icon {
  width: 22px;
  height: 22px;
}

.search-input input {
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: min(420px, 58vh);
  overflow: auto;
  padding: 10px 22px 22px;
}

.search-results > a {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: #1f3450;
  background: #f7fbff;
  border: 1px solid #e4edf6;
  border-radius: 6px;
}

.search-results > a:hover {
  color: #003c71;
  border-color: #aac4dc;
  transform: translateY(-1px);
}

.search-results span,
.search-empty span,
.data-empty span {
  color: #6c7e91;
  line-height: 1.65;
}

.search-empty,
.data-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px;
  background: #f7fbff;
  border: 1px dashed #bdd0e4;
  border-radius: 8px;
}

.data-empty {
  margin: 18px 0;
}

/* 侧边栏微信咨询：悬停显示二维码弹出卡 */
.float-tools .wechat-tool { position: relative; }
.wechat-pop { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) scale(.96); transform-origin: right center; width: 180px; padding: 12px; background: #fff; border: 1px solid #e5ecf5; border-radius: 10px; box-shadow: 0 14px 34px rgba(9,58,102,.20); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60; text-align: center; }
.wechat-tool:hover .wechat-pop, .wechat-tool:focus-within .wechat-pop { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.wechat-pop img { width: 100%; display: block; border-radius: 6px; }
.wechat-pop em { display: block; margin-top: 8px; font-style: normal; color: #3a5372; font-size: 13px; font-weight: 700; }
.wechat-pop::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; border-right: 1px solid #e5ecf5; border-top: 1px solid #e5ecf5; }
