/* ============================================================
   下图网 · 设计系统 v2（红色系 / 海报卡片 / 分区布局）
   ============================================================ */
:root {
  --brand: #ff4d4f;
  --brand-2: #ff7a45;
  --brand-deep: #e3342f;
  --brand-soft: #fff1f0;
  --gold: #f7b500;
  --gold-deep: #ff9f0a;
  --accent: #ff7a45;
  --ok: #12b76a;
  --warn: #f79009;
  --danger: #f04438;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-elev: #ffffff;
  --text: #1c1f24;
  --text-2: #5c6573;
  --text-3: #98a2b3;
  --line: #eceef2;
  --shadow-sm: 0 1px 3px rgba(28, 31, 36, 0.05), 0 2px 6px rgba(28, 31, 36, 0.05);
  --shadow-md: 0 6px 18px rgba(28, 31, 36, 0.08), 0 2px 6px rgba(28, 31, 36, 0.05);
  --shadow-lg: 0 18px 48px rgba(28, 31, 36, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --max: 1440px;
}

html[data-theme='dark'] {
  --bg: #0d0f14;
  --bg-soft: #12151b;
  --bg-elev: #171b23;
  --text: #eef1f6;
  --text-2: #99a3b3;
  --text-3: #6b7688;
  --line: #232833;
  --brand-soft: #2d1517;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans CJK SC', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
::selection { background: rgba(255, 77, 79, 0.16); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 30px; }
@media (max-width: 768px) { .wrap { padding: 0 16px; } }

/* ------------------------------- 顶栏 ------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 4px 16px rgba(28, 31, 36, 0.08); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; flex-shrink: 0; color: var(--brand-deep); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: none; box-shadow: none; }
.logo-mark svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(216, 30, 30, 0.32)); }
.logo-mark .logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

/* 后台 · 站点 LOGO 上传 */
.logo-set { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.logo-set-preview {
  width: 66px; height: 66px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: var(--bg-elev); border: 1px dashed var(--line); padding: 6px;
}
.logo-set-preview img, .logo-set-preview svg { width: 100%; height: 100%; object-fit: contain; }
.logo-set-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logo span small { display: block; font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 2.5px; line-height: 1; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 13px; border-radius: 8px; color: #303540; font-weight: 600; font-size: 14.5px;
  transition: all 0.15s ease; white-space: nowrap;
}
html[data-theme='dark'] .nav a { color: var(--text-2); }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.active { color: var(--brand); position: relative; }
.nav a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2.5px;
  background: var(--brand); border-radius: 2px;
}
.nav .more-nav { position: relative; }
.nav .nav-unit { position: relative; display: inline-flex; align-items: center; }
.nav .nav-caret { font-style: normal; font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav .nav-unit:hover .nav-caret { transform: rotate(180deg); }
.nav .more-drop {
  position: absolute; top: calc(100% + 8px); left: 0; width: 160px; padding: 8px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; z-index: 80;
}
.nav .more-nav:hover .more-drop,
.nav .nav-unit:hover .more-drop { display: flex; }

/* ===== 频道级顶栏：全部分类（文字树面板，与彩色分类卡去重） ===== */
.allcat-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px; font-weight: 800; font-size: 14.5px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 4px 12px rgba(216, 30, 30, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.allcat-btn:hover {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  transform: translateY(-1px); box-shadow: 0 6px 16px rgba(216, 30, 30, 0.34);
}
.ac-bars { display: inline-grid; gap: 3px; }
.ac-bars i { width: 13px; height: 2px; border-radius: 2px; background: #fff; }
.allcat .nav-caret { color: #fff; opacity: 0.85; }
.allcat-panel {
  position: absolute; top: calc(var(--header-h) + 6px); width: var(--ac-w, 640px); max-width: calc(100vw - 48px);
  padding: 14px 18px 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; z-index: 80;
}
.allcat-panel.hosted { display: none; }
.allcat-panel.hosted.open { display: flex; }
.ac-head {
  display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3);
  padding: 2px 4px 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px;
}
.ac-head a { color: var(--brand-deep); font-weight: 700; padding: 0; }
.ac-head a:hover { background: none; color: var(--brand); }
/* 列数由 JS 按分类数量计算写入 --ac-cols（每列 2 个分类，3 列起步，分类增多列数自动增加） */
.ac-tree { display: grid; grid-template-columns: repeat(var(--ac-cols, 2), 1fr); gap: 2px 26px; }
.ac-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; min-width: 0; }
.ac-row:hover { background: var(--brand-soft); }
.ac-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.ac-name { font-size: 14px; font-weight: 800; color: var(--text); padding: 2px 4px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ac-name svg { width: 15px; height: 15px; flex: none; }
.chip svg { width: 15px; height: 15px; flex: none; }
.sec-icon svg { width: 20px; height: 20px; }
.sug-ico svg { width: 16px; height: 16px; }
.ac-name:hover { background: none; }
.ac-kws { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ac-kws a { font-size: 11.5px; color: var(--text-3); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.ac-kws a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.ac-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 13px; grid-column: 1 / -1; }
@media (max-width: 900px) { .allcat-panel { width: calc(100vw - 32px); } .ac-tree { grid-template-columns: 1fr; } }

/* ===== 一级导航 mega 大面板（悬停显示：二级分组 + 热门子项 + 素材图） ===== */
.mega-layer { position: absolute; left: 0; right: 0; top: 100%; z-index: 75; pointer-events: none; }
.nav-mega {
  display: none; width: 920px; max-width: calc(100vw - 32px); margin: 0 auto; pointer-events: auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 60px rgba(16, 20, 30, 0.18); overflow: hidden;
}
.nav-mega.open { display: block; animation: megaIn 0.18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.nav-mega .nm-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--brand-soft), transparent 60%);
}
.nav-mega .nm-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, #ff9a8b, var(--brand)); color: #fff;
  box-shadow: 0 6px 14px rgba(229, 50, 45, 0.28);
}
.nav-mega .nm-title { font-size: 15.5px; font-weight: 800; color: var(--brand-deep); }
.nav-mega .nm-updated { margin-left: auto; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.nav-mega .nm-updated i { font-style: normal; color: var(--brand); margin-right: 3px; }
.nav-mega .nm-updated em { font-style: normal; color: var(--brand); font-size: 15px; font-weight: 800; padding: 0 2px; }

.nav-mega .nm-body { display: flex; gap: 16px; padding: 10px 22px 14px; }
.nav-mega .nm-groups { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.nav-mega .nm-group { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; align-items: start; }
.nav-mega .nm-gtitle {
  position: relative; padding: 1px 0 1px 9px; font-size: 13.5px; font-weight: 800; color: var(--text);
  white-space: nowrap; transition: color 0.15s;
}
.nav-mega .nm-gtitle::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: var(--brand);
}
.nav-mega .nm-gtitle:hover { color: var(--brand); }
.nav-mega .nm-items { display: flex; flex-wrap: wrap; gap: 3px 22px; align-content: flex-start; }
.nav-mega .nm-items a {
  font-size: 12.5px; color: var(--text-2); padding: 2px 5px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.15s;
}
.nav-mega .nm-items a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-mega .nm-empty { padding: 12px 0; }

.nav-mega .nm-thumbs { width: 132px; flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }
.nav-mega .nm-thumb {
  border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 6.2; background: var(--bg);
  border: 1px solid var(--line); display: block;
}
.nav-mega .nm-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s; }
.nav-mega .nm-thumb:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .nav-mega .nm-body { flex-direction: column; }
  .nav-mega .nm-thumbs { width: 100%; flex-direction: row; }
  .nav-mega .nm-thumb { flex: 1; }
  .nav-mega .nm-items { grid-template-columns: repeat(3, 1fr); }
}

/* 顶栏右侧：供稿 / 开通VIP / 登录 */
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.act-link { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14.5px; color: #303540; transition: color 0.15s; }
html[data-theme='dark'] .act-link { color: var(--text-2); }
.act-link:hover { color: var(--brand); }
.act-link svg { flex-shrink: 0; }
.act-link.vip { color: var(--gold-deep); }
.vip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px;
  border: 0; font-weight: 800; font-size: 14px; color: #5c3a00;
  background: linear-gradient(135deg, #ffe08a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 4px 12px rgba(247, 181, 0, 0.4); transition: all 0.16s;
}
.vip-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(247, 181, 0, 0.5); }
.login-btn {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap;
  height: 36px; padding: 0 18px; border-radius: 18px; border: 1.5px solid var(--brand);
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; transition: all 0.15s;
}
.login-btn:hover { background: var(--brand); color: #fff; }

/* 顶栏搜索（内页） */
.header-search { flex: 1; max-width: 460px; position: relative; margin-left: auto; }
.header-inner .header-search { margin-left: 0; }
.header-search input {
  width: 100%; height: 42px; padding: 0 96px 0 44px;
  border: 2px solid var(--line); border-radius: 21px; background: var(--bg-soft); color: var(--text);
  outline: none; transition: all 0.18s ease; font-size: 13.5px;
}
.header-search input:focus { border-color: var(--brand); background: var(--bg); }
.header-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: grid; place-items: center; }
.header-search .go {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 34px; border: 0; border-radius: 17px;
  background: linear-gradient(90deg, #ff7a7a, var(--brand)); color: #fff; font-size: 13.5px; font-weight: 700;
}
/* 首页不再显示顶栏搜索（与大搜索 / 素材区搜索重复） */
body.on-home .header-inner .header-search { display: none; }
body.on-home.header-fixed .header-inner { gap: 20px; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); font-weight: 600; font-size: 14px;
  transition: all 0.16s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(90deg, #ff6b6b, var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 77, 79, 0.3); }
.btn-primary:hover { border-color: transparent; filter: brightness(0.96); }
.btn-red { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #ffd66b, var(--gold-deep)); border-color: transparent; color: #5c3a00; box-shadow: 0 6px 16px rgba(247, 181, 0, 0.35); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); transition: all 0.16s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }

/* 积分胶囊（可点击，跳转个人中心·我的积分） */
a.wallet {
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
a.wallet:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(181, 71, 8, 0.18);
  color: #b54708;
}
.wallet {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 18px; background: linear-gradient(135deg, #fff6ed, #ffece0);
  border: 1px solid #ffd9c2; color: #b54708; font-weight: 700; font-size: 13px;
}
html[data-theme='dark'] .wallet { background: linear-gradient(135deg, #2a1d12, #33210f); border-color: #4a3018; color: #ffb077; }
/* 主导航钱包双胶囊：积分 + 可提现（金色祈愿风，对应抽卡模块） */
a.nav-wallet {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px;
  border-radius: 18px; background: linear-gradient(135deg, #fff8e8, #ffefcf);
  border: 1px solid #ffd75e; color: #a16207; font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.nav-wallet b { color: #d81e1e; font-weight: 800; }
a.nav-wallet.coin { border-color: #ffbc6a; }
a.nav-wallet:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(216, 30, 30, 0.16); }
a.nav-wallet.bump { transform: scale(1.1); }
/* 余额数字跳动增长：弹起 + 描金发光，配合 JS 的数字滚动 */
a.nav-wallet b { display: inline-block; will-change: transform; }
a.nav-wallet.bump b { animation: navNumPop 0.78s cubic-bezier(0.22, 1.2, 0.36, 1); }
@keyframes navNumPop {
  0% { transform: translateY(7px) scale(0.82); filter: brightness(1.9); text-shadow: 0 0 14px rgba(255, 220, 110, 0.95); }
  40% { transform: translateY(-4px) scale(1.24); filter: brightness(1.5); }
  70% { transform: translateY(1px) scale(1.04); }
  100% { transform: translateY(0) scale(1); filter: none; }
}
html[data-theme='dark'] a.nav-wallet { background: linear-gradient(135deg, #2a1d12, #33210f); border-color: #4a3018; color: #ffd75e; }
html[data-theme='dark'] a.nav-wallet b { color: #ffc76a; }
/* 首页首屏（header 未固定、深色底）下沿用祈愿胶囊配色 */
body.on-home:not(.header-fixed) .header a.nav-wallet {
  background: rgba(255, 215, 94, 0.12); border-color: rgba(255, 215, 94, 0.45); color: #ffd75e;
}
body.on-home:not(.header-fixed) .header a.nav-wallet b { color: #ffd75e; }
body.on-home:not(.header-fixed) .header a.nav-wallet.coin { border-color: rgba(255, 170, 60, 0.55); color: #ffc76a; }
body.on-home:not(.header-fixed) .header a.nav-wallet.coin b { color: #ffc76a; }
body.on-home:not(.header-fixed) .header a.nav-wallet:hover { background: rgba(255, 215, 94, 0.2); }
body.on-home[data-bg-bright="1"] .header a.nav-wallet { background: linear-gradient(135deg, #fff8e8, #ffefcf); border-color: #ffd75e; color: #a16207; }
body.on-home[data-bg-bright="1"] .header a.nav-wallet b { color: #d81e1e; }
.vip-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  background: linear-gradient(135deg, #ffd66b, #e8a33d); color: #5c3a00; font-size: 11px; font-weight: 800;
}

/* 头像 */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; cursor: pointer;
  border: 2px solid var(--bg);
}
.user-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 230px; padding: 8px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease; z-index: 70;
}
.user-menu.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head b { display: block; font-size: 14px; }
.dropdown-head span { font-size: 12px; color: var(--text-3); }
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text-2); font-weight: 500;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--text); }
/* 下拉菜单里的频道入口（首页 / 积分商城 / 赚钱中心）：当前页高亮 */
.dropdown a.cur { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.dropdown-sep { display: block; height: 1px; background: var(--line); margin: 5px 6px; }

/* --------------------------- 首页 · 精品条 + 大搜索 --------------------------- */
.hero { position: relative; overflow: hidden; padding-bottom: 6px; margin-top: calc(-1 * var(--header-h)); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(110, 231, 183, 0.35), transparent 60%),
    radial-gradient(800px 340px at 88% 10%, rgba(253, 224, 71, 0.4), transparent 62%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 163, 158, 0.25), transparent 65%),
    linear-gradient(180deg, #f2fbef 0%, #fffdf3 55%, var(--bg) 100%);
}
html[data-theme='dark'] .hero-bg {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(110, 231, 183, 0.12), transparent 60%),
    radial-gradient(800px 340px at 88% 10%, rgba(253, 224, 71, 0.1), transparent 62%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 77, 79, 0.08), transparent 65%),
    linear-gradient(180deg, #121a14 0%, #1a1712 55%, var(--bg) 100%);
}
.hero-inner { position: relative; padding: 0 0 8px; }
.hero-ribbon {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px;
  border-radius: 8px 18px 18px 8px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand-deep), #ff7a7a);
  box-shadow: 0 6px 16px rgba(227, 52, 47, 0.3);
}
.hero-ribbon i { width: 7px; height: 7px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.3); }
.hero-search-row { display: flex; justify-content: center; margin: 18px 0 14px; }
.hero-search {
  display: flex; align-items: center; width: 100%; max-width: 780px;
  background: var(--bg-elev); border-radius: 27px; padding: 8px 8px 8px 26px;
  box-shadow: 0 10px 34px rgba(28, 31, 36, 0.12); border: 2px solid transparent;
  transition: all 0.2s;
}
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 14px 40px rgba(255, 77, 79, 0.18); }
.hero-search svg { color: var(--text-3); flex-shrink: 0; }
.hero-search input { flex: 1; height: 40px; border: 0; background: transparent; outline: none; color: var(--text); font-size: 15px; padding: 0 14px; }
.hero-search .btn { height: 42px; padding: 0 34px; border-radius: 21px; font-size: 15px; }
.hot-tags { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.hot-tags .ht-first {
  padding: 4px 13px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700;
}
.hot-tags a { padding: 4px 13px; border-radius: 8px; background: rgba(28, 31, 36, 0.06); color: #414854; font-weight: 600; transition: all 0.15s; }
html[data-theme='dark'] .hot-tags a { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.hot-tags a:hover { background: var(--brand); color: #fff; }

/* 轮播 Banner */
/* 轮播：全屏通栏，高度保持不变 */
.carousel {
  position: relative; overflow: hidden; margin-top: 22px; height: 300px;
  width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; margin-top: 0;
}
@media (max-width: 768px) { .carousel { height: 200px; } }
.carousel-track { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.banner-slide {
  flex: 0 0 100%; height: 100%; position: relative; display: flex; align-items: center;
  padding: 0 max(7%, calc((100vw - var(--max)) / 2 + 30px)); overflow: hidden; color: #fff;
}
.banner-slide.s1 { background: linear-gradient(115deg, #ff512f, #f09819 60%, #ffd452); }
.banner-slide.s2 { background: linear-gradient(115deg, #4776e6, #8e54e9 60%, #c471ed); }
.banner-slide.s3 { background: linear-gradient(115deg, #11998e, #38ef7d 85%); }
.banner-slide .b-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.banner-slide .b-deco.d1 { width: 260px; height: 260px; right: -60px; top: -80px; }
.banner-slide .b-deco.d2 { width: 160px; height: 160px; right: 18%; bottom: -70px; }
.banner-slide .b-deco.d3 { width: 90px; height: 90px; right: 8%; top: 20%; }
.banner-content { position: relative; z-index: 2; max-width: 62%; }
.banner-content .b-tag {
  display: inline-flex; height: 26px; padding: 0 12px; align-items: center; border-radius: 13px;
  background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px); font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
}
.banner-content h2 { font-size: clamp(24px, 3.2vw, 40px); margin: 12px 0 10px; line-height: 1.2; letter-spacing: 1px; font-weight: 800; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.18); }
.banner-content p { font-size: 14.5px; opacity: 0.92; margin: 0 0 18px; max-width: 460px; }
.banner-content .b-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 26px; border-radius: 22px;
  background: #fff; color: var(--brand-deep); font-weight: 800; font-size: 14.5px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s;
}
.banner-content .b-cta:hover { transform: translateY(-2px); }
.banner-emoji { position: absolute; right: max(9%, calc((100vw - var(--max)) / 2 + 70px)); top: 50%; transform: translateY(-50%); font-size: 110px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.25)); }
@media (max-width: 768px) { .banner-emoji { font-size: 64px; } .banner-content { max-width: 70%; } }
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.carousel-dots button { width: 22px; height: 5px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, 0.45); transition: all 0.25s; padding: 0; }
.carousel-dots button.active { background: #fff; width: 34px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.25); color: #fff; font-size: 18px; z-index: 3;
  display: grid; place-items: center; transition: all 0.18s; backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.45); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* 数据条 */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 22px;
}
.stats-strip div { background: var(--bg-elev); padding: 18px 10px; text-align: center; }
.stats-strip b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -1px; color: var(--brand-deep); }
.stats-strip span { font-size: 12.5px; color: var(--text-3); }

/* --------------------------- 分类推广卡片（对标众图） --------------------------- */
.cat-promo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 1000px) { .cat-promo { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-promo { grid-template-columns: repeat(2, 1fr); } }
.promo-card {
  position: relative; border-radius: var(--radius); padding: 20px 18px 16px; overflow: hidden;
  min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.promo-card::after { content: ''; position: absolute; right: -22px; top: -22px; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.promo-card .p-emoji { position: absolute; right: 12px; bottom: 10px; font-size: 34px; opacity: 0.9; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.promo-card b { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.promo-card span { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.promo-card.t1 { background: linear-gradient(120deg, #ff512f, #f09819); }
.promo-card.t2 { background: linear-gradient(120deg, #4776e6, #6fb1fc); }
.promo-card.t3 { background: linear-gradient(120deg, #0ba360, #3cba92); }
.promo-card.t4 { background: linear-gradient(120deg, #b465da, #ee609c); }
.promo-card.t5 { background: linear-gradient(120deg, #f7b500, #fd8d3a); }

/* 分区 */
.section { padding: 30px 0 6px; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  background: var(--brand-soft); box-shadow: var(--shadow-sm);
}
.section-head h2 { font-size: 23px; margin: 0; letter-spacing: -0.4px; font-weight: 800; }
.section-head .sec-sub { color: var(--text-3); font-size: 13px; }
.sec-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-left: 6px; }
.sec-chips .sec-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 小类行：描边样式与排序行区分 */
.sec-row-subs .sec-chip { background: transparent; border-color: var(--line); }
.sec-row-subs .sec-chip:hover { border-color: var(--brand); }
.sec-row-subs .sec-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec-chip {
  height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px;
  background: var(--bg-soft); color: var(--text-2); font-size: 13px; font-weight: 600; border: 1px solid transparent;
  transition: all 0.15s;
}
.sec-chip:hover { color: var(--brand); background: var(--brand-soft); }
.sec-chip.active { background: var(--brand); color: #fff; }
.sec-more { margin-left: auto; color: var(--text-3); font-size: 13.5px; font-weight: 600; transition: color 0.15s; }
.sec-more:hover { color: var(--brand); }

/* 海报式卡片网格（对标众图） */
.poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .poster-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.p-card {
  position: relative; border-radius: var(--radius); background: var(--bg-elev); overflow: hidden;
  border: 1px solid var(--line); transition: all 0.2s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.p-card .p-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.p-card .p-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s ease; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-card .p-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  padding-bottom: 14px;
  background: rgba(20, 22, 26, 0.34); opacity: 0; transition: opacity 0.2s;
}
.p-card:hover .p-overlay { opacity: 1; }
.p-overlay .ov-btn {
  height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: rgba(255, 255, 255, 0.94);
  color: #1c1f24; font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
}
.p-overlay .ov-btn:hover { background: #fff; }
.p-overlay .ov-btn.red { background: var(--brand); color: #fff; }
.p-flags {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
}
.card-flag {
  position: static; height: 22px; padding: 0 9px; border-radius: 5px;
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #5c3a00;
  background: linear-gradient(135deg, #ffe08a, var(--gold)); box-shadow: 0 3px 8px rgba(247, 181, 0, 0.35);
}
.card-flag.free { background: linear-gradient(135deg, #86efac, var(--ok)); color: #054d29; box-shadow: 0 3px 8px rgba(18, 183, 106, 0.3); }
.p-card .p-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.p-card .p-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .p-count { flex-shrink: 0; font-size: 12px; color: var(--text-3); }
.p-card .p-count b { color: var(--brand); }

/* 下载热榜 */
.rank-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
@media (max-width: 860px) { .rank-wrap { grid-template-columns: 1fr; } }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background 0.15s; }
.rank-item:hover { background: var(--bg-soft); }
.rank-num { width: 26px; text-align: center; font-size: 17px; font-weight: 900; font-style: italic; color: var(--text-3); flex-shrink: 0; }
.rank-item:nth-child(-n+3) .rank-num { color: var(--brand); }
.rank-item img { width: 64px; height: 46px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); flex-shrink: 0; }
.rank-item .r-info { min-width: 0; flex: 1; }
.rank-item .r-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .r-info span { font-size: 12px; color: var(--text-3); }
.rank-item .r-down { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* 会员推广横幅 */
.vip-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 40px;
  background: linear-gradient(115deg, #2b2118, #4a3418 45%, #7a4f0f); color: #fff; display: flex; align-items: center; gap: 20px;
}
.vip-banner::before, .vip-banner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 209, 102, 0.14); }
.vip-banner::before { width: 220px; height: 220px; right: -40px; top: -80px; }
.vip-banner::after { width: 130px; height: 130px; right: 24%; bottom: -60px; }
.vip-banner h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: 1px; }
.vip-banner h3 em { font-style: normal; color: #ffd66b; }
.vip-banner p { margin: 0; font-size: 13.5px; opacity: 0.85; }
.vip-banner .vb-crown { font-size: 46px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); }
.vip-banner .btn { margin-left: auto; z-index: 2; }

/* 素材区网格：卡片高度已统一（aspect-ratio 固定），改用 grid 保证每行整齐铺满；
   原瀑布流 column-count 按列平衡填充，素材数非列数的整数倍时行内会出现空位（4/3/3 错位） */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.masonry .card { margin-bottom: 0; }
@media (max-width: 1200px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-media { position: relative; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
/* 统一缩略图尺寸：主图一律 4:3 裁切填充 */
.card-media:not(.card-duo) { display: block; aspect-ratio: 4 / 3; }
.card-media:not(.card-duo) > img { height: 100%; object-fit: contain; }
.card:hover .card-media img { transform: scale(1.04); }
.card-overlay {
  position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 34%, transparent 58%, rgba(0, 0, 0, 0.55));
  opacity: 0; transition: opacity 0.2s ease;
}
.card:hover .card-overlay { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-bottom { display: flex; gap: 6px; align-items: center; }
.tag-soft {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.9); color: #101319; font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.tag-free { background: #e7f8ef; color: #067647; }
.tag-vip { background: linear-gradient(135deg, #ffd66b, #e8a33d); color: #5c3a00; }
.card-fav {
  width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: #101319; transition: all 0.16s;
}
.card-fav:hover { transform: scale(1.1); }
.card-fav.on { color: var(--danger); }
.card-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 11px;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 悬停效果（对标中图网）：左上角浮现素材名称 + 底部升起「立即下载」 */
.card-name, .p-name {
  position: absolute; top: 0; left: 0; z-index: 4;
  max-width: calc(100% - 22px); padding: 7px 14px 7px 11px;
  border-radius: 0 0 10px 0;
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.82), rgba(10, 12, 16, 0.58));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translate(-12px, -8px);
  transition: opacity 0.18s ease, transform 0.22s ease;
  pointer-events: none;
}
.card:hover .card-name, .p-card:hover .p-name { opacity: 1; transform: translate(0, 0); }
.card-dl {
  position: absolute; left: 50%; bottom: 14px; z-index: 4;
  height: 34px; padding: 0 18px; border: 0; border-radius: 17px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
  transform: translate(-50%, 14px); opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s ease, background 0.15s;
}
.card:hover .card-dl { opacity: 1; transform: translate(-50%, 0); }
.card-dl:hover { background: #ff7875; }
/* 悬停时左上角显示名称，价格标签淡出避免遮挡 */
.card-overlay .card-top .row { transition: opacity 0.15s; }
.card:hover .card-overlay .card-top .row { opacity: 0; }
.card-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.card-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-author .mini-avatar {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.card-author span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }
.card-meta b { color: var(--brand); font-weight: 700; }

/* ============ 双层卡片：上效果图 / 下文件缩略图 ============ */
.card-duo { display: flex; flex-direction: column; }
.card-duo .cm-effect { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f4f8; }
.card-duo .cm-effect > img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.card-duo:hover .cm-effect > img { transform: scale(1.04); }
.card-duo .cm-label {
  position: absolute; left: 10px; top: 10px; z-index: 2; height: 22px; padding: 0 9px; border-radius: 11px;
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  color: #fff; background: linear-gradient(135deg, rgba(22,32,54,.78), rgba(22,32,54,.62)); backdrop-filter: blur(4px);
}
.card-duo .cm-file {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  background: var(--bg-elev); border-top: 1px solid var(--line);
}
.card-duo .cm-file > img { width: 34px; height: 34px; border-radius: 7px; object-fit: contain; background: var(--bg-soft); flex-shrink: 0; }
.card-duo .cm-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.card-duo .cm-meta b { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.card-duo .cm-meta i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.card-duo .cm-corner {
  margin-left: auto; flex-shrink: 0; font-size: 10px; font-weight: 600; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--bg-soft);
}
/* 海报卡双层结构 */
.p-card .p-media.has-duo { aspect-ratio: auto; }
.p-card .p-effect { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f4f8; }
.p-card .p-effect .cm-effect { position: static; display: block; width: 100%; height: 100%; }
.p-card .p-media.has-duo .cm-file {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: var(--bg-elev); border-top: 1px solid var(--line); position: static;
}
.p-card .p-media.has-duo .cm-file > img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.p-card .p-media.has-duo .cm-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.p-card .p-media.has-duo .cm-meta b { font-size: 11px; font-weight: 800; }
.p-card .p-media.has-duo .cm-meta i { font-style: normal; font-size: 9.5px; color: var(--text-3); }
.p-card .p-media.has-duo .cm-corner { display: none; }

/* 星级 */
.stars { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; letter-spacing: 1px; }
.stars i { font-style: normal; color: var(--line); }
.stars i.on { color: #ffb400; }

/* 筛选 tabs / chips */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 12px; gap: 2px; }
.tabs button {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 9px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: all 0.16s;
}
.tabs button.active { background: var(--bg-elev); color: var(--brand); box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text-2); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 骨架屏 / 空状态 */
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { padding: 70px 20px; text-align: center; color: var(--text-3); }
.empty svg { opacity: 0.4; margin-bottom: 14px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px 0 10px; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text-2); font-weight: 600; font-size: 13px;
}
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ------------------------------- 详情页 ------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 26px; padding: 26px 0 10px; }
@media (max-width: 1080px) { .detail { grid-template-columns: 1fr; } }
.stage {
  background: #0e1116; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  display: grid; place-items: center; min-height: 420px; border: 1px solid var(--line);
}
.stage img { max-height: 74vh; width: auto; max-width: 100%; object-fit: contain; }
.stage-zoom { position: absolute; right: 14px; bottom: 14px; }
.stage-badge { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.panel { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; }
.panel h1 { font-size: 22px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -0.5px; }
.meta-rows { display: grid; gap: 8px; margin: 14px 0 18px; font-size: 13px; color: var(--text-2); }
.meta-rows div { display: flex; gap: 10px; }
.meta-rows b { color: var(--text-3); font-weight: 500; min-width: 56px; }
.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg-soft); }
.price-line { display: flex; align-items: baseline; gap: 8px; }
.price-line .num { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -1px; }
.price-line .unit { color: var(--text-3); font-size: 13px; }
.price-line .free { font-size: 26px; font-weight: 800; color: var(--ok); }
.author-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-card .avatar { width: 44px; height: 44px; font-size: 16px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tags-row a { font-size: 12.5px; padding: 3px 10px; border-radius: 7px; background: var(--bg-soft); color: var(--text-2); }
.tags-row a:hover { background: var(--brand-soft); color: var(--brand); }
.notice { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff8ec; color: #b54708; font-size: 12.5px; border: 1px solid #ffe6bf; }
html[data-theme='dark'] .notice { background: #2a1d12; border-color: #4a3018; color: #ffb077; }

/* ------------------------------- 表单 ------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.field label span { color: var(--text-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--text); outline: none; transition: all 0.16s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.08); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 48px 20px;
  text-align: center; background: var(--bg-soft); transition: all 0.18s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-elev); box-shadow: var(--shadow-sm); color: var(--brand);
}
.dropzone b { font-size: 15px; display: block; margin-bottom: 4px; }
.dropzone span { font-size: 12.5px; color: var(--text-3); }
.preview-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.preview-box img { width: 100%; max-height: 320px; object-fit: contain; background: #0e1116; }

/* ------------------------------- 后台 ------------------------------- */
.admin-layout { display: grid; grid-template-columns: 214px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--bg-elev); border-right: 1px solid var(--line); padding: 14px 11px;
  display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; scrollbar-width: thin;
}
.admin-side .logo { padding: 4px 8px 14px; }
.side-label { font-size: 10px; color: var(--text-3); font-weight: 700; letter-spacing: 1px; padding: 12px 11px 5px; }
.side-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 9px;
  color: var(--text-2); font-weight: 500; font-size: 12.5px; transition: all 0.15s; border: 0; background: none; width: 100%; text-align: left;
}
.side-item:hover { background: var(--bg-soft); color: var(--text); }
.side-item.active { background: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(255, 77, 79, 0.3); }
.side-item .badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.side-item.active .badge { background: rgba(255, 255, 255, 0.25); }

/* 左侧菜单：拖拽排序 + 启用/停用开关 */
.side-item.nav-drag { cursor: grab; position: relative; }
.side-item.nav-drag::before {
  content: '⋮⋮'; position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-size: 11px; letter-spacing: -1px; color: var(--text-3); opacity: 0; transition: opacity 0.15s;
}
.side-item.nav-drag:hover::before { opacity: 0.75; }
.side-item.nav-drag:hover { padding-right: 60px; }
.side-item.dragging { opacity: 0.4; cursor: grabbing; }
.side-item.drop-before { box-shadow: inset 0 2px 0 var(--brand); }
.side-item.drop-after { box-shadow: inset 0 -2px 0 var(--brand); }
.side-item.active.drop-before, .side-item.active.drop-after { box-shadow: 0 6px 16px rgba(255, 77, 79, 0.3), inset 0 2px 0 #fff; }

/* 菜单启用/停用开关（常显滑动开关：绿点在右=启用，灰点在左=停用） */
.side-item .badge { margin-right: 30px; }
.nav-sw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 15px; border-radius: 999px;
  background: #3fae5a; opacity: 0.75; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.15s, background 0.15s;
}
.nav-sw::after {
  content: ''; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.nav-sw:hover { opacity: 1; }
.side-item.active .nav-sw { background: #2ea34e; }
.side-item.active .nav-sw.is-off { background: rgba(255, 255, 255, 0.45); }
.nav-sw.is-off { background: #c3c8cf; }
.nav-sw.is-off::after { transform: translateX(-11px); }

/* 已停用：删除线 + 置灰，一眼可辨 */
.side-item.nav-off { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(120, 120, 120, 0.55); text-decoration-thickness: 1.4px; }
.side-item.nav-off:hover { background: var(--bg-soft); color: var(--text-3); }
.side-item.nav-off .nav-sw { opacity: 1; }
.side-item.nav-off .nav-sw:hover { opacity: 1; }
.side-item.nav-off .badge { display: none !important; }
.side-item.nav-off.nav-drag { cursor: grab; }

/* 违规词库工具条 */
.word-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-soft); }
.admin-main { background: var(--bg-soft); min-width: 0; }
.admin-top {
  height: 64px; background: var(--bg-elev); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  position: sticky; top: 0; z-index: 40;
}
.admin-top h1 { font-size: 17px; margin: 0; letter-spacing: -0.3px; }
.admin-body { padding: 24px 26px 60px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
.kpi .k-val { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.kpi .k-sub { font-size: 12px; color: var(--text-3); }
.kpi .k-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

.panel-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-card .pc-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-card .pc-head h3 { margin: 0; font-size: 14.5px; }
.panel-card .pc-body { padding: 18px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 14px; background: var(--bg-soft); color: var(--text-3);
  font-weight: 600; font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .thumb { width: 56px; height: 42px; border-radius: 7px; object-fit: contain; background: var(--bg-soft); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.badge-ok { background: #e7f8ef; color: #067647; }
.badge-warn { background: #fff4e5; color: #b54708; }
.badge-danger { background: #fee4e2; color: #b42318; }
.badge-info { background: var(--brand-soft); color: var(--brand); }
.badge-muted { background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .badge-ok { background: #0d2a1c; color: #6ce9a6; }
html[data-theme='dark'] .badge-warn { background: #2a1d12; color: #fdb022; }
html[data-theme='dark'] .badge-danger { background: #2d1512; color: #fda29b; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .bar i {
  width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #ff7a7a, var(--brand-deep));
  min-height: 3px; transition: height 0.5s cubic-bezier(0.3, 1.2, 0.4, 1);
}
.bars .bar span { font-size: 10px; color: var(--text-3); white-space: nowrap; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 12, 16, 0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* 美观确认弹窗（TJ.confirm） */
.tj-confirm-card {
  width: 100%; max-width: 380px; background: var(--bg-elev, #fff); border-radius: 18px;
  padding: 26px 24px 20px; box-shadow: 0 18px 60px rgba(10, 12, 16, 0.28); text-align: center;
  animation: pop 0.22s cubic-bezier(0.2, 1.1, 0.4, 1);
}
.tj-confirm-icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--brand-soft, rgba(230, 140, 50, 0.12));
}
.tj-confirm-card.danger .tj-confirm-icon { background: rgba(229, 72, 77, 0.12); }
.tj-confirm-title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.tj-confirm-msg { font-size: 13.5px; line-height: 1.8; color: var(--muted, #6b7280); white-space: pre-wrap; word-break: break-word; margin-bottom: 18px; }
.tj-confirm-btns { display: flex; gap: 10px; }
.tj-confirm-btns .btn { flex: 1; height: 42px; border-radius: 12px; font-size: 14.5px; }
.tj-confirm-card.danger [data-c-ok] { background: var(--danger, #e5484d); border-color: var(--danger, #e5484d); }
.modal {
  width: 100%; max-width: 480px; background: var(--bg-elev); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg); animation: pop 0.22s cubic-bezier(0.2, 1.1, 0.4, 1);
  max-height: 88vh; overflow: auto;
}
.modal.wide { max-width: 640px; }
@keyframes pop { from { transform: scale(0.95) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { width: 32px; height: 32px; border: 0; background: var(--bg-soft); border-radius: 9px; color: var(--text-2); display: grid; place-items: center; }

/* Toast */
.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(28, 30, 36, 0.92); color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 32px rgba(10, 12, 16, 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: toastIn 0.24s cubic-bezier(0.2, 1.1, 0.4, 1);
  display: flex; align-items: center; gap: 8px; max-width: 90vw; line-height: 1.5;
  pointer-events: auto; cursor: pointer;
}
.toast-link { flex: none; color: #ffd76e; font-weight: 800; text-decoration: none; padding: 2px 4px; border-radius: 8px; white-space: nowrap; transition: background .15s; }
.toast-link:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.toast-ico { font-size: 15px; flex: none; }
.toast.err { background: linear-gradient(135deg, rgba(229, 72, 77, 0.95), rgba(201, 49, 54, 0.95)); color: #fff; }
.toast.ok { background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(15, 130, 60, 0.95)); color: #fff; }
.toast.info { background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(23, 76, 185, 0.95)); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* 底部登录提示条（对标众图） */
.login-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 64px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(28, 31, 36, 0.08);
  display: flex; align-items: center; animation: barUp 0.35s cubic-bezier(0.2, 1.1, 0.4, 1);
}
@keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
.login-bar .lb-text b { color: var(--brand); font-size: 15px; }
.login-bar .lb-text span { display: block; font-size: 12px; color: var(--text-3); }
.login-bar .lb-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lb-social { display: flex; gap: 10px; }
.lb-social span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; transition: transform 0.15s; }
.lb-social span:hover { transform: translateY(-2px); }
.lb-social .wx { background: #2aae67; }
.lb-social .qq { background: #4a90d9; }
.lb-social .ph { background: #ff9f0a; }
.lb-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text-3); display: grid; place-items: center; }
body.has-login-bar { padding-bottom: 64px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); margin-top: 50px; background: var(--bg-soft); }
.footer-top { display: flex; align-items: center; gap: 30px; padding: 22px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.footer-top .ft-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.footer-top .ft-item i { font-style: normal; font-size: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 34px 0 26px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 13px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer li a, .footer p { color: var(--text-3); font-size: 12.5px; }
.footer li a:hover { color: var(--brand); }
.footer-bottom { margin-top: 4px; padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }

/* 工具类 */
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; }

/* 详情页效果图 / 预览图切换 */
.stage { position: relative; }
.stage-tabs {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 4;
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px;
  background: rgba(18, 24, 38, 0.66); backdrop-filter: blur(6px);
}
.stage-tabs button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.82);
  padding: 6px 16px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.stage-tabs button.active { background: #fff; color: #16202e; }
.between { justify-content: space-between; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* 后台内容管理：分组小节标题条 */
.cg-sep {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 14px; padding: 10px 14px;
  background: linear-gradient(90deg, rgba(216,30,30,.06), transparent 70%);
  border-left: 3px solid var(--danger, #d81e1e); border-radius: 4px 10px 10px 4px;
}
.cg-sep:first-child { margin-top: 0; }
.cg-sep b { font-size: 13.5px; color: var(--text); }
.cg-sep .small { flex: 1; min-width: 200px; text-align: right; }

/* 收银台弹窗 */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } }
.pay-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border: 1.5px solid var(--line, #e5e7eb); border-radius: 12px;
  background: var(--bg, #fff); cursor: pointer; font-size: 13.5px; font-weight: 600;
  color: var(--text, #111); transition: all .15s;
}
.pay-chip:hover { border-color: var(--danger, #d81e1e); }
.pay-chip.active { border-color: var(--danger, #d81e1e); background: rgba(216,30,30,.05); box-shadow: 0 0 0 2px rgba(216,30,30,.12); }
.pay-chip svg { flex: none; }
.pay-summary { background: var(--bg, #f7f8fa); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 14px 16px; }
.hidden { display: none !important; }

/* ===== 后台：管理员团队 ===== */
.admin-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.admin-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.admin-chip > div:nth-child(2) { flex: 1; min-width: 0; }
.admin-chip b { font-size: 13.5px; }
.admin-chip-meta { text-align: right; line-height: 1.5; white-space: nowrap; }
.admin-chip .btn { flex: none; }

.modal-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-soft); border-radius: 11px; margin-bottom: 16px; }
.m-tab {
  flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.16s;
}
.m-tab.active { background: var(--bg-elev); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.admin-pick-list { max-height: 320px; overflow-y: auto; display: grid; gap: 8px; }
.admin-pick {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}

/* ===== 首页左侧竖排分类导航（类似众图网） ===== */
.cat-rail {
  position: fixed; left: 12px; top: 50%; transform: translate(-16px, -50%);
  z-index: 60; display: none; flex-direction: column; gap: 1px;
  padding: 5px 4px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
/* 下滑到第一个分类分区时才出现，刚打开页面不显示 */
.cat-rail.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0, -50%); }
@media (min-width: 1360px) { .cat-rail { display: flex; } }
.cat-rail .rail-item {
  position: relative; width: 40px; height: 40px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 15px; line-height: 1;
  transition: background 0.16s, color 0.16s;
}
.cat-rail .rail-item svg { width: 16px; height: 16px; }
.cat-rail .rail-item .rail-name {
  max-width: 38px; font-size: 9px; font-weight: 600; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.2px;
}
.cat-rail .rail-item.active .rail-name { color: #fff; }
.cat-rail .rail-item:hover { background: var(--brand-soft); }
.cat-rail .rail-item.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(227, 52, 47, 0.3); }
.cat-rail .rail-item.active:hover { background: var(--brand); }
.cat-rail .rail-tip {
  position: absolute; left: 38px; top: 50%; transform: translateY(-50%) translateX(-5px);
  background: var(--text); color: var(--bg-elev); font-size: 12px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; opacity: 0;
  pointer-events: none; transition: opacity 0.16s, transform 0.16s; z-index: 2;
}
.cat-rail .rail-tip::before {
  content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--text); border-radius: 1px;
}
.cat-rail .rail-item:hover .rail-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.cat-rail .rail-sep { height: 1px; margin: 3px 5px; background: var(--line); }
.section, #gallery, #rank, #sections { scroll-margin-top: 78px; }


/* ===== 首页顶栏悬浮：轮播顶到最上端 ===== */
body.on-home .header { background: rgba(255, 255, 255, 0.05); border-bottom-color: transparent; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
body.on-home .header.scrolled { box-shadow: none; }
body.on-home:not(.header-fixed) .header .logo,
body.on-home:not(.header-fixed) .header .nav a,
body.on-home:not(.header-fixed) .header .act-link { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22); }
body.on-home:not(.header-fixed) .header .nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
body.on-home:not(.header-fixed) .header .nav a.active { color: #fff; }
body.on-home:not(.header-fixed) .header .nav a.active::after { background: #fff; }
body.on-home:not(.header-fixed) .header .act-link.vip { color: #ffe08a; }
body.on-home:not(.header-fixed) .header .icon-btn { background: rgba(255, 255, 255, 0.18); color: #fff; }
body.on-home:not(.header-fixed) .header .icon-btn:hover { background: rgba(255, 255, 255, 0.32); }
body.on-home:not(.header-fixed) .header .login-btn { border-color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.14); color: #fff; }
body.on-home:not(.header-fixed) .header .login-btn:hover { background: rgba(255, 255, 255, 0.28); }
body.on-home:not(.header-fixed) .header .wallet { color: #fff; background: rgba(255, 255, 255, 0.14); }
body.on-home.header-fixed .header { background: var(--bg); border-bottom: 1px solid var(--line); }

/* ===== 场景 / 格式筛选面板（类似众图网） ===== */
.filter-panel { display: grid; gap: 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); overflow: hidden; }
.filter-panel .f-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; }
.filter-panel .f-row + .f-row { border-top: 1px dashed var(--line); }
.f-label { flex-shrink: 0; width: 44px; padding: 4px 0; font-size: 13px; color: var(--text-3); font-weight: 600; }
.f-opts { display: flex; flex-wrap: wrap; gap: 2px 4px; flex: 1; }
.f-opt {
  border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 8px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.f-opt:hover { color: var(--brand); background: var(--brand-soft); }
.f-opt.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }

/* 格式角标 */
.fmt-flag {
  position: static;
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  background: rgba(17, 20, 26, 0.72); color: #ffd76e; backdrop-filter: blur(3px);
}
.fmt-tag { color: var(--brand); font-weight: 800; letter-spacing: 0.5px; background: var(--brand-soft); }

/* 后台 · 流量统计进度条 / 采集格式选择 */
.hbar { height: 7px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.hbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.fmt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt-chip {
  padding: 6px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; transition: all 0.15s;
}
.fmt-chip:hover { border-color: var(--brand); color: var(--brand); }
.fmt-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===== 后台 · 轮播 / 日历编辑器 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.admin-inline-select { max-width: 150px; padding: 6px 10px; font-size: 13px; }
.banner-editor .pc-head { flex-wrap: wrap; }
#calTable input[type="text"], #calTable input:not([type]) { padding: 7px 10px; font-size: 13px; width: 100%; }
#calTable input[type="date"] { padding: 6px 10px; font-size: 13px; }

/* ===== 后台 · 轮播背景图上传 ===== */
/* 后台 · 背景图上传行 */
.banner-img-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.banner-thumb {
  flex-shrink: 0; width: 300px; height: 100px; border-radius: 10px; border: 1px solid var(--line);
  background-color: var(--bg-soft); background-size: cover; background-position: center;
  display: grid; place-items: center; overflow: hidden;
}
.banner-thumb span { font-size: 12px; color: var(--text-3); }
.banner-thumb.empty { border-style: dashed; }
.banner-thumb.loading { opacity: 0.6; }
.banner-img-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.banner-img-ops .small.muted { flex-basis: 100%; }
@media (max-width: 640px) {
  .banner-img-row { flex-wrap: wrap; }
  .banner-thumb { width: 100%; }
}

/* ===== 后台 · 主导航编辑器 ===== */
.nav-editor { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); overflow: hidden; }
.ne-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-soft); flex-wrap: wrap; }
.ne-no { font-size: 11px; font-weight: 800; color: var(--text-3); letter-spacing: 0.5px; }
.ne-name { width: 132px; }
.ne-url { flex: 1; min-width: 190px; }
.ne-vis { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.ne-subs { padding: 10px 14px 12px; display: grid; gap: 8px; justify-items: start; }
.ne-sub { display: flex; align-items: center; gap: 8px; width: 100%; }
.ne-sub input[data-c="name"] { width: 132px; }
.ne-sub input[data-c="url"] { flex: 1; min-width: 190px; }
.ne-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: 0.35; flex-shrink: 0; }
/* 主导航逐项检查徽标：✔ 一致 / ⚠ 不一致·自动生成·未关联 / 自定义 */
.nav-chk { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; background: var(--bg-soft); color: var(--text-3); border: 1px solid var(--line); flex-shrink: 0; }
.nav-chk.ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.nav-chk.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.nav-chk.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.nav-editor input:not([type='checkbox']) {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); font-size: 13px; color: var(--text); font-family: inherit;
}
.nav-editor input:not([type='checkbox']):focus { outline: none; border-color: var(--brand); }

/* 统一瀑布流卡片高度：双图卡片的文件信息条改为浮层，不再撑高卡片 */
.card-media.card-duo { aspect-ratio: 4 / 3; }
.card-media.card-duo .cm-file {
  position: absolute; left: 10px; bottom: 10px; right: auto; max-width: calc(100% - 60px);
  padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(22, 25, 30, 0.72); backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); z-index: 3;
  transition: opacity 0.18s;
}
.card-media.card-duo .cm-file > img { width: 24px; height: 24px; border-radius: 6px; }
.card-media.card-duo .cm-meta b { color: #fff; font-size: 11px; }

/* 后台素材查看弹窗：左图右信息，带「← 返回列表」 */
.vi-wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.vi-imgs { flex: 1.2; min-width: 260px; }
.vi-img { width: 100%; max-height: 56vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); cursor: zoom-in; }
.vi-info { flex: 1; min-width: 240px; display: grid; gap: 6px; align-content: start; }
.vi-title { font-size: 16px; font-weight: 800; line-height: 1.4; }
.vi-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.vi-row > span { color: var(--text-3); flex-shrink: 0; }
.vi-row > b { text-align: right; word-break: break-all; font-weight: 600; }
.card-media.card-duo .cm-meta i { color: rgba(255, 255, 255, 0.72); font-size: 9.5px; }
.card-media.card-duo .cm-corner { display: none; }
.card-media.card-duo:hover .cm-file { opacity: 0; }

/* ==================== 素材驳回理由 ==================== */
.rj-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.rj-card img { width: 76px; height: 56px; object-fit: contain; border-radius: 8px; flex-shrink: 0; background: #0e1116; }
.rj-title { font-weight: 700; font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rj-chips { margin-bottom: 10px; }
.rj-chips .chip { font-size: 12px; padding: 4px 10px; }
.rj-mini { margin-top: 5px; font-size: 11px; line-height: 1.55; color: var(--danger); max-width: 200px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rj-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: rgba(240, 68, 56, 0.07); border: 1px solid rgba(240, 68, 56, 0.22); color: var(--danger); font-size: 12.5px; line-height: 1.65; }
.rj-note b { flex-shrink: 0; }
.rj-tip { margin-top: 5px; font-size: 11.5px; line-height: 1.55; color: var(--danger); max-width: 190px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==================== 左侧菜单待办标记 ==================== */
.side-item.has-todo { color: var(--text); font-weight: 600; }
.side-item.has-todo .badge { min-width: 20px; justify-content: center; }
@keyframes tjBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(240, 68, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0); }
}
.side-item.has-todo:not(.active) .badge { animation: tjBadgePulse 2.2s ease-out infinite; }
.side-item.has-todo.active .badge { background: #fff; color: var(--danger); }

/* ==================== 上架方式（积分 / 出售 二选一） ==================== */
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-card {
  position: relative; display: block; padding: 12px 14px 12px 38px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-elev); transition: all 0.16s;
}
.pm-card input {
  position: absolute; left: 14px; top: 17px; width: 15px; height: 15px; margin: 0; padding: 0; border: 0;
  accent-color: var(--brand); cursor: pointer; appearance: auto;
}
.pm-card:hover { border-color: var(--brand); }
.pm-card.active { border-color: var(--brand); background: var(--brand-soft); }
.pm-card.active .pm-t { color: var(--brand); }
.pm-t { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.pm-d { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.pm-card.active .pm-d { color: var(--text-2); }
@media (max-width: 680px) { .pm-row { grid-template-columns: 1fr; } }

/* ==================== 素材唯一编码 ==================== */
.code-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; cursor: copy;
  font-family: ui-monospace, Menlo, Consolas, 'DejaVu Sans Mono', monospace; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.3px; color: var(--brand); background: var(--brand-soft);
  border: 1px dashed rgba(255, 77, 79, 0.42); border-radius: 8px; transition: all 0.15s;
}
.code-chip:hover { background: #ffe7e6; border-style: solid; }
.code-chip i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.code-mini {
  display: inline-block; margin-top: 3px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; color: var(--text-3); letter-spacing: 0.2px;
}
html[data-theme='dark'] .code-chip { background: #2d1517; }

/* ==================== 我的收藏 ==================== */
.card-fav.on svg { fill: currentColor; }

/* 主导航「我的收藏」入口 */

/* 顶栏无搜索框后：右侧操作区靠右对齐 */
.header-actions { margin-left: auto; }

/* 右侧悬浮工具栏（联系客服 / 意见反馈 / 收藏）—— 窄条样式 */
#tjSideBar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900;
  display: grid; gap: 1px; padding: 4px 2px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px 0 0 10px;
  border-right: none; box-shadow: -3px 0 14px rgba(0,0,0,.07);
}
#tjSideBar button {
  position: relative;
  display: grid; justify-items: center; gap: 2px; width: 40px; padding: 6px 0 5px;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  color: var(--text-2); font-size: 11px; line-height: 1;
}
#tjSideBar button:hover { background: var(--bg-soft); color: var(--brand); }
#tjSideBar button svg { display: block; width: 17px; height: 17px; }
#tjSideBar button i { font-style: normal; }
#tjSideBar button.has-unread::after {
  content: ''; position: absolute; top: 4px; right: 6px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid var(--bg-elev);
}
/* 「赚钱」新需求提示：小号呼吸红点 + 金币落下动画（纯装饰层，不挡文字不挡点击） */
#tjSideBar button.has-notice::after {
  content: ''; position: absolute; top: 3px; right: 6px; width: 7px; height: 7px;
  background: var(--danger); border-radius: 50%; border: 1.5px solid var(--bg-elev);
  animation: tjDotGlow 2s ease-in-out infinite;
}
@keyframes tjDotGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 0 3px rgba(239,68,68,0); }
}
#tjSideBar button .coin-rain {
  position: absolute; left: 0; right: 0; top: 0; height: 30px;
  pointer-events: none; overflow: hidden;
}
#tjSideBar button .coin-rain i {
  position: absolute; top: -6px; left: 50%; margin-left: -4.5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f5b301 62%, #d97706);
  box-shadow: 0 1px 2px rgba(180,83,9,.45);
  opacity: 0; animation: tjCoinFall 1.9s ease-in infinite;
}
#tjSideBar button .coin-rain i:nth-child(2) { left: 26%; animation-delay: .65s; }
#tjSideBar button .coin-rain i:nth-child(3) { left: 74%; animation-delay: 1.3s; }
@keyframes tjCoinFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(24px) rotate(180deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #tjSideBar button .coin-rain i { animation: none; opacity: 0; }
  #tjSideBar button.has-notice::after { animation: none; }
}
/* 截稿倒计时：每秒跳动的剩余时间 */
.cd-tick {
  display: inline-block; margin: 0 6px;
  color: #e11d48; font-weight: 800; font-size: 13px;
  animation: cdPulse 1s ease-in-out infinite;
}
.cd-tick.cd-over { color: #94a3b8; font-weight: 600; animation: none; }
@keyframes cdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-tick { animation: none; }
}
/* 在线客服对话窗口 */
.chat-box { display: flex; flex-direction: column; }
.chat-msgs { height: 320px; overflow-y: auto; padding: 6px 2px; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.chat-input textarea { min-height: 56px; resize: vertical; }
.chat-conv-on { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--brand); }
.side-contact { display: grid; gap: 8px; margin-top: 14px; }
.side-contact-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.side-contact-item span { color: var(--text-2, #888); flex-shrink: 0; }
.side-contact-item b { word-break: break-all; text-align: right; }

/* ==================== 主页实时数据（数字跳动） ==================== */
/* ==================== 科技感首屏（粒子 + 大搜索 + 分类卡，紧凑版） ==================== */
.ht-hero {
  position: relative;
  min-height: 100vh;
  margin-top: calc(-1 * var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: radial-gradient(1100px 650px at 80% 10%, rgba(120,160,255,.35), transparent 60%),
              radial-gradient(900px 600px at 15% 88%, rgba(94,234,212,.30), transparent 55%),
              radial-gradient(700px 500px at 50% 45%, rgba(255,255,255,.55), transparent 65%),
              linear-gradient(160deg, #f2f6ff 0%, #e8eeff 45%, #e4f2f7 100%);
  overflow: hidden;
  padding: 90px 20px 56px;
}
#fxCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ht-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; width: 100%; animation: htRise .9s ease both; }
@keyframes htRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.ht-logo {
  display: inline-block; padding: 5px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 4px; color: #7fd7ff;
  background: rgba(127,215,255,.08); border: 1px solid rgba(127,215,255,.25);
}
.ht-title { margin: 18px 0 8px; font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; color: #f2f6ff; letter-spacing: 1px; }
.ht-title::after { content: ''; display: block; width: 66px; height: 3px; margin: 14px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #5eead4); }
.ht-sub { margin: 0 0 28px; font-size: 14px; color: rgba(226,232,240,.66); }
.ht-search {
  display: flex; align-items: center; max-width: 640px; margin: 0 auto;
  background: rgba(255,255,255,.08); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 5px 5px 24px;
  box-shadow: 0 18px 60px rgba(10,15,36,.45); transition: border-color .2s, box-shadow .2s;
}
.ht-search:focus-within { border-color: rgba(127,215,255,.65); box-shadow: 0 18px 60px rgba(56,97,251,.35); }
.ht-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent;
  color: #f2f6ff; font-size: 15px; }
.ht-search input::placeholder { color: rgba(226,232,240,.45); }
.ht-search .hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700; color: #fff;
  white-space: nowrap; flex-shrink: 0; line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 6px 22px rgba(59,130,246,.45); transition: transform .15s, box-shadow .15s;
}
.ht-search .hs-btn svg { display: block; flex-shrink: 0; }
.ht-search .hs-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(59,130,246,.6); }
.ht-dark { margin-top: 18px; }
.hot-tags.ht-dark a { background: rgba(255,255,255,.07); color: rgba(226,232,240,.8); border: 1px solid rgba(255,255,255,.1); }
.hot-tags.ht-dark a:hover { background: rgba(59,130,246,.85); color: #fff; border-color: transparent; }
.hot-tags.ht-dark { color: rgba(226,232,240,.45); }
@media (max-width: 720px) {
  .ht-hero { padding: 76px 16px 48px; }
  .ht-search { padding-left: 16px; }
  .ht-search .hs-btn { padding: 0 20px; }
}

/* ---- 亮色科技首屏（search.html 独立页） ---- */
.ht-bright .ht-logo { color: #3560e0; background: rgba(53,96,224,.08); border-color: rgba(53,96,224,.28); }
.ht-bright .ht-title { color: #1c2b5e; }
.ht-bright .ht-sub { color: rgba(38,54,102,.62); }
.ht-bright .ht-search { background: rgba(255,255,255,.75); border-color: rgba(53,96,224,.30);
  box-shadow: 0 18px 50px rgba(53,96,224,.16); }
.ht-bright .ht-search:focus-within { border-color: #3560e0; box-shadow: 0 18px 50px rgba(53,96,224,.30); }
.ht-bright .ht-search input { color: #1c2b5e; }
.ht-bright .ht-search input::placeholder { color: rgba(38,54,102,.42); }
.hot-tags.ht-bright-tags a { background: rgba(53,96,224,.08); color: #3560e0; border: 1px solid rgba(53,96,224,.18); }
.hot-tags.ht-bright-tags a:hover { background: #3560e0; color: #fff; }
.hot-tags.ht-bright-tags { color: rgba(38,54,102,.5); }
.ht-bright .ht-stats { background: rgba(255,255,255,.6); border-color: rgba(53,96,224,.16); }
.ht-bright .ht-stat b { color: #1c2b5e; }
.ht-bright .ht-stat span { color: rgba(38,54,102,.55); }
.ht-bright .ht-scroll { color: rgba(38,54,102,.55); }
.ht-bright .ht-scroll span { background: linear-gradient(rgba(53,96,224,.7), transparent); }
.ht-bright .ht-scroll span::after { background: #3560e0; }

/* 搜索栏 + 进入主页：横向排列，主页按钮在搜索栏外 */
.ht-search-row { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 760px; margin: 0 auto; flex-wrap: wrap; }
.ht-search-row .ht-search { flex: 1; min-width: 320px; max-width: 640px; margin: 0; }

/* 进入主页按钮（搜索栏外侧） */
.hs-home {
  display: inline-flex; align-items: center; height: 48px; padding: 0 26px;
  border: 1.6px solid rgba(53,96,224,.45); border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #3560e0; text-decoration: none; flex-shrink: 0;
  white-space: nowrap; transition: all .18s; background: rgba(255,255,255,.5);
}
.hs-home:hover { background: #3560e0; color: #fff; border-color: #3560e0; transform: translateY(-1px); }

/* 导航字色随背景自适应：body[data-bg-bright="1"] 时页面为亮背景，导航用深色字 */
body.on-home[data-bg-bright="1"] .header .logo,
body.on-home[data-bg-bright="1"] .header .nav a,
body.on-home[data-bg-bright="1"] .header .act-link { color: #1c2b5e; text-shadow: none; }
body.on-home[data-bg-bright="1"] .header .nav a.active { color: #d81e1e; }
body.on-home[data-bg-bright="1"] .header .nav a.active::after { background: #d81e1e; }
body.on-home[data-bg-bright="1"] .header .act-link.vip { color: #d97706; }
body.on-home[data-bg-bright="1"] .header .icon-btn { background: rgba(28,43,94,.08); color: #1c2b5e; }
body.on-home[data-bg-bright="1"] .header .login-btn { border-color: rgba(53,96,224,.5); background: rgba(53,96,224,.1); color: #3560e0; }
body.on-home[data-bg-bright="1"] .header .wallet { color: #1c2b5e; background: rgba(28,43,94,.08); }

/* 导航文字固定白色（应用户要求）：原「轮播图偏亮自动切深色字」的 hero-light 逻辑已移除 */

/* ================= 通用：上传文件缩略图预览 ================= */
.tj-upv { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tj-upv.hidden { display: none; }
.tj-upv-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.tj-upv-item.pic { width: 92px; height: 92px; }
.tj-upv-item.pic img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-soft); display: block; cursor: zoom-in; transition: transform .2s; }
.tj-upv-item.pic:hover img { transform: scale(1.06); }
.tj-upv-item.doc { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; width: 100%; max-width: 320px; min-height: 54px; background: var(--bg-elev); }
.tj-upv-ext { flex: none; width: 34px; height: 40px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #fff; }
.tj-upv-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-upv-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.tj-upv-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 3px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.66)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.tj-upv-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.tj-upv-item:hover .tj-upv-del { opacity: 1; }
.tj-upv-del:hover { background: var(--danger, #dc2626); }
.tj-upv-item.doc .tj-upv-del { top: 50%; transform: translateY(-50%); right: 6px; }
.tj-upv-more { width: 92px; height: 92px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-3); background: var(--bg-soft); }
/* 单文件大图预览（上传页源文件图片） */
.tj-file-single { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.tj-file-single img { width: 132px; height: 100px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; cursor: zoom-in; flex: none; }
@media (max-width: 560px) { .tj-upv-item.doc { max-width: 100%; } }
/* 面板 Tab 新信息角标 */
.tab-badge { font-style: normal; display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: var(--danger, #dc2626); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 2px; line-height: 1; }

/* 上传实时进度条（全站上传模块通用：渐变填充 + 流光滑动动画 + 网速 + 服务器处理中呼吸动画） */
.upbar { margin: 10px 0 4px; }
.upbar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.upbar-text { font-size: 12.5px; color: var(--text-2, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upbar-pct { font-size: 12.5px; font-weight: 800; color: var(--brand); flex: none; font-variant-numeric: tabular-nums; }
.progressbar { height: 12px; border-radius: 999px; background: linear-gradient(180deg, #eef1f6, #e5e9f0); border: 1px solid var(--line, #e5e7eb); box-shadow: inset 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; }
.progressbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2, #ff7a45), var(--brand, #ff4d4f) 60%, var(--brand-deep, #e3342f)); box-shadow: 0 0 8px rgba(255, 77, 79, .35); transition: width .25s cubic-bezier(.22, 1, .36, 1); position: relative; overflow: hidden; }
.progressbar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 75%); transform: translateX(-100%); animation: upShine 1.3s linear infinite; }
@keyframes upShine { to { transform: translateX(100%); } }
.progressbar.processing i { width: 100%; animation: upProcessing 1.1s ease-in-out infinite; }
.progressbar.processing i::after { animation: none; opacity: 0; }
.progressbar.done i { background: linear-gradient(90deg, #34d399, #16a34a); box-shadow: 0 0 8px rgba(22, 163, 74, .3); }
.progressbar.done i::after { animation: none; opacity: 0; }
.progressbar.error i { background: linear-gradient(90deg, #f59e0b, #ef4444); box-shadow: none; }
.progressbar.error i::after { animation: none; opacity: 0; }
@keyframes upProcessing { 0% { opacity: .4; } 50% { opacity: 1; } 100% { opacity: .4; } }

/* ============================== 收银台（充值弹窗）双栏布局 ============================== */
.cashier { display: flex; min-height: 370px; }
.cashier-left { width: 196px; flex: none; border-right: 1px solid var(--line, #e5e7eb); display: flex; flex-direction: column; background: var(--bg-soft, #f7f8fa); }
.cashier-ch { display: flex; align-items: center; gap: 10px; padding: 17px 18px; cursor: pointer; border-bottom: 1px solid var(--line, #e5e7eb); position: relative; font-size: 14px; color: var(--ink, #374151); background: var(--bg-elev, #fff); transition: background .15s; }
.cashier-ch:hover { background: var(--brand-soft, #fff1f0); }
.cashier-ch.active { background: var(--brand-soft, #fff1f0); color: var(--brand-deep, #e3342f); font-weight: 600; }
.cashier-ch.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand, #ff4d4f); }
.cashier-rec { position: absolute; top: 8px; right: 8px; font-size: 10px; font-style: normal; color: #fff; background: linear-gradient(135deg, #ff7a45, #f04438); border-radius: 4px; padding: 1px 5px; transform: scale(.88); }
.cashier-safe { margin-top: auto; padding: 14px 16px; font-size: 11.5px; color: var(--muted, #6b7280); line-height: 1.9; }
.cashier-right { flex: 1; padding: 20px 26px 16px; display: flex; flex-direction: column; align-items: center; }
.cashier-amount { width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: var(--bg-soft, #f7f8fa); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.cashier-amount .goods { font-size: 13.5px; color: var(--muted, #6b7280); }
.cashier-amount > b { font-size: 28px; font-weight: 700; color: var(--danger, #f04438); line-height: 1; }
.cashier-amount > b small { font-size: 15px; }
.cashier-qr { position: relative; margin: 16px 0 8px; padding: 9px; border: 2px solid #22b07d; border-radius: 14px; background: #fff; }
.cashier-qr.is-alipay { border-color: #1677ff; }
.cashier-qr > img { width: 172px; height: 172px; display: block; border-radius: 6px; }
.cashier-scan { position: absolute; left: 9px; right: 9px; height: 2px; background: linear-gradient(90deg, transparent, #22b07d, transparent); animation: cashierScan 2.4s linear infinite; top: 11px; pointer-events: none; }
.cashier-qr.is-alipay .cashier-scan { background: linear-gradient(90deg, transparent, #1677ff, transparent); }
@keyframes cashierScan { 0% { top: 11px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 162px; opacity: 0; } }
.cashier-qr-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; line-height: 0; background: #fff; border-radius: 9px; padding: 3px; box-shadow: 0 0 0 3px #fff; }
.cashier-qr-logo img, .cashier-qr-logo svg { width: 34px; height: 34px; display: block; border-radius: 0; }
.cashier-hint { font-size: 13px; color: var(--ink, #374151); }
.cashier-hint b { color: #22b07d; }
.cashier-qr.is-alipay + .cashier-hint b { color: #1677ff; }
.cashier-cd { margin-top: 6px; font-size: 12px; color: var(--muted, #6b7280); }
.cashier-cd b { color: var(--warn, #b45309); font-variant-numeric: tabular-nums; }
.cashier-cd a { color: var(--accent, #ff7a45); cursor: pointer; }
.cashier-state { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent, #ff7a45); height: 22px; font-weight: 500; }
.cashier-dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, #ff7a45); margin: 0 2px; animation: cashierBlink 1.2s infinite; }
.cashier-dots span:nth-child(2) { animation-delay: .2s; }
.cashier-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes cashierBlink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.cashier-scanned { display: none; margin-top: 10px; font-size: 13px; color: var(--ok, #12b76a); font-weight: 500; }
.cashier-order { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line, #e5e7eb); font-size: 12.5px; color: var(--muted, #6b7280); }
.cashier-order b { color: var(--ink, #111); font-weight: 500; user-select: text; word-break: break-all; }
.cashier-copy { border: 1px solid var(--line, #e5e7eb); background: var(--bg-elev, #fff); border-radius: 6px; font-size: 12px; padding: 3px 12px; color: var(--muted, #6b7280); cursor: pointer; flex: none; }
.cashier-copy:hover { border-color: var(--accent, #ff7a45); color: var(--accent); }
.cashier-foot { width: 100%; margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted, #6b7280); }
.cashier-foot a { color: var(--accent, #ff7a45); cursor: pointer; }
.cashier-ok { width: 100%; display: none; flex-direction: column; align-items: center; text-align: center; padding: 36px 16px; }
.cashier-ok.show { display: flex; }
.cashier-ok-ring { width: 70px; height: 70px; border-radius: 50%; background: var(--ok, #12b76a); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; animation: cashierPop .45s cubic-bezier(.2, 1.4, .4, 1); }
.cashier-ok-ring svg { width: 34px; height: 34px; }
@keyframes cashierPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 640px) {
  .cashier { flex-direction: column; min-height: 0; }
  .cashier-left { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line, #e5e7eb); }
  .cashier-ch { border-bottom: none; border-right: 1px solid var(--line, #e5e7eb); padding: 12px 14px; flex: none; }
  .cashier-ch.active::before { width: 100%; height: 3px; bottom: auto; }
  .cashier-safe { display: none; }
  .cashier-right { padding: 16px 14px; }
}

/* 底部登录条：窄屏下右侧按钮组把左侧文案挤成竖排、并向上溢出遮住内容（2026-12-02） */
@media (max-width: 767px) {
  .login-bar .wrap { flex: 1; min-width: 0; }
  .login-bar .lb-text { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .login-bar .lb-text b,
  .login-bar .lb-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .login-bar .lb-text span { display: none; }
  .login-bar .lb-right { flex: 0 0 auto; gap: 10px; }
  .login-bar .lb-right > .small { display: none; }
  .login-bar .lb-social { display: none; }
}
