/* ============================================================
   footer.css — 简单页脚 + 首页复杂页脚
   ============================================================ */

/* ============ 基础页脚（子页面） ============ */
.footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}

/* ============ 首页页脚变体 ============ */
/* 用 :has() 检测是否含 footer-grid，自动切换样式 */
.footer:has(.footer-grid) {
  width: 100%;            
  box-sizing: border-box;
  margin-top: 4rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #000000;
  text-align: left;
}

.footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem 3rem;
  text-align: left;
  padding: 1rem 0;
}
.footer-grid-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.brand-col { min-width: 160px; }

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}
.footer-col p {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-col ul { list-style: none; }
.footer-col ul li a {
  color: #999999;
  text-decoration: none;
  font-size: 0.8rem;
  transition: 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .beian a,
.footer-col .beian { color: var(--text); font-size: 0.7rem; text-decoration: none; }

/* ============ 社交图标 ============ */
.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-links a:hover {
  background: rgba(212, 184, 122, 0.15);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============ 隐私政策链接 ============ */
.footer a.privacy-link {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
}
.footer a.privacy-link:hover { color: var(--gold); }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid-right { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
}