/*
 * 全站统一页脚：index / buy / account / portal / legal 两页共用。
 *
 * DOM 以 index.html 的页脚为准，深色页面用默认变量，浅色页面加 `site-footer--light`。
 * 文案里的公司备案号等与 legal/terms.json 的 subject 同源；改文案要各处一起改。
 * console.html（运营后台）不引这份样式。
 */
.site-footer {
  --sf-text: #9aa3b8;
  --sf-line: rgba(255, 255, 255, 0.06);
  --sf-accent: #22d3ee;
  border-top: 1px solid var(--sf-line);
  padding: 46px 0 38px;
  text-align: center;
  color: var(--sf-text);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer--light {
  --sf-text: #86868b;
  --sf-line: #e5e5ea;
  --sf-accent: #5e6ad2;
}

.site-footer .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.site-footer .f-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .f-info {
  text-align: center;
}

.site-footer .f-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.site-footer .f-logo img {
  height: 46px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  color: var(--sf-text);
  font-size: 13px;
  line-height: 1.7;
  /* legal 两页有全局 p{text-align:justify;white-space:pre-wrap}，页脚要压回居中单行 */
  text-align: center;
  white-space: normal;
}

.site-footer p a {
  color: inherit;
  transition: color 0.2s;
}

.site-footer p a:hover {
  color: var(--sf-accent);
}

.site-footer .f-contact-row {
  display: flex;
  justify-content: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--sf-text);
  margin-bottom: 18px;
}

.site-footer .f-contact-row a {
  color: var(--sf-text);
  transition: color 0.2s;
}

.site-footer .f-contact-row a:hover {
  color: var(--sf-accent);
}

.site-footer .f-copy {
  margin-top: 6px;
  opacity: 0.6;
}

.site-footer .f-icp {
  margin-top: 4px;
  opacity: 0.6;
}

.site-footer .f-icp a {
  color: var(--sf-text);
  transition: color 0.2s;
}

.site-footer .f-icp a:hover {
  color: var(--sf-accent);
}

@media (max-width: 620px) {
  .site-footer {
    padding: 34px 0 28px;
  }

  .site-footer .f-main {
    flex-direction: column;
  }

  .site-footer .f-info {
    display: flex;
    flex-direction: column;
  }

  .site-footer .f-info .f-contact-row {
    order: -1;
  }
}
