/* ================================================
   TemplateHub · 页脚样式（对应 footer.html）
   含：页脚主体 / 回到顶部按钮 / Toast 提示
   ================================================ */

/* ========== 页脚 ========== */
.footer {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, #1e293b 0%, #182234 100%);
  color: #cbd5e1;
}
.footer .logo { color: #f1f5f9; }
.footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 28px; padding-bottom: 8px; align-items: stretch; }
.footer .footer-brand { display: flex; flex-direction: column; }
.footer .footer-brand p { color: #94a3b8; font-size: 14px; line-height: 1.75; margin-top: 12px; max-width: 340px; }

/* 社交图标：贴底对齐，与下方分隔线保留间距 */
.footer .footer-social { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.footer .footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #c6d0e2; background: rgba(148, 163, 184, .18);
  transition: background .25s, color .25s, transform .25s;
}
.footer .footer-social a svg { width: 16px; height: 16px; }
.footer .footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.footer .footer-col h4 {
  font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 12px;
}
.footer .footer-col a {
  display: block; color: #94a3b8; font-size: 13px; margin-bottom: 8px;
  transition: color .2s;
}
.footer .footer-col a:hover { color: #fff; }

/* 联系方式 */
.footer .footer-contact p { display: flex; align-items: center; gap: 9px; color: #94a3b8; font-size: 12.5px; margin-bottom: 10px; line-height: 1.4; }
.footer .footer-contact svg {
  width: 28px; height: 28px; flex-shrink: 0; padding: 6px; border-radius: 8px;
  color: #a5b4fc; background: rgba(99, 102, 241, .16);
}

/* 友情链接 */
.footer .footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  padding: 14px 76px 14px 0;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.footer .footer-links b { color: #cbd5e1; font-size: 12.5px; font-weight: 600; }
.footer .footer-links a { color: #71809a; font-size: 12.5px; transition: color .2s; }
.footer .footer-links a:hover { color: #a5b4fc; }

.footer .footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .14);
  padding: 14px 76px 14px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  color: #71809a; font-size: 12px;
}
.footer-bottom a { color: #94a3b8; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* ========== 回到顶部 ========== */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--primary);
  border: none; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(var(--primary-rgb), .65);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s, box-shadow .25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-top svg { width: 20px; height: 20px; transition: transform .25s; }
.back-top:hover {
  background: var(--primary-deep);
  box-shadow: 0 14px 30px -8px rgba(var(--primary-rgb), .8);
  transform: translateY(-3px) scale(1);
}
.back-top:hover svg { transform: translateY(-2px); }
.back-top:active { transform: translateY(-1px) scale(.96); }

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translate(-50%, 80px);
  background: #fff; color: #0b0d17;
  padding: 13px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
  opacity: 0; transition: all .35s cubic-bezier(.2,.9,.3,1.3);
  z-index: 200; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
