/* ===================================
   Footer Styles (Official Winkflo Style)
   =================================== */

/* Newsletter Section */
.newsletter-section {
  background-color: #f2f2f2;
  padding: 60px 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--colorTextBody);
}

.newsletter-description {
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--colorTextBody);
}

.newsletter-form .form-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-email {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--colorBorder);
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: #ffffff;
}

.newsletter-email:focus {
  outline: none;
  border-color: var(--colorTextBody);
}

.newsletter-submit {
  padding: 15px 35px;
  background-color: var(--colorTextBody);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-normal);
}

.newsletter-submit:hover {
  opacity: 0.8;
}

/* Footer Main Content */
.site-footer {
  background: linear-gradient(180deg, #5db000 0%, #489c00 100%);
  padding-top: 60px;
  padding-bottom: 0;
}

/* Grid System (Official) */
.grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -22px;
}

@media only screen and (max-width: 768px) {
  .grid {
    margin-left: -17px;
  }
}

.grid__item {
  float: left;
  padding-left: 22px;
  width: 100%;
  min-height: 1px;
}

@media only screen and (max-width: 768px) {
  .grid__item {
    padding-left: 17px;
  }
}

/* Grid Column Widths */
@media only screen and (min-width: 960px) {
  .medium-up--one-quarter {
    width: 25%;
  }
  
  .medium-up--one-third {
    width: 33.33%;
  }
  
  .medium-up--one-half {
    width: 50%;
  }
}

@media only screen and (min-width: 769px) and (max-width: 959px) {
  .footer__item {
    width: 50%;
    padding-top: 40px;
  }
}

@media only screen and (max-width: 768px) {
  .small--one-whole {
    width: 100%;
  }
}

/* Footer Title */
.footer__title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  margin-top: 0;
}

@media only screen and (max-width: 768px) {
  .footer__title.small--hide {
    display: none;
  }
}

/* Footer Link Lists */
.no-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__linklist {
  margin: 0;
}

.site-footer__linklist li {
  padding: 4px 0;
}

.site-footer__linklist a {
  color: #ffffff;
  opacity: 0.8;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  transition: all var(--transition-normal);
}

.site-footer__linklist a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Custom Footer Section (Social + Bottom) */
.custom_footer_section {
  text-align: center;
  padding-top: 40px;
}

/* Social Media Icons */
.inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar__social {
  gap: 12px;
  margin-bottom: 30px;
}

.mobile-nav__social-item {
  display: inline-block;
}

.mobile-nav__social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: transparent;
  color: #ffffff;
  transition: all var(--transition-normal);
}

.mobile-nav__social-item a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.mobile-nav__social-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-nav__social-item .icon__fallback-text {
  display: none;
}

/* Border Top Section */
.border_top {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer_bootm_content {
  display: flex;
  justify-content: flex-end; /* 改为居右 */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer_bootm_content .left {
  flex: 0 0 auto;
}

.footer_bootm_content .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 改为居右对齐 */
  gap: 15px;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  justify-content: flex-end; /* 改为居右 */
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon--payment {
  display: inline-block;
}

.icon--payment svg {
  display: block;
  max-width: 38px;
  max-height: 24px;
}

/* Footer Small Text (Copyright) */
.footer__small-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding: 7.5px 0;
  text-align: right;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media only screen and (max-width: 991px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    margin-left: 0;
  }
  
  .grid__item {
    padding-left: 0;
    width: auto;
  }
}

@media only screen and (max-width: 767px) {
  .newsletter-section {
    padding: 40px 0;
  }
  
  .newsletter-title {
    font-size: 1.5rem;
  }
  
  .newsletter-form .form-group {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .newsletter-email,
  .newsletter-submit {
    width: 100%;
  }
  
  .site-footer {
    padding-top: 40px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer__title {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .custom_footer_section {
    padding-top: 30px;
  }
  
  .border_top {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .footer_bootm_content {
    flex-direction: column;
    text-align: center;
  }
  
  .toolbar__social {
    gap: 15px;
  }
  
  .mobile-nav__social-item a {
    width: 36px;
    height: 36px;
  }
  
  .mobile-nav__social-item svg {
    width: 22px;
    height: 22px;
  }
}

@media only screen and (max-width: 640px) {
  .payment-icons {
    gap: 6px;
  }
  
  .icon--payment svg {
    max-width: 32px;
    max-height: 20px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--colorTextBody);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background-color: var(--colorAnnouncement);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  display: flex;
}

@media only screen and (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}
