﻿/* 页脚样式 */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
  padding: 0;
}

.footer-nav {
  display: flex;
  padding: 40px 0;
}

/* 左侧导航菜单 */
.footer-left {
  display: flex;
  flex: 3;
}

.footer-menu {
  margin-right: 20px;
}

.footer-menu:last-child {
  margin-right: 0;
}

.footer-menu h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  white-space: nowrap;
}

.footer-menu ul {
  list-style: none;
}

.footer-menu ul li {
  margin-bottom: 15px;
}

.footer-menu ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
  font-size: 14px;
}

.footer-menu ul li a:hover {
  color: #fff;
}

.footer-submenu {
  display: flex;
  flex-direction: column;
}

/* 右侧联系表单 */
.footer-right {
  flex: 2;
  padding-left: 40px;
}

.footer-right h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
}

.form-group label {
  width: 60px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 10px;
  color: #fff;
  border-radius: 3px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-submit {
  text-align: right;
  margin-top: 10px;
}

.footer-submit button {
  background: #fff;
  color: var(--primary-color);
  border: none;
  padding: 8px 30px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.footer-submit button:hover {
  background: #f0f0f0;
}

/* 咨询电话 */
.footer-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.footer-phone img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.footer-phone span {
  font-size: 18px;
  font-weight: bold;
}

/* 版权信息 */
.copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
}

.copyright p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.copyright .beian {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.copyright .beian span {
  margin: 0 10px;
}

/* 响应式样式 */

@media (max-width: 992px) {
  .footer-nav {
    flex-direction: column;
    display: none;
  }
  
  .footer-left {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  
  .footer-menu {
    margin-right: 30px;
    margin-bottom: 20px;
    flex-basis: calc(50% - 30px);
  }
  
  .footer-right {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .footer-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .footer-menu {
    margin-right: 10px;
    margin-bottom: 20px;
    flex-basis: calc(50% - 10px);
    min-width: 120px;
  }
  
  .footer-menu:nth-child(2n) {
    margin-right: 0;
  }
  
  .footer-menu h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .footer-menu ul li {
    margin-bottom: 8px;
  }
  
  .footer-menu ul li a {
    font-size: 12px;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  /* 调整导航菜单间距 */
  .footer-nav {
    padding: 20px 0;
    display: none;
  }
}

/* 更小屏幕特殊处理 */
@media (max-width: 375px) {
  .footer-menu {
    flex-basis: 100%;
    margin-right: 0;
  }
  .footer-nav {display: none;}
} 

/* 返回顶部按钮样式
 适配 375px / 767px / 992px 断点
 与现有 about.css 现有样式保持一致
*/
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  background-color: #FC5555;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top::after {
  content: '↑';
  font-size: 20px;
  font-weight: bold;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #FC5555;
  transform: translateY(-5px);
}

/* 平板设备 (<= 992px) */
@media (max-width: 992px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 25px;
    bottom: 25px;
  }
  
  .back-to-top::after {
    font-size: 18px;
  }
  
  .back-to-top:hover {
    transform: translateY(-4px);
  }
}

/* 移动设备 (<= 767px) */
@media (max-width: 767px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .back-to-top::after {
    font-size: 16px;
  }
  
  .back-to-top:hover {
    transform: translateY(-3px);
  }
}

/* 小屏移动设备 (<= 375px) */
@media (max-width: 375px) {
  .back-to-top {
    width: 36px;
    height: 36px;
    right: 15px;
    bottom: 15px;
  }
  
  .back-to-top::after {
    font-size: 14px;
  }
  
  .back-to-top:hover {
    transform: translateY(-2px);
  }
}

.beian {
  /* 设置为弹性布局 */
  display: flex;
  /* 垂直排列子元素（每个span占一行） */
  flex-direction: column;
  /* 子元素之间的间距（可选，根据需要调整） */
  gap: 8px; 
  /* 可选：控制对齐方式（如左对齐、居中） */
  align-items: flex-start; /* 左对齐（默认） */
  /* align-items: center; 居中对齐 */
}

/* 响应式保持一致（可选，确保移动端也生效） */
@media (max-width: 992px) {
  .beian {
    gap: 6px; /* 移动端可适当减小间距 */
  }
}

@media (max-width: 767px) {
  .beian {
    gap: 4px;
  }
}

@media (max-width: 375px) {
  .beian {
    gap: 3px;
  }
}