/* 08 — Footer / closing CTA band (classes prefixed f08-)
   Blue band is theme-invariant: only --blue / --blue-ink / --accent and
   color-mix() off --blue-ink are used, so both themes render identically. */

/* ---------- TOP: closing CTA ---------- */

.f08-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.f08-cta__tag {
  display: block;
  margin-bottom: 24px;
}

.f08-cta__title {
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--blue-ink);
  margin-bottom: 36px;
}

/* yellow highlight mark: dark ink on accent fill (base.css 铁律).
   inline-block keeps its fill inside its own line box — an inline <mark>
   background at the h2's tight 1.05 line-height would paint over the
   previous line's glyphs. */
.f08-cta__hl {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  line-height: 1.02;
  padding: 0.04em 0.12em 0.08em;
  margin-top: 0.08em;
}

.f08-cta__btn {
  padding: 18px 44px;
}

.f08-cta__side {
  justify-self: end;
  margin: 0;
  max-width: 340px;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--blue-ink) 92%, transparent); /* AA on --blue */
}

/* ---------- MIDDLE: link grid ---------- */

.f08-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-top: 1px solid color-mix(in srgb, var(--blue-ink) 25%, transparent);
}

/* --- col 1: brand --- */

.f08-wordmark {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 18px;
}

.f08-wordmark__mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-right: 10px;
}

.f08-wordmark__word {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-ink);
}

.f08-wordmark__i {
  text-transform: none;
}

.f08-wordmark__main {
  text-transform: uppercase;
}

.f08-brand__blurb {
  margin: 0 0 22px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--blue-ink) 92%, transparent); /* AA on --blue */
}

.f08-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.f08-social__link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--blue-ink) 92%, transparent); /* AA on --blue */
  transition: color 0.2s var(--ease-out-quart);
}

.f08-social__link:hover {
  color: var(--accent);
}

/* --- cols 2-4: link columns --- */

.f08-col__head {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--blue-ink) 92%, transparent); /* AA on --blue */
  margin-bottom: 20px;
}

.f08-links li {
  margin-bottom: 12px;
}

.f08-links a {
  display: inline-block;
  font-size: 13px;
  color: var(--blue-ink); /* full ink: interactive text gets max contrast */
  transition: color 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
}

.f08-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- BOTTOM bar ---------- */

.f08-bottom {
  border-top: 1px solid color-mix(in srgb, var(--blue-ink) 25%, transparent);
}

.f08-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.f08-copy,
.f08-legal {
  margin: 0;
  font-size: 12px;
  color: color-mix(in srgb, var(--blue-ink) 92%, transparent); /* AA on --blue */
}

.f08-legal a {
  color: var(--blue-ink); /* full ink: interactive text gets max contrast */
  transition: color 0.2s var(--ease-out-quart);
}

.f08-legal a:hover {
  color: var(--accent);
}

/* 底栏法务链接（隐私政策 / 服务条款）—— 与版权行同排，窄屏时随 __inner 换行左对齐 */
.f08-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.f08-legal__links a {
  display: inline-block;
  text-underline-offset: 3px;
}

.f08-legal__links a:hover,
.f08-legal__links a:focus-visible {
  text-decoration: underline;
}

.f08-legal__sep {
  margin: 0 10px;
  color: color-mix(in srgb, var(--blue-ink) 40%, transparent);
}

/* ---------- Focus visibility (accent reads on blue; --link-ink does not) ---------- */

.f08 a:focus-visible {
  outline-color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (min-width: 769px) and (max-width: 1024px) {
  .f08-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .f08-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .f08-cta__side {
    justify-self: start;
    max-width: 420px;
    padding-bottom: 0;
  }

  .f08-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .f08-brand__blurb {
    max-width: none;
  }

  .f08-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
