/* EasyDecide · NerdWallet 式页脚 */
.ed-sitefoot--nw {
  background: #f7f1e6;
  color: #1a1a1a;
  padding: 40px 0 32px;
  font-family: "Noto Sans SC", "Plus Jakarta Sans", system-ui, sans-serif;
}

.ed-sitefoot--nw .ed-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 上：Logo + 四栏导航 ── */
.ed-foot-nw__nav {
  display: grid;
  gap: 28px 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 900px) {
  .ed-foot-nw__nav {
    grid-template-columns: 200px repeat(4, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .ed-foot-nw__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ed-foot-nw__brand {
    grid-column: 1 / -1;
  }
}

.ed-foot-nw__brand {
  align-self: start;
}

.ed-foot-nw__brand .ed-brand,
.ed-foot-nw__brand .ed-nw-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-right: 0;
  text-decoration: none;
  color: inherit;
}

.ed-foot-nw__brand .ed-brand__mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 47, 34, 0.12);
}

.ed-foot-nw__brand .ed-brand__mark img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.ed-foot-nw__brand .ed-nw-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(15, 47, 34, 0.12);
}

.ed-foot-nw__brand .ed-brand__text,
.ed-foot-nw__brand .ed-nw-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}

.ed-foot-nw__brand .ed-brand__name,
.ed-foot-nw__brand .ed-nw-brand__name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f2f22;
  letter-spacing: -0.02em;
  text-transform: none;
}

.ed-foot-nw__brand .ed-brand__tag,
.ed-foot-nw__brand .ed-nw-brand__tag,
.ed-foot-nw__brand .ed-brand__cn {
  display: none !important;
}

.ed-foot-nw__col h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
  color: #1a1a1a;
}

.ed-foot-nw__col a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #2f2f2f;
  text-decoration: none;
  line-height: 1.45;
}

.ed-foot-nw__col a:hover {
  color: #1f7a45;
  text-decoration: underline;
}

/* ── 下：App | 免责 | 版权 ── */
.ed-foot-nw__lower {
  display: grid;
  gap: 28px 32px;
  padding-top: 32px;
}

@media (min-width: 960px) {
  .ed-foot-nw__lower {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
    align-items: start;
  }
}

.ed-foot-nw__app {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.ed-foot-nw__app-lead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  line-height: 1.5;
  width: 100%;
  max-width: 260px;
}

.ed-foot-nw__app-lead span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* App 下载 — 带评分黑底徽章 */
.ed-foot-badges,
.ed-foot-nw__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 260px;
}

.ed-foot-store {
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
  background: transparent;
}

.ed-foot-store:hover {
  opacity: 0.88;
}

.ed-foot-store img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

/* 非中文：可本地化评分徽章（避免 PNG 内嵌「条评论」） */
.ed-foot-store--pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #121212;
  border: 1px solid #222;
  box-sizing: border-box;
  line-height: 1.25;
}

.ed-foot-store__name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ed-foot-store__meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.ed-foot-store__meta strong {
  color: #c6f04a;
  font-weight: 800;
}

html[dir="rtl"] .ed-foot-nw__legal {
  text-align: right;
}

html[dir="rtl"] .ed-foot-badges,
html[dir="rtl"] .ed-foot-nw__badges {
  align-items: flex-start;
}

/* 旧小按钮隐藏 */
.ed-foot-nw__stores.ed-stores {
  display: none;
}
/* 免责正文 */
.ed-foot-nw__legal {
  font-size: 12.5px;
  line-height: 1.62;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.ed-foot-legal__body p {
  margin: 0 0 11px;
  font-weight: 600;
}

.ed-foot-legal__body a {
  color: #0b57d0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ed-foot-legal__body a:hover {
  color: #174a35;
}

.ed-foot-legal__addr {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

/* 右侧社交 + 版权 */
.ed-foot-nw__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f5efe4 100%);
  border: 1px solid rgba(15, 47, 34, 0.08);
  box-shadow: 0 8px 24px rgba(15, 47, 34, 0.06);
}

@media (max-width: 959px) {
  .ed-foot-nw__meta {
    flex-direction: column;
    width: 100%;
  }
}

.ed-foot-nw__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 959px) {
  .ed-foot-nw__social {
    justify-content: flex-start;
  }
}

.ed-foot-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(15, 47, 34, 0.1);
  box-shadow: none;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ed-foot-social img {
  width: 32px;
  height: 32px;
  display: block;
}

.ed-foot-social:hover {
  opacity: 0.86;
  border-color: rgba(15, 47, 34, 0.18);
}

.ed-foot-nw__copybox {
  padding-top: 16px;
  border-top: 1px solid rgba(15, 47, 34, 0.1);
  text-align: right;
}

@media (max-width: 959px) {
  .ed-foot-nw__app {
    align-items: flex-end;
    text-align: right;
  }

  .ed-foot-nw__app-lead,
  .ed-foot-nw__badges,
  .ed-foot-badges {
    max-width: min(260px, 100%);
    margin-left: auto;
  }

  .ed-foot-nw__social {
    justify-content: flex-end;
  }

  .ed-foot-nw__meta {
    align-items: stretch;
  }

  .ed-foot-nw__copybox {
    text-align: right;
  }
}

@media (max-width: 639px) {
  .ed-sitefoot--nw {
    padding: 28px 0 24px;
  }
  .ed-foot-nw__nav {
    padding-bottom: 24px;
  }
  .ed-foot-nw__lower {
    padding-top: 24px;
  }
  .ed-foot-nw__col a {
    font-size: 14px;
  }
  .ed-foot-nw__legal {
    font-size: 12px;
  }
}

body.egm-page--dash .ed-sitefoot,
html[data-ed-no-site-footer="1"] .ed-sitefoot {
  display: none !important;
}

.ed-foot-nw__copy-brand {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: #0f2f22;
  letter-spacing: 0.02em;
}

.ed-foot-nw__copy {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 旧版 rich 样式复位 */
.ed-sitefoot--rich.ed-sitefoot--nw {
  background: #f7f1e6;
  padding-top: 40px;
}

.ed-sitefoot--nw .ed-sitefoot__top--rich,
.ed-sitefoot--nw .ed-sitefoot__cols--rich {
  display: none !important;
}
