/* 页脚样式 */
footer {
  background-color: #1D2129 !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 80px 0 40px !important;
  margin: 0 !important;
  border: 0 !important;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

body.night .bg-glass {
  background: rgba(22, 26, 33, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-desc {
  margin-bottom: 30px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-qrcodes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-qrcode-item {
  width: 108px;
  text-align: center;
}

.footer-qrcode-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

.footer-qrcode-item p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #165DFF;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: #165DFF;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.7;
}

.footer-contact-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0188fb;
  font-size: 18px;
  margin-top: 1px;
  line-height: 1;
  flex-shrink: 0;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.copyright a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.copyright a:hover {
  color: #165DFF;
}

/* 侧边工具栏样式 */
.edgebar {
  position: fixed;
  right: 10px;
  bottom: 30px;
  z-index: 999;
}

.edgebar a {
  display: block;
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  text-align: center;
  line-height: 45px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 36px;
}

.edgebar a:hover {
  background: #165DFF !important;
  background-color: #165DFF !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

/* 主题原生的返回顶部按钮 */
a.backtotop {
  display: block;
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  text-align: center;
  line-height: 45px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

a.backtotop:hover {
  background: #165DFF !important;
  background-color: #165DFF !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

.edgebar a.lang::after {
  content: "\e609";
  font-family: iconfont;
}

.edgebar a.lang.tw::after {
  content: "\e608";
}

.edgebar a.setnight::after {
  content: "\e6e4";
  font-family: iconfont;
}

.edgebar a.setnight.black::after {
  content: "\e635";
}

/* 夜间模式下的样式 */
body.night footer {
  background-color: #1f1f1f !important;
  border-top: 1px solid #333;
}

body.night .footer-logo,
body.night .footer-title {
  color: #e0e0e0 !important;
}

body.night .footer-desc,
body.night .footer-links a,
body.night .copyright {
  color: #999 !important;
}

body.night .footer-qrcode-item p {
  color: #b3b3b3 !important;
}

body.night .footer-links a:hover {
  color: #165DFF !important;
}

body.night .copyright a {
  color: #999 !important;
}

body.night .copyright a:hover {
  color: #165DFF !important;
}

body.night .footer-contact-icon {
  color: #4da6ff !important;
}

body.night .edgebar a {
  background: rgba(68,68,68,0.8) !important;
}

body.night .edgebar a:hover {
  background: #165DFF !important;
}

body.night a.backtotop {
  background: rgba(68,68,68,0.8) !important;
}

body.night a.backtotop:hover {
  background: #165DFF !important;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 64px 0 32px !important;
  }

  .footer-container {
    width: min(100% - 32px, 1400px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-title {
    margin-bottom: 18px;
  }

  .footer-qrcode-item {
    width: 96px;
  }

  .copyright {
    padding-top: 28px;
    margin-top: 28px;
  }
}
