/* === Footer 独立组件：深色企业级 (20260812) ===
   样式从 v2-home.css 抽出，由主页面统一加载。
   版心对齐复用 v2-home.css 定义的 --container-wide / --container-mid。
*/
#footer { background: transparent; margin: 0; }
.v2ft-wrap {
  width: 100%;
  margin-top: clamp(16px, 1.6vw, 24px);
  padding-bottom: clamp(24px, 2vw, 36px);
  box-sizing: border-box;
}
.v2ft-inner {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: #1F1E1B;
  border-radius: 28px;
  padding: 48px 56px 28px;
  color: rgba(255, 255, 255, .80);
}

/* 与上方主内容容器对齐（具体值，避免依赖 v2-home.css 变量，form 页未加载该文件） */
@media (min-width: 1361px) {
  .v2ft-inner {
    width: min(1840px, calc(100vw - 10.5vw)) !important;
    margin-left: calc(50% - min(920px, calc(50vw - 5.25vw))) !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 1360px) {
  .v2ft-inner {
    width: min(1180px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 极淡东方装饰纹理（背景，不抢视觉） */
.v2ft-deco { position: absolute; bottom: 0; width: clamp(160px, 18vw, 260px); height: auto; color: rgba(207, 169, 121, .07); pointer-events: none; z-index: 0; }
.v2ft-deco svg { width: 100%; height: auto; display: block; }
.v2ft-deco--l { left: 0; }
.v2ft-deco--r { right: 0; }

/* 第一层：5 区网格 */
.v2ft-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .95fr)) minmax(0, 1.25fr);
  column-gap: 36px;
  row-gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* 品牌与联系方式 */
.v2ft-brand { display: flex; flex-direction: column; }
.v2ft-logo { display: inline-block; width: 280px; max-width: 72%; }
.v2ft-logo img { width: 100%; height: auto; display: block; }
.v2ft-phone { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.v2ft-phone-label { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 3px; }
.v2ft-phone-num {
  font-size: clamp(26px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: .02em;
  color: #D9A661;
  text-decoration: none;
  line-height: 1.1;
}
.v2ft-phone-num:hover { color: #E0B277; }
.v2ft-meta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.v2ft-meta-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.v2ft-meta-row a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.v2ft-meta-row a:hover { color: rgba(255, 255, 255, .85); }
.v2ft-ico { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; color: rgba(255, 255, 255, .5); }
.v2ft-ico svg { width: 18px; height: 18px; }

/* 栏目 */
.v2ft-col { min-width: 0; }
.v2ft-col-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #F3EBDD;
}
.v2ft-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.v2ft-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2ft-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #C79552; opacity: .8; }
.v2ft-link {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.v2ft-link:hover { color: rgba(255, 255, 255, .92); }

/* Footer：六大企业中秋福利解决方案 */
.v2ft-solutions-col .solution-footer-list {
  gap: 11px;
}
.v2ft-solutions-col .v2ft-dot {
  width: 5px;
  height: 5px;
  background: #C79552;
  opacity: .84;
}
.v2ft-solutions-col .v2ft-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  transition: color .18s ease, transform .18s ease;
}
.v2ft-solutions-col .v2ft-link:hover {
  color: #D9A661;
  text-decoration: none;
  transform: translateX(2px);
}

/* 企业福利顾问卡 */
.v2ft-advisor {
  position: relative;
  background: #2A2823;
  border: 1px solid rgba(210, 160, 80, .25);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.v2ft-advisor-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(199, 149, 82, .14); color: #C79552; margin-bottom: 14px; }
.v2ft-advisor-ico svg { width: 22px; height: 22px; }
.v2ft-advisor-title { font-size: 16px; font-weight: 600; color: #F3EBDD; margin-bottom: 8px; }
.v2ft-advisor-desc { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.v2ft-advisor-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(199, 149, 82, .55);
  color: #C79552;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.v2ft-advisor-btn:hover { background: #C79552; border-color: #C79552; color: #1F1E1B; }

/* 底部版权 */
.v2ft-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .45);
}
.v2ft-bottom a { color: rgba(255, 255, 255, .45); text-decoration: none; }
.v2ft-bottom a:hover { color: rgba(255, 255, 255, .7); }
.v2ft-sep { width: 1px; height: 11px; background: rgba(255, 255, 255, .18); }

/* 响应式：平板 */
@media (max-width: 1024px) {
  .v2ft-inner { padding: 40px 36px 24px; }
  .v2ft-top { column-gap: 24px; }
}
/* 响应式：手机单列 */
@media (max-width: 768px) {
  .v2ft-wrap { padding-left: 20px; padding-right: 20px; }
  .v2ft-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 20px 24px !important;
    border-radius: 22px !important;
  }
  /* 手机端：品牌区整行 + 其余 2 列网格 */
  .v2ft-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 22px;
    border-bottom: none;
    padding-bottom: 0;
  }
  .v2ft-brand { grid-column: 1 / -1; padding-bottom: 4px; }
  .v2ft-logo { width: 240px; max-width: 66%; }
  .v2ft-col { min-width: 0; }
  .v2ft-advisor { grid-column: 1 / -1; padding: 22px; }
  .v2ft-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 8px; }
  .v2ft-deco { display: none; }
}
/* 超窄屏：统一单列避免挤压 */
@media (max-width: 460px) {
  .v2ft-top { grid-template-columns: 1fr; }
  .v2ft-advisor { grid-column: auto; }
}
/* === END Footer 独立组件 === */

/* Footer 信息弹窗：公司介绍 / 联系我们 */
body.footer-info-open { overflow: hidden; }
.footer-info-modal[hidden] { display: none !important; }
.footer-info-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  transition: opacity .22s ease;
}
.footer-info-modal.is-open { opacity: 1; }
.footer-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 16, .68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.footer-info-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(720px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 52px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 50px 54px 48px;
  border: 1px solid rgba(199, 149, 82, .3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(226, 173, 91, .12), transparent 34%),
    linear-gradient(145deg, #fffdf8 0%, #fbf6ec 100%);
  box-shadow: 0 28px 80px rgba(32, 23, 16, .24);
  color: #432f24;
  transform: translateY(18px) scale(.985);
  transition: transform .25s cubic-bezier(.2,.75,.25,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(199,149,82,.36) transparent;
}
.footer-info-dialog::-webkit-scrollbar { width: 6px; height: 0; }
.footer-info-dialog::-webkit-scrollbar-track { background: transparent; }
.footer-info-dialog::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(199,149,82,.34); }
.footer-info-modal.is-open .footer-info-dialog { transform: translateY(0) scale(1); }
.footer-info-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(113, 84, 61, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  color: #796759;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.footer-info-close:hover { color: #d9571b; border-color: rgba(217,87,27,.3); background: #fff; transform: rotate(3deg); }
.footer-info-close:focus-visible { outline: 3px solid rgba(233,109,38,.2); outline-offset: 2px; }
.footer-info-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.footer-info-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; color: #b77f3d; }
.footer-info-mark-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #d96526;
  background: rgba(199, 149, 82, .1);
}
.footer-info-mark-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-info-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.footer-info-content { position: relative; z-index: 1; }
.footer-info-content h2 { margin: 0; color: #432f24; font-size: clamp(30px, 4vw, 42px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.footer-info-summary { margin: 12px 0 0; color: #c0783e; font-size: 17px; font-weight: 500; line-height: 1.6; }
.footer-info-divider { display: flex; align-items: center; width: 100%; height: 1px; margin: 25px 0; background: rgba(132, 101, 76, .13); }
.footer-info-divider span { display: block; width: 48px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #c79552, #e96d26); }
.footer-info-body { max-width: 590px; color: #6f5e52; font-size: 16px; font-weight: 400; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.footer-info-modal[data-footer-mode="contact"] .footer-info-mark-icon { color: #c79552; }

@media (max-width: 640px) {
  .footer-info-modal { padding: 16px; }
  .footer-info-dialog { width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 40px 28px 34px; border-radius: 22px; }
  .footer-info-close { top: 16px; right: 16px; width: 38px; height: 38px; }
  .footer-info-mark { margin-bottom: 20px; }
  .footer-info-content h2 { font-size: 30px; }
  .footer-info-summary { font-size: 15px; padding-right: 24px; }
  .footer-info-body { font-size: 15px; line-height: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-info-modal, .footer-info-dialog, .footer-info-close { transition: none !important; }
}
