/* ============================================================
   Zhuocheng footer — exact REACHSKY layout/styles, local tokens
   Must load AFTER static-site.css / v2-theme.css / v2-shell.css
   ============================================================ */

.site-footer {
  --footer-accent: #3d8fd1;
  --footer-brand: #0b3a6e;
  --footer-brand-hover: #145a9e;
  --footer-muted: rgba(255, 255, 255, 0.62);
  --footer-max: 1480px;
  --footer-gutter: clamp(1rem, 2.8vw, 2.5rem);
  --footer-radius: 4px;
  --footer-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --brand: var(--footer-brand);
  --brand-hover: var(--footer-brand-hover);
  --accent: var(--footer-accent);
  --ease: var(--footer-ease);
  --radius: var(--footer-radius);
  --max: var(--footer-max);
  --gutter: var(--footer-gutter);
  --font-ui: Manrope, "Segoe UI", sans-serif;
}

/* ---------- Kill old Zhuocheng / clean-footer layout ---------- */
.site-footer .footer-proof,
.site-footer .clean-footer-proof,
.site-footer .footer-rfq,
.site-footer .footer-cert-row,
.site-footer .footer-bottom.clean-footer-bottom,
.site-footer .clean-footer-bottom {
  display: none !important;
}

.site-footer.clean-footer,
.site-footer,
footer.site-footer {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--font-ui);
  border-top: 0;
  background-color: #0b1f33;
  box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* Full-bleed adaptive photo + scrim (beats static-site ::before/::after) */
.site-footer::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  background-color: #0b1f33;
  background-image: url("footer/footer-bg.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  filter: none !important;
  pointer-events: none;
}

.site-footer::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.84) 48%, rgba(0, 0, 0, 0.9) 100%) !important;
  filter: none !important;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer .footer-mid {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.site-footer .footer-main,
.site-footer .footer-main.clean-footer-main {
  display: grid !important;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 56px 0 40px;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  color: #fff;
  background: transparent !important;
  min-height: 0 !important;
  max-width: none !important;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}

.site-footer .footer-main::after,
.site-footer .footer-main::before {
  content: none !important;
  display: none !important;
}

@media (min-width: 1100px) {
  .site-footer .footer-main,
  .site-footer .footer-main.clean-footer-main {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    align-items: start;
  }
}

.site-footer .footer-links-wrap {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.site-footer .footer-brand-block {
  all: unset;
  display: block;
  max-width: 34rem;
  color: #fff;
}

.site-footer .footer-brand {
  display: inline-flex;
  line-height: 0;
  margin-bottom: 1rem;
}

.site-footer .footer-brand img {
  display: block;
  width: auto;
  height: 3.5rem;
  max-width: 16rem;
  object-fit: contain;
  object-position: left center;
  filter: none;
  background: transparent !important;
  mix-blend-mode: normal;
  border-radius: 0;
}

.site-footer .footer-brand-copy {
  margin: 0 0 0.65rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  max-width: none !important;
}

.site-footer .footer-brand-meta,
.site-footer .footer-brand-address {
  display: none !important;
}

.site-footer .footer-brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.site-footer .footer-brand-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-footer .footer-brand-links a:hover {
  color: var(--accent, #f28c28);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer .footer-links {
  all: unset;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px 40px !important;
  color: #fff;
}

@media (min-width: 800px) {
  .site-footer .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 48px !important;
  }
}

.site-footer .footer-col {
  all: unset;
  display: block;
  margin: 0;
}

.site-footer .footer-col dt {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff !important;
}

.site-footer .footer-col dd {
  margin: 0 0 12px;
  padding: 0;
}

.site-footer .footer-col a {
  display: inline;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s var(--ease);
}

.site-footer .footer-col a:hover {
  color: var(--accent) !important;
}

.site-footer .footer-trust {
  display: grid;
  gap: 22px;
  max-width: 46rem;
}

.site-footer .footer-pay-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.site-footer .footer-pay-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-footer .footer-pay-panel img {
  height: 30px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 4px;
  padding: 0;
}

.site-footer .footer-aside {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.site-footer .footer-contact-title,
.site-footer .footer-subscribe-title,
.site-footer .footer-social-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.site-footer .footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.site-footer .footer-contact-list li {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.site-footer .footer-contact-list li > span:first-child {
  color: var(--footer-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer .footer-contact-list a,
.site-footer .footer-contact-list li > span:last-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer .footer-contact-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer .footer-aside-rfq {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer .footer-subscribe {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 3px 3px 3px 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.site-footer .footer-subscribe input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 14px;
}

.site-footer .footer-subscribe input::placeholder {
  color: #8a9199;
}

.site-footer .footer-subscribe input:focus {
  outline: none;
}

.site-footer .footer-subscribe button {
  flex-shrink: 0;
  height: 40px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.site-footer .footer-subscribe button:hover {
  background: var(--brand-hover);
}

.site-footer .footer-subscribe button:active {
  transform: scale(0.98);
}

.site-footer .footer-subscribe-tip {
  margin: 10px 0 0;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer .footer-subscribe-tip b {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.site-footer .footer-subscribe-tip a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-footer .footer-subscribe-tip a:hover {
  color: var(--accent);
}

.site-footer .footer-social-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer .footer-social-panel a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: #151515;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-footer .footer-social-panel a svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.site-footer .footer-social-panel a:hover {
  background: var(--brand);
  color: #fff;
}

.site-footer .footer-social-panel a:active {
  transform: scale(0.96);
}

.site-footer .footer-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
}

.site-footer .footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 18px 0 28px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.4;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.site-footer .footer-bar-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.site-footer .footer-bar-inner button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.site-footer .footer-bar-inner button:hover {
  color: #fff;
}

.site-footer .footer-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-left: auto;
}

.site-footer .footer-bar-links a {
  color: var(--footer-muted) !important;
  transition: color 0.2s var(--ease);
  text-decoration: none;
}

.site-footer .footer-bar-links a:hover {
  color: #fff !important;
}

.site-footer .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 719px) {
  .site-footer .footer-main,
  .site-footer .footer-main.clean-footer-main {
    padding: 36px 0 28px;
  }

  .site-footer .footer-col dt,
  .site-footer .footer-pay-title,
  .site-footer .footer-contact-title,
  .site-footer .footer-subscribe-title,
  .site-footer .footer-social-title {
    font-size: 15px;
  }

  .site-footer .footer-col a {
    font-size: 13px !important;
  }

  .site-footer .footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-bar-links {
    margin-left: 0;
  }
}
