/* ============================================================
   底部页脚 · footer.css
   类名规范：site-footer / site-footer__*
   ============================================================ */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 40%, #f3f1ff 100%);
  color: var(--text-2);
  padding: 0 0 28px;
  overflow: hidden;
  margin-top: 20px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.site-footer__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
}

.site-footer__blob--primary {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -100px;
  background: rgba(var(--brand-rgb), .18);
}

.site-footer__blob--secondary {
  width: 360px;
  height: 360px;
  bottom: 60px;
  left: -80px;
  background: rgba(var(--cyan-rgb), .22);
}

/* ── 顶部横幅 CTA ── */
.site-footer__callout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin: 56px 0 48px;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .07) 0%, rgba(var(--cyan-rgb), .12) 100%);
  border: 1px solid rgba(var(--brand-rgb), .14);
  box-shadow: 0 8px 32px rgba(var(--brand-rgb), .08);
}

.site-footer__callout-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(var(--brand-rgb), .1);
  border: 1px solid rgba(var(--brand-rgb), .18);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.site-footer__callout h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--text);
  margin: 0;
  letter-spacing: -.02em;
}

.site-footer__callout-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── 主体网格 ── */
.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.site-footer__brand .site-brand {
  color: var(--text);
  margin-bottom: 16px;
}

.site-footer__brand .site-brand small {
  color: var(--brand);
}

.site-footer__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 340px;
  margin: 0 0 20px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

.site-footer__meta span svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex: none;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

.site-footer__column {
  min-width: 0;
}

.site-footer__column h5 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: .02em;
}

.site-footer__column a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-2);
  word-break: break-word;
  transition: color .18s, transform .18s;
}

.site-footer__column a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

/* ── 社交图标 ── */
.site-footer__socials {
  display: flex;
  gap: 10px;
}

.site-footer__socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: .22s;
  box-shadow: var(--shadow-sm);
}

.site-footer__socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), .3);
}

.site-footer__socials svg { width: 18px; height: 18px }

/* ── 版权栏（与 footer 同色，不分层） ── */
.site-footer__bottom {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: 0;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--mono);
  line-height: 1.8;
}

.site-footer__bottom a {
  color: var(--text-2);
  transition: color .18s;
}

.site-footer__bottom a:hover { color: var(--brand) }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px }
  .site-footer__columns {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }
  .site-footer__columns .site-footer__column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-footer__callout {
    margin: 36px 0 32px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__columns { gap: 16px 24px }
  .site-footer__column h5 { margin-bottom: 10px }
  .site-footer__column a { padding: 4px 0; font-size: 13px }
}
