/* ======================================= */
/*  Footer底部样式 - 全新重构版                  */
/*  生成时间: 2026-01-18 23:50:00         */
/*  特点：现代化布局，全终端适配                 */
/* ======================================= */

/* ========== 核心布局重置 ========== */

/* 基础重置 */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-top: 3px solid #D2232A;
  color: #999;
  overflow: hidden;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
  padding: 40px 0 20px;
}

/* 容器布局 */
.footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ========== 顶部区域 - 全新布局 ========== */

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* ========== 品牌与导航区域 ========== */

.footer-brand-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

/* 桌面设备下的品牌与导航布局（包括平板和大屏） */
@media (min-width: 769px) {
  .footer-brand-nav {
    flex-direction: row;
    align-items: flex-start;
  }
  
  /* 导航菜单区域 */
  .footer-nav-container {
    flex: 1;
    min-width: 0;
  }
}

/* 大屏设备下的品牌与导航布局 */
@media (min-width: 1200px) {
  .footer-brand-nav {
    gap: 50px;
  }
}

/* 移动设备下的品牌与导航布局 */
@media (max-width: 768px) {
  .footer-brand-nav {
    gap: 25px;
  }
}

/* 品牌信息 */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-brand .brand-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.footer-brand .brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-brand .brand-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.footer-brand .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-brand .contact-item i {
  color: #D2232A;
  font-size: 14px;
}

/* 导航菜单 - 修复版横向布局 */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0;
  width: 100%;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 15px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.footer-nav-group:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(210,35,42,0.3);
}

.footer-nav-group h3 {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}

.footer-nav-group h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 2px;
  background: #D2232A;
  transition: all 0.3s ease;
}

.footer-nav-group:hover h3::after {
  width: 40px;
  background: #fff;
}

.footer-nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer-nav-group ul li {
  transition: all 0.3s ease;
}

.footer-nav-group ul li a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 6px 0;
  position: relative;
}

.footer-nav-group ul li a:hover {
  color: #D2232A;
  transform: scale(1.05);
}

.footer-nav-group ul li a::before {
  display: none;
}

/* 响应式设计 - 简化版 */

/* 大屏设备 */
@media (min-width: 1200px) {
  .footer-nav {
    gap: 30px;
  }
  
  .footer-nav-group {
    min-width: 160px;
    padding: 20px 25px;
  }
  
  .footer-nav-group h3 {
    font-size: 15px;
  }
  
  .footer-nav-group ul li a {
    font-size: 13px;
  }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1199px) {
  .footer-nav {
    gap: 15px;
  }
  
  .footer-nav-group {
    min-width: 130px;
    padding: 15px 18px;
    flex: 1 1 calc(20% - 15px);
    max-width: none;
  }
}

/* 移动设备 */
@media (max-width: 768px) {
  .footer-nav {
    gap: 12px;
  }
  
  .footer-nav-group {
    min-width: 120px;
    padding: 12px 15px;
    flex: 1 1 calc(50% - 12px);
    max-width: none;
  }
  
  .footer-nav-group h3 {
    font-size: 13px;
  }
  
  .footer-nav-group ul li a {
    font-size: 12px;
  }
}

/* 超小屏设备 */
@media (max-width: 480px) {
  .footer-nav {
    gap: 10px;
  }
  
  .footer-nav-group {
    min-width: 110px;
    padding: 10px 12px;
    flex: 1 1 100%;
  }
  
  .footer-nav-group h3 {
    font-size: 12px;
  }
  
  .footer-nav-group ul li a {
    font-size: 11px;
    padding: 5px 0;
  }
}

/* ========== 联系信息与二维码区域 ========== */

.footer-contact-qr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 联系卡片 */
.footer-contact {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-section h4 {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 15px;
  font-weight: 600;
}

/* 服务热线 */
.service-hotline {
  text-align: center;
  padding: 15px 0;
  background: rgba(210,35,42,0.05);
  border-radius: 8px;
  border: 1px solid rgba(210,35,42,0.2);
}

.service-hotline .hotline-number {
  font-size: 24px;
  font-family: "AG", Arial, sans-serif;
  color: #D2232A;
  margin-bottom: 5px;
  font-weight: 600;
}

.service-hotline .hotline-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* 联系详情 */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.contact-row i {
  color: #D2232A;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* 二维码区域 */
.footer-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-code {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(210,35,42,0.4);
}

.qr-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ========== 友情链接区域 ========== */

.footer-friends {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.friends-title {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
  font-weight: 500;
}

.friends-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friends-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.friends-links a:hover {
  color: #fff;
  background: rgba(210,35,42,0.8);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(210,35,42,0.3);
  border-color: rgba(210,35,42,0.5);
}

/* ========== 底部版权区域 ========== */

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  padding-bottom: 50px;
}

.footer-bottom .copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  line-height: 1.5;
  width: 100%;
}

.footer-bottom .copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin: 0 5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 3px;
}

.footer-bottom .copyright a:hover {
  color: #D2232A;
}

.footer-bottom .copyright a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #D2232A;
  transition: all 0.3s ease;
}

.footer-bottom .copyright a:hover::after {
  width: 100%;
}

.footer-bottom .powered-by {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom .powered-by a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom .powered-by a:hover {
  color: #D2232A;
}

/* ========== 响应式设计 ========== */

/* 大屏设备 */
@media (min-width: 1200px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1199px) {
  .footer-contact-qr {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 移动设备 */
@media (max-width: 768px) {
  .footer {
    padding: 20px 0 15px;
  }
  
  .footer-top {
    gap: 20px;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-brand .brand-logo {
    margin: 0 auto 15px;
  }
  
  .footer-nav-group {
    text-align: center;
  }
  
  .footer-nav-group h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-nav-group ul li a:hover {
    padding-left: 0;
  }
  
  .footer-nav-group ul li a::before {
    display: none;
  }
  
  .footer-contact-qr {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-contact {
    padding: 20px;
  }
  
  .service-hotline .hotline-number {
    font-size: 20px;
  }
  
  .footer-qr {
    flex-direction: column;
    gap: 20px;
  }
  
  .qr-code {
    width: 90px;
    height: 90px;
  }
  
  .friends-links {
    justify-content: center;
  }
  
  .friends-links a {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .footer-bottom .copyright {
    font-size: 11px;
    line-height: 1.6;
  }
}

/* ========== 动画效果 ========== */

/* 滚动动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 应用动画 */
.footer-brand,
.footer-nav-group,
.footer-contact,
.footer-qr,
.footer-friends,
.footer-bottom {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.footer-brand {
  animation-delay: 0.1s;
}

.footer-nav-group:nth-child(1) {
  animation-delay: 0.2s;
}

.footer-nav-group:nth-child(2) {
  animation-delay: 0.3s;
}

.footer-nav-group:nth-child(3) {
  animation-delay: 0.4s;
}

.footer-nav-group:nth-child(4) {
  animation-delay: 0.5s;
}

.footer-contact {
  animation-delay: 0.6s;
}

.footer-qr {
  animation-delay: 0.7s;
}

.footer-friends {
  animation-delay: 0.8s;
}

.footer-bottom {
  animation-delay: 0.9s;
}

/* ========== 交互效果 ========== */

/* 平滑过渡 */
* {
  transition: all 0.3s ease;
}

/* 悬停效果增强 */
.footer-contact:hover,
.footer-qr:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 卡片阴影增强 */
.footer-contact,
.footer-qr {
  transition: all 0.3s ease;
}

/* 链接悬停效果 */
a {
  transition: all 0.3s ease;
}

/* 图标颜色过渡 */
i {
  transition: all 0.3s ease;
}
