/*
 * Footer structure compatibility layer.
 * Restores the existing YIYI Mesh Belt footer layout without changing
 * page typography, navigation, content widths, or product-page styling.
 */
.foot-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 48px !important;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.foot-links,
.foot-contact-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.foot-link,
.foot-contact-a {
  display: inline-flex;
  width: auto;
}

.foot-logo-img {
  width: auto !important;
  height: 42px !important;
  max-width: 190px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
}

.foot-bottom {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1360px) {
  .ai-advisor-btn {
    min-width: 56px !important;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .ai-advisor-btn-photo {
    width: 36px !important;
    height: 36px !important;
  }

  .ai-advisor-label {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

/*
 * English footer typography lock — 2026-10-07.
 * Keep every footer label in the same sans-serif family and regular weight.
 * Existing sizes, colours, spacing, links, buttons, and layout stay unchanged.
 */
body footer.yiyi-footer.yiyi-footer,
body footer.yiyi-footer.yiyi-footer *,
body footer.footer.footer,
body footer.footer.footer * {
  font-family: var(--font-sans, "DM Sans", system-ui, sans-serif) !important;
  font-weight: 400 !important;
}

/* Site-wide footer look, same on every page (2026-10-10) */
.yiyi-footer { background: #0D1B2E; padding: 48px 0 24px; }
.yiyi-footer .container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.yiyi-footer .foot-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.yiyi-footer .foot-brand { font-size: 15px; font-weight: 800; letter-spacing: .08em; color: #fff; }
.yiyi-footer .foot-about { font-size: 13px; line-height: 1.7; margin: 0 0 20px; max-width: 260px; color: rgba(255,255,255,.72); }
.yiyi-footer .foot-info-list { display: flex; flex-direction: column; gap: 8px; }
.yiyi-footer .foot-info-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.72); }
.yiyi-footer .fi-icon { color: #4A8CC8; width: 14px; text-align: center; flex-shrink: 0; }
.yiyi-footer .foot-col-head { font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 800; }
.yiyi-footer .foot-link { font-size: 13px; color: rgba(255,255,255,.72); font-weight: 650; text-decoration: none; }
.yiyi-footer .foot-link:hover, .yiyi-footer .foot-contact-a:hover { color: #fff; }
.yiyi-footer .foot-link.gold { color: #C8922A !important; }
.yiyi-footer .foot-contact-list { margin-bottom: 20px; gap: 12px !important; }
.yiyi-footer .foot-contact-a { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.72); font-weight: 650; text-decoration: none; }
.yiyi-footer .foot-contact-a svg { width: 14px; height: 14px; flex: 0 0 14px; }
.yiyi-footer .foot-btn-p { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 10px; border-radius: 3px; background: #1F5C9E; color: #fff; text-decoration: none; margin-bottom: 8px; }
.yiyi-footer .foot-btn-p:hover { background: #2A6DB5; }
.yiyi-footer .foot-btn-o { display: block; text-align: center; font-size: 13px; padding: 9px; border-radius: 3px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.72); text-decoration: none; margin-left: 0; }
.yiyi-footer .foot-btn-o:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.yiyi-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.yiyi-footer .foot-copy { font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.72); }
@media (min-width: 640px) { .yiyi-footer .foot-bottom { flex-direction: row; justify-content: space-between; } }
@media (max-width: 1023px) { .yiyi-footer .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 36px 28px !important; } }
@media (max-width: 640px) { .yiyi-footer .foot-grid { grid-template-columns: 1fr !important; } }
