/* ═══════════════════════════════════════════════════════════════
   Footer Styles - 根据效果图设计
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: #192a44;
  color: #ffffff;
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
}

/* Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Column */
.footer-logo-col {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  width: 80px;
  height: auto;
}

/* Footer Titles */
.footer-title {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 41px;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

/* 桌面端：同一列里的第二个标题（FOLLOW US）与上方内容拉开间距
   （原为 footer.php 内联 style，改由类控制，便于手机端覆盖） */
.footer-title--stacked {
  margin-top: 24px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #bc994b;
}

/* Contact Items */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.contact-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.contact-item a:hover {
  color: #bc994b;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-icon {
  width: 42px;
  height: 27px;
  background: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #192a44;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #bc994b;
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-copyright {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #CCCCCC;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #bc994b;
}

.footer-legal span {
  color: #CCCCCC;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Styles
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-container {
    padding: 0 40px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-logo-col {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .footer-logo {
    width: 60px;
  }
}

/* Mobile — 折叠面板（Accordion）
   手机端底部信息量大，改为「默认只显示标题、点击展开」的折叠面板：
   默认高度大幅收缩，只保留 Logo + 5 个可点开的标题行 + 版权行。
   桌面端（>768px）不受影响，仍是 5 列网格。 */
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 0;
  }

  .footer-container {
    padding: 0 24px;
  }

  /* 网格拆成单列纵向堆叠 */
  .footer-content {
    display: block;
    padding-bottom: 8px;
    border-bottom: none;
  }

  /* Logo：居中，不参与折叠 */
  .footer-logo-col {
    justify-content: center;
    text-align: center;
    padding-bottom: 18px;
  }

  .footer-logo {
    width: 60px;
  }

  /* 标题行 = 折叠开关 */
  .footer-col:not(.footer-logo-col) > .footer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 15px 0;
    font-size: 15px;
    line-height: 1.3;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* stacked 标题（FOLLOW US）在手机端与普通折叠行一致，去掉桌面的上间距 */
  .footer-title--stacked {
    margin-top: 0;
  }

  /* +/− 指示符 */
  .footer-col:not(.footer-logo-col) > .footer-title::after {
    content: '+';
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.25s ease;
  }

  .footer-col:not(.footer-logo-col) > .footer-title.is-open::after {
    content: '\2212'; /* − minus */
    color: #bc994b;
  }

  /* 折叠体：默认收起，.is-open 时展开 */
  .footer-col-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .footer-col-body.is-open {
    max-height: 520px;
    opacity: 1;
    padding: 2px 0 18px;
  }

  /* 展开内容：左对齐 */
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item {
    text-align: left;
    max-width: none;
    width: 100%;
    margin-bottom: 16px;
  }

  .payment-icons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .social-icons {
    justify-content: flex-start;
    margin-top: 4px;
  }

  /* Footer Bottom */
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 0;
  }

  .footer-copyright {
    font-size: 12px;
    line-height: 20px;
  }

  .footer-legal {
    justify-content: center;
    font-size: 12px;
  }

  .footer-legal a {
    font-size: 12px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  /* 折叠标题行略微收窄字号，但保持 padding（行高）不变 */
  .footer-col:not(.footer-logo-col) > .footer-title {
    font-size: 14px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .contact-item {
    font-size: 13px;
    max-width: none;
  }

  .payment-icon {
    width: 38px;
    height: 24px;
    font-size: 9px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   动效 - Scroll Reveal
   ═══════════════════════════════════════════════════════════════ */
.js .site-footer [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-footer [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 分列延迟 */
.site-footer .footer-col:nth-child(1) [data-reveal] { transition-delay: 0.1s; }
.site-footer .footer-col:nth-child(2) [data-reveal] { transition-delay: 0.2s; }
.site-footer .footer-col:nth-child(3) [data-reveal] { transition-delay: 0.3s; }
.site-footer .footer-col:nth-child(4) [data-reveal] { transition-delay: 0.4s; }
.site-footer .footer-col:nth-child(5) [data-reveal] { transition-delay: 0.5s; }

/* Footer Bottom 动效 */
.site-footer .footer-bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.site-footer.is-visible .footer-bottom {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer [data-reveal],
  .site-footer .footer-bottom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

