/* ==========================================================
   footer.css - 底部样式
   所有样式作用于 .site-footer 内，作用域隔离
   ========================================================== */

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: #a1a1a6;
  padding: 56px 0 28px;
}

.site-footer .footer-cols{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-h{
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 14px;
}

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

.site-footer .footer-links a{
  font-size:14px;
  color: #a1a1a6;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover{ color: #fff; }

.site-footer .footer-bottom{
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.site-footer .footer-bottom p{
  font-size:13px;
  color: #6e6e73;
}

@media (max-width: 640px) {
    .site-footer .footer-cols{ grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- 新页-?---------- */
.site-footer { background: linear-gradient(180deg, #0b0f17 0%, #070a10 100%); color: #a1a6b0; }
.site-footer .footer-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 56px 0 36px; flex-wrap: wrap; }
.site-footer .footer-brand{ max-width: 500px; }
.site-footer .logo-light{ color: #f5f5f7; }
.site-footer .footer-slogan{ margin-top: 16px; font-size:14px; line-height: 1.9; color: #8a93a3; }
.site-footer .footer-social{ display: flex; gap: 10px; margin-top: 20px; }
.site-footer .footer-social a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: #c3d4ec;
  border: 1px solid rgba(255,255,255,.1); transition: all .2s;
}
.site-footer .footer-social a:hover{ background: var(--blue); color: #fff; transform: translateY(-2px); border-color: transparent; box-shadow: 0 8px 18px rgba(0,113,227,.4); }
.site-footer .footer-qr{ display: flex; gap: 18px; }
.site-footer .footer-links{ flex: 1; min-width: 340px; padding-top: 8px; }
.site-footer .fl-group + .fl-group{ margin-top: 26px; }
.site-footer .fl-label{ display: block; font-size:13px; letter-spacing: .1em; color: #6b7da0; margin-bottom: 14px; }
.site-footer .fl-list{ display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer .fl-list a{ font-size: 13.5px; color: #9fb0cc; text-decoration: none; transition: color .15s; }
.site-footer .fl-list a:hover{ color: #7dd3fc; }
.site-footer .fl-friends a{ font-size: 12.5px; color: #7a8aa8; }
.site-footer .qr-item{ text-align: center; padding: 14px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; transition: border-color .2s; }
.site-footer .qr-item:hover{ border-color: rgba(125,184,255,.5); }
.site-footer .qr-item img{ width: 100px; height: 100px; border-radius: 8px; background: #fff; }
.site-footer .qr-item span{ display: block; margin-top: 8px; font-size:13px; color: #8a93a3; }
.site-footer .footer-mid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .footer-mid .footer-h{ color: #f5f5f7; }
.site-footer .footer-mid .footer-links a:hover{ color: #7db8ff; }
.site-footer .footer-bottombar{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size:13px; color: #6f7889; }
.site-footer .footer-lang-mini{ display: inline-flex; align-items: center; gap: 5px; }
.site-footer .footer-lang-mini a{ opacity: .7; transition: opacity .15s; display: inline-flex; }
.site-footer .footer-lang-mini a:hover{ opacity: 1; }
.site-footer .footer-lang-mini img{ width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.3); }

@media (max-width: 900px) {
    .site-footer .footer-mid{ grid-template-columns: repeat(2, 1fr); }
    .site-footer .footer-top{ flex-direction: column; }
}

@media (max-width: 640px) {
    .site-footer .footer-mid{ grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- 页脚版语言切换（向上弹出、深色适配-?---------- */
.site-footer .footer-lang { position: relative; }
.site-footer .footer-lang .lang-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: #c3d4ec;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
}
.site-footer .footer-lang .lang-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(125,184,255,.5); }
.site-footer .footer-lang .lang-btn .chev { color: #8a93a3; }
.site-footer .footer-lang .lang-panel {
  top: auto; bottom: calc(100% + 10px); right: 0;
  transform: translateY(8px);
}
.site-footer .footer-lang.open .lang-panel { transform: translateY(0); }
@media (max-width: 640px) {
  .site-footer .footer-lang .lang-panel { right: auto; left: 50%; transform: translate(-50%, 8px); width: 300px; }
  .site-footer .footer-lang.open .lang-panel { transform: translate(-50%, 0); }
}
