/* =========================================================
   上海亿诺信官网 - layout.css
   顶部导航 / 移动端抽屉菜单 / 页脚 / 内页横幅 / CTA 横幅 / 回到顶部
   ========================================================= */

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--t), box-shadow var(--t);
}

.site-header.is-scrolled {
  background: rgba(5, 15, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(3, 10, 24, 0.5), inset 0 -1px 0 rgba(124, 184, 255, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.brand__text small {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.62);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-active {
  color: #fff;
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color var(--t-fast);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--orange-400);
}

.header-phone:hover {
  color: var(--orange-400);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--t-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 移动端抽屉菜单 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(4, 14, 28, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

.drawer-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  width: min(320px, 84vw);
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(102%);
  transition: transform var(--t);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--t-fast), color var(--t-fast);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.drawer-links {
  padding: 12px 12px 4px;
}

.drawer-link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.drawer-link.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 122, 26, 0.16);
}

.drawer-foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.drawer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--orange-400);
}

/* ---------- 内页横幅 ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 76px) 0 64px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-banner.svg") center / cover no-repeat;
  opacity: 0.95;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 86% 12%, rgba(34, 211, 238, 0.18), transparent 62%),
    radial-gradient(52% 64% at 8% 96%, rgba(46, 130, 255, 0.24), transparent 64%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.breadcrumb a {
  transition: color var(--t-fast);
}

.breadcrumb a:hover {
  color: var(--orange-400);
}

.breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero__title {
  font-size: 38px;
  color: #fff;
  letter-spacing: 1px;
}

.page-hero__desc {
  margin-top: 14px;
  max-width: 720px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero__line {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-tech);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
  margin-top: 22px;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  padding: 72px 0;
  background: var(--gradient-dark);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 65%);
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -240px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 130, 255, 0.32), transparent 65%);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__title {
  font-size: 28px;
  color: #fff;
}

.cta-banner__desc {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(124, 184, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 44px;
  padding: 68px 0 48px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand__text strong {
  font-size: 19px;
}

.footer-desc {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links li + li {
  margin-top: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-links a:hover {
  color: var(--orange-400);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  line-height: 1.7;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--orange-400);
}

.footer-qr {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-qr__box {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.footer-qr__box img {
  width: 84px;
  height: 84px;
}

.footer-qr span {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: inherit;
  transition: color var(--t-fast);
}

.footer-bottom a:hover {
  color: var(--orange-400);
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-800);
  color: #fff;
  border: 1px solid rgba(124, 184, 255, 0.28);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast);
}

.back-top:hover {
  background: var(--orange-500);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .header-phone span {
    display: none;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .brand__text strong {
    font-size: 18px;
  }

  .brand__text small {
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .page-hero {
    padding: calc(var(--header-height) + 52px) 0 48px;
  }

  .page-hero__title {
    font-size: 28px;
  }

  .page-hero__desc {
    font-size: 15px;
  }

  .cta-banner {
    padding: 54px 0;
  }

  .cta-banner__title {
    font-size: 22px;
  }

  .cta-banner__actions {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0 36px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .back-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
}
