/* ==========================================================
   layout.css — 页头 / 导航 / 页脚 / 悬浮咨询 / 内页横幅
   ========================================================== */

/* ---------- 顶部条 ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--brand); }
.topbar .tb-right { display: flex; gap: 20px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar .tel { color: var(--brand); font-weight: 700; }

/* ---------- 页头 ---------- */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(23,49,59,.06); position: sticky; top: 0; z-index: 90; }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 52px; width: auto; }

/* ---------- 主导航（PC 纯CSS下拉） ---------- */
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 30px 17px;
  font-size: 16px;
  color: var(--text-main);
  position: relative;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute; left: 17px; right: 17px; bottom: 20px;
  height: 2px; border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a { color: var(--brand-dark); }
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav .drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 168px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: all .25s;
  z-index: 95;
}
.main-nav > ul > li:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.main-nav .drop a { display: block; padding: 9px 22px; font-size: 14px; color: var(--text-sub); white-space: nowrap; }
.main-nav .drop a:hover { background: var(--brand-bg); color: var(--brand-deep); }

.head-tel { flex: none; text-align: right; }
.head-tel .num { font-size: 24px; font-weight: 700; color: var(--brand-dark); line-height: 1.2; display: block; }
.head-tel .lab { font-size: 12px; color: var(--text-light); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: all .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ---------- 内页横幅 ---------- */
.page-banner {
  position: relative;
  background: var(--dark) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,60,50,.82), rgba(23,49,59,.55));
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: 2px; }
.page-banner .en { display: block; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; margin-top: 8px; }
.page-banner .sub { margin-top: 12px; font-size: 15px; opacity: .9; }

/* ---------- 板块容器 ---------- */
.section { padding: 70px 0; }
.section.gray { background: var(--bg-gray); }
.section.mint { background: var(--brand-bg-2); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0 40px; }
.footer-main h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-main h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--brand); }
.footer-brand img { height: 46px; opacity: .92; margin-bottom: 14px; }
.footer-brand p { line-height: 1.8; margin-bottom: 8px; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a:hover { color: var(--brand); }
.footer-contact li { margin-bottom: 10px; display: flex; gap: 8px; line-height: 1.6; }
.footer-contact .k { color: rgba(255,255,255,.45); flex: none; }
.footer-contact .tel-big { color: var(--brand); font-size: 18px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; text-align: center; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- 悬浮咨询 ---------- */
.float-bar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.float-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px; color: var(--text-sub);
  transition: all .25s;
}
.float-bar a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-bar svg { width: 22px; height: 22px; margin-bottom: 3px; fill: currentColor; }
.float-bar .gotop { display: none; }

/* 移动端底部咨询条 */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  grid-template-columns: 1fr 1fr;
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 0; color: #fff; font-size: 16px; }
.mobile-bar .m-tel { background: var(--brand-deep); }
.mobile-bar .m-wx { background: var(--brand); }
.mobile-bar svg { width: 18px; height: 18px; fill: currentColor; }
