/* ==========================================================================
   JDX DIGITAL — compact official footer
   Brand row + centered legal block.
   合法合规基线：备案号居中、字号不低于 10.5px、主体全称可见、亮照入口可达。
   ========================================================================== */

.compact-footer {
  margin-top: 32px;
  padding-top: 16px;
  padding-bottom: 72px;
  border-top: 1px solid rgba(13, 20, 36, 0.1);
  color: var(--muted);
}

/* 页脚容器宽度跨页统一（含首页被两层容器包裹的情形） */
.compact-footer > .container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.home-page .compact-footer {
  margin-top: auto;
}

/* Baseline alignment: the brand name's first line sits on exactly the same
   baseline as the links on the right, instead of floating above them. */
.compact-footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}

/* Brand block: mark + two-level wordmark (Chinese name over English name). */
.cf-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.cf-brand .cf-logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  /* optical: centre the mark on the brand-name line, the latin caption hangs below */
  align-self: center;
  transform: translateY(-6px);
}

.cf-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-brand-text b {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.cf-brand-text .cf-brand-en {
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(95, 107, 124, 0.92);
}

.cf-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
}

.cf-links a {
  font-size: 11px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.cf-links a:hover {
  color: var(--cobalt);
}

.cf-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.cf-contact a,
.cf-contact span {
  color: var(--ink-soft);
}

.cf-contact a:hover {
  color: var(--cobalt);
}

/* 运营主体行：真实名称全站可见（消保法第 21 条 / 电商法第 15 条） */
.cf-entity {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(72, 84, 102, 0.95);
}

.cf-entity b {
  font-weight: 600;
  color: var(--ink-soft);
}

.cf-entity a {
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 92, 255, 0.32);
}

.cf-entity a:hover {
  border-bottom-color: var(--cobalt);
}

.cf-entity .cf-sep {
  margin: 0 6px;
  color: rgba(95, 107, 124, 0.55);
}

/* 版权 / 资质入口行：居中 */
.cf-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(95, 107, 124, 0.92);
  text-align: center;
}

.cf-legal .cf-copy {
  margin: 0;
}

.cf-legal .cf-sep {
  color: rgba(95, 107, 124, 0.5);
}

.cf-legal a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cf-legal a:hover {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 备案号组：全站底部居中、字号 12px（≥10.5px 可读下限），保留官方跳转链接 */
.cf-filing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(13, 20, 36, 0.05);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}

.cf-filing .cf-icp,
.cf-filing .cf-mps {
  display: inline-block;
  font-size: 12px;
  color: rgba(72, 84, 102, 0.95);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cf-filing .cf-icp:hover,
.cf-filing .cf-mps:hover {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cf-filing[hidden],
.cf-filing .cf-icp[hidden],
.cf-filing .cf-mps[hidden],
.cf-legal [hidden],
.cf-entity [hidden] {
  display: none;
}

/* 亮照槽位（首页 / 资质页）：营业执照图 + 公示文字 */
.license-slot {
  margin-top: 18px;
}

.license-slot img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  border: 1px solid rgba(13, 20, 36, 0.12);
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 1024px) {
  .compact-footer > .container {
    width: min(1200px, calc(100% - 48px));
  }
}

@media (max-width: 720px) {
  .compact-footer {
    margin-top: 22px;
    padding-top: 14px;
    padding-bottom: 56px;
  }

  .compact-footer > .container {
    width: calc(100% - 40px);
  }

  .compact-footer-inner {
    display: block;
  }

  .cf-brand {
    gap: 8px;
  }

  .cf-links {
    margin-top: 11px;
    gap: 12px 14px;
  }

  .cf-contact {
    margin-top: 9px;
    gap: 12px;
  }

  .cf-entity {
    margin-top: 14px;
    font-size: 11.5px;
  }

  .cf-legal {
    margin-top: 9px;
    font-size: 11px;
  }

  .cf-filing {
    gap: 6px 12px;
    font-size: 12px;
  }

  .cf-filing .cf-icp,
  .cf-filing .cf-mps {
    font-size: 12px;
    white-space: normal;
  }
}
