/* ============================================
   FOOTER SECTION
   ============================================ */

.footer-section {
  position: relative;
  background: var(--color-white);
}

/* ============================================
   NEWSLETTER AREA
   ============================================ */
.footer-newsletter {
  position: relative;
  width: 100%;
  height: 656px;
  overflow: hidden;
}

.footer-wave-union {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(1603px, 111%);
  height: 904px;
  pointer-events: none;
  z-index: 0;
}

.footer-orange-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 140px;
  background: var(--color-orange);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ============================================
   NEWSLETTER CARD
   ============================================ */
.footer-newsletter-card {
  position: relative;
  width: 600px;
  max-width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  z-index: 2;
}

.footer-newsletter-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.2;
  color: #FFFDFC;
  text-align: center;
  white-space: nowrap; /* 强制一行显示 */
}

.footer-newsletter-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.36;
  color: #FFFDFC;
  text-align: center;
}

/* ============================================
   EMAIL FORM
   ============================================ */
.footer-email-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px;
  background: #FFFDFC;
  border: 1px solid var(--color-orange);
  border-radius: 40px;
}

.footer-email-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.57;
  color: #929292;
  background: transparent;
  min-width: 0;
}

.footer-email-input::placeholder {
  color: #929292;
}

.footer-email-submit {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-email-submit:hover {
  transform: scale(1.05);
  background: #d55a33;
}

.footer-email-submit svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  stroke-width: 2;
}

/* ============================================
   FOOTER IMAGE SECTION
   ============================================ */
.footer-image-section {
  width: 100%;
  aspect-ratio: 1468 / 383;
  background: url('../assets/images/webp/footer-bottom-bg.webp') top center / 100% auto no-repeat;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet Portrait (600px - 768px) */
@media (max-width: 768px) {
  .footer-newsletter {
    height: auto;
    min-height: 500px;
  }
  
  .footer-orange-bottom {
    padding: 80px 20px 100px;
  }
  
  .footer-newsletter-card {
    padding: 0 20px;
  }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
  .footer-newsletter {
    min-height: 420px;
  }
  
  .footer-orange-bottom {
    padding: 60px 16px 80px;
  }
  
  /* 保持邮件表单水平布局，与 Figma 设计一致 */
  .footer-email-form {
    flex-direction: row;
    gap: 10px;
    padding: 12px 16px;
  }
  
  .footer-email-input {
    flex: 1;
    min-width: 0;
    font-size: 16px;
  }
  
  .footer-email-submit {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
  }
  
  /* 调整移动端字体大小，保持可读性 */
  .footer-newsletter-title {
    font-size: 22px;
    white-space: nowrap; /* 保持一行显示 */
  }
  
  .footer-newsletter-subtitle {
    font-size: 14px;
  }
  
  .footer-image-section {
    min-height: 150px;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .footer-email-submit:hover {
    transform: none;
  }
}

