/* ============================================
   底部样式 (footer.css)
   在 style.min.css 之后加载，覆盖同名规则
   ============================================ */

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
  font-size: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #a00d24;
  color: #fff;
  transform: translateY(-5px);
}

/* ========== 漂浮 Newsletter CTA ========== */
.fct-newsletter {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 3;
  transform: translateY(50%); /* 下沉到 footer 内的错位效果 */
}

.fct-newsletter-inner {
  border-radius: 6px 90px 12px 12px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.fct-newsletter {
  overflow: hidden;
  position: relative;

}
/* 装饰性叠层（参考图的弧形红色边缘） */
.fct-newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #d90700;
  opacity: 0.55;
}

.fct-newsletter::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: 40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #b80b0b;
  opacity: 0.35;
}

.fct-text {
  flex: 1;
  min-width: 0;
  color: #fff;
  position: relative;
  z-index: 1;
}

.fct-text h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}

.fct-text h3 span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  opacity: 0.9;
  margin-top: 6px;
}

.fct-text p {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

.fct-form {
  flex: 0 0 420px;
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.fct-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  border-radius: 24px;
  padding: 14px 22px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
}

.fct-form input::placeholder {
  color: #bbb;
  letter-spacing: 2px;
}

.fct-form button {
  border: 0;
  outline: 0;
  cursor: pointer;
  background: #fff;
  color: #b8860b;
  font-weight: 700;
  font-size: 14px;
  padding: 0 32px;
  border-radius: 24px;
  letter-spacing: 2px;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.fct-form button:hover {
  background: #fff4d6;
  transform: translateY(-1px);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .fct-newsletter-inner {
    padding: 28px 34px;
    gap: 28px;
  }
  .fct-text h3 { font-size: 22px; }
  .fct-form { flex-basis: 340px; }
}

@media (max-width: 768px) {
  .site-footer { padding-top: 20px; }
  .fct-newsletter {
    position: relative;
    max-width: none;
    padding: 0 20px 30px;
    transform: none;
  }
  .fct-newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
    padding: 30px 26px;
    border-radius: 6px 50px 10px 10px;
  }
  .fct-form {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex-basis: auto;
  }
  .fct-form button {
    padding: 14px 22px;
  }
}

/* ========== 深色底部主体 ========== */

.site-footer {
  background: #232428;
  color: #a0a2ab;
  float: left;
  width: 100%;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 60px 0 60px;
}

/* === 品牌列 === */
.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 26px;
}

.footer-logo img {
  max-height: 68px;
  width: auto;
  display: block;
}

.footer-brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.35;
}

.footer-contact {
  margin: 0 0 26px;
}

.footer-contact p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact p i {
  color: #f5b400;
  font-size: 14px;
  line-height: 1.7;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* === 社交图标（彩色圆形） === */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  text-align: left;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
  position: relative;
}

.social-icons a:hover {
  background: transparent;
  transform: translateY(-3px);
}

.social-icons a i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff!important;
  /* 红色 */
  background: #E53935;
  transition: all 0.3s ease;
}

.social-icons a:hover i {
  color: #fff;
  background: #f5b400;
  box-shadow: 0 6px 18px rgba(245, 180, 0, 0.45);
  transform: translateY(-2px);
}


/* 二维码弹窗（底部内） */
.social-icon-qr {
  position: relative;
}

.qr-popup {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.qr-popup img {
  width: 120px;
  height: 120px;
  max-width: 120px;
  display: block;
}

.qr-popup:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.social-icon-qr:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* === 链接列 === */
.footer-col h4 {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.footer-col h4 a {
  color: #fff !important;
  text-decoration: none;
    font-size: 16px;
}

.footer-col > a,
.footer-col h4 + a {
  display: block;
}

.footer-col a {
  color: #9a9ca6;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 8px 0;
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover {
  color: #f5b400;
}

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

/* === 版权条 === */
.foot_bottom {
  float: none;
  width: 100%;
  background: linear-gradient(90deg, #0f1f5c 0%, #0c184d 100%) !important;
  color: #85878f;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.foot_bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.foot_bottom a {
  color: #85878f;
  text-decoration: none;
}

.foot_bottom a:hover {
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .site-footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
    padding: 56px 0 48px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  /* 整列留安全边距，避免 logo/文字/版权紧贴屏幕边缘 */
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* 品牌列整行，4 个链接列两列排布，缩短手机端整体高度 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding: 36px 0 30px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-logo {
    margin-bottom: 18px;
  }
  .footer-logo img {
    max-height: 40px;
  }
  .footer-contact {
    margin-bottom: 20px;
  }
  .footer-contact p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.65;
  }
  .social-icons {
    gap: 10px;
    justify-content: flex-start;
  }
  .social-icons a i {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .site-footer .footer-grid .footer-col h4 {
    font-size: 15px;
    padding-bottom: 12px;
    margin-bottom: 14px !important;
  }
  .footer-col a {
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.4;
  }
  .foot_bottom {
    padding: 14px 0;
  }
  .foot_bottom p {
    font-size: 12px;
    line-height: 1.7;
  }
}

@media (max-width: 767px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  .back-to-top i {
    font-size: 16px;
  }
}
