/* ===== 底部样式重构 ===== */

/* 特色服务栏 */
.footer-features {
  background: #0672cc;
  padding: 25px 0;
  color: #fff;
  width: 100%;
}

.footer-features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.feature-text p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}

/* 底部导航内容 */
.footer-content {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
  width: 100%;
}

.footer-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  gap: 30px;
  padding: 0 20px;
}

.footer-nav-item {
  flex: 1;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.footer-nav-item:last-of-type {
  border-right: none;
}

.footer-nav-item h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 15px 0;
  padding-left: 10px;
  border-left: 3px solid #00a0e9;
  font-weight: 600;
}

.footer-nav-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item ul li {
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.footer-nav-item ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav-item ul li a:hover {
  color: #00a0e9;
}

/* WordPress「底部菜单」 */
.footer-nav-wp-menu {
  flex: 2 1 320px;
  min-width: 200px;
}

.footer-wp-menu .footer-menu-root {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-wp-menu .footer-menu-root > li {
  flex: 1 1 120px;
  min-width: 120px;
}

.footer-wp-menu .footer-menu-root .sub-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.footer-wp-menu .footer-menu-root .sub-menu li {
  margin-bottom: 8px;
}

.footer-wp-menu .footer-menu-root > li > a {
  font-weight: 600;
  color: #333;
}

.footer-wp-menu .footer-menu-root a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-wp-menu .footer-menu-root a:hover {
  color: #00a0e9;
}

.footer-qrcode {
  flex-shrink: 0;
  text-align: center;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* 底部链接 */
.footer-links {
  background: #fff;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  width: 100%;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  margin: 0 5px;
  transition: color 0.3s;
}

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

/* 版权信息 */
.footer-copyright {
  background: #fff;
  padding: 25px 20px;
  text-align: center;
  width: 100%;
}

.footer-copyright p {
  color: #666;
  font-size: 13px;
  line-height: 1.8;
  margin: 5px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式 */
@media (max-width: 768px) {
  /* 覆盖 wap.css 等对 #footer 的旧限制 */
  #footer {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-features .container {
    flex-direction: column;
    gap: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .feature-item:last-child {
    border-bottom: none;
  }
  
  .footer-content {
    padding: 24px 0;
  }

  .footer-content .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    width: 100%;
    min-width: 0;
  }
  
  .footer-nav-item {
    flex: 1 1 auto !important;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    padding-right: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-nav-wp-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100%;
  }

  /* 移动端底部菜单改为纵向，避免多列挤压换行错乱 */
  .footer-wp-menu .footer-menu-root {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .footer-wp-menu .footer-menu-root > li {
    flex: none;
    width: 100%;
    min-width: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
  }

  .footer-wp-menu .footer-menu-root > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .footer-wp-menu .footer-menu-root .sub-menu {
    margin-top: 8px;
  }

  /* 竖排时：仅最后一栏「导航块」去掉底边，避免与版权区间距重复（若后面还有二维码则由二维码区域承接） */
  .footer-nav > .footer-nav-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-qrcode {
    width: 100%;
    padding-top: 4px;
    border-bottom: none;
  }

  /* wap.css 全局 img{object-fit:cover} 易裁切二维码 */
  #footer .footer-qrcode img {
    object-fit: contain !important;
    max-width: 140px;
    height: auto !important;
  }

  .footer-copyright {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-copyright p {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
