/* Fujii 全站页脚（可独立于 fujii.css 使用） */
.fj-siteinfo.fj-footer {
  --fj-ft-accent: #c9a46a;
  --fj-ft-accent-hot: #e8b86d;
  --fj-ft-text: rgba(245, 240, 232, 0.78);
  --fj-ft-text-dim: rgba(245, 240, 232, 0.55);
  --fj-ft-line: rgba(201, 164, 106, 0.28);
  --fj-ft-panel: rgba(255, 255, 255, 0.04);

  position: relative;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(14, 16, 22, 0.4) 0%, transparent 40%),
    #0a0c10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 20px 40px;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  text-align: center;
}

.fj-siteinfo.fj-footer.fj-has-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.fj-snap .fj-siteinfo.fj-footer {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: block;
  padding: 32px 20px 44px;
}

.fj-footer__wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.fj-footer__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.fj-footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 42%);
  height: 1px;
  margin: 0;
}

.fj-footer__divider i {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--fj-ft-line) 20%,
    var(--fj-ft-accent) 50%,
    var(--fj-ft-line) 80%,
    transparent 100%
  );
  position: relative;
}

.fj-footer__divider i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -3px 0 0 -3px;
  border: 1px solid var(--fj-ft-accent);
  transform: rotate(45deg);
  background: #0a0c10;
  box-sizing: border-box;
}

.fj-footer__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.fj-footer__group > li {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

/* 官方媒体：Logo 铺满显示区，约 5 个一行 */
.fj-footer__media {
  gap: 12px;
  max-width: 720px;
}

.fj-footer__media > li {
  flex: 0 1 calc(20% - 10px);
  width: calc(20% - 10px);
  max-width: 132px;
  min-width: 96px;
}

.fj-footer__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--fj-ft-panel);
  color: var(--fj-ft-text);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s;
}

.fj-footer__chip--logo-only {
  padding: 12px;
}

/* Logo 区：占满卡片宽度，固定高度，图片等比居中铺满 */
.fj-footer__chip .fj-footer__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  line-height: 0;
}

.fj-footer__chip .fj-footer__ico img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
}

.fj-footer__name {
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  word-break: break-word;
}

.fj-footer__chip .fj-footer__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.fj-footer__chip:hover {
  color: var(--fj-ft-accent-hot);
  border-color: var(--fj-ft-line);
  background: rgba(201, 164, 106, 0.1);
  transform: translateY(-2px);
}

a.fj-footer__chip:hover .fj-footer__ico img {
  opacity: 1;
  transform: scale(1.04);
}

/* 网站底部：胶囊链接，满 4 个左右自动换行 */
.fj-footer__info {
  gap: 10px 12px;
  max-width: 760px;
}

.fj-footer__info > li {
  flex: 0 1 auto;
  max-width: 100%;
}

.fj-footer__link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fj-ft-text-dim);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.fj-footer__link .fj-footer__ico--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  overflow: hidden;
}

.fj-footer__link .fj-footer__ico--sm img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
}

.fj-footer__link .fj-footer__name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12em;
}

.fj-siteinfo__item--text {
  cursor: default;
}

a.fj-footer__link:hover {
  color: var(--fj-ft-accent-hot);
  border-color: var(--fj-ft-line);
  background: rgba(201, 164, 106, 0.08);
}

a.fj-footer__link:hover .fj-footer__ico img {
  opacity: 1;
}

/* 兼容旧类名 */
.fj-siteinfo__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fj-siteinfo__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fj-ft-text);
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 720px) {
  .fj-footer__media > li {
    flex: 0 1 calc(33.333% - 8px);
    width: calc(33.333% - 8px);
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .fj-siteinfo.fj-footer {
    padding: 24px 14px 32px;
  }

  .fj-footer__chip .fj-footer__ico {
    height: 36px;
  }

  /* 隐私政策等：不独占一行，按内容宽度并排换行 */
  .fj-footer__info {
    max-width: 100%;
    gap: 8px 10px;
    justify-content: center;
  }

  .fj-footer__info > li {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .fj-footer__link {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
    padding: 7px 12px;
  }

  .fj-footer__link .fj-footer__name {
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 去掉点击描边 */
.fj-footer a:focus,
.fj-footer a:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
