/* ══════════════════════════════════════════
   页脚 · 经典三栏（内容均分，不撑空）
   联系我们 | 产品及服务 | 微信公众号
   ══════════════════════════════════════════ */

.site-footer--home {
  background: var(--red) !important;
  color: #fff;
  border-top: none;
  margin-top: 0;
}

/* 顶栏导航 */
.site-footer--home .site-footer__topnav {
  display: block !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer--home .site-footer__topnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-footer--home .site-footer__topnav a {
  position: relative;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s, background 0.25s;
}

.site-footer--home .site-footer__topnav a:first-child {
  padding-left: 0;
}

.site-footer--home .site-footer__topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer--home .site-footer__topnav a.is-active {
  color: #fff;
  font-weight: 600;
  background: transparent;
}

.site-footer--home .site-footer__topnav a.is-active::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-footer--home .site-footer__topnav a:first-child.is-active::after {
  left: 0;
}

.site-footer--home .site-footer__body {
  padding: 40px 0 36px;
}

/* 关键点：定宽容器内三栏，固定间距，不把空白甩到中间 */
.site-footer--home .site-footer__cols,
.site-footer--home .site-footer__panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 40px;
  row-gap: 28px;
  width: var(--w);
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
}

.site-footer--home .site-footer__col {
  min-width: 0;
  max-width: none;
  width: auto;
  order: unset !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.site-footer--home .site-footer__col:first-child,
.site-footer--home .site-footer__col:nth-child(2) {
  flex: unset;
  max-width: none;
}

.site-footer--home .site-footer__col--qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
}

.site-footer--home h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: none;
}

.site-footer--home .site-footer__mark {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff 0 0) 0 0 / 5px 5px no-repeat,
    linear-gradient(#fff 0 0) 7px 0 / 5px 5px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.45) 0 0) 0 7px / 5px 5px no-repeat,
    linear-gradient(#fff 0 0) 7px 7px / 5px 5px no-repeat;
}

/* 联系：电话+邮箱同行，地址下一行 */
.site-footer--home .site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 28px;
  row-gap: 12px;
}

.site-footer--home .site-footer__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer--home .site-footer__list li:nth-child(1),
.site-footer--home .site-footer__list li:nth-child(2) {
  flex: 0 0 auto;
}

.site-footer--home .site-footer__list li:nth-child(3) {
  flex: 1 1 100%;
  align-items: flex-start;
}

.site-footer--home .site-footer__list li:nth-child(3) .site-footer__ico {
  margin-top: 2px;
}

.site-footer--home .site-footer__ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.16);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  border: none;
}

.site-footer--home .site-footer__ico::before {
  display: none !important;
  content: none !important;
}

.site-footer--home .site-footer__ico--tel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
}

.site-footer--home .site-footer__ico--mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E");
}

.site-footer--home .site-footer__ico--addr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-5.2-7-11a7 7 0 1 1 14 0c0 5.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

/* 产品及服务 · 两列六项 */
.site-footer--home .site-footer__svlinks {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 32px;
  width: max-content;
}

.site-footer--home .site-footer__svlinks a {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.25s;
}

.site-footer--home .site-footer__svlinks a:hover {
  color: #fff;
}

/* 微信 */
.site-footer--home .site-footer__col--qr h3 {
  margin-bottom: 14px;
}

.site-footer--home .site-footer__wx {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.site-footer--home .site-footer__wx-frame {
  flex-shrink: 0;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.site-footer--home .site-footer__wx-frame img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 3px;
  object-fit: contain;
}

.site-footer--home .site-footer__wx-text {
  margin: 0;
  text-align: left;
  white-space: nowrap;
  line-height: 1.45;
}

.site-footer--home .site-footer__wx-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.site-footer--home .site-footer__wx-text span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* 版权 */
.site-footer--home .site-footer__bar--light,
.site-footer__bar--light {
  background: #fff !important;
  color: var(--ink-3) !important;
  border-top: 1px solid #e8e8e8 !important;
  padding: 16px 0 !important;
  font-size: 12px !important;
}

.site-footer__bar--light a {
  color: var(--ink-3) !important;
}

.site-footer__bar--light a:hover {
  color: var(--red) !important;
}

@media (max-width: 900px) {
  .site-footer--home .site-footer__cols,
  .site-footer--home .site-footer__panel {
    gap: 28px 40px;
  }
  .site-footer--home .site-footer__col:first-child {
    flex: 1 1 240px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-footer--home .site-footer__topnav a {
    flex: 1;
    min-width: 0;
    padding: 13px 4px;
    font-size: 12px;
    text-align: center;
  }
  .site-footer--home .site-footer__topnav a:first-child {
    padding-left: 4px;
  }
  .site-footer--home .site-footer__topnav a.is-active::after {
    left: 8px;
    right: 8px;
  }
  .site-footer--home .site-footer__body {
    padding: 28px 0 26px;
  }
  .site-footer--home .site-footer__cols,
  .site-footer--home .site-footer__panel {
    flex-direction: column;
    gap: 24px;
  }
  .site-footer--home .site-footer__col:first-child,
  .site-footer--home .site-footer__col:nth-child(2) {
    flex: 1 1 auto;
    max-width: none;
  }
  .site-footer--home .site-footer__list li:nth-child(1),
  .site-footer--home .site-footer__list li:nth-child(2) {
    flex: 1 1 100%;
  }
  .site-footer--home .site-footer__svlinks {
    width: 100%;
    max-width: 320px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}
