/* ===== 6ZE 快捷跳转 · 前台样式 ===== */
:root {
  --bg: #f1f5fb;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #ffffff;
  --border: rgba(255, 255, 255, .65);
  --text: #1e293b;
  --text-sub: #64748b;
  --text-faint: #94a3b8;
  --primary: #165DFF;
  --primary-soft: rgba(22, 93, 255, .1);
  --shadow: 0 8px 24px rgba(22, 93, 255, .08);
  --shadow-hover: 0 16px 40px rgba(22, 93, 255, .16);
  --radius: 20px;
  --blob1: rgba(22, 93, 255, .18);
  --blob2: rgba(124, 58, 237, .14);
  --blob3: rgba(14, 165, 233, .15);
  --bar-bg: rgba(255, 255, 255, .84);
  --bar-edge: rgba(255, 255, 255, .9);
}
[data-theme="dark"] {
  --bg: #0b1020;
  --surface: rgba(23, 30, 51, .72);
  --surface-solid: #161d33;
  --border: rgba(148, 163, 184, .14);
  --text: #e2e8f0;
  --text-sub: #94a3b8;
  --text-faint: #64748b;
  --primary: #5b8cff;
  --primary-soft: rgba(91, 140, 255, .14);
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, .5);
  --blob1: rgba(37, 99, 235, .22);
  --blob2: rgba(139, 92, 246, .16);
  --blob3: rgba(6, 182, 212, .14);
  --bar-bg: rgba(20, 27, 46, .86);
  --bar-edge: rgba(148, 163, 184, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 108px;
  transition: background .4s, color .4s;
  -webkit-font-smoothing: antialiased;
}
/* 背景光斑 */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 16s ease-in-out infinite; }
.blob.b1 { width: 480px; height: 480px; background: var(--blob1); top: -120px; left: -100px; }
.blob.b2 { width: 420px; height: 420px; background: var(--blob2); top: 20%; right: -120px; animation-delay: -5s; }
.blob.b3 { width: 380px; height: 380px; background: var(--blob3); bottom: -100px; left: 30%; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #7c3aed); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; box-shadow: 0 4px 14px rgba(22,93,255,.35); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); color: var(--text-sub); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.icon-btn:hover { color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

/* 头部主视觉 */
.head { text-align: center; margin: 52px 0 10px; }
.main-title { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -1px; background: linear-gradient(120deg, #165DFF 20%, #7c3aed 60%, #0ea5e9 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .main-title { background: linear-gradient(120deg, #7eb0ff 20%, #b39bff 60%, #67e8f9 90%); -webkit-background-clip: text; background-clip: text; }
.sub-title { font-size: 15px; color: var(--text-sub); margin: 12px 0 20px; }
.stats-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stat-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--text-sub); }
.stat-chip b { color: var(--primary); }
.stat-chip i { font-size: 12px; }

/* 搜索框 */
.search-wrap { display: flex; justify-content: center; margin: 26px 0 6px; }
.search-box { position: relative; width: min(560px, 100%); }
.search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 15px; }
.search-box input { width: 100%; padding: 15px 46px 15px 46px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(16px); font-size: 15px; color: var(--text); outline: none; box-shadow: var(--shadow); transition: all .25s; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }
.search-box .kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; background: var(--surface-solid); }
.search-meta { text-align: center; font-size: 13px; color: var(--text-sub); height: 20px; margin-bottom: 8px; }

/* 公告 */
.notice { max-width: 860px; margin: 18px auto 8px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(16px); border-radius: 16px; padding: 13px 18px; font-size: 14px; color: var(--text-sub); display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); }
.notice i { color: #f59e0b; margin-top: 2px; }

/* 分类 */
.cat-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; font-size: 17px; font-weight: 700; }
.cat-title .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #7c3aed); box-shadow: 0 0 0 4px var(--primary-soft); }
.cat-title .count { font-size: 12px; font-weight: 500; color: var(--text-faint); background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 2px 10px; }
.cat-title .cat-icon { color: var(--primary); font-size: 15px; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; align-items: center; gap: 12px; background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; text-decoration: none; color: var(--text); cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(22, 93, 255, .35); }
.card .icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); background: var(--primary-soft); overflow: hidden; }
.card .icon .icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.card .info { min-width: 0; flex: 1; }
.card .t { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .copy-btn { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px; border: none; background: var(--surface-solid); color: var(--text-faint); cursor: pointer; font-size: 11px; opacity: 0; transition: all .2s; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card:hover .copy-btn { opacity: 1; }
.card .copy-btn:hover { color: var(--primary); }
.card .copy-btn.copied { color: #16a34a; }
.card.hide { display: none; }
.cat-section.hide { display: none; }

/* 空状态 */
.empty { text-align: center; padding: 60px 0; color: var(--text-faint); }
.empty i { font-size: 40px; margin-bottom: 14px; display: block; opacity: .5; }

/* 底部固定备案条：毛玻璃小框，宽度随内容收缩，居中贴底 */
.beian-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: flex; justify-content: center; padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.beian-inner { pointer-events: auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 20px; width: fit-content; max-width: 100%; padding: 10px 24px; border-radius: 16px; background: var(--bar-bg); border: 1px solid var(--border); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 10px 30px rgba(22, 93, 255, .12), inset 0 1px 0 var(--bar-edge); font-size: 12.5px; color: var(--text-faint); line-height: 1.7; transition: background .4s, border-color .4s; }
.beian-item { position: relative; display: inline-flex; align-items: center; gap: 5px; color: var(--text-faint); text-decoration: none; white-space: nowrap; transition: color .2s; }
.beian-item i { font-size: 11px; opacity: .75; }
a.beian-item:hover { color: var(--primary); }
/* 项与项之间的细分隔线 */
.beian-item:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; width: 1px; height: 11px; transform: translateY(-50%); background: currentColor; opacity: .3; }
/* 网安备案：金色公安徽章用背景图渲染（与原站一致，源码不暴露图片链接） */
.sec-beian-link { padding-left: 20px; }
.sec-beian-link::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; background: url('/beian.png') center / 100% 100% no-repeat; }

/* 回到顶部 */
.to-top { position: fixed; right: 16px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); color: var(--text-sub); cursor: pointer; z-index: 998; opacity: 0; pointer-events: none; transition: all .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--primary); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 13.5px; opacity: 0; transition: all .3s; z-index: 2000; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  body { padding-bottom: 124px; }
  .head { margin-top: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 14px 12px; }
  .card .icon { width: 40px; height: 40px; font-size: 17px; }
  .to-top { right: 12px; bottom: 92px; width: 42px; height: 42px; }
  /* 底部备案条：手机上缩小字号与间距，允许折行 */
  .beian-bar { padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .beian-inner { gap: 2px 14px; padding: 8px 14px; border-radius: 14px; font-size: 11px; }
  .beian-item:not(:last-child)::after { right: -7px; height: 9px; }
  .beian-item i { display: none; }
  .sec-beian-link { padding-left: 17px; }
  .sec-beian-link::before { width: 13px; height: 13px; }
}
