/* 腾讯云风格页脚 */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 完整版（站点首页） ===== */
.site-footer--full .site-footer__main {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 48px 24px 40px;
}

.site-footer--full .site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-footer__slogan {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #86909c;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__col-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #1d2129;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__list a,
.site-footer__text {
  font-size: 13px;
  line-height: 22px;
  color: #4e5969;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__list a:hover {
  color: #1677ff;
}

.site-footer__text {
  color: #86909c;
}

.site-footer--full .site-footer__bar,
.site-footer--compact {
  background: #232323;
}

.site-footer--full .site-footer__bar {
  padding: 0 24px;
}

.site-footer__bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  box-sizing: border-box;
}

.site-footer__copy {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__dot {
  margin: 0 8px;
  opacity: 0.6;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__links a {
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #fff;
}

/* ===== 紧凑版（控制台 / 管理后台） ===== */
.site-footer--compact {
  position: fixed;
  left: var(--sidebar-width, 208px);
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer--compact .site-footer__bar-inner {
  min-height: var(--footer-height, 44px);
  padding: 0;
}

/* ===== 用户中心：浅色底栏（文档流，贴页面底部） ===== */
.site-footer--console {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--footer-height, 44px);
  padding: 14px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.site-footer--console .site-footer__copy {
  color: #86909c;
}

.site-footer__copy--center {
  justify-content: center;
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer--full .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer--full .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }
}

@media (max-width: 640px) {
  .site-footer--full .site-footer__main {
    padding: 36px 16px 32px;
  }

  .site-footer--full .site-footer__bar {
    padding: 0 16px;
  }

  .site-footer--full .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
  }

  .site-footer--compact {
    left: 0;
    padding: 0 16px;
  }

  .site-footer--console {
    padding: 14px 16px;
  }
}
