/**
 * 共享页脚样式 - 与 site-footer.js 配套
 * 设计风格对齐落地页（teal/slate），低调克制，不抢主交互区
 *
 * Sticky footer：内容不够高时自动贴到视口底部，足够高时正常跟随
 * 实现方式：把 html/body 转成 flex column，footer 用 margin-top:auto 推到最底
 */
html:has(#site-footer),
html:has(.site-footer) {
  height: 100%;
}
body:has(#site-footer),
body:has(.site-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 居中布局页面（如 login）：让登录卡 margin:auto 保持垂直居中 */
body:has(.site-footer--bottom) > .login-container,
body:has(.site-footer--bottom) > .container {
  margin: auto;
}

.site-footer {
  width: 100%;
  background: #f8fafc;          /* slate-50 */
  border-top: 1px solid #e2e8f0;/* slate-200 */
  color: #64748b;               /* slate-500 */
  font-size: 12.5px;
  line-height: 1.7;
  padding: 18px 24px;
  margin-top: auto;             /* sticky footer：把自己推到 flex column 底部 */
  flex-shrink: 0;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  text-align: center;
}

.site-footer-copy {
  white-space: nowrap;
}

/* 版权和备案之间用一个竖线分隔，更紧凑 */
.site-footer-copy::after {
  content: '·';
  margin-left: 18px;
  color: #cbd5e1;
}
.site-footer--on-dark .site-footer-copy::after {
  color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 640px) {
  .site-footer-copy::after { display: none; }
}

.site-footer-beian {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.site-footer-beian a {
  color: #64748b;
  text-decoration: none;
  transition: color .15s ease;
}

.site-footer-beian a:hover {
  color: #0f766e;               /* teal-700 */
}

.site-footer-mps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-footer-mps-icon {
  display: inline-block;
  vertical-align: -2px;
}

@media (max-width: 640px) {
  .site-footer { padding: 14px 16px; font-size: 12px; }
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
  .site-footer-copy { white-space: normal; }
  /* 窄屏下让 ICP 与公网安备各占一行并居中，不再左对齐挤在一起 */
  .site-footer-beian {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* 暗色背景页面（如 login）可加 .site-footer--on-dark 反色 */
.site-footer--on-dark {
  background: transparent;
  border-top: 0;                /* 暗色背景下不画分隔线，避免把整块蓝色切成两段 */
  color: rgba(255, 255, 255, 0.55);
}
.site-footer--on-dark .site-footer-beian a { color: rgba(255, 255, 255, 0.55); }
.site-footer--on-dark .site-footer-beian a:hover { color: #fff; }

/* 全屏居中布局页面（如 login）下，登录卡保持视口垂直居中。
   sticky footer 的 flex column 已在文件顶部统一处理，
   --bottom 修饰符现在只是个语义标记，不再需要额外样式。 */
