/* ============================================================
   布局层：顶部导航 / 巨幕菜单 / 页脚 / 侧边悬浮
   ============================================================ */

/* ---------------- Header ---------------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--head-h);
  transition: background .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.hd-inner { height: var(--head-h); display: flex; align-items: center; gap: 34px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px rgba(6, 128, 236, .32);
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.2; }
.logo-txt b { font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.logo-txt i { font-size: 11px; font-style: normal; opacity: .62; letter-spacing: 1.5px; }
.logo img { height: 36px; width: auto; }

/* 主导航 */
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; height: var(--head-h);
  padding: 0 17px; font-size: 15.5px; font-weight: 500; white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 17px; right: 17px; bottom: 20px; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-item:hover .nav-link::after, .nav-link.on::after { transform: scaleX(1); }
.nav-link .caret {
  width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); opacity: .55; transition: transform .3s;
}
.nav-item:hover .caret { transform: rotate(225deg) translate(-3px, -3px); }

.hd-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hd-search {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  transition: background .25s; cursor: pointer;
}
.hd-search:hover { background: rgba(125, 145, 170, .14); }
.hd-tel { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }

/* 顶部两种态：透明（首页顶部）与实色 */
.hd.t { color: #fff; }
.hd.t .logo-mark { background: rgba(255, 255, 255, .18); box-shadow: none; backdrop-filter: blur(6px); }
.hd.t .nav-link::after { background: #fff; }
.hd.solid {
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(16, 42, 76, .06); color: var(--text);
}
.hd.solid .nav-link:hover { color: var(--primary); }

/* ---------------- 巨幕下拉 ---------------- */
.mega {
  position: fixed; left: 0; right: 0; top: var(--head-h);
  background: #fff; border-top: 1px solid var(--line-2);
  box-shadow: 0 22px 44px rgba(16, 42, 76, .12);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all .3s var(--ease); z-index: 899; color: var(--text);
}
.nav-item:hover .mega, .mega:hover { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; padding: 34px 0 38px; }
.mega-col { padding: 0 28px; border-right: 1px solid var(--line-2); }
.mega-col:last-child { border-right: 0; }
.mega-col > a.mega-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.mega-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--bg-blue); color: var(--primary);
  display: grid; place-items: center;
}
.mega-h b { font-size: 16px; font-weight: 600; }
.mega-desc { font-size: 12.5px; color: var(--text-4); line-height: 1.65; margin-bottom: 14px; min-height: 40px; }
.mega-list li { margin-bottom: 2px; }
.mega-list a {
  display: block; padding: 7px 10px; margin-left: -10px; border-radius: 8px;
  font-size: 14px; color: var(--text-2); transition: all .22s;
}
.mega-list a:hover { background: var(--bg-blue); color: var(--primary); padding-left: 14px; }
.mega-foot {
  background: var(--bg-soft); border-top: 1px solid var(--line-2);
  padding: 14px 0; font-size: 13.5px; color: var(--text-3);
}
.mega-foot .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mega-foot b { color: var(--text-2); font-weight: 500; }
.mega-foot a { color: var(--text-3); padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.mega-foot a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------------- 搜索浮层 ---------------- */
.search-mask {
  position: fixed; inset: 0; background: rgba(12, 22, 38, .55); backdrop-filter: blur(4px);
  z-index: 950; opacity: 0; visibility: hidden; transition: all .3s;
}
.search-mask.on { opacity: 1; visibility: visible; }
.search-box {
  position: absolute; left: 50%; top: 16vh; transform: translate(-50%, -14px);
  width: min(680px, 90vw); background: #fff; border-radius: var(--radius-l);
  padding: 12px; box-shadow: var(--shadow-l); transition: transform .3s var(--ease);
}
.search-mask.on .search-box { transform: translate(-50%, 0); }
.search-inp { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.search-inp input { flex: 1; border: 0; font-size: 17px; padding: 10px 0; background: none; color: var(--text); }
.search-res { max-height: 52vh; overflow: auto; margin-top: 6px; }
.search-res a { display: block; padding: 12px 16px; border-radius: 10px; }
.search-res a:hover { background: var(--bg-blue); }
.search-res .t { font-size: 15px; color: var(--text); font-weight: 500; }
.search-res .m { font-size: 12.5px; color: var(--text-4); margin-top: 3px; }
.search-hot { padding: 10px 16px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-hot span { font-size: 13px; color: var(--text-4); }
.search-hot button { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--text-2); }
.search-hot button:hover { background: var(--primary); color: #fff; }

/* ---------------- 移动端菜单 ---------------- */
.burger { display: none; width: 38px; height: 38px; border-radius: 9px; }
.burger i { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: .3s; }
.m-nav {
  position: fixed; inset: var(--head-h) 0 0; background: #fff; z-index: 880;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow: auto; padding: 16px 20px 60px;
}
.m-nav.on { transform: none; }
.m-nav > ul > li { border-bottom: 1px solid var(--line-2); }
.m-nav .m-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 16px; font-weight: 500; }
.m-nav .m-sub { display: none; padding: 0 4px 12px; }
.m-nav li.open .m-sub { display: block; }
.m-nav .m-sub a { display: block; padding: 9px 12px; color: var(--text-2); font-size: 14px; border-radius: 8px; }
.m-nav .m-sub a:hover { background: var(--bg-blue); }
.m-nav .m-sub .g { font-size: 12px; color: var(--text-4); padding: 10px 12px 4px; }

/* ---------------- 页脚 ---------------- */
.ft { background: #0d1726; color: rgba(255, 255, 255, .62); font-size: 14px; }
.ft-main { padding: 62px 0 40px; display: grid; grid-template-columns: 1.35fr repeat(4, 1fr) 1.1fr; gap: 32px; }
.ft-brand .logo-txt b { color: #fff; }
.ft-brand .logo-txt i { color: rgba(255, 255, 255, .45); }
.ft-slogan { margin: 18px 0 22px; line-height: 1.85; font-size: 13.5px; max-width: 260px; }
.ft-tel-label { font-size: 12.5px; opacity: .6; }
.ft-tel { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .5px; line-height: 1.4; }
.ft-tel-tip { font-size: 12px; opacity: .5; }
.ft-col h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.ft-col li { margin-bottom: 11px; }
.ft-col a { font-size: 13.5px; color: rgba(255, 255, 255, .58); }
.ft-col a:hover { color: #fff; }
.ft-qr { text-align: center; }
.ft-qr .qr-box {
  width: 108px; height: 108px; border-radius: 12px; background: #fff; padding: 7px;
  display: grid; place-items: center; margin-bottom: 8px;
}
.ft-qr .qr-ph { width: 100%; height: 100%; border-radius: 6px; background: repeating-conic-gradient(#0d1726 0% 25%, #fff 0% 50%) 50%/13px 13px; }
.ft-qr p { font-size: 12.5px; margin: 0; }
.ft-bar {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .42);
}
.ft-bar a { color: rgba(255, 255, 255, .42); }
.ft-bar a:hover { color: #fff; }
.ft-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------- 右侧悬浮 ---------------- */
.side {
  position: fixed; right: 18px; bottom: 100px; z-index: 700;
  display: flex; flex-direction: column; gap: 8px;
}
.side button {
  width: 52px; height: 52px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; gap: 2px;
  color: var(--text-3); font-size: 11px; transition: all .28s var(--ease); position: relative;
}
.side button:hover { background: var(--primary); color: #fff; transform: translateX(-3px); }
.side button svg { width: 19px; height: 19px; }
.side .tip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%) scale(.92);
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px;
  white-space: nowrap; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s;
}
.side button:hover .tip { opacity: 1; transform: translateY(-50%) scale(1); }
.side .tip b { display: block; font-size: 15px; }

@media (max-width: 1180px) {
  .ft-main { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav, .hd-tel { display: none; }
  .burger { display: block; }
  .ft-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
  .ft-brand, .ft-qr { grid-column: span 2; }
  .side { bottom: 20px; right: 12px; }
  .side button { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .ft-main { grid-template-columns: 1fr; }
  .ft-brand, .ft-qr { grid-column: span 1; }
}
