/* ============================================================
   R-FOOTER-01：全站内页页脚统一（标准 = 首页 R-HOME-05 已验收页脚）
   仅含页脚专用规则，从 css/r-home-01.css 的页脚段提取并自带隔离；
   不包含首页 AIBot / 流星 / V2 首屏等任何其他模块的样式。
   内页引用顺序：css/style.css → css/site-footer.css（本文件）
   ============================================================ */

/* 与首页一致：取消页脚顶部 1px 边框与 3px 渐变装饰条（首页由 v2.css 隐藏） */
.site-footer {
  border-top-color: transparent;
}
.site-footer::before {
  display: none;
}

/* R-HOME-05：第一栏略加宽改善图文环绕；第四栏保底 286px，
   确保三枚二维码仍能同排，不被挤成两行。 */
@media (min-width: 1025px) {
  .site-footer__grid {
    grid-template-columns:
      minmax(0, 2.1fr) minmax(0, .72fr) minmax(0, .72fr) minmax(286px, 1.46fr);
    column-gap: 40px;
  }
}

/* R-HOME-05 / R-HOME-05b：紧凑页脚（不改内容，只压缩垂直间距） */
.site-footer {
  padding-top: 36px;
  padding-bottom: 12px;
}
.site-footer .site-footer__grid { margin-bottom: 14px; }
.site-footer__heading { margin-bottom: 6px; }
.site-footer__contact { margin-bottom: 10px; }
.site-footer__contact li {
  line-height: 1.45;
  margin-bottom: 3px;
}
.site-footer__contact li:last-child { margin-bottom: 0; }
.site-footer__qr { margin: 8px 0; }
.site-footer__qr-item { gap: 3px; }
.site-footer__qr-item img { width: 78px; height: 78px; }
.site-footer__qr-cap { line-height: 1.3; }

/* R-HOME-04：第一栏图文环绕 —— 视频 float 左上，公司介绍先绕行右侧、
   排满后自然延伸到视频下方（flow-root 建立独立格式化上下文）。 */
.site-footer__intro { display: flow-root; }

.site-footer__intro .site-footer__interview {
  float: left;
  width: min(100%, 210px);
  margin: 0 16px 12px 0;
}

.site-footer__intro .site-footer__desc {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer__interview {
  position: relative;
  display: block;
  width: min(100%, 190px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #181410;
  box-shadow: 0 6px 20px rgba(38, 24, 12, .12);
  cursor: pointer;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

.site-footer__interview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 底部轻渐变承托「观看采访」，不遮人物面部 */
.site-footer__interview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
  pointer-events: none;
}

.site-footer__interview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.site-footer__interview-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-36%, -50%);
  width: 0;
  height: 0;
  border-left: 13px solid #E8551A;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.site-footer__interview-title {
  position: absolute;
  left: 12px;
  bottom: 9px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .04em;
}

.site-footer__interview:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(38, 24, 12, .18);
}
.site-footer__interview:focus-visible {
  outline: 2px solid #E8551A;
  outline-offset: 3px;
}

/* 弹出层：原生 dialog，宽度对齐要求 840–960px */
.rhome-interview-dialog {
  width: min(92vw, 960px);
  max-width: none;
  max-height: 94vh;
  margin: auto; /* 全站 reset 的 *{margin:0} 会覆盖原生 dialog 的居中，这里必须显式声明 */
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.rhome-interview-dialog::backdrop { background: rgba(8, 8, 12, .78); }

.rhome-interview-dialog__panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111114;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.rhome-interview-dialog__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.rhome-interview-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #161616;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.rhome-interview-dialog__close:hover { background: #fff; }
.rhome-interview-dialog__close:focus-visible {
  outline: 2px solid #E8551A;
  outline-offset: 3px;
}

/* 弹窗打开时锁背景滚动；关闭后由 JS 恢复 scrollY */
body.rhome-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 560px) {
  /* 手机宽度不足：视频在上、文字在下，不做窄栏环绕 */
  .site-footer__intro .site-footer__interview {
    float: none;
    width: min(100%, 220px);
    margin: 0 0 14px;
  }
  .rhome-interview-dialog { width: 94vw; }
}
