/*
 * WGACA Frontend - Footer Styles
 * 底部样式
 */

.footer {
  background: #000;
  color: #fff;
  margin-bottom: 60px;
}

.footer .footer-top {
  display: none;
  padding: 60px 0;
}

.footer .footer-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer .item {
  padding: 0 15px;
}

/* 品牌信息 */
.footer .item:nth-child(1) {
  width: 100%;
  margin-bottom: 30px;
}

.footer .logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer .company-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer .footer-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  max-width: 400px;
}

/* 链接列表 */
.footer .item:nth-child(2) {
  width: 50%;
  margin-bottom: 30px;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer .footer-links .link-group {
  width: 50%;
  margin-bottom: 25px;
}

.footer .footer-links .link-group .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.footer .footer-links .link-group ul li {
  margin-bottom: 10px;
}

.footer .footer-links .link-group ul li a {
  font-size: 14px;
  color: #999;
  transition: color 0.3s;
}

.footer .footer-links .link-group ul li a:hover {
  color: #fff;
}

/* 社交媒体 */
.footer .social-links {
  width: 100%;
  margin-top: 20px;
}

.footer .social-links .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer .social-links ul {
  display: flex;
  gap: 15px;
}

.footer .social-links ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s;
}

.footer .social-links ul li a:hover {
  background: var(--style-color);
  transform: translateY(-3px);
}

/* 联系方式 */
.footer .item:nth-child(3) {
  width: 100%;
}

.footer .contact-info {
  margin-bottom: 30px;
}

.footer .contact-info .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer .contact-info ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 14px;
  color: #999;
}

.footer .contact-info ul li i {
  margin-right: 12px;
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer .contact-info ul li a {
  color: #999;
}

.footer .contact-info ul li a:hover {
  color: #fff;
}

/* 订阅表单 */
.footer .newsletter {
  margin-top: 30px;
}

.footer .newsletter .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer .newsletter p {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.footer .newsletter-form {
  display: flex;
  gap: 10px;
}

.footer .newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 25px;
  background: #222;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.footer .newsletter-form input::placeholder {
  color: #666;
}

.footer .newsletter-form input:focus {
  border-color: var(--style-color);
}

.footer .newsletter-form button {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.footer .newsletter-form button:hover {
  background: var(--style-color);
  color: #fff;
}

/* 底部版权 */
.footer .footer-bottom {
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
}

.footer .footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer .footer-bottom p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.footer .footer-bottom p a {
  color: #999;
}

.footer .footer-bottom p a:hover {
  color: #fff;
}

.footer .footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
}

.footer .footer-bottom .legal-links a {
  color: #999;
}

.footer .footer-bottom .legal-links a:hover {
  color: #fff;
}

/* 移动端底部导航 */
.mobile-footer {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 10px 0;
}

.mobile-footer ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-footer ul li {
  text-align: center;
}

.mobile-footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 15px;
  color: #333;
}

.mobile-footer ul li a i {
  font-size: 22px;
  margin-bottom: 3px;
}

.mobile-footer ul li a p {
  font-size: 11px;
  margin: 0;
}

.mobile-footer ul li a:hover {
  color: var(--style-color);
}

/* 响应式 */
@media (min-width: 576px) {
  .mobile-footer {
    display: none;
  }

  .footer {
    margin-bottom: 0;
  }

  .footer .footer-top {
    display: block;
  }
}

@media (min-width: 768px) {
  .footer .item:nth-child(1) {
    width: 30%;
    margin-bottom: 0;
  }

  .footer .item:nth-child(2) {
    width: 40%;
  }

  .footer .item:nth-child(3) {
    width: 25%;
  }

  .footer .footer-links .link-group {
    width: auto;
    min-width: 120px;
  }

  .footer .newsletter {
    margin-top: 0;
  }

  .footer .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .footer .item:nth-child(1) {
    width: 25%;
  }

  .footer .item:nth-child(2) {
    width: 45%;
  }

  .footer .item:nth-child(3) {
    width: 25%;
  }

  .footer .footer-top {
    padding: 80px 0;
  }
}

@media (min-width: 1200px) {
  .footer .item:nth-child(1) {
    width: 22%;
  }

  .footer .item:nth-child(2) {
    width: 48%;
  }

  .footer .item:nth-child(3) {
    width: 25%;
  }

  .footer .footer-links .link-group {
    min-width: 150px;
  }
}

@media (min-width: 1440px) {
  .footer .footer-top {
    padding: 80px 0;
  }

  .footer .logo {
    height: 70px;
  }

  .footer .company-title {
    font-size: 20px;
  }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.3s, background 0.3s;
  opacity: 0.85;
}

.back-to-top:hover {
  background: #333;
  opacity: 1;
}

.back-to-top i {
  font-size: 12px;
}
