/* ==========================================================================
   closer.css — 10 Final CTA / 11 Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: var(--sp-10) 0;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: -2;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(14, 28, 44, 0.78) 0%,
    rgba(14, 28, 44, 0.9) 100%
  );
}

.cta__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta .h2 {
  margin-top: var(--sp-4);
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  color: var(--on-dark);
}

.cta__sub {
  margin: var(--sp-4) auto 0;
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--on-dark-muted);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: var(--sp-7);
}

.cta__aside {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.cta__aside a {
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.cta__aside a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

@media (max-width: 575.98px) {
  .cta {
    padding: var(--sp-9) 0;
  }

  .cta__actions {
    flex-direction: column;
    gap: 16px;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #9fb0c2;
  font-size: 0.875rem;
  line-height: 1.7;
  padding-top: var(--sp-9);
}

/* 页脚用了 g-lg-5（行负边距 24px），而栅格容器内边距只有 12px：
   在 992–1239px 区间整行会超出视口 12px，出现横向滚动条。
   补足容器内边距后停止溢出（内容宽度少 24px，视觉无感）。 */
@media (min-width: 992px) {
  .site-footer .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.footer__brand .brand__mark {
  color: var(--white);
}

.footer__about {
  margin-top: var(--sp-4);
  max-width: 36ch;
}

.footer__loc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: #c3d0dd;
}

.footer__loc svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--orange);
}

/* 社媒图标（footer.php 只在后台填了真实账号时渲染）
   36–38px 圆形按钮，边框用半透明白；hover 转品牌橙，与页脚其他链接
   "灰 → 白/橙" 的颜色逻辑一致。不做放大或位移动画 —— 深色底上动起来容易晃眼。 */
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #c3d0dd;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.footer__social a:hover,
.footer__social a:focus-visible {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__title {
  margin: 0 0 var(--sp-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__list li + li {
  margin-top: 9px;
}

.footer__list a {
  color: #9fb0c2;
  transition: color 0.16s var(--ease);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--white);
}

.footer__contact li + li {
  margin-top: 12px;
}

.footer__contact a {
  color: var(--white);
  font-weight: 600;
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__contact .muted {
  color: #8397ab;
  font-size: 0.8125rem;
}

.footer__addr {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8397ab;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: var(--sp-8);
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #8397ab;
}

.footer__bottom a {
  color: #8397ab;
}

.footer__bottom a:hover {
  color: var(--white);
}

@media (max-width: 767.98px) {
  .site-footer {
    padding-top: var(--sp-8);
  }

  .footer__addr {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8397ab;
}

.footer__bottom {
    margin-top: var(--sp-7);
  }
}
