@charset "UTF-8";

/* 子页面公共样式：站点页脚（Figma 底部 369:1444）。
   首页 home.css 暂未为 .site-footer 定义样式，子页面统一引用本文件，
   页脚标记与首页保持一致，便于后续抽成 WordPress footer.php。 */

/* 全站:区块进入视口的入场动画(由 scripts/site-nav.js 给目标加 data-reveal)。
   仅在用户未开启「减弱动效」时启用;否则元素正常显示、无动画。 */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: clamp(56px, 8vw, 88px) var(--page-gutter) 40px;
  display: grid;
  grid-template-columns:
    minmax(300px, 1.5fr)
    minmax(120px, 0.45fr)
    minmax(220px, 0.8fr)
    minmax(120px, 0.45fr);
  gap: 60px 48px;
}

/* 页面底部辉光:直接使用 Figma 设计稿 Ellipse 36 导出资源,强度与范围与设计稿一致(与顶部 hero-glow 对称) */
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;                /* 设计稿满帧宽度(1920) */
  height: 40.4vw;             /* 设计稿比例 775/1920,随宽度等比缩放 */
  max-height: 775px;
  transform: translateX(-50%);
  background: url("../assets/home/footer-glow.webp") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer > div {
  grid-column: 1;
  display: grid;
  gap: 28px;
  align-content: start;
}

.site-footer > div .footer-title {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.75rem, 2.1vw, 2.4375rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -1.2px;
}

.site-footer > div p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer nav,
.site-footer address {
  display: grid;
  gap: 14px;
  align-content: start;
  font-style: normal;
}

.site-footer strong {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-footer nav a {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

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

.site-footer address {
  max-width: 245px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer address a {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-latin);
}

.site-footer .footer-logo {
  grid-column: 1;
  justify-self: start;
  position: static;       /* 覆盖 home.css 残留的 absolute,回到 grid 流、左对齐内容左边缘 */
  width: 97px;
  height: auto;
  margin-top: 32px;
  align-self: end;
}

/* 社交媒体列(最后一个 nav)靠内容右边缘,与左下 logo 左右呼应 */
.site-footer > nav.footer-nav--social {
  justify-self: end;
}

/* ───────── 社媒二维码浮层 ─────────
 * 微信/小红书没有可跳转的公开主页,后台把这一项设成「弹出二维码」后,
 * 页脚渲染成按钮 + 浮层。按钮外观必须和同列的 <a> 完全一致,
 * 否则一列里两种控件会看出粗细/行高差异。 */
.site-footer .footer-social-item {
  position: relative;
}

.site-footer .footer-social-trigger {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  text-align: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer .footer-social-trigger:hover,
.site-footer .footer-social-item.is-open .footer-social-trigger {
  color: #fff;
}

/* 浮层用原生 <dialog>。窄屏必须走 showModal():.site-footer 和社媒 nav 都是
 * position:relative + z-index:1 的层叠上下文,浮层再高的 z-index 也只在这个
 * 上下文内部生效,整体仍然压不过首屏 .hero-content——只有 top layer 能跳出去。
 * 桌面端浮层锚在按钮旁边,用非模态 show(),留在正常层叠里即可。 */
.site-footer .footer-social-qr {
  /* 复位 dialog 的 UA 样式:边框、内边距、居中 margin、inset-inline */
  margin: 0;
  border: 0;
  max-width: none;
  max-height: none;
  color: inherit;

  /* 桌面:社媒列贴着内容右边缘,浮层只能往左开,往右会顶出视口。
   * width 必须显式给 max-content:绝对定位元素只设 right 不设 left 时,
   * 可用宽度 = 包含块宽 − right 偏移,而 right 是 calc(100% + 16px),
   * 算出来是负数,shrink-to-fit 会把浮层压到 min-content(只剩说明文字那么窄)。 */
  position: absolute;
  left: auto;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: max-content;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

/* display 只能挂在 [open] 上:作者样式优先级高于 UA 样式,
 * 写在基础规则里会盖掉 UA 的 dialog{display:none},浮层就永远关不上了。 */
.site-footer .footer-social-qr[open] {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.site-footer .footer-social-qr__image {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.site-footer .footer-social-qr__caption {
  margin: 0;
  max-width: 160px;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
}

/* 窄屏社媒列不再贴右边缘,往左开会被裁掉;改成 showModal() 的居中弹层,
 * 遮罩交给原生 ::backdrop,不用自己糊一层伪元素。 */
@media (max-width: 900px) {
  .site-footer .footer-social-qr {
    position: fixed;
    inset: 0;
    margin: auto;
    width: max-content;
    height: max-content;
    transform: none;
  }

  .site-footer .footer-social-qr::backdrop {
    background: rgba(0, 0, 0, 0.6);
  }
}

.site-footer small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.site-footer .footer-copyright-symbol {
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer .footer-beian {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-beian:hover {
  color: #fff;
}

/* 底栏右组:版权 + 法务链接,占右侧列区域,两端对齐(版权偏左、法务贴右,对齐设计稿) */
.site-footer .footer-meta {
  grid-column: 2 / -1;
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.site-footer .footer-terms {
  white-space: nowrap;
}

.site-footer .footer-terms a {
  color: rgba(255, 255, 255, 0.5);
  font-size: inherit;        /* 与版权 small 一致(12px),覆盖 home.css 的 .site-footer a 16px */
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-terms span {
  color: rgba(255, 255, 255, 0.34);
  font-size: inherit;
  line-height: inherit;
}

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

@media (max-width: 1200px) {
  .site-footer {
    grid-template-columns:
      minmax(260px, 1.25fr)
      minmax(220px, 0.8fr)
      minmax(120px, 0.45fr);
    gap: 56px 40px;
  }

  .site-footer .footer-nav--core {
    display: none;
  }

  .site-footer .footer-contact {
    grid-column: 2;
  }

  .site-footer > nav.footer-nav--social {
    grid-column: 3;
  }

  .site-footer .footer-meta {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer > div {
    grid-column: 1 / -1;
  }
  .site-footer small {
    grid-column: 1 / -1;
  }
  /* 窄屏 2 列:联系信息(左) / 社交媒体(右)两端对齐,避免右侧留大片空白 */
  .site-footer .footer-meta {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* backdrop-filter 完全不被支持时（如 Firefox < 103，Safari/iOS 已走上面的 -webkit- 前缀，不受影响）：
   缺少模糊时玻璃面板会发虚，这里抬高底色不透明度，保住分层与白字可读性。 */
@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 54px 40px;
  }

  .site-footer .footer-contact {
    grid-column: 1;
  }

  .site-footer > nav.footer-nav--social {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer .footer-meta {
    grid-column: 1 / -1;
  }

  .site-footer .footer-terms {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .site-footer .footer-contact,
  .site-footer .footer-nav--social,
  .site-footer .footer-logo,
  .site-footer .footer-meta {
    grid-column: 1 / -1;
  }

  .site-footer > nav.footer-nav--social {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .site-footer .footer-logo {
    margin-top: 4px;
  }

  .site-footer .footer-meta {
    position: relative;
    left: 50%;
    width: calc(100vw - 48px);
    display: grid;
    justify-items: start;
    gap: 8px;
    transform: translateX(-50%);
  }

  .site-footer .footer-meta small {
    width: 100%;
    max-width: none;
    white-space: nowrap;
    font-size: clamp(0.625rem, 2.4vw, 0.75rem);
    line-height: 1.35;
  }

  .site-footer .footer-terms {
    width: 100%;
    white-space: nowrap;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* 导航覆盖在浅色内容之上，改用更实的深底 */
  .site-nav { background: rgba(16, 18, 28, 0.92); }
  /* 内容玻璃面板：抬高半透白底 */
  .apply-condition,
  .apply-talent[open],
  .ed-guest,
  .ed-schedule,
  .ed-register,
  .event-card,
  .policy-point,
  .space-card,
  .cd-milestones { background: rgba(255, 255, 255, 0.12); }
  .team-orbit-cta { background: rgba(255, 255, 255, 0.1); }
}
