/* ============================================
   湖北盛科律师事务所 - 全站统一页脚
   深色底色 | 四栏布局 | 版权栏
   ============================================ */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

/* 关于盛科栏 */
.footer-about p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-about .footer-logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.footer-about .footer-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

/* 链接列表 */
.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

/* 联系信息 */
.footer-contact .contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-contact .contact-item .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  margin-top: 3px;
}

/* 工作时间：标签与时间值分行，时间单独一行不被挤 */
.footer-contact .work-span {
  display: block;
  min-width: 0;
}
.footer-contact .work-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: 2px;
}
.footer-contact .work-value {
  display: block;
  color: #fff;
  font-weight: 500;
  word-break: keep-all;
  line-height: 1.5;
}

/* 联系我们 — 内部横向排布：左侧联系信息 + 右侧二维码 */
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-contact-info {
  flex: 1;
  min-width: 0;
}

.footer-contact-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-contact-qr img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  padding: 5px;
  display: block;
}

.footer-contact-qr span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  text-align: center;
}

/* ===== 底部版权栏 ===== */
.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom .footer-divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* 页脚版本号小字（王总：刷新后可见版本变化） */
.footer-ver {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 2px;
}

/* 备案链接（ICP / 公安：直达查询页，公安带官方图标） */
.footer-bottom .beian-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  vertical-align: middle;
}
.footer-bottom .beian-link:hover {
  color: var(--color-gold);
}
.footer-bottom .beian-police-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* 页脚二维码双份：桌面端显示联系我们栏内二维码，隐藏移动端二维码块 */
.footer-grid .footer-qr-mobile { display: none; }
.footer-grid .footer-qr-desktop { display: flex; }

/* ---- 响应式（对齐09规范断点：≥1200/992/768/576） ---- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  /* 关于盛科占满整行，行业赛道 + 联系我们 并排一行 */
  .footer-grid .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* 手机端：页脚栏目整体隐藏（简介/行业赛道/联系我们/二维码/版本号），只留版权+备案（王总） */
  .footer-grid {
    display: none;
  }

  .footer-contact-row {
    flex-direction: column;
    align-items: stretch;          /* ✅ 覆盖PC端的center，移动端列布局下强制撑满左对齐 */
    gap: 16px;
  }

  .footer-contact-qr {
    flex-direction: row;
    align-items: flex-start;         /* 二维码靠左靠齐 */
    justify-content: flex-start;     /* 单独排列，不居中 */
    gap: 10px;
    margin-top: 4px;
  }

  .footer-contact-qr span {
    text-align: left;
  }

  /* ✅ 修复：移动端联系条目与「联系我们」标题统一左对齐 */
  .footer-contact .footer-contact-info {
    margin-left: 0;
    padding-left: 0;
  }

  .footer-contact .contact-item {
    display: flex;
    align-items: flex-start;       /* 图标与文字顶部齐平 */
    gap: 12px;                     /* 图标与文字间距统一 */
    margin-left: 0;                /* 强制贴左 */
    padding-left: 0;               /* 强制贴左 */
  }

  .footer-contact .contact-item .icon {
    margin-top: 2px;               /* 图标微调与首行文字基线对齐 */
    width: 18px;                   /* 固定图标宽度，文字起始位置统一 */
    height: 18px;
    min-width: 18px;               /* 防止SVG缩放 */
    flex-shrink: 0;
  }

  .footer-contact .contact-item span {
    text-align: left;              /* 文字强制左对齐 */
  }

  /* 移动端：二维码移出联系我们栏 → 行业赛道下方靠左；联系我们栏左移 6 字符对齐 */
  .footer-grid .footer-qr-desktop { display: none; }
  .footer-grid .footer-qr-mobile {
    display: flex;
    grid-column: 1;
    grid-row: 3;
  }
  .footer-grid .footer-contact {
    grid-column: 2;
    grid-row: 2;
    transform: translateX(-6ch);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px 0;
  }

  /* 版权/备案分行居中，备案内部 label+号码同行（王总） */
  .footer-bottom-left {
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .footer-bottom-left .fb-beian {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .footer-bottom-left .footer-divider { display: none; }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    gap: 20px;
    padding-bottom: 32px;
  }

  .footer-contact-qr img {
    width: 72px;
    height: 72px;
  }

  .footer-bottom {
    font-size: 0.7rem;
  }

  .footer-bottom-links {
    gap: 12px;
  }
}
