/* ============================================================
   凯歌云教阅卷 · 全站统一页脚
   版权归属 / 联系方式 / ICP 备案号（《互联网信息服务管理办法》
   要求非经营性互联网信息服务在网站首页底部标明备案编号，
   并链接至工信部备案系统 https://beian.miit.gov.cn/）
   所有页面统一引用 /static/css/site-footer.css
   ============================================================ */
.kg-site-footer{
  box-sizing:border-box;width:100%;flex:none;
  margin-top:auto;padding:10px 20px;background:#fff;border-top:1px solid #e9e7f2;
  color:#6b7280;font-size:12px;line-height:1.7;text-align:center;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif
}
.kg-site-footer *{box-sizing:border-box}
.kg-site-footer-inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:2px 12px;max-width:1280px;margin:0 auto
}
.kg-site-footer a{color:#6d28d9;text-decoration:none}
.kg-site-footer a:hover,.kg-site-footer a:focus-visible{text-decoration:underline}
.kg-sf-sep{color:#cbd5e1;user-select:none}
.kg-sf-icp{white-space:nowrap}

/* 后台内页：避开固定侧栏。
   --sidebar-w 由 admin/admin.css 定义并在 900px 断点从 240px 收到 60px，
   页脚与侧栏共用同一个变量，不再出现「页脚跑到侧栏底下」的错位。
   用户前端页面没有 admin.css，回退到 240px（这些页面也不用 --admin 类）。 */
.kg-site-footer--admin{margin-left:var(--sidebar-w,240px);width:calc(100% - var(--sidebar-w,240px))}

/* 收银台：卡片下方的独立小卡片 */
.kg-site-footer--card{
  max-width:560px;width:100%;margin:16px auto 0;
  border:1px solid #e9e7f2;border-radius:12px;
  box-shadow:0 4px 16px rgba(30,25,70,.05)
}

/* 登录页（紫色渐变背景）：透明反白 */
.kg-site-footer--transparent{
  position:fixed;left:0;right:0;bottom:0;z-index:5;margin:0;
  padding:14px 20px;background:transparent;border-top:0;
  color:rgba(255,255,255,.88)
}
.kg-site-footer--transparent a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.kg-site-footer--transparent .kg-sf-sep{color:rgba(255,255,255,.4)}

@media(max-width:900px){
  .kg-site-footer-inner{gap:2px 8px}
  .kg-sf-sep{display:none}
  .kg-site-footer{font-size:11.5px}
}
