/* 
 * 茶疗大赛 - 页脚样式优化
 * 针对当前页脚样式问题进行优化
 */

/* 页脚基础样式 */
.footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 50px 0 20px;
  min-height: var(--footer-height);
}

/* 页脚内容布局优化 */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* 页脚左侧Logo部分样式优化 */
.footer-logo {
  flex: 0 0 25%;
  max-width: 25%;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 220px;
  line-height: 1.5;
}

/* 页脚右侧链接部分样式优化 */
.footer-links {
  flex: 0 0 70%;
  max-width: 70%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links-column {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
}

.footer-links-column:last-child {
  margin-right: 0;
}

/* 页脚标题样式优化 */
.footer-links-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
  color: #fff;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

/* 页脚链接列表样式优化 */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-links-list li:last-child {
  margin-bottom: 0;
}

.footer-links-list li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 5px;
}

.footer-links-list li i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* 页脚底部版权信息和社交链接样式优化 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li {
  margin-left: 15px;
}

.footer-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-social li a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* 响应式样式优化 */
@media (max-width: 991px) {
  .footer-logo {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto 15px;
  }
  
  .footer-tagline {
    max-width: 100%;
  }
  
  .footer-links {
    flex: 0 0 100%;
    max-width: 100%;
    justify-content: space-between;
  }
  
  .footer-links-column {
    flex: 0 0 calc(33.333% - 15px);
    margin-right: 15px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-links-column {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 25px;
  }
  
  .footer-links-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-links-title::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transition: transform 0.3s ease;
  }
  
  .footer-links-column.active .footer-links-title::after {
    transform: rotate(180deg);
  }
  
  .footer-links-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
  }
  
  .footer-links-column.active .footer-links-list {
    max-height: 300px;
    margin-top: 15px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copyright {
    margin-bottom: 15px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-social li {
    margin: 0 7px;
  }
} 