/* ===== 通用页脚 ===== */
footer {
  background: #0F0F0F;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
  text-align: left;
}
/* 3 列网格：品牌稍宽 + 服务/资源 2 列等宽 */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* 列标题：白粗体，字距宽一点，与正文明显分隔 */
.footer-col-title {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 18px;
}
/* 链接列表：竖排，柔和白 */
.footer-col-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer-col-list a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
  letter-spacing: 0.5px;
}
.footer-col-list a:hover { color: var(--primary, #E60012); }
/* 品牌列：logo + 标语 + 简介 + 联系方式 */
.footer-col-brand .footer-logo {
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 6px;
}
.footer-col-brand .footer-tagline {
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  letter-spacing: 4px;
  margin: 0 0 18px;
}
.footer-col-brand .footer-desc {
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 340px;
}
.footer-contact {
  display: flex; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-contact-item {
  display: flex; align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  color: var(--primary, #E60012);
  flex-shrink: 0;
}
/* 微信：圆形按钮容器 + 内置气泡 SVG（圆角方块 + 双点 + 尾巴），hover/click 弹出 QR 浮层 */
.footer-wechat {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease;
  flex-shrink: 0;
}
.footer-wechat:hover { background: rgba(255, 255, 255, 0.10); }
.footer-wechat svg {
  width: 22px; height: 22px;
  color: var(--primary, #E60012);
}
.footer-wechat .qr-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  width: 140px;
  background: white;
  border: 1px solid #E8E2D8;
  border-radius: 8px;
  padding: 10px 10px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 10;
}
/* 浮层小三角：白底，朝下指向 icon */
.footer-wechat .qr-popover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px; height: 12px;
  background: white;
  border-right: 1px solid #E8E2D8;
  border-bottom: 1px solid #E8E2D8;
  transform: rotate(45deg);
}
.footer-wechat:hover .qr-popover,
.footer-wechat.is-open .qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.footer-wechat .qr-popover img {
  display: block;
  width: 120px; height: 120px;
  border-radius: 4px;
}
.footer-wechat .qr-popover p {
  color: #555;
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0;
  letter-spacing: 1px;
}
/* 底部一行：左版权 / 右 ICP 备案 + 公网安备 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.5px;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-bottom a:hover { color: var(--primary, #E60012); }
.footer-bottom-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* 响应式：900px 折成 2 列 / 600px 折成 1 列 */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
