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

/* ---------- 页脚整体 ---------- */
.site-footer {
  background: #0b0f17;
  color: #6f7889;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 底部版权栏 ---------- */
.footer-bottombar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 13px;
}

.footer-bottombar p {
  margin: 0;
  color: #6f7889;
}

/* ---------- 页脚版语言切换 ---------- */
.site-footer .footer-lang { position: relative; }
.site-footer .footer-lang .lang-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: #c3d4ec;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.site-footer .footer-lang .lang-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.site-footer .footer-lang .lang-flag {
  width: 18px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.site-footer .footer-lang .chev { transition: transform .2s; color: #8a9ab8; }
.site-footer .footer-lang .lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.site-footer .footer-lang .lang-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  background: #131a26;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 100;
}
.site-footer .footer-lang .lang-btn[aria-expanded="true"] + .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-footer .footer-lang .lang-panel-head {
  font-size: 12px;
  color: #6b7da0;
  padding: 8px 12px 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 6px;
}
.site-footer .footer-lang .lang-list { display: flex; flex-direction: column; gap: 2px; }
.site-footer .footer-lang .lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #c3d4ec;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s;
}
.site-footer .footer-lang .lang-item:hover { background: rgba(59, 130, 246, 0.12); color: #fff; }
.site-footer .footer-lang .lang-item em {
  margin-left: auto;
  font-size: 11px;
  color: #6b7da0;
  font-style: normal;
  text-transform: uppercase;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .footer-bottombar {
    flex-direction: column;
    text-align: center;
    padding: 18px 0;
  }
}
