.site-footer {
  border-top: 4px solid #0060ff;
  color: #fff;
  /* 底色改为纯黑；需 !important 盖过 style.css 中共享深色主题的
     .site-footer { background: var(--theme-dark-deep) !important }。 */
  background: #000 !important;
  font-family: "Company Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  scroll-margin-top: var(--header-height, 96px);
}

.footer-container {
  width: min(1436px, calc(100% - 100px));
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr 1.1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: 58px 46px;
}

.footer-main > * {
  min-width: 0;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  /* 与头部 logo 一致，显示图片本身的配色（深蓝 #103070 + 橙 #e04010），不做反白处理 */
  filter: none;
}

.site-footer .footer-company-name {
  margin-top: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.site-footer .footer-description {
  margin-top: 12px;
  line-height: 2;
}

.site-footer .footer-brand-line {
  margin-top: 24px;
  color: #fff;
  letter-spacing: 2px;
}

.footer-brand-line span {
  margin-inline: 10px;
  color: #fff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.footer-social-slot {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
}

.footer-social-slot img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.footer-social-slot img:not([src]),
.footer-social-slot img[src=""] {
  display: none;
}

.footer-heading {
  margin: 0 0 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.footer-heading::after {
  display: block;
  width: 25px;
  height: 2px;
  margin-top: 12px;
  background: #438aff;
  content: "";
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding-block: 5px;
}

.site-footer a {
  transition: color .2s ease, background-color .2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline: 2px solid #91bdff;
  outline-offset: 5px;
  border-radius: 2px;
}

.site-footer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-details {
  display: grid;
  gap: 14px;
  padding-top: 6px;
  font-style: normal;
}

.footer-contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-wrap: anywhere;
}

.footer-contact-details svg {
  margin-top: 3px;
  color: #82a9da;
}

.footer-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 46px;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  background: #6b6b6b;
  font-weight: 700;
}

.footer-inquiry:hover {
  background: #808080;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 80px;
  padding-block: 18px;
  border-top: 1px solid #2b4261;
  color: #fff;
  font-size: 13px;
}

.footer-bottom p span {
  display: inline-block;
}

.footer-back-top {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

/* 为页面右侧的快捷联系工具留出空间。 */
@media (min-width: 601px) and (max-width: 1450px) {
  .footer-container {
    width: calc(100% - 124px);
    margin-left: 28px;
    margin-right: 96px;
  }
}

@media (max-width: 1120px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    padding-block: 44px 36px;
  }

  .footer-links a {
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .footer-container {
    width: calc(100% - 40px);
  }

  .footer-main {
    gap: 30px 24px;
    padding-block: 34px 30px;
  }

  .footer-company,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 140px;
  }

  .site-footer .footer-company-name {
    margin-top: 16px;
  }

  .site-footer .footer-brand-line {
    margin-top: 16px;
  }

  .footer-heading {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .footer-links-columns {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    padding-top: 26px;
    border-top: 1px solid #2b4261;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 22px 0;
    font-size: 12px;
  }
}

/* 页脚整体放大（仅桌面端）：只调整尺寸与字号，配色与结构不变 */
@media (min-width: 1121px) {
  /* 减少两侧留白，与其他已放大的区块保持一致；右侧留出悬浮联系工具栏的位置 */
  .footer-container {
    width: calc(100% - 96px);
    margin-left: 20px;
    margin-right: 76px;
  }

  .site-footer {
    font-size: 16px;
  }

  .footer-main {
    gap: clamp(28px, 3.2vw, 56px);
    padding-block: 68px 56px;
  }

  .footer-brand {
    min-height: 50px;
  }

  .footer-brand img {
    width: 184px;
  }

  .site-footer .footer-company-name {
    margin-top: 24px;
    font-size: 18px;
  }

  .site-footer .footer-description {
    margin-top: 14px;
  }

  .site-footer .footer-brand-line {
    margin-top: 28px;
    letter-spacing: 3px;
  }

  .footer-social {
    gap: 16px;
    margin-top: 30px;
  }

  .footer-social-slot {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }

  .footer-social-slot img {
    width: 27px;
    height: 27px;
  }

  .footer-heading {
    margin-bottom: 26px;
    font-size: 21px;
  }

  .footer-heading::after {
    width: 30px;
    height: 3px;
    margin-top: 14px;
  }

  .footer-links-columns {
    column-gap: 20px;
  }

  .footer-links a {
    min-height: 46px;
  }

  .site-footer svg {
    width: 23px;
    height: 23px;
  }

  .footer-contact-details {
    gap: 18px;
    padding-top: 8px;
  }

  .footer-contact-details p {
    gap: 14px;
  }

  .footer-inquiry {
    min-height: 54px;
    margin-top: 30px;
    padding: 14px 24px;
    font-size: 16px;
    gap: 34px;
  }

  .footer-bottom {
    min-height: 90px;
    font-size: 15px;
  }

  .footer-back-top {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a {
    transition: none;
  }
}
