/* =========================================================
   轻风壁纸 · 动态壁纸库
   前台样式（深色 / 液态导航 / 视频卡片）
   ========================================================= */
:root {
  --bg: #050506;
  --surface: rgba(22, 22, 26, 0.72);
  --surface-2: rgba(32, 32, 38, 0.6);
  --surface-solid: #121214;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --text-dim: #86868b;
  --text-soft: #b9b9c0;
  --accent: #e5ff00;
  --accent-dim: rgba(229, 255, 0, 0.12);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 这条必须留：站点里 .icon-btn{display:grid} / .tab-btn{display:flex} 这类规则
   优先级高于浏览器默认的 [hidden]{display:none}，元素加了 hidden 属性照样画出来
   —— 前台「后台」入口关了开关还能看见，就是栽在这。 */
[hidden] { display: none !important; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景光晕：纯 CSS，无外链图片 */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 40% at 18% 12%, rgba(229, 255, 0, 0.10), transparent 60%),
    radial-gradient(42% 38% at 82% 22%, rgba(80, 120, 255, 0.14), transparent 62%),
    radial-gradient(50% 44% at 50% 100%, rgba(150, 60, 255, 0.12), transparent 65%);
  /* 渐变本身就是柔边，不再叠一层全屏 blur(20px)：滚动时少一次全屏合成，
     低配机器和手机上掉帧会明显好转，观感几乎没差别。 */
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.24); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, video { display: block; max-width: 100%; }

/* ================= 顶部导航 ================= */
.top-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 48px); max-width: 1680px; height: var(--nav-h);
  padding: 0 14px 0 22px;
  background: rgba(16, 16, 20, 0.66);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  /* 直接过渡 width，而不是 max-width。
     max-width 从 1680 收到 420 时，前面一大段（1680→实际宽度）肉眼完全没变化，
     表现出来就是「滚了半天顶栏才动」——这才是卡顿感的来源。 */
  transition: width 0.44s cubic-bezier(0.32, 0.72, 0.25, 1), background 0.3s, box-shadow 0.3s;
  will-change: width;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 17px; font-weight: 800; letter-spacing: 1.4px;
  user-select: none; flex-shrink: 0;
}
.brand-name {
  /* 后台可改品牌名，太长时省略，别把 tab 挤跑 */
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 图标 / 名称 / 副标题都可以在后台「顶栏」里关掉 */
.brand.no-icon .brand-icon { display: none; }
.brand.no-name .brand-name { display: none; }
.brand.no-badge .brand-badge { display: none; }

.brand-icon {
  /* 尺寸 / 圆角 / 底色都可由后台「顶栏 · 图标」改，没配就用默认这套 */
  width: var(--nav-icon-size, 32px); height: var(--nav-icon-size, 32px);
  border-radius: var(--nav-icon-radius, 9px);
  background: var(--nav-icon-bg, var(--accent));
  display: grid; place-items: center; color: var(--nav-icon-ink, #050506);
  box-shadow: var(--nav-icon-shadow, 0 0 22px rgba(229, 255, 0, 0.42)), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
}
.brand:hover .brand-icon { box-shadow: 0 0 26px rgba(229, 255, 0, 0.6); }
.brand-icon svg { width: 81%; height: 81%; color: inherit; }
/* 上传了自己的图标：铺满整块，底色让位给图片 */
.brand-icon.has-img { background: transparent; box-shadow: none; }
.brand-icon.has-img svg { display: none; }
.brand-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand small, .brand-badge {
  font-size: 10px; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.4px; margin-left: 2px; padding: 3.5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 7px;
  white-space: nowrap;
}

/* 液态 Tab */
.liquid-tabs-wrap {
  position: relative; display: flex; align-items: center;
  touch-action: none; user-select: none;
  max-width: 720px;
  transition: opacity 0.28s var(--smooth), transform 0.36s cubic-bezier(0.32, 0.72, 0.25, 1), max-width 0.42s cubic-bezier(0.32, 0.72, 0.25, 1);
}
.liquid-tabs {
  position: relative; display: flex; gap: 2px;
  background: rgba(0, 0, 0, 0.35); padding: 4px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.04);
}
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px;
  background: #fff; border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.42s var(--spring);
  z-index: 1; pointer-events: none;
}
.tab-btn {
  position: relative; z-index: 2;
  padding: 8px 22px; border-radius: 100px; border: none; background: none;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: color 0.3s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  user-select: none; -webkit-user-drag: none;
}
.tab-btn.active { color: #000; }

/* 「壁纸工坊」不是视图，是个外链：长得跟 tab 一样，但不进白色胶囊指示块 ——
   左边一道竖线把它跟视图 tab 隔开，免得看成第六个页面。 */
.tab-divider {
  width: 1px; height: 16px; align-self: center; flex: 0 0 auto;
  margin: 0 6px; border-radius: 1px;
  background: rgba(255, 255, 255, 0.26);
}
.tab-link {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: color 0.24s, background 0.24s;
}
.tab-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* 菜单项前的图标（后台「顶栏」里一项一项挑的）。图标跟着文字一起缩，
   手机窄屏藏起来，光留文字更省地方。 */
.tab-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.78;
  transition: opacity 0.24s;
}
.tab-ico svg { width: 15px; height: 15px; display: block; }
.tab-ico img { width: 15px; height: 15px; display: block; object-fit: contain; border-radius: 3px; }
.tab-btn.active .tab-ico { opacity: 1; }
.tab-btn:hover .tab-ico,
.tab-link:hover .tab-ico { opacity: 1; }

/* 后台「顶栏」里没勾选的菜单项：属性级隐藏，优先级压过 .tab-btn 的 display:flex */
.tab-btn[data-nav-off], .tab-link[data-nav-off], .tab-divider[data-nav-off] { display: none !important; }

/* 滚动中：顶栏收成只剩品牌、菜单横滑藏起来（这一段受后台「滚动特效」开关控制）。
   底部的 .floating-toolbar 有自己的 bar-away，各走各的，互不牵连。
   滚动期间毛玻璃降到 10px —— 28px 的 backdrop-filter 每帧重算会掉帧，
   停下来 200ms 后自动恢复原样。 */
@media (min-width: 861px) {
  body.nav-collapsed .top-nav { width: 420px; }
  body.nav-collapsed .liquid-tabs-wrap {
    max-width: 0; opacity: 0; overflow: hidden;
    transform: translateX(28px); pointer-events: none;
  }
  body.nav-collapsed .nav-count { opacity: 0; max-width: 0; padding: 0; overflow: hidden; }
  /* 缩到 420px 里再挂个副标题，品牌名就被挤成「轻…」了，收起来时让它让位 */
  body.nav-collapsed .brand-badge { display: none; }

  /* 底部悬浮工具栏：滚起来沉下去，停手再浮回来。
     这条一直生效 —— 后台关掉「滚动特效」只让顶栏站着不动，工具栏照收不误。 */
  body.bar-away .floating-toolbar {
    transform: translate(-50%, calc(100% + 40px));
    opacity: 0; pointer-events: none;
  }
}

body.nav-scrolling .top-nav {
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  background: rgba(16, 16, 20, 0.84);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: 0.25s var(--smooth);
}
.icon-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-count {
  font-size: 12px; color: var(--text-dim); padding: 0 6px;
  font-variant-numeric: tabular-nums;
  max-width: 140px; overflow: hidden; white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.22s var(--smooth), max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1), padding 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-count b { color: var(--text); font-weight: 700; }

/* ================= 页面容器 ================= */
.page-container { position: relative; width: 100%; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.45s var(--smooth) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.gallery-container {
  max-width: 1680px; margin: 0 auto;
  padding: 108px 24px 170px;
}

/* 页头 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: baseline; gap: 12px;
}
.page-head h1 span {
  font-size: 13px; font-weight: 500; color: var(--text-dim); letter-spacing: 0;
}
.page-head .sub { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }
/* 左边这列要能撑开：标签条靠它拿剩余宽度，不然只有「内容那么宽」，
   标签一多就被裁在半截（滚动条给了也看不见后面还有） */
/* basis 必须用 0% 而不是 auto：auto 会按内容（标签条很长）撑满整行，
   配合 flex-wrap:wrap 把右侧统计块挤到下一行最左边去了。 */
.page-head > div:first-child { flex: 1 1 0%; min-width: 0; }
/* 统计块固定占右上角，顶部与标题齐平，不参与换行 */
.head-stats { display: flex; gap: 22px; flex: 0 0 auto; align-self: flex-start; }
.head-stat b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.head-stat span { font-size: 11.5px; color: var(--text-dim); }

/* 壁纸类型筛选：和分类一起放在「筛选」面板里 */
.gallery-layout { display: block; }
.gallery-layout .page-head { margin-bottom: 22px; }

.type-switch {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 14px;
}
.type-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: rgba(255,255,255,.045);
  font-size: 12.5px; font-weight: 650; color: var(--text-soft);
  transition: .18s var(--ease, ease);
}
.type-switch button i {
  font-style: normal; font-size: 11px; font-weight: 700;
  opacity: .5; font-variant-numeric: tabular-nums;
}
.type-switch button:hover { color: var(--text); border-color: var(--line-2, rgba(255,255,255,.22)); background: rgba(255,255,255,.09); }
.type-switch button.on {
  background: var(--accent, #e5ff00); color: #111;
  border-color: transparent;
}
.type-switch button.on i { opacity: .62; }

/* ================= 分类下拉（工具栏内，替代原来的分类条） ================= */
.cat-drop { position: relative; flex-shrink: 0; }
.cat-btn { position: relative; }
.cat-btn .cat-caret { transition: transform 0.26s var(--spring); opacity: 0.7; }
.cat-drop.open .cat-btn { background: rgba(229,255,0,0.13); border-color: rgba(229,255,0,0.42); color: var(--accent); }
.cat-drop.open .cat-caret { transform: rotate(180deg); }
.cat-btn.has-filter { border-color: rgba(229,255,0,0.5); color: var(--accent); }

.cat-panel {
  /* 独立 fixed 定位：不放进工具栏，避免被 transform + overflow 裁剪 */
  position: fixed; z-index: 95;
  bottom: 94px; left: 50%;
  width: 434px; max-width: calc(100vw - 24px);
  max-height: min(74vh, 610px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px;
  background: rgba(18, 18, 23, 0.97);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78), 0 1px 0 rgba(255,255,255,0.06) inset;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 0.24s var(--smooth), transform 0.3s var(--spring), visibility 0.24s;
}
.cat-panel.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.cat-panel::-webkit-scrollbar { width: 8px; }
.cat-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.cat-panel::-webkit-scrollbar-track { background: transparent; }

.cat-sec + .cat-sec { margin-top: 4px; }
.cat-sec-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--text-dim); opacity: .8;
  margin: 0 2px 8px;
}

.cat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 12px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cat-panel-head span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-soft); }
.cat-panel-head em { font-style: normal; color: var(--text-dim); font-weight: 500; margin-left: 7px; }
.cat-reset {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 100px; cursor: pointer; transition: 0.18s;
}
.cat-reset:hover { background: rgba(255,255,255,0.13); color: #fff; border-color: var(--border-strong); }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 11px 12px; min-width: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid transparent; border-radius: 13px;
  color: var(--text-soft); cursor: pointer; text-align: left;
  transition: 0.18s var(--smooth);
  font: inherit;
}
.cat-item:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); transform: translateY(-1px); }
.cat-item:active { transform: translateY(0) scale(0.985); }
.cat-item .cat-name {
  font-size: 13px; font-weight: 650; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-item .cat-num { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cat-item.on { background: var(--accent); border-color: var(--accent); color: #08080a; }
.cat-item.on .cat-num { color: rgba(0, 0, 0, 0.55); }
.cat-item.all { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.cat-item.all .cat-num { margin-left: auto; }

/* ================= 视频网格 ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  min-width: 0;
  gap: 22px;
  margin-top: 20px;
}

.vcard {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #0d0d10;
  aspect-ratio: 16 / 9;
  outline: 1px solid var(--border);
  outline-offset: -1px;
  transition: transform 0.5s var(--smooth), outline-color 0.3s, box-shadow 0.42s var(--smooth);
  /* 每张卡独立透视中心：perspective() 写在 transform 里，等价于父级 perspective */
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  transform-origin: center center;
  will-change: transform;
  contain: layout paint;
  backface-visibility: hidden;
}
/* 鼠标在卡上时取消缓动，跟手才不"粘" */
.vcard.tilting {
  transition: transform 0.12s linear, outline-color 0.3s, box-shadow 0.3s;
}
.vcard:hover {
  outline-color: var(--border-strong);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  z-index: 3;
}
/* 跟随鼠标的高光，立体感主要靠它 */
.vcard::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: 0;
  transition: opacity 0.35s var(--smooth);
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05) 42%,
    transparent 68%
  );
}
.vcard.tilting::after { opacity: 1; }

/* 封面 */
/* inset 用负数：让画布比卡片大 4px，任何 3D 变换/圆角裁剪的亚像素误差都被盖住，
   边缘不会再露出一圈卡片底色（这是圆角 + transform 在 Chrome 里的老毛病） */
.vcard-media { position: absolute; inset: -4px; overflow: hidden; }
.vcard-media img,
.vcard-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s var(--smooth), transform 0.55s var(--smooth);
  transform-origin: center center;
}
/* 放大交给 .vcard-media 容器（悬浮时统一 1.24 倍），这里不再各自缩放，
   否则 img 1.06 × 容器 1.24 = 1.31，画质掉得厉害，视频和图片的观感还对不上 */
.vcard-media img { transform: none; }
/* 卡片正中不允许出现任何播放图标 / 遮罩层 */
.vcard-media::before,
.vcard-media::after { display: none !important; content: none !important; }
.vcard.is-playing .vcard-media img { opacity: 0; }
.vcard-media video { position: absolute; inset: 0; opacity: 0; }
.vcard.is-playing .vcard-media video { opacity: 1; }
.vcard.tilting .vcard-media img,
.vcard.tilting .vcard-media video { transition: transform 0.12s linear, opacity 0.4s; }

/* 无封面降级 */
.vcard-media .vcard-live {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block;
  pointer-events: none; background: #000;
  animation: liveIn 0.4s var(--smooth) both;
}
@keyframes liveIn { from { opacity: 0; } to { opacity: 1; } }

.vcard-media .fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #17171c, #0a0a0d 60%, #14141a);
}

/* 角标 */
.vcard-badges {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px; z-index: 3;
  pointer-events: none; overflow: hidden; flex-wrap: nowrap;
  transition: opacity 0.2s ease;
}
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(0,0,0,0.55); color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; flex: none;
}
.badge.hd { color: var(--accent); border-color: rgba(229,255,0,0.35); background: rgba(229,255,0,0.14); }
.badge.hd.std { color: var(--text-soft); border-color: var(--border-strong); background: rgba(10,10,12,0.6); }
.badge.src { margin-left: auto; color: var(--text-soft); }
/* 三种类型用颜色区分：动态=荧光绿 / 静态=蓝 / 互动=紫 */
.badge.type.video { color: var(--accent); border-color: rgba(229,255,0,.35); background: rgba(229,255,0,.14); }
.badge.type.still { color: #7cc6ff; border-color: rgba(124,198,255,.35); background: rgba(124,198,255,.14); }
.badge.type.html { color: #c9a3ff; border-color: rgba(201,163,255,.38); background: rgba(201,163,255,.15); }

/* 静态壁纸：整张图就是壁纸，不需要播放三角和加载转圈 */
.vcard-media[data-type="still"] img { transform: scale(1); }
.vcard[data-type="still"] .vcard-media img { transition: transform .55s var(--smooth); }
.vcard[data-type="still"] .vcard-loader { display: none; }

/* 详情：静态图 / 互动 html
   设备预览模拟的是「壁纸铺在屏幕上」，所以静态图、GIF 封面和视频一样按 cover 铺满，
   不按比例留黑边。以前这里是 contain，16:9 的 GIF 放进 21:9 带鱼屏会左右两条黑边。 */
.screen-container #detailStill {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: #000;
}
.screen-container #detailHtml { width: 100%; height: 100%; border: 0; background: #000; }
.screen-container [hidden] { display: none !important; }

/* 底部信息 */
.vcard-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.vcard-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  overflow-wrap: anywhere;
  color: #fff; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.vcard-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,0.66);
  font-variant-numeric: tabular-nums;
}
.vcard-meta span { display: flex; align-items: center; gap: 4px; }
.vcard-meta svg { width: 12px; height: 12px; }
/* 悬浮时让位给居中信息框：底部标题行和左上角标一起淡出 */
.vcard:hover .vcard-foot,
.vcard:hover .vcard-badges { opacity: 0; }

/* 进度/加载 */
.vcard-loader {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
}
/* 慢 0.55s 才露头：秒开时不闪一下 */
.vcard.is-loading .vcard-loader { animation: loaderIn 0.3s 0.55s forwards; }
@keyframes loaderIn { to { opacity: 1; } }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  box-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.25);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton {
  aspect-ratio: 16/9; border-radius: var(--radius-md);
  background: linear-gradient(100deg, #101014 30%, #191920 50%, #101014 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
  outline: 1px solid var(--border); outline-offset: -1px;
}
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -60% 0; } }

/* 空状态 */
.empty {
  grid-column: 1 / -1;
  padding: 90px 20px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.empty svg { width: 44px; height: 44px; color: var(--text-dim); margin: 0 auto 16px; opacity: 0.6; }
.empty h3 { font-size: 17px; margin-bottom: 8px; }
.empty p { font-size: 13.5px; color: var(--text-dim); }

/* 底部加载 */
.sentinel { height: 40px; }
.load-more {
  display: flex; justify-content: center; padding: 30px 0 0;
}

/* ================= 悬浮工具栏 ================= */
.floating-toolbar {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  transition: transform 0.44s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s var(--smooth), background 0.3s;
  display: flex; align-items: center; gap: 10px;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.62);
  max-width: calc(100% - 32px);
}
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px; padding: 9px 15px;
  transition: 0.25s var(--smooth);
  border: 1px solid transparent;
}
.search-box:focus-within { border-color: rgba(229,255,0,0.4); background: rgba(255,255,255,0.09); }
.search-box svg { width: 15px; height: 15px; color: var(--text-dim); flex-shrink: 0; }
.search-box input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; width: 190px;
}
.search-box input::placeholder { color: var(--text-dim); font-size: 13.5px; }
.search-clear {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; display: none; padding: 0; line-height: 1;
  font-size: 16px;
}
.search-box.has-value .search-clear { display: block; }

.tool-btn {
  padding: 9px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: 0.22s var(--smooth);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.tool-btn:hover { background: rgba(255,255,255,0.12); }
.tool-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.tool-btn svg { width: 12px; height: 12px; }
.tool-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* 排序下拉 */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 150px; padding: 6px;
  background: rgba(22, 22, 28, 0.96);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden;
  transition: 0.24s var(--smooth);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 12px; border: none; background: none;
  color: var(--text-soft); font-size: 13px; border-radius: 10px;
  cursor: pointer; transition: 0.18s;
}
.dropdown-menu button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dropdown-menu button.on { color: var(--accent); font-weight: 700; }

/* ================= 详情弹窗 ================= */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity 0.36s var(--smooth);
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(24px);
}
.modal-content {
  position: relative; width: 100%; max-width: 1320px;
  height: 86vh; display: flex; gap: 26px; padding: 0 24px;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.46s var(--spring);
}
.modal.open .modal-content { transform: scale(1) translateY(0); }

.preview-area {
  flex: 1.45; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; min-width: 0;
}
.device-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.device-model { display: flex; flex-direction: column; align-items: center; transition: all 0.44s var(--spring); }

.screen-container {
  width: 100%; background: #000; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.screen-container video,
.screen-container img { width: 100%; height: 100%; object-fit: cover; background: #000; }

.device-model.desktop { width: 100%; max-width: 740px; }
.device-model.desktop .screen-container {
  aspect-ratio: 16/9; border-radius: 12px; padding: 8px; background: #101012;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}
.device-model.desktop .screen-container > * { border-radius: 6px; }
.device-model.desktop .stand-stem {
  width: 110px; height: 34px; background: linear-gradient(180deg, #222226, #101012);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0% 100%); margin-top: -1px;
}
.device-model.desktop .stand-base { width: 220px; height: 10px; background: #18181c; border-radius: 10px 10px 0 0; }
.device-model.desktop .keyboard-deck { display: none; }

.device-model.laptop { width: 100%; max-width: 700px; transform: scale(0.94); }
.device-model.laptop .screen-container {
  aspect-ratio: 16/10; border-radius: 12px 12px 0 0; padding: 9px; background: #151517;
  border: 1px solid rgba(255,255,255,0.1); border-bottom: none; z-index: 2;
}
.device-model.laptop .screen-container > * { border-radius: 4px; }
.device-model.laptop .stand-stem, .device-model.laptop .stand-base { display: none; }
.device-model.laptop .keyboard-deck {
  display: block; width: 108%; height: 20px;
  background: linear-gradient(180deg, #232327, #101012);
  border-radius: 0 0 14px 14px; margin-top: -1px; z-index: 1;
  box-shadow: 0 12px 26px rgba(0,0,0,0.7);
}

.device-model.tablet { width: 100%; max-width: 470px; }
.device-model.tablet .screen-container {
  aspect-ratio: 4/3; border-radius: 22px; padding: 13px; background: #0e0e10;
  border: 2px solid #2c2c32; box-shadow: 0 22px 54px rgba(0,0,0,0.66);
}
.device-model.tablet .screen-container > * { border-radius: 11px; }
.device-model.tablet .stand-stem, .device-model.tablet .stand-base, .device-model.tablet .keyboard-deck { display: none; }

.device-model.phone { width: 100%; max-width: 268px; }
.device-model.phone .screen-container {
  aspect-ratio: 9/19.5; border-radius: 32px; padding: 7px; background: #0c0c0e;
  border: 2px solid #33333a; box-shadow: 0 26px 60px rgba(0,0,0,0.7);
}
.device-model.phone .screen-container > * { border-radius: 26px; }
.device-model.phone .stand-stem, .device-model.phone .stand-base, .device-model.phone .keyboard-deck { display: none; }

.bottom-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.monitor-label { color: var(--text-dim); font-size: 12.5px; text-align: center; }
.device-switcher {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 5px; border-radius: 100px;
  backdrop-filter: blur(10px);
}
.device-btn {
  padding: 7px 16px; border-radius: 100px; border: none; background: transparent;
  color: var(--text-dim); font-size: 12.5px; cursor: pointer;
  transition: all 0.28s var(--spring);
  display: flex; align-items: center; gap: 5px;
}
.device-btn svg { width: 13px; height: 13px; }
.device-btn.active { background: rgba(255,255,255,0.16); color: var(--text); }

.detail-panel {
  flex: 1; min-width: 320px; max-width: 420px;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.close-btn {
  position: absolute; top: 14px; right: 26px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: var(--text);
  cursor: pointer; display: grid; place-items: center; transition: 0.3s;
}
.close-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.close-btn svg { width: 18px; height: 18px; }

.detail-title { font-size: 21px; font-weight: 800; line-height: 1.35; margin: 6px 0 10px; letter-spacing: -0.3px; }
/* 素材来源：标题下面一行小字，不抢视线，但一眼能看出这张是哪来的 */
.detail-src {
  display: inline-flex; align-items: center; gap: 5px;
  margin: -4px 0 12px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 11.5px; color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.detail-src::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
.detail-src[hidden] { display: none; }

/* 「工具」按钮的两层开关：
   1) 后台关掉「工具」板块 → nav.js 给它 hidden + inline display:none，这里防样式盖掉
   2) 当前这张是互动 HTML → detail.js 标 data-canedit=0，工坊打不开 */
.btn-clip[hidden] { display: none !important; }
.btn-clip[data-canedit="0"] { display: none !important; }

/* 首页「已筛选」提示条：从详情页点标签/分类跳过来时，让人知道现在看的是子集 */
.head-tools {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 9px;
  margin-top: 12px; min-width: 0;
}
.head-tools .flt-chips { margin-top: 0; flex: 0 0 auto; flex-wrap: nowrap; }
.head-tools .tool-btn { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 999px; }

/* ---------------- 页头标签条 ----------------
   分类按钮右边排一条标签，只列「当前设备档下真的有壁纸」的那些；
   一行到底，放不下的横滑（滚轮 / 触屏 / 拖），不再换行把页头撑高。 */
.tag-strip {
  display: flex; align-items: center; gap: 7px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  padding: 2px 1px;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.tag-strip::-webkit-scrollbar { display: none; }
.tag-strip[hidden] { display: none; }
.tag-strip .tag-lbl {
  flex: 0 0 auto; font-size: 11.5px; color: var(--text-dim);
  user-select: none; padding-right: 1px;
}
.tag-strip .tag-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-family: inherit; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.tag-strip .tag-pill:hover { background: rgba(229, 255, 0, .10); border-color: rgba(229, 255, 0, .34); color: var(--text); }
.tag-strip .tag-pill i { font-style: normal; font-size: 10.5px; opacity: .45; font-variant-numeric: tabular-nums; }
.tag-strip .tag-pill.on { background: rgba(229, 255, 0, .14); border-color: rgba(229, 255, 0, .45); color: var(--accent); }
.tag-strip .tag-pill.on i { opacity: .7; }
.flt-chips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 12px;
}
.flt-chips[hidden] { display: none; }
.flt-chips .lbl { font-size: 11.5px; color: var(--text-dim); margin-right: 2px; }
.flt-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: var(--text); font-family: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.flt-chip:hover { background: rgba(229,255,0,.10); border-color: rgba(229,255,0,.34); }
.flt-chip i { font-style: normal; opacity: .5; font-size: 13px; line-height: 1; }
.flt-chip:hover i { opacity: 1; }
.flt-chip.clear { color: var(--text-dim); background: transparent; }

/* ---------------- 详情页搜索层 ----------------
   一整块模糊做底，中间只留一个搜索框：不加边框装饰，靠模糊和阴影撑质感。 */
.qs-mask {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; justify-content: center;
  padding: 16vh 24px 24px;
  background: rgba(6, 6, 8, 0.55);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  opacity: 0; transition: opacity .18s ease;
}
.qs-mask.on { opacity: 1; }
.qs-mask[hidden] { display: none; }
.qs-sheet {
  width: 100%; max-width: 620px; height: fit-content;
  transform: translateY(-10px) scale(.985);
  transition: transform .24s cubic-bezier(.34, 1.4, .64, 1);
}
.qs-mask.on .qs-sheet { transform: none; }
.qs-field {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 8px 0 20px;
  border-radius: 18px;
  background: rgba(22, 23, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.06);
}
.qs-field > svg { flex: 0 0 auto; color: var(--text-dim); }
.qs-field input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--text); font-size: 17px; font-family: inherit; letter-spacing: .2px;
}
.qs-field input::placeholder { color: rgba(255,255,255,.32); }
.qs-field button {
  flex: 0 0 auto; height: 44px; padding: 0 20px; margin-right: 2px;
  border: 0; border-radius: 13px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; font-family: inherit;
  background: var(--accent); color: #111;
  transition: filter .15s, transform .12s;
}
.qs-field button:hover { filter: brightness(1.08); }
.qs-field button:active { transform: scale(.97); }
.qs-tips {
  margin-top: 14px; text-align: center;
  font-size: 12px; color: rgba(255, 255, 255, .34); letter-spacing: .3px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  font-size: 11.5px; font-weight: 500;
  padding: 4px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.tag.accent { background: var(--accent-dim); border-color: rgba(229,255,0,0.28); color: var(--accent); }
/* 标签现在是链接：去掉下划线，hover 给点反馈 */
a.tag { text-decoration: none; display: inline-block; transition: background .15s, border-color .15s, color .15s; }
a.tag:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); color: var(--text); }
a.tag.accent:hover { background: rgba(229,255,0,0.18); color: var(--accent); }

/* 画质说明条：明确告诉用户下载的是原片还是预览 */
.quality-row {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px; padding: 11px 14px;
  background: rgba(229,255,0,0.07);
  border: 1px solid rgba(229,255,0,0.2);
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--text-soft);
  line-height: 1.45;
}
.q-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 100px;
  background: var(--accent); color: #08080a;
}
.quality-row.fallback { background: rgba(255,255,255,0.04); border-color: var(--border); }
.quality-row.fallback .q-badge { background: rgba(255,255,255,0.16); color: var(--text-soft); }
.q-text { min-width: 0; flex: 1; overflow-wrap: break-word; }
.q-retry {
  display: block; margin: 8px 0 14px auto;
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: 0.2s var(--smooth); white-space: nowrap;
}
.q-retry:hover { background: rgba(229, 255, 0, 0.16); border-color: rgba(229, 255, 0, 0.45); }
.q-retry:disabled { opacity: 0.55; cursor: default; }
.q-text .dim { display: block; color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.q-text b { color: var(--text); font-weight: 700; white-space: nowrap; }

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 20px; padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.info-item { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-dim); }
.info-item b { font-size: 13.5px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.author-card {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4a6cff);
  display: grid; place-items: center; color: #000;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.author-info h4 { font-size: 13.5px; margin-bottom: 3px; }
.author-info p { font-size: 11.5px; color: var(--text-dim); }
.author-card .src-link {
  margin-left: auto; font-size: 11.5px; color: var(--accent);
  border: 1px solid rgba(229,255,0,0.3); border-radius: 100px;
  padding: 5px 11px; white-space: nowrap; transition: 0.2s;
}
.author-card .src-link:hover { background: var(--accent); color: #000; }

.action-row { display: flex; gap: 10px; margin-bottom: 14px; }
.btn-clip {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 16px; height: 44px; border-radius: 12px;
  background: rgba(229,255,0,0.1); border: 1px solid rgba(229,255,0,0.32);
  color: var(--accent); font-size: 13.5px; font-weight: 650;
  transition: 0.2s var(--smooth); flex: none;
}
.btn-clip:hover { background: rgba(229,255,0,0.18); border-color: rgba(229,255,0,0.55); transform: translateY(-1px); }
.btn-download {
  flex: 1; padding: 14px; border-radius: 100px;
  background: #fff; color: #000; border: none;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.26s var(--smooth);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,255,255,0.18); }
.btn-download svg { width: 16px; height: 16px; }
.btn-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text);
  cursor: pointer; transition: 0.26s var(--smooth); flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.btn-icon svg { width: 19px; height: 19px; }
.btn-icon.on { color: var(--accent); border-color: rgba(229,255,0,0.4); background: var(--accent-dim); }

.hint {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-md);
  background: rgba(229,255,0,0.06);
  border: 1px solid rgba(229,255,0,0.16);
  font-size: 11.5px; line-height: 1.6; color: var(--text-soft);
}
.hint b { color: var(--accent); }


/* 主色调条 */
.colorbar-section { margin-bottom: 18px; }
.colorbar-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; }
.colorbar-head span:last-child { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.colorbar { display: flex; height: 8px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.08); }
.colorbar i { height: 100%; display: block; transition: width .5s var(--smooth); box-shadow: inset -1px 0 0 rgba(0,0,0,.35); }

/* 同类推荐 */
.related { margin-top: 4px; }
.related-title { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.related-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.related-item {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  background: #101014; cursor: pointer; outline: 1px solid var(--border); outline-offset: -1px;
  transition: 0.24s var(--smooth);
}
.related-item:hover { outline-color: var(--border-strong); transform: translateY(-2px); }
.related-item img { width: 100%; height: 100%; object-fit: cover; }
.related-item .ri-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px;
  font-size: 10.5px; line-height: 1.3; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-empty { font-size: 12px; color: var(--text-dim); padding: 10px 0; }

/* 手机壁纸预览页 */
.mobile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 20px; }
.mobile-grid .vcard { aspect-ratio: 9 / 16; }
/* 竖屏卡只有 ~170px 宽：角标缩一档、去掉「竖屏 9:16」（卡片本身已经是竖的），
   否则三个角标挤不下，末尾会被裁掉 */
.mobile-grid .vcard-badges { gap: 4px; overflow: hidden; }
.mobile-grid .badge { font-size: 9.5px; padding: 3px 6px; letter-spacing: 0.2px; }
.mobile-grid .vcard-badges .badge:nth-child(2) { display: none; }

/* ================= Toast ================= */
.toast {
  position: fixed; top: 92px; left: 50%;
  transform: translate(-50%, -14px);
  background: #fff; color: #000;
  padding: 11px 22px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: 0.4s var(--spring);
  z-index: 3000;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .brand small, .brand-badge { display: none; }
  .tab-btn { padding: 8px 15px; font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}

@media (max-width: 1024px) {
  .modal-content {
    flex-direction: column; height: 94vh; gap: 14px;
    overflow-y: auto; padding: 16px 16px 24px;
  }
  .preview-area { flex: none; padding: 6px 0; }
  .device-wrapper { min-height: 220px; }
  .detail-panel { flex: none; max-width: none; min-width: 0; padding: 22px; }
  .close-btn { position: fixed; top: 18px; right: 18px; background: rgba(0,0,0,0.75); }
  .device-model.desktop { max-width: 100%; }
}

@media (max-width: 860px) {
  .top-nav {
    flex-wrap: wrap; height: auto; padding: 8px 10px 8px 16px; gap: 8px;
    width: calc(100% - 24px); top: 10px; border-radius: 26px;
  }
  .brand { font-size: 15px; gap: 8px; order: 1; }
  .brand-icon { width: 26px; height: 26px; }
  .nav-actions { order: 2; margin-left: auto; }
  .liquid-tabs-wrap { order: 3; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .liquid-tabs-wrap::-webkit-scrollbar { display: none; }
  /* 五个 tab + 「壁纸工坊」在手机上均分整行，放不下就整条横滑 */
  .liquid-tabs { width: 100%; min-width: max-content; flex-wrap: nowrap; }
  .tab-btn { flex: 1 1 0; justify-content: center; padding: 7px 6px; font-size: 12px; gap: 4px; }
  .tab-link { flex: 1 1 0; justify-content: center; padding: 7px 6px; font-size: 12px; }
  .tab-divider { margin: 0 2px; height: 13px; }
  /* 手机上标签条自己占一行（仍然是一行横滑），别把分类按钮挤没 */
  .head-tools { flex-wrap: wrap; }
  .head-tools .flt-chips { flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
  .head-tools .flt-chips::-webkit-scrollbar { display: none; }
  .tag-strip { flex: 1 1 100%; }
  .nav-count { display: none; }
  .gallery-container { padding: 132px 14px 150px; }
  .page-head h1 { font-size: 23px; }
  .head-stats { gap: 16px; }
  .head-stat b { font-size: 15px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; min-width: 0; }
  .floating-toolbar { bottom: 14px; width: calc(100% - 20px); padding: 7px 9px; gap: 7px; overflow-x: auto; border-radius: 26px; }
  .search-box { flex: 1; min-width: 0; padding: 8px 12px; }
  .search-box input { width: 100%; font-size: 16px; }
  .tool-btn { padding: 8px 12px; font-size: 12px; }
  .tool-sep { display: none; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-grid .vcard-title { font-size: 11.5px; }
  .gallery-grid .vcard-meta { display: none; }
  .gallery-grid .vcard-foot { padding: 24px 9px 9px; }
  .badge { font-size: 9.5px; padding: 3px 6px; }
  .badge.src { display: none; }
  .page-head { margin-bottom: 14px; }
  .head-stats { display: none; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 自动播放开关 ---------------- */
.toggle-btn { color: var(--text-dim); }
.toggle-btn.on {
  background: rgba(229, 255, 0, 0.13);
  border-color: rgba(229, 255, 0, 0.4);
  color: var(--accent);
}
.toggle-btn.on svg { filter: drop-shadow(0 0 5px rgba(229, 255, 0, 0.7)); }
.toggle-btn.on:hover { background: rgba(229, 255, 0, 0.2); }
@media (max-width: 720px) {
  #autoPlayLabel { display: none; }
  .toggle-btn { padding: 9px 11px; }
  /* 手机底部工具条太挤：搜索框吃掉剩余宽度，「来一张」与顶部骰子重复，藏掉 */
  .floating-toolbar { gap: 6px; padding: 7px 8px; }
  .floating-toolbar .tool-sep { display: none; }
  .floating-toolbar #searchBox { flex: 1 1 auto; min-width: 0; }
  .floating-toolbar #searchBox input { width: 100%; }
  .floating-toolbar #btnSurprise { display: none; }
  .floating-toolbar .tool-btn { padding: 9px 11px; font-size: 12px; }

  /* 分类按钮：手机上只显示图标 + 短名 */
  .cat-btn { padding: 9px 10px; gap: 5px; }
  .cat-btn #catLabel { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 面板改成贴底整宽，避免溢出屏幕 */
  .cat-panel {
    left: 10px; right: 10px; bottom: 74px;
    width: auto; max-width: none; padding: 12px;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom center;
  }
  .cat-panel.open { transform: translateY(0) scale(1); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cat-item { padding: 10px 11px; }
}

/* ================= 首页精选大图 ================= */
.hero-rec { margin: 0 0 26px; }

/* 大图占左边一列、竖向跨两行；右边永远两行，每行 3 / 2 / 1 个小图 */
.hero-rec-grid {
  display: grid; gap: 12px;
  grid-template-columns: 2.5fr repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  grid-auto-rows: 1fr;
  height: 360px;
}
.hero-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface-solid);
  border: 1px solid var(--border); isolation: isolate;
}
.hero-card.big { grid-row: span 2; }
.hero-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--smooth), filter 0.4s;
  filter: saturate(1.02);
}
.hero-card:hover img { transform: scale(1.045); }
.hero-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.72) 100%);
  opacity: 0.92; transition: opacity 0.3s;
}
.hero-card:hover::after { opacity: 1; }
.hero-card:hover { border-color: rgba(229,255,0,0.4); }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.hero-meta b {
  display: block; font-size: 13.5px; font-weight: 700; color: #fff;
  line-height: 1.35; text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card.big .hero-meta { padding: 16px 18px; }
.hero-card.big .hero-meta b { font-size: 19px; }
.hero-meta small {
  display: block; margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,0.62);
}
.hero-tag {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
  color: #0b0b0c; background: var(--accent); border-radius: 999px; padding: 3px 8px;
}
.hero-tag.ghost { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(8px); }
.hero-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; opacity: 0;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.28);
  transition: all 0.32s var(--spring); pointer-events: none;
}
.hero-card:hover .hero-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-card.big .hero-play { width: 66px; height: 66px; }

/* 大图上的左右切换：平时半透明，鼠标进到卡片里才亮起来 */
.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, 0.34); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); opacity: 0.28;
  transition: opacity 0.25s, background 0.25s, transform 0.25s var(--spring);
}
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-card.big:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: rgba(0, 0, 0, 0.62); transform: translateY(-50%) scale(1.06); }
.hero-count {
  position: absolute; right: 14px; top: 12px; z-index: 5;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 3px 9px;
}

/* 中屏：右边一行 2 个 → 共 4 张小图（还是两行） */
@media (max-width: 1200px) {
  .hero-rec-grid { grid-template-columns: 2.5fr repeat(2, minmax(0, 1fr)); height: 340px; }
  .hero-rec-grid > .hero-card:nth-child(n+6) { display: none; }  /* 第 5、6 张小图 */
}

/* 小屏：右边一行 1 个 → 共 2 张小图（两行竖着排） */
@media (max-width: 900px) {
  .hero-rec-grid {
    display: grid; height: 300px; gap: 10px;
    grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr;
  }
  .hero-rec-grid > .hero-card:nth-child(n+4) { display: none; }  /* 只留 2 张 */
  .hero-card.big .hero-meta b { font-size: 16px; }
  .hero-nav { width: 34px; height: 34px; opacity: 0.5; }
}

/* ================= 首页推荐：分块内容 ================= */
.home-feed > section { margin-bottom: 30px; }
.home-feed > section:last-child { margin-bottom: 8px; }

.hrow-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}
.hrow-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.hrow-head span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.hrow-more {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; color: var(--text-dim); white-space: nowrap;
  transition: color 0.2s, gap 0.2s;
}
.hrow-more:hover { color: var(--accent); gap: 6px; }

.hrow-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; scrollbar-width: none;
}
.hrow-track::-webkit-scrollbar { display: none; }
.hcard {
  flex: 0 0 216px; scroll-snap-align: start;
  display: block; min-width: 0;
}
.hcard-pic {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform 0.35s var(--smooth), border-color 0.25s;
}
.hcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--smooth); }
/* hover 只换描边 + 图片轻微放大，不做上浮：
   .hrow-track 是 overflow-x:auto，竖直方向也会被裁，
   translateY(-3px) 一浮起来上面那条绿色描边就被切掉了。 */
.hcard:hover .hcard-pic { border-color: rgba(229, 255, 0, 0.55); }
.hcard:hover .hcard-pic img { transform: scale(1.05); }
/* 只染卡片下面那行标题，别把悬浮信息框里的标题也染成荧光黄 */
.hcard:hover > b { color: var(--accent); }
.hcard-pic em {
  position: absolute; left: 8px; top: 8px; font-style: normal;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  color: #0b0b0c; background: var(--accent); border-radius: 999px; padding: 2px 7px;
}
.hcard > b {
  display: block; margin-top: 8px; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hcard small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-dim); }

/* ---- 卡片悬浮信息层（全局）----
   鼠标进卡片 → 封面/视频压暗，正中浮出「标题 / 分隔线 / 日期·下载·体积」。
   有视频的卡片照旧开播，信息框叠在视频之上（压暗更淡一点，别把画面糊死）。
   列表卡、首页大图/小图、横滑卡用的是同一套 DOM 和样式。 */
.hero-hover {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: grid; place-items: center;
  background: rgba(8, 9, 12, 0.62);
  opacity: 0; transition: opacity 0.26s ease;
}
.hcard-pic .hero-hover { border-radius: inherit; }
.vcard .hero-hover { border-radius: inherit; }
.hero-hover-box {
  display: block; min-width: 62%; max-width: 84%;
  padding: 15px 20px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center; color: #fff;
  transform: scale(0.97); transition: transform 0.32s var(--spring);
}
.hero-hover-box b {
  display: block; font-size: 14px; font-weight: 600; line-height: 1.35;
  letter-spacing: 0.2px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff;
}
.hero-hover-line {
  display: block; height: 1px; margin: 9px auto 8px; width: 72%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.78) 16%,
    rgba(255, 255, 255, 0.78) 84%, rgba(255, 255, 255, 0) 100%);
}
.hero-hover-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
}
.hero-hover-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hero-hover-meta svg { opacity: 0.8; flex: none; }
/* 所有卡片一律浮出信息框（动态/静态/互动都一样） */
.hero-card:hover .hero-hover,
.hcard:hover .hero-hover,
.vcard:hover .hero-hover { opacity: 1; }
.hero-card:hover .hero-hover-box,
.hcard:hover .hero-hover-box,
.vcard:hover .hero-hover-box { transform: scale(1); }
/* 视频正在卡片里播：压暗让到 0.34，画面还看得见 */
.hero-card.is-playing:hover .hero-hover,
.hcard.is-playing:hover .hero-hover,
.vcard.is-playing:hover .hero-hover { background: rgba(8, 9, 12, 0.34); }
/* 悬浮时底部那行标题让位给信息框 */
.hero-card:hover .hero-meta { opacity: 0; }
.hero-card .hero-meta { transition: opacity 0.2s ease; }
/* 大图那块空间大，字号跟着放大一点 */
.hero-card.big .hero-hover-box { min-width: 54%; padding: 20px 26px 17px; }
.hero-card.big .hero-hover-box b { font-size: 18px; }
.hero-card.big .hero-hover-meta { font-size: 12.5px; gap: 18px; }
/* 首页小图 / 横滑卡只有 150~216px 宽：信息框整体收一档，否则三项会换行 */
.hero-card:not(.big) .hero-hover-box,
.hcard-pic .hero-hover-box,
.vcard .hero-hover-box { min-width: 80%; max-width: 90%; padding: 9px 10px 8px; }
.hero-card:not(.big) .hero-hover-box b,
.hcard-pic .hero-hover-box b,
.vcard .hero-hover-box b { font-size: 11.5px; }
.hero-card:not(.big) .hero-hover-line,
.hcard-pic .hero-hover-line,
.vcard .hero-hover-line { margin: 5px auto 5px; width: 78%; }
.hero-card:not(.big) .hero-hover-meta,
.hcard-pic .hero-hover-meta,
.vcard .hero-hover-meta { font-size: 9.5px; gap: 7px; }
.hero-card:not(.big) .hero-hover-meta > span,
.hcard-pic .hero-hover-meta > span,
.vcard .hero-hover-meta > span { gap: 3px; }
.hero-card:not(.big) .hero-hover-meta svg,
.hcard-pic .hero-hover-meta svg,
.vcard .hero-hover-meta svg { width: 10px; height: 10px; }

/* ---- 首页推荐（大图 / 小图）/ 横滑卡也走同一个播放池 ----
   视频绝对定位盖在封面上，等首帧到了（.is-playing）再把封面淡出。
   原来这两块只有静态封面，首页就一张都不会动。 */
.hero-card > img { transition: transform 0.6s var(--smooth), filter 0.4s, opacity 0.45s linear; }
.hcard-pic > img { transition: transform 0.5s var(--smooth), opacity 0.45s linear; }
.hero-card .hd-video,
.hcard-pic .hd-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; background: #000;
  transition: opacity 0.45s linear;
}
.hero-card.is-playing > img,
.hcard.is-playing .hcard-pic > img { opacity: 0; }
.hero-card.is-playing .hd-video,
.hcard.is-playing .hd-video { opacity: 1; }
/* 视频进来后，标题条/播放键/左右箭头要压在它上面 */
.hero-card .hero-meta,
.hero-card .hero-play,
.hero-card .hero-nav,
.hero-card .hero-count { z-index: 3; }

.hcat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px;
}
.hcat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.26s var(--smooth);
}
.hcat b { font-size: 14px; font-weight: 700; }
.hcat span { font-size: 11.5px; color: var(--text-dim); }
.hcat:hover {
  border-color: rgba(229, 255, 0, 0.42); transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(229, 255, 0, 0.08), var(--surface));
}

.hcta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcta-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(229, 255, 0, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  transition: all 0.28s var(--smooth);
}
.hcta-card.phone { background: linear-gradient(135deg, rgba(120, 160, 255, 0.12), rgba(255, 255, 255, 0.02)); }
.hcta-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.hcta-card b { font-size: 16px; font-weight: 800; }
.hcta-card span { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.hcta-card i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 4px; }

@media (max-width: 900px) {
  .hcard { flex-basis: 62%; }
  .hcta { grid-template-columns: 1fr; }
  .hcat-grid { grid-template-columns: 1fr 1fr; }
  .home-feed > section { margin-bottom: 24px; }
}

/* 首页内容到底部时别被悬浮工具栏压住 */
.home-feed { padding-bottom: 26px; }

/* ================= 顶栏三段式对齐 =================
   以前是 space-between：左边品牌比右边按钮宽，中间那组 tab 就被挤得偏右，
   看着总是「歪一点」。现在左右各占一份、中间自适应，tab 才是页面正中间。 */
@media (min-width: 861px) {
  .top-nav { justify-content: flex-start; }
  .brand { flex: 1 1 0; min-width: 0; }
  .liquid-tabs-wrap { flex: 0 0 auto; }
  .nav-actions { flex: 1 1 0; justify-content: flex-end; }
}

/* 手机窄屏：六个菜单加上图标就挤不下一行了，图标让位给文字 */
@media (max-width: 520px) {
  .tab-ico { display: none; }
}

/* ================= 全站页脚 =================
   沿用顶栏那套：深色玻璃底、1px 弱边框、荧光绿只在悬停和顶边细线上点一下，
   不额外引入新色系，也不做大面积发光。 */
.site-footer {
  position: relative;
  margin-top: 42px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.62), rgba(5, 5, 6, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(520px, 68%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 255, 0, 0.5), transparent);
  pointer-events: none;
}
.sf-inner { max-width: 1680px; margin: 0 auto; padding: 42px 28px 30px; }
.sf-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.sf-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sf-logo {
  flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: #050506;
  box-shadow: 0 8px 26px rgba(229, 255, 0, 0.16);
  transition: transform 0.28s var(--spring);
}
.sf-logo:hover { transform: translateY(-3px) rotate(-4deg); }
.sf-name { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.sf-slogan { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

.sf-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.sf-col b {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--text-soft); margin-bottom: 2px;
}
.sf-col a, .sf-col .sf-top {
  font-size: 13px; line-height: 1.3; color: var(--text-dim);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left; white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}
.sf-col a:hover, .sf-col .sf-top:hover { color: var(--accent); transform: translateX(3px); }

.sf-bottom {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.7; color: var(--text-dim);
}
.sf-bottom i { font-style: normal; font-variant-numeric: tabular-nums; }
.sf-bottom-right { color: rgba(255, 255, 255, 0.3); }

/* 首页/列表页那根悬浮搜索条是 fixed 的，滚到底时给最后一行留空 */
.site-footer.has-float { padding-bottom: 86px; }

@media (max-width: 720px) {
  .site-footer { margin-top: 30px; }
  .sf-inner { padding: 32px 18px 26px; }
  .sf-top-row { gap: 26px; }
  .sf-cols { gap: 32px; }
  .sf-name { font-size: 16px; }
  .sf-bottom { margin-top: 26px; }
}
