/* 底部（复用） */
.footer {
  background: #0a0a0a;
  border-top: 2px solid #d4af37;
  padding: 50px 0 20px;
  margin-top: 40px;
  color: #ccc;
  width: 100%;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  width: 100%;
}
.footer-col {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  color: #d4af37;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  width: 100%;
}

.footer-col:last-child {
  align-items: center;
}
.footer-col ul li {
  list-style: none;
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover,
.footer-col ul li a.hover {
  color: #c0c0c0;
  padding-left: 5px;
}
.qr-box {
  display: flex;
  gap: 15px;
}
.qr-item img {
  width: 100px;
  height: 100px;
  border: 1px solid #c0c0c0;
  padding: 5px;
  background: #000;
}
.qr-item p {
  font-size: 12px;
  color: #ccc;
  margin-top: 5px;
  text-align: center;
}

/* 二维码图片加载失败样式 */
.qr-item img.qr-fallback,
.footer-qr-single img.qr-fallback {
  border: 1px solid #c0c0c0;
  padding: 5px;
  background: #000;
}

/* 扫码关注样式 */
.footer-qr-single {
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-qr-single:hover,
.footer-qr-single.hover {
  transform: translateY(-5px);
}

.footer-qr-single img {
  width: 100px;
  height: 100px;
  border: 1px solid #c0c0c0;
  padding: 5px;
  background: #000;
  margin-bottom: 10px;
  display: block;
}

.footer-qr-single p {
  font-size: 12px;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

/* 二维码弹窗样式 */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-mask.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0a0a0a;
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #d4af37;
}

.modal-title {
  color: #d4af37;
  margin-bottom: 20px;
  font-size: 20px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.qr-grid .qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-grid .qr-item img {
  width: 120px;
  height: 120px;
  border: 1px solid #c0c0c0;
  padding: 5px;
  background: #000;
  display: block;
  margin-bottom: 10px;
}

.qr-grid .qr-item p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.footer-link {
  padding: 15px 0;
  border-top: 1px dashed #333;
  border-bottom: 1px dashed #333;
  font-size: 14px;
  color: #999;
}
.footer-link a {
  color: #999;
  margin: 0 10px;
  text-decoration: none;
}
.footer-link a:hover {
  color: #d4af37;
}
.footer-copyright {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #888;
  line-height: 1.8;
}

.footer-legal {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal:hover {
  color: #d4af37;
}

/* 移动端优化 */
@media(max-width:768px){
  .footer {
    padding:30px 0 15px;
    margin-top:30px
  }

  .footer-top {
    flex-direction:column;
    gap:20px
  }

  .footer-col {
    min-width:100%;
    align-items:center
  }

  .footer-col h4 {
    text-align:center
  }

  .footer-col ul {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px
  }

  .footer-qr-single {
    margin:0 auto
  }
}

@media(max-width:480px){
  .footer {
    padding:20px 0 10px
  }

  .footer-col h4 {
    font-size:14px
  }

  .footer-col ul li a {
    font-size:13px
  }

  .footer-copyright {
    font-size:11px
  }
}
