/* ============================================================
   红笔助手 RedPenKit · 全站页脚
   参考寻名阁（seekname.cn）页脚样式：深色底、多栏链接、右侧二维码、底部备案
   ============================================================ */

.rp-footer {
  background: #16202e;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.rp-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s ease;
}

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

.rp-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) auto;
  gap: 40px;
}

/* 品牌区 */
.rp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.rp-footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.rp-footer-slogan {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* 链接栏 */
.rp-footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}

.rp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rp-footer-col li + li {
  margin-top: 10px;
}

/* 二维码区：参考寻名阁，桌面端一行 4 个 */
.rp-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.rp-footer-qr {
  text-align: center;
  flex: 0 0 auto;
}

.rp-footer-qr img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: #fff;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.rp-footer-qr span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

/* 底部备案栏 */
.rp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
}

.rp-footer-bottom a {
  color: #94a3b8;
}

.rp-footer-bottom a:hover {
  color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
  .rp-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .rp-footer-brand { grid-column: 1 / -1; }
  .rp-footer-contact {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .rp-footer-container {
    grid-template-columns: 1fr;
    padding: 36px 20px 24px;
  }
  .rp-footer-contact {
    justify-content: center;
    gap: 14px;
  }
  .rp-footer-qr img {
    width: 64px;
    height: 64px;
  }
  .rp-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
