/* ============================================================
   shared.css — 全站共享头部、页脚、浮动电话
   ============================================================ */

/* ---------------- 旧浏览器提醒 ---------------- */
.browser-notice {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 1000;
  padding: 10px var(--gutter);
  color: var(--c-white);
  background: rgba(0, 1, 36, .96);
  border-bottom: 1px solid rgba(61, 200, 193, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.browser-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.5;
}
.browser-notice strong { color: var(--c-teal); white-space: nowrap; }
.browser-notice button {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-navy);
  background: var(--c-teal);
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, padding .3s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(0, 1, 36, 0.82);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(0, 1, 36, 0.72); }
  .site-header.scrolled,
  .main-nav { background: rgba(0, 1, 36, 0.96); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 22px; }
.brand-logo {
  width: 100px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: width .3s ease, height .3s ease;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 8px; line-height: 1; }
.brand-cn {
  font-weight: 700; font-size: 34px; color: var(--c-white);
  letter-spacing: 1px;
  transition: font-size .3s ease;
}
.brand-en {
  font-family: var(--font-en);
  font-weight: 700; font-size: 34px; letter-spacing: 1px;
  text-transform: uppercase;
  transition: font-size .3s ease;
}
.site-header.scrolled .brand-logo { width: 56px; height: 52px; }
.site-header.scrolled .brand-text { gap: 4px; }
.site-header.scrolled .brand-cn { font-size: 22px; }
.site-header.scrolled .brand-en { font-size: 22px; }

.main-nav { display: flex; align-items: center; gap: 68px; }
.nav-link {
  position: relative;
  font-size: 16px; color: var(--c-white);
  padding: 4px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--c-teal);
  transition: width .25s ease;
}
.nav-link.is-active { color: var(--c-teal); }
@media (hover:hover){
  .nav-link:hover{color: var(--c-teal);}
  .nav-link:hover::after{ width: 100%; }
.nav-link.is-active::after { width: 100%; }

}
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  background: var(--c-teal); color: var(--c-navy);
  font-size: 16px; font-weight: 500; letter-spacing: .4px;
  border-radius: var(--radius-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(61,200,193,.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: -180px;
  padding: 80px 0 40px;
  background: linear-gradient(180deg, rgba(0,1,36,0) 0%, rgba(0,1,36,.6) 88px, rgba(0,1,36,1) 172px);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  pointer-events: none;
  background: radial-gradient(140% 100% at 50% 100%,
    rgba(61,200,193,.5) 0%,
    rgba(46,150,154,.32) 28%,
    rgba(31,101,115,.16) 54%,
    rgba(15,51,75,.06) 78%,
    rgba(0,1,36,0) 100%);
}
.footer-top, .footer-bottom { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 773fr 530fr minmax(150px, 217fr);
  column-gap: 24px;
}
.footer-slogan { font-size: 24px; line-height: 1.3; color: var(--c-white); max-width: 521px; }
.footer-phone {
  display: flex; align-items: center; gap: 16px;
  width: 511px; max-width: 100%;
  margin-top: 30px;
  padding: 16px 24px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
}
.footer-phone img { width: 25px; height: 22px; flex: none; }
.footer-phone span { font-family: var(--font-num); font-size: 24px; line-height: 1; letter-spacing: -.96px; color: var(--c-white); }

.footer-title { font-size: 16px; font-weight: 400; color: var(--c-white); letter-spacing: .8px; line-height: 24px; margin-bottom: 24px; }
.footer-agents-cols { display: flex; gap: 50px; }
.footer-agents-cols ul { display: flex; flex-direction: column; gap: 20px; }
.footer-agents-cols li { font-size: 16px; line-height: 24px; color: var(--c-grey-9c); white-space: nowrap; }
.footer-addr p { font-size: 16px; line-height: 24px; color: var(--c-grey-9c); margin-bottom: 24px; max-width: 217px; }
.footer-addr p:last-child { margin-bottom: 0; }

.footer-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 130px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 48px; height: 44px; }
.footer-brand .brand-text { gap: 4px; }
.footer-brand .brand-cn { font-size: 16px; font-weight: 700; letter-spacing: .49px; }
.footer-brand .brand-en { font-size: 16px; }
.footer-copy { font-size: 14px; line-height: 20px; color: var(--c-grey-a1); }

/* ---------------- 浮动电话 ---------------- */
.fab-phone {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  padding: 0;
  background: var(--c-teal);
  box-shadow: 0 10px 26px rgba(61,200,193,.45);
  overflow: hidden;
  transition: width .28s ease, padding .28s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.fab-phone:hover,
.fab-phone:focus,
.fab-phone:focus-visible {
  width: 214px;
  padding: 0 18px;
  gap: 12px;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(61,200,193,.55);
}
.fab-phone img { width: 24px; height: 22px; filter: brightness(0) saturate(100%) invert(4%) sepia(40%) saturate(2000%) hue-rotate(220deg); }
.fab-phone span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-num);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.4px;
  color: var(--c-navy);
  opacity: 0;
  transition: max-width .28s ease, opacity .2s ease;
}
.fab-phone:hover span,
.fab-phone:focus span,
.fab-phone:focus-visible span {
  max-width: 150px;
  opacity: 1;
}

@media (max-width: 1280px) {
  .footer-top { grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 40px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-agents-cols { flex-direction: column; gap: 14px; }
  .footer-addr p { max-width: none; }
}

@media (max-width: 1024px) {
  .site-footer { margin-top: 0; background: #000124; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .browser-notice { padding: 10px 16px; }
  .browser-notice__inner {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .site-header { padding: 12px 0; }
  .brand { gap: 12px; }
  .brand-logo { width: 48px; height: 44px; }
  .brand-cn, .brand-en { font-size: 20px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 24px;
    max-height: 0; overflow: hidden;
    background: rgba(0,1,36,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line);
    transition: max-height .35s ease, padding .35s ease;
  }
  body.nav-open .main-nav { max-height: 360px; padding: 12px 24px 20px; }
  .main-nav .nav-link { padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); }
  .main-nav .nav-cta { margin-top: 20px; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-contact { grid-column: auto; }
  .footer-phone { width: 100%; }
  .footer-slogan { font-size: 20px; }
  .footer-agents-cols { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 40px; }
  .fab-phone { right: 18px; bottom: 18px; 
    /* width: 196px; padding: 0 16px; gap: 12px;  */
  }
  .fab-phone span { 
    /* max-width: 140px; opacity: 1;  */
    font-size: 16px; 
  }
}

@media (max-width: 480px) {
  .footer-slogan { font-size: 18px; }
  .footer-agents-cols { flex-direction: column; gap: 14px; }
  .footer-agents-cols li { white-space: normal; }
}
