﻿/* ============================================================
   廉江DJ 音乐系统 · 多风格主题（灰白极简为默认）
   主题通过 <html data-theme="grey|dark|warm|blue|green"> 切换
   ============================================================ */
:root {
  --wrap: 1500px;              /* 全站统一版心宽度 */
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e5e7e9;
  --text-1: #1a1d21;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --accent: #1a1d21;
  --accent-fg: #ffffff;
  --accent-hover: #000000;
  --accent-2: #4b5563;
  --danger: #dc2626;
  --hover: #f0f1f3;
  --glass: rgba(255,255,255,.88);
  --glass-strong: rgba(255,255,255,.95);
  --track-bg: #e8eaec;
  --mask: rgba(20,22,25,.42);
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #eef0f2;
  --slide-b: #fafbfc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
}

/* ---------- 深夜暗黑 ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1c2027;
  --border: #2a2f38;
  --text-1: #f2f3f5;
  --text-2: #a3aab6;
  --text-3: #6f7683;
  --accent: #f2f3f5;
  --accent-fg: #14171c;
  --accent-hover: #ffffff;
  --accent-2: #9aa2ae;
  --danger: #f87171;
  --hover: #242a33;
  --glass: rgba(17,20,25,.86);
  --glass-strong: rgba(17,20,25,.96);
  --track-bg: #2c313b;
  --mask: rgba(0,0,0,.62);
  --gold-bg: #2b2418;
  --gold-fg: #f0c67a;
  --gold-border: #4a3a20;
  --slide-a: #1b1f27;
  --slide-b: #141821;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.55);
}

/* ---------- 暖米咖 ---------- */
html[data-theme="warm"] {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #faf5ec;
  --border: #e8dfd0;
  --text-1: #2c2418;
  --text-2: #7d6b53;
  --text-3: #a99880;
  --accent: #8a5a24;
  --accent-fg: #fffaf2;
  --accent-hover: #6d4519;
  --accent-2: #a07a4c;
  --hover: #f2ebdf;
  --glass: rgba(255,253,249,.9);
  --glass-strong: rgba(255,253,249,.96);
  --track-bg: #eae1d2;
  --gold-bg: #fdf3e0;
  --gold-fg: #8a5a24;
  --gold-border: #e6cfa8;
  --slide-a: #f3ebdd;
  --slide-b: #fdfaf4;
  --shadow: 0 1px 3px rgba(90,64,30,.07), 0 4px 16px rgba(90,64,30,.06);
}

/* ---------- 静谧蓝 ---------- */
html[data-theme="blue"] {
  --bg: #f1f5fb;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --border: #dde6f2;
  --text-1: #101a2c;
  --text-2: #5b6b84;
  --text-3: #93a2b8;
  --accent: #1e3a8a;
  --accent-fg: #ffffff;
  --accent-hover: #16306f;
  --accent-2: #3b5aa8;
  --hover: #eaf0f9;
  --glass: rgba(255,255,255,.9);
  --glass-strong: rgba(255,255,255,.96);
  --track-bg: #e2e9f4;
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #e8eff9;
  --slide-b: #fbfdff;
}

/* ---------- 森野绿 ---------- */
html[data-theme="green"] {
  --bg: #f1f6f2;
  --surface: #ffffff;
  --surface-2: #f7fbf8;
  --border: #dce9de;
  --text-1: #16221a;
  --text-2: #5d7364;
  --text-3: #94a99a;
  --accent: #14532d;
  --accent-fg: #ffffff;
  --accent-hover: #0d3f22;
  --accent-2: #3f7a52;
  --hover: #e9f2eb;
  --glass: rgba(255,255,255,.9);
  --glass-strong: rgba(255,255,255,.96);
  --track-bg: #e1ede4;
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #e8f1ea;
  --slide-b: #fbfdfb;
}

/* ---------- 中国红 ---------- */
html[data-theme="red"] {
  --bg: #fdf1f0;
  --surface: #ffffff;
  --surface-2: #fff7f6;
  --border: #f6d9d6;
  --text-1: #23100f;
  --text-2: #8a4b47;
  --text-3: #b98a85;
  --accent: #d92b2b;
  --accent-fg: #ffffff;
  --accent-hover: #b91c1c;
  --accent-2: #f0594b;
  --danger: #dc2626;
  --hover: #fbe6e4;
  --glass: rgba(255,255,255,.9);
  --glass-strong: rgba(255,255,255,.96);
  --track-bg: #f6dcd9;
  --gold-bg: #fff3d6;
  --gold-fg: #8a4b0d;
  --gold-border: #f2d9a4;
  --slide-a: #fbe0de;
  --slide-b: #fffafa;
  --shadow: 0 1px 3px rgba(150,25,25,.08), 0 4px 16px rgba(150,25,25,.07);
}

/* ---------- 酒红醇 ---------- */
html[data-theme="wine"] {
  --bg: #f5ebee;
  --surface: #fffcfc;
  --surface-2: #faf1f3;
  --border: #e6d2d8;
  --text-1: #2a161b;
  --text-2: #7d5860;
  --text-3: #ac8f96;
  --accent: #7b2233;
  --accent-fg: #fff6f7;
  --accent-hover: #5d1826;
  --accent-2: #a4485c;
  --danger: #b91c3c;
  --hover: #f0e0e4;
  --glass: rgba(255,252,252,.9);
  --glass-strong: rgba(255,252,252,.96);
  --track-bg: #e6d2d8;
  --gold-bg: #f8ecd8;
  --gold-fg: #7a4a12;
  --gold-border: #e0cba6;
  --slide-a: #ecd9de;
  --slide-b: #fdf8f9;
  --shadow: 0 1px 3px rgba(90,30,45,.08), 0 4px 16px rgba(90,30,45,.07);
}

/* ---------- 电饭煲+热水壶（厨房小家电） ---------- */
html[data-theme="kitchen"] {
  --bg: #faf5ec;
  --surface: #fffdf7;
  --surface-2: #fdf8ee;
  --border: #ecdcbe;
  --text-1: #2e2015;
  --text-2: #867055;
  --text-3: #b09a7e;
  --accent: #e2603a;
  --accent-fg: #fff8f2;
  --accent-hover: #c94c28;
  --accent-2: #2f9e8f;
  --danger: #d33b2c;
  --hover: #faeedd;
  --glass: rgba(255,253,247,.9);
  --glass-strong: rgba(255,253,247,.96);
  --track-bg: #f0e3cb;
  --mask: rgba(46,32,21,.45);
  --gold-bg: #fff3d9;
  --gold-fg: #96601a;
  --gold-border: #ecd3a2;
  --slide-a: #f7ecd9;
  --slide-b: #fffdf7;
  --shadow: 0 1px 3px rgba(120,80,30,.08), 0 4px 16px rgba(120,80,30,.07);
  --shadow-lg: 0 8px 30px rgba(120,80,30,.18);
}
/* 顶部一层暖光，像锅盖冒起的热气（纯装饰，不影响布局） */
html[data-theme="kitchen"] body {
  background-image: radial-gradient(1100px 380px at 50% -8%, #fff6e4 0%, rgba(255,246,228,0) 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme="kitchen"] .topbar {
  background: linear-gradient(180deg, rgba(255,253,247,.96) 0%, rgba(255,249,236,.96) 100%);
  border-bottom: 1px solid var(--border);
}
html[data-theme="kitchen"] .nav a.active { color: #c94c28; background: var(--hover); font-weight:600; }
html[data-theme="kitchen"] .logo .mark {
  background: linear-gradient(135deg, #ff8a4c 0%, #e2603a 55%, #c94c28 100%);
  box-shadow: 0 2px 8px rgba(226,96,58,.35);
}

/* ---------- 小熊猫（WorkBuddy 风 · 暖橙治愈） ---------- */
html[data-theme="panda"] {
  --bg: #fbf4ee;
  --surface: #fffaf5;
  --surface-2: #fdf2e9;
  --border: #f0dfd0;
  --text-1: #3a2418;
  --text-2: #8a6a52;
  --text-3: #b79a80;
  --accent: #c8502d;
  --accent-fg: #fff6ee;
  --accent-hover: #a83d20;
  --accent-2: #e0804f;
  --danger: #d2451f;
  --hover: #fbecdf;
  --glass: rgba(255,250,245,.9);
  --glass-strong: rgba(255,250,245,.96);
  --track-bg: #f2e0d0;
  --mask: rgba(58,36,24,.44);
  --gold-bg: #fff2dc;
  --gold-fg: #a5671d;
  --gold-border: #f0d4a8;
  --slide-a: #f8e9db;
  --slide-b: #fffaf5;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(160,90,50,.08), 0 6px 20px rgba(160,90,50,.07);
  --shadow-lg: 0 10px 34px rgba(160,90,50,.16);
}
html[data-theme="panda"] body {
  background-image: radial-gradient(1000px 360px at 50% -8%, #ffe7d2 0%, rgba(255,231,210,0) 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme="panda"] .topbar {
  background: linear-gradient(180deg, rgba(255,250,245,.96) 0%, rgba(255,242,232,.96) 100%);
  border-bottom: 1px solid var(--border);
}
html[data-theme="panda"] .logo .mark {
  background: linear-gradient(135deg, #f0a06a 0%, #c8502d 60%, #a83d20 100%);
  box-shadow: 0 2px 10px rgba(200,80,45,.35);
}
html[data-theme="panda"] .nav a.active { color: #c8502d; }
html[data-theme="panda"] .nav a.active::after { background: #c8502d; }

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  padding-bottom: 110px;
  transition: background .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.logo { display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; letter-spacing:.5px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent);
  display:flex; align-items:center; justify-content:center; color:var(--accent-fg); font-size:14px;
}
.nav { display:flex; gap: 4px; }
.nav a {
  padding: 7px 13px; border-radius: 8px; font-size:14px; color: var(--text-2);
  transition: all .15s;
}
.nav a:hover, .nav a.active { color: var(--text-1); background: var(--hover); font-weight:600; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.search-box { position: relative; }
.search-box input {
  width: 190px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px 0 34px; font-size: 13px; background: var(--surface-2); color: var(--text-1); outline: none;
  transition: all .15s;
}
.search-box input:focus { border-color: var(--text-2); background: var(--surface); width: 230px; }
.search-box .icon { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--text-3); }
.tb-btn {
  height: 36px; padding: 0 14px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 9px; font-size: 13px; color: var(--text-2); transition: all .15s;
  display:flex; align-items:center; gap:6px; white-space:nowrap;
}
.tb-btn:hover { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); }
.tb-btn.dark { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); }
.tb-btn.dark:hover { background: var(--accent-hover); }
.tb-btn.vip { color:var(--gold-fg); border-color:var(--gold-border); background:var(--gold-bg); font-weight:600; }
.tb-btn.vip:hover { background: var(--gold-fg); color: var(--surface); border-color: var(--gold-fg); }
.user-chip {
  display:flex; align-items:center; gap:8px; font-size:13px;
  padding: 4px 6px 4px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.user-chip .name { font-weight:600; max-width: 96px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-chip .cbtn { border:none; background:none; color:var(--text-2); cursor:pointer; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.user-chip .cbtn:hover { background: var(--hover); color: var(--text-1); }
@media (max-width: 640px) {
  .user-chip { padding-left: 10px; gap: 6px; }
  .user-chip .name { max-width: 60px; font-size: 12px; }
  .user-dropdown { width: 190px; top: 46px; }
}
.vip-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--gold-fg);
  border: 1px solid var(--gold-border); border-radius: 5px; padding: 1px 5px; background: var(--gold-bg);
}
.vip-badge.off { color: var(--text-3); border-color: var(--border); background: var(--surface-2); }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; right: 0; top: 44px; width: 170px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 60;
}
.user-dropdown.open { display: block; }
.user-dropdown button, .user-dropdown a {
  display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 13px;
  border: none; background: none; border-radius: 8px; color: var(--text-1);
}
.user-dropdown button:hover, .user-dropdown a:hover { background: var(--hover); }
.user-dropdown .dd-info { padding: 9px 12px 4px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 28px; }

/* ---------- 幻灯片广告 ---------- */
.ad-slider {
  position: relative; height: 360px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; background: var(--surface);
}
.ad-slider:empty { display: none; }
.slide {
  position: absolute; inset: 0; padding: 40px 46px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; justify-content: center;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide.s1, .slide.s2, .slide.s3 { background: linear-gradient(115deg, var(--slide-a) 0%, var(--slide-b) 72%); }
.slide .slide-tag {
  font-size: 12px; letter-spacing: 2px; color: var(--text-3);
  margin-bottom: 12px; text-transform: uppercase;
}
.slide h3 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 10px; }
.slide p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin-bottom: 22px; max-width: 620px; }
.slide-btn { height: 40px; padding: 0 20px; font-size: 13.5px; }

/* 图片广告 */
.slide-media {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .45s ease; display: block;
}
.slide-media.active { opacity: 1; pointer-events: auto; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-media .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 28px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .3px;
  display: flex; align-items: center; gap: 8px;
}
.slide-media .cap .ad-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px;
  border-radius: 99px; background: rgba(255,255,255,.9); color: #1a1d21;
}

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2);
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; z-index: 3;
}
.ad-slider:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: var(--surface); color: var(--text-1); }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
.slide-dots { position: absolute; right: 26px; bottom: 20px; display: flex; gap: 6px; z-index: 3; }
.slide-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: var(--track-bg);
  cursor: pointer; transition: all .25s;
}
.slide-media.active ~ .slide-dots i { background: rgba(255,255,255,.55); }
.slide-dots i.on { background: var(--accent); width: 16px; }
.slide-media.active ~ .slide-dots i.on { background: #fff; }

/* ---------- 简介条 ---------- */
.intro-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 2px 2px 18px;
}
.intro-bar .intro-text { font-size: 13px; color: var(--text-2); }
.intro-bar .intro-text b { color: var(--text-1); font-weight: 600; }
.intro-actions { display: flex; gap: 8px; }
.btn {
  height: 40px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition: all .15s;
}
.btn-dark { background: var(--accent); color:var(--accent-fg); }
.btn-dark:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-1); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* ---------- 分区标题 ---------- */
.section-head {
  display:flex; align-items:center; justify-content:space-between; margin: 6px 0 12px;
}
.section-head h2 { font-size: 17px; display:flex; align-items:center; gap:10px; }
.section-head h2 .bar { width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }
.section-head .sub { font-size: 13px; color: var(--text-3); font-weight: 400; }
.sort-btns { display:flex; gap:6px; }
.sort-btns button {
  padding: 6px 14px; font-size: 12px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.sort-btns button.active { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); font-weight: 600; }

/* ---------- 分类筛选 ---------- */
/* ---------- 音乐库筛选行：分类标签 + 搜索 ---------- */
.list-filter { display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.list-filter .chips { flex:1 1 auto; min-width:0; margin-bottom: 0; }
.list-filter .search-box { flex:0 0 auto; }

/* ---------- 列表分组标题（今日更新 / 本周更新 …） ---------- */
.grp-head {
  display:flex; align-items:center; gap:10px; margin: 16px 2px 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-3); letter-spacing: .3px;
}
.grp-head i { font-style: normal; font-weight: 400; opacity: .75; }
.grp-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.track-list > .grp-head:first-child { margin-top: 4px; }

/* ---------- 锚点跳转：给 sticky 顶栏留位，避免标题被盖住 ---------- */
#latest, #rank, #software, #rec-section { scroll-margin-top: 74px; }
@media (max-width: 860px) {
  #latest, #rank, #software, #rec-section { scroll-margin-top: 104px; }
}

.chips { display:flex; gap:7px; flex-wrap:wrap; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 99px; font-size: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-2); transition: all .15s;
}
.chip:hover { border-color: var(--text-3); color: var(--text-1); }
.chip.active { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); font-weight:600; }

/* ---------- 极简音乐列表 ---------- */
.track-list { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; margin-bottom: 36px; }
.track-list-head {
  display:grid; grid-template-columns: 44px 1fr 90px 90px 130px;
  padding: 9px 18px; font-size: 11px; color: var(--text-3); border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.row {
  display:grid; grid-template-columns: 44px 1fr 90px 90px 130px; align-items:center;
  padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background .12s;
  cursor: pointer;
}
.row:last-child { border-bottom: none; }
/* 热门榜单：4 列（少一个播放量列） */
.row.row-rank { grid-template-columns: 44px 1fr 110px 130px; }
.row:hover { background: var(--surface-2); }
.row.current { background: var(--hover); }
/* 加载更多 */
.rows-more { padding: 18px 0 8px; text-align: center; }
.rows-more button {
  border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text-2);
  font-size: 13px; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.rows-more button:hover { color: var(--text-1); border-color: var(--text-3); background: var(--surface-2); }
/* 缓冲中动画 */
#btn-play.buffering { opacity: .55; }
#btn-play.buffering::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--accent-fg); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.row-idx { font-size: 13px; color: var(--text-3); font-style: italic; font-weight: 600; }
.row.current .row-idx { color: var(--text-1); }
.row-main { min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.row-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.tag { font-size: 10px; font-weight: 700; padding: 1.5px 7px; border-radius: 99px; white-space: nowrap; }
.tag.pin { background: var(--accent); color: var(--accent-fg); }
.tag.rec { background: var(--gold-bg); color: var(--gold-fg); border: 1px solid var(--gold-border); }
.tag.new { background: var(--hover); color: var(--text-1); }
.row-meta { font-size: 12px; color: var(--text-2); }
.row-actions { display:flex; gap: 4px; justify-content: flex-end; opacity: .55; transition: opacity .15s; }
.row:hover .row-actions, .row.current .row-actions { opacity: 1; }
.act-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.act-btn:hover { background: var(--accent); color: var(--accent-fg); }
.act-btn.primary { background: var(--accent); color: var(--accent-fg); }
.act-btn.primary:hover { background: var(--accent-hover); }
.empty-tip { text-align:center; color:var(--text-3); padding: 56px 0; font-size: 13px; }

/* ---------- 播放器底栏 ---------- */
.playerbar {
  position: fixed; left:0; right:0; bottom:0; z-index: 100;
  background: var(--glass-strong); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
.player-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 80px;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 20px;
}
.np { display:flex; align-items:center; gap: 12px; min-width:0; }
.np-mark {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: var(--accent-fg);
  display:flex; align-items:center; justify-content:center; flex-shrink: 0; font-size: 17px;
}
.np-info { min-width:0; }
.np-info .t { font-size: 14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-info .a { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.np-eq { display:none; align-items:flex-end; gap:2px; height: 14px; }
.np.playing .np-eq { display:flex; }
.np-eq i { width:3px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; border-radius:1px; }
.np-eq i:nth-child(1){ height:8px; animation-delay:0s; }
.np-eq i:nth-child(2){ height:14px; animation-delay:.2s; }
.np-eq i:nth-child(3){ height:6px; animation-delay:.4s; }
@keyframes eq { 0%,100%{ transform:scaleY(.4);} 50%{ transform:scaleY(1);} }

.controls { display:flex; flex-direction:column; align-items:center; gap: 6px; }
.ctrl-btns { display:flex; align-items:center; gap: 8px; }
.cbtn {
  width: 34px; height: 34px; border-radius: 50%; border:none; background:transparent;
  color: var(--text-1); display:flex; align-items:center; justify-content:center; transition: background .15s;
}
.cbtn:hover { background: var(--hover); }
.cbtn.main { width: 42px; height: 42px; background: var(--accent); color: var(--accent-fg); position: relative; overflow: hidden; }
.cbtn.main:hover { background: var(--accent-hover); }
.cbtn.active { color: var(--accent); }
.progress-row { display:flex; align-items:center; gap: 10px; width: 100%; }
.progress-row time { font-size: 11px; color: var(--text-3); min-width: 36px; }
.progress-row time:last-child { text-align:right; }
.progress { flex:1; height: 14px; display:flex; align-items:center; cursor:pointer; }
.progress .track { width:100%; height: 4px; background: var(--track-bg); border-radius: 2px; overflow:hidden; }
.progress .fill { height:100%; width:0%; background: var(--accent); border-radius:2px; transition: width .1s linear; }
.progress:hover .track { height: 6px; }

.right-ctrl { display:flex; align-items:center; justify-content:flex-end; gap: 6px; }
.volume-wrap { display:flex; align-items:center; gap: 8px; }
.volume { width: 84px; height: 14px; display:flex; align-items:center; cursor:pointer; }
.volume .track { width:100%; height:4px; background: var(--track-bg); border-radius:2px; overflow:hidden; }
.volume .fill { height:100%; background: var(--accent-2); }

/* ---------- 播放器样式：经典底栏 / 复古磁带 / CD 唱碟 ---------- */
/* 三个视觉组件都渲染在 #np-mark 里，由 .playerbar 的 data-style 决定显示哪一个 */
.np-mark { position:relative; flex-shrink:0; }
.np-mark .mk { display:none; }

/* 1) 经典底栏 ------------------------------------------------- */
[data-style="bar"] .np-mark {
  width:44px; height:44px; border-radius:11px;
  background:var(--accent); color:var(--accent-fg);
}
[data-style="bar"] .mk-bar {
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; font-size:17px;
}

/* 2) 复古磁带 ------------------------------------------------- */
[data-style="cassette"] .np-mark { width:104px; height:64px; border-radius:0; background:transparent; color:inherit; }
[data-style="cassette"] .mk-cassette { display:block; }
[data-style="cassette"] .np-eq { display:none !important; }

.cs-shell{
  position:relative; display:block; width:104px; height:64px;
  border-radius:7px; box-sizing:border-box; padding:9px 8px 0;
  background:linear-gradient(165deg,#343941 0%,#1c2026 55%,#12151a 100%);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 3px 10px rgba(0,0,0,.32);
}
.cs-shell::before, .cs-shell::after{ /* 磁带下方的两个定位孔 */
  content:""; position:absolute; bottom:5px; width:7px; height:7px;
  border-radius:50%; background:#0c0e12; box-shadow:inset 0 1px 1px rgba(255,255,255,.10);
}
.cs-shell::before{ left:16px; }
.cs-shell::after { right:16px; }

.cs-window{
  position:relative; display:flex; align-items:center; justify-content:space-between;
  width:86px; height:26px; margin:0 auto; padding:0 7px; box-sizing:border-box;
  border-radius:4px; background:linear-gradient(180deg,#0a0c0f,#1a1e24);
  border:1px solid rgba(255,255,255,.09);
}
.cs-reel{
  position:relative; width:18px; height:18px; border-radius:50%;
  background:radial-gradient(circle,#eff2f6 0 20%,#8d96a1 21% 28%,#2f343b 29% 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.cs-reel b{ /* 卷轴辐条，靠它看出「在转」 */
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 0deg,
    rgba(255,255,255,0) 0 9%, rgba(255,255,255,.92) 9% 15%,
    rgba(255,255,255,0) 15% 57%, rgba(255,255,255,.92) 57% 63%,
    rgba(255,255,255,0) 63% 100%);
}
.cs-band{
  flex:1; height:5px; margin:0 3px; border-radius:2px;
  background:linear-gradient(180deg,#575d65,#24282e);
}
.cs-sticker{
  display:block; width:86px; height:15px; margin:7px auto 0; padding:3px 5px;
  box-sizing:border-box; border-radius:2px;
  background:linear-gradient(180deg,#fcfcfd,#dcdfe4);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.10);
}
.cs-sticker i{ display:block; height:2px; border-radius:1px; background:#c2c7cd; }
.cs-sticker i + i{ margin-top:2px; width:58%; }

/* 3) CD 唱碟 -------------------------------------------------- */
[data-style="cd"] .np-mark { width:52px; height:52px; border-radius:0; background:transparent; color:inherit; }
[data-style="cd"] .mk-cd { display:block; width:52px; height:52px; }
[data-style="cd"] .np-eq { display:none !important; }

.cd-disc{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.13) 0 1px, rgba(255,255,255,0) 1px 3px),
    conic-gradient(from 200deg,
      #f8fafc 0deg, #a5b4fc 45deg, #e2e8f0 95deg,
      #cbd5e1 155deg, #f1f5f9 215deg, #93c5fd 280deg,
      #e2e8f0 330deg, #f8fafc 360deg);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.55),
    inset 0 0 12px rgba(0,0,0,.10),
    0 3px 10px rgba(0,0,0,.26);
}
.cd-disc::after{ /* 光盘表面反光，旋转时更明显 */
  content:""; position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background:linear-gradient(118deg,
    rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 36%,
    rgba(255,255,255,0) 64%, rgba(255,255,255,.4) 100%);
}
.cd-hole{
  width:13px; height:13px; border-radius:50%;
  background:var(--surface);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.20);
}

/* 转动动画：仅在播放时跑，暂停时停在当前角度 */
@keyframes pspin { from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
[data-style="cassette"] .np.playing .cs-reel { animation:pspin 2s linear infinite; }
[data-style="cassette"] .np.playing .cs-reel.r { animation-duration:2.9s; }
[data-style="cd"] .np.playing .cd-disc { animation:pspin 3.6s linear infinite; }
/* 4) 电饭煲（手机端 H5 主题）-------------------------------- */
/* 电饭煲（pot）与 电饭煲+热水壶（cooker）共用锅体造型 */
[data-style="pot"] .np-mark,
[data-style="cooker"] .np-mark { width:58px; height:50px; border-radius:0; background:transparent; color:inherit; }
[data-style="pot"] .mk-cooker,
[data-style="cooker"] .mk-cooker { display:block; }
[data-style="pot"] .np-eq,
[data-style="cooker"] .np-eq { display:none !important; }

.ck-pot{ position:relative; display:block; width:58px; height:50px; }
/* 锅盖：香槟银 */
.ck-lid{
  position:absolute; left:3px; top:8px; width:52px; height:11px;
  border-radius:9px 9px 3px 3px;
  background:linear-gradient(180deg,#ffffff,#e6dccd 58%,#cbbfa8);
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.20);
}
/* 盖顶提手：香槟金 */
.ck-knob{
  position:absolute; left:23px; top:3px; width:12px; height:6px;
  border-radius:6px 6px 0 0;
  background:linear-gradient(180deg,#f6e7c8,#cdb184);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
/* 锅体：奶白 + 薄荷腰线 */
.ck-body{
  position:absolute; left:4px; top:17px; width:50px; height:31px;
  border-radius:3px 3px 12px 12px;
  background:
    linear-gradient(180deg,#fffdf9 0%,#f4ece1 42%,#e3d8c8 100%);
  box-shadow:
    inset 0 2px 0 #6fd8bd,
    inset 0 1px 0 rgba(255,255,255,.95),
    0 3px 8px rgba(0,0,0,.22);
  display:flex; align-items:center; justify-content:center; gap:5px;
}
/* 控制面板 */
.ck-panel{
  width:22px; height:9px; border-radius:2px;
  background:linear-gradient(180deg,#3d434b,#22262c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);
}
/* 加热指示灯：播放时亮红 */
.ck-lamp{
  width:7px; height:7px; border-radius:50%;
  background:#5a6169; box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);
}
.playerbar.is-playing .ck-lamp{
  background:#ff5b32; box-shadow:0 0 7px rgba(255,91,50,.9);
  animation:ck-blink 1.5s ease-in-out infinite;
}
@keyframes ck-blink{ 0%,100%{opacity:1;} 50%{opacity:.45;} }
/* 锅口蒸汽 */
.ck-steam s{
  position:absolute; top:0; width:4px; height:4px; border-radius:50%;
  background:#cfe0ea; opacity:0;
}
.ck-steam s:nth-child(1){ left:16px; --d:0s; }
.ck-steam s:nth-child(2){ left:26px; --d:.5s; }
.ck-steam s:nth-child(3){ left:36px; --d:1s; }
.playerbar.is-playing .ck-steam s{
  animation:ck-steam 1.9s ease-out infinite; animation-delay:var(--d,0s);
}
@keyframes ck-steam{
  0%{ opacity:0; transform:translateY(6px) scale(.6); }
  30%{ opacity:.85; }
  100%{ opacity:0; transform:translateY(-8px) scale(1.25); }
}

/* 电饭煲主题的进度条：加热槽 + 热水壶 */
/* 左右留 20px，热水壶（34px 宽）跑到两端时才不会压到时间文字 */
.playerbar.kitchen .progress{ position:relative; overflow:visible; height:20px; padding:0 20px; }
.playerbar.kitchen .progress .track{
  position:relative; height:9px; border-radius:7px; overflow:visible;
  background:linear-gradient(180deg,#ece2d4,#fbf6ee);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,255,255,.85);
}
.playerbar.kitchen .progress .track::after{ /* 刻度纹 */
  content:""; position:absolute; inset:0; border-radius:7px; pointer-events:none;
  background:repeating-linear-gradient(90deg,
    rgba(0,0,0,.14) 0 1px, rgba(0,0,0,0) 1px 11px);
  opacity:.55;
}
.playerbar.kitchen .progress .fill{
  border-radius:7px;
  background:linear-gradient(90deg,#ffd166 0%,#ff8c42 55%,#ff5e3a 100%);
  box-shadow:0 0 10px rgba(255,110,50,.5);
}
.playerbar.kitchen .progress:hover .track { height:11px; }

/* 进度条上的热水壶：默认不显示，只有「热水壶 / 电饭煲+热水壶」两款才有；--p 是 0~100 */
.kettle{ display:none; }
.playerbar.kitchen .kettle{
  position:absolute; z-index:5; pointer-events:none;
  /* 20px 内缩后，按「轨道实际宽度」换算，保证壶心 = 进度末端（内缩要 ≥ 壶宽一半） */
  top:50%; left:calc(20px + (100% - 40px) * var(--p, 0) / 100);
  width:34px; height:30px; margin:0;
  transform:translate(-50%,-50%);
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));
  transition:left .12s linear;
}
[data-style="kettle"] .kettle, [data-style="cooker"] .kettle { display:block; }
.playerbar.kitchen .kettle svg{ display:block; width:100%; height:100%; overflow:visible; }

/* 热水壶造型配色：薄荷绿壶身 + 香槟金盖钮 + 深灰描边（撞色加热条，最显眼） */
.kt-body { fill:#43c6a4; stroke:#33424f; stroke-width:1.5; stroke-linejoin:round; }
.kt-lid  { fill:#f2f6f7; stroke:#33424f; stroke-width:1.5; stroke-linejoin:round; }
.kt-knob { fill:#d9bd8c; stroke:#33424f; stroke-width:1.2; stroke-linejoin:round; }
.kt-handle, .kt-spout{
  fill:none; stroke:#33424f; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.kt-belly{ fill:none; stroke:rgba(255,255,255,.85); stroke-width:1.6; stroke-linecap:round; }
.kt-steam .st{
  fill:#ffffff; opacity:0; transform-box:fill-box; transform-origin:center;
}
.playerbar.is-playing .kt-steam .st{
  animation:kt-rise 1.7s ease-out infinite; animation-delay:var(--d,0s);
}
/* 封面位的大热水壶（热水壶主题） */
[data-style="kettle"] .np-mark{ width:56px; height:46px; border-radius:0; background:transparent; color:inherit; }
[data-style="kettle"] .mk-kettle{ display:block; }
[data-style="kettle"] .np-eq { display:none !important; }
.mk-kettle .kt-big{ display:block; width:56px; height:46px; overflow:visible;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
@keyframes kt-rise{
  0%{ opacity:0; transform:translateY(3px) scale(.5); }
  32%{ opacity:.9; }
  100%{ opacity:0; transform:translateY(-9px) scale(1.2); }
}
.playerbar.kitchen .progress-row{ padding:0 2px; }

@media (prefers-reduced-motion: reduce){
  .np.playing .cs-reel,
  .np.playing .cd-disc { animation:none; }
  .playerbar.is-playing .ck-steam s,
  .playerbar.is-playing .kettle .kt-steam .st { animation:none; }
}

@media (max-width: 760px){
  [data-style="cassette"] .np-mark{ width:86px; height:54px; }
  .cs-shell{ width:86px; height:54px; padding:7px 6px 0; }
  .cs-shell::before, .cs-shell::after{ bottom:4px; width:6px; height:6px; }
  .cs-shell::before{ left:13px; } .cs-shell::after{ right:13px; }
  .cs-window{ width:72px; height:22px; padding:0 5px; }
  .cs-reel{ width:15px; height:15px; }
  .cs-sticker{ width:72px; height:13px; }
  [data-style="cd"] .np-mark{ width:44px; height:44px; }
  .cd-disc{ width:44px; height:44px; }
}

/* ---------- 播放列表抽屉 ---------- */
.playlist-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 340px; z-index: 200;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease; display:flex; flex-direction:column;
}
.playlist-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.drawer-head h3 { font-size: 15px; }
.drawer-head button { background:none; border:none; font-size: 18px; color: var(--text-2); }
/* 播放列表抽屉：播放队列 / 推荐音乐 双标签 */
.drawer-tabs {
  display:flex; gap: 4px; padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.drawer-tabs .dtab {
  flex:1; height: 32px; border:none; border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: all .15s;
}
.drawer-tabs .dtab:hover { background: var(--surface-2); color: var(--text-1); }
.drawer-tabs .dtab.active { background: var(--hover); color: var(--text-1); }
.drawer-top { padding: 10px 16px 4px; }
.drawer-playall {
  width:100%; height: 36px; border:1px solid var(--border); border-radius: 9px; background: var(--accent);
  color: var(--accent-fg); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.drawer-playall:hover { opacity: .88; }
.drawer-item .add {
  background:none; border:none; color: var(--text-3); font-size: 15px; line-height:1; padding: 0 2px;
}
.drawer-item .add:hover { color: var(--accent); }
.drawer-list { flex:1; overflow-y:auto; padding: 8px 0; }
.drawer-item {
  display:flex; align-items:center; gap: 12px; padding: 10px 20px; cursor:pointer; transition: background .15s;
}
.drawer-item:hover { background: var(--surface-2); }
.drawer-item.current { background: var(--hover); }
.drawer-item .idx { width: 20px; font-size: 12px; color: var(--text-3); text-align:center; }
.drawer-item .m { flex:1; min-width:0; }
.drawer-item .m .t { font-size: 13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drawer-item .m .a { font-size: 11px; color: var(--text-2); }
.drawer-item .rm { background:none; border:none; color:var(--text-3); font-size:14px; }
.drawer-item .rm:hover { color: var(--danger); }
.drawer-empty { text-align:center; color: var(--text-3); padding: 48px 0; font-size: 13px; }

/* ---------- 通用 Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: var(--mask); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  width: 400px; max-width: 100%; background: var(--surface); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg); position: relative;
}
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal .m-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.modal .m-close {
  position: absolute; right: 16px; top: 16px; background: none; border: none;
  font-size: 17px; color: var(--text-3);
}
.modal .m-close:hover { color: var(--text-1); }
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 13px; font-weight:600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; background: var(--surface-2); color: var(--text-1); transition: all .15s;
}
.field input:focus, .field select:focus { border-color: var(--text-2); background: var(--surface); }
.form-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.btn-block { width: 100%; justify-content: center; }
.auth-tabs { display:flex; gap: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.auth-tabs button {
  background: none; border: none; font-size: 15px; font-weight: 600; color: var(--text-3);
  padding: 0 2px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tabs button.active { color: var(--text-1); border-bottom-color: var(--accent); }

/* ---------- VIP 弹窗 ---------- */
.vip-plans { display:flex; gap: 12px; margin: 6px 0 18px; }
.vip-plan {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 14px;
  text-align: center; cursor: pointer; transition: all .15s; background: var(--surface);
}
.vip-plan:hover { border-color: var(--text-3); }
.vip-plan.selected { border-color: var(--accent); background: var(--surface-2); }
.vip-plan .p-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.vip-plan .p-price { font-size: 24px; font-weight: 800; }
.vip-plan .p-price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.vip-plan .p-desc { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.vip-perks { list-style: none; margin-bottom: 18px; }
.vip-perks li { font-size: 13px; color: var(--text-2); padding: 4px 0; }
.vip-perks li::before { content: "✓ "; color: var(--text-1); font-weight: 700; }
.vip-note { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 12px; }

/* ---------- 会员等级 / 下载价格 ---------- */
.vip-badge.lv1 { color: var(--text-2); border-color: var(--border); background: var(--surface-2); }
.vip-badge.lv2 { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.vip-badge.lv3 { color: #fff; border-color: transparent; background: linear-gradient(135deg, #f43f5e, #a21caf); }
.act-btn { position: relative; }
.dl-price {
  position: absolute; right: -4px; bottom: -3px; font-style: normal; font-weight: 700;
  font-size: 9px; line-height: 1; padding: 1px 3px; border-radius: 5px;
  background: var(--accent); color: var(--accent-fg); pointer-events: none; white-space: nowrap;
}
/* 会员中心 */
.mc-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
}
.mc-nm { font-size: 15px; font-weight: 700; }
.mc-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.mc-bal { text-align: right; }
.mc-bal .b-n { font-size: 22px; font-weight: 800; }
.mc-bal .b-l { font-size: 11px; color: var(--text-3); }
.mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.mc-cell { border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; background: var(--surface); }
.mc-cell b { display: block; font-size: 14px; }
.mc-cell span { font-size: 11px; color: var(--text-3); }
.mc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.mc-plan { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; background: var(--surface); }
.mc-plan.on { border-color: var(--accent); background: var(--surface-2); }
.mc-plan .p-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.mc-plan .p-cur { font-size: 10px; color: var(--accent); margin-left: 4px; }
.mc-plan .p-price { font-size: 18px; font-weight: 800; }
.mc-plan .p-price small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.mc-plan .p-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.mc-recharge { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); margin-top: 4px; }
.mc-recharge h4 { font-size: 13px; margin-bottom: 8px; }
.mc-recharge .kv { font-size: 12px; color: var(--text-2); line-height: 1.8; }
/* 在线充值（微信 / 支付宝 / PayPal） */
.pay-amt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pay-pkg {
  flex: 1 1 auto; min-width: 78px; padding: 9px 6px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 700;
  color: var(--text-1); transition: .15s;
}
.pay-pkg i { display: block; font-style: normal; font-size: 10px; font-weight: 400; color: var(--accent); margin-top: 2px; }
.pay-pkg.on { border-color: var(--accent); background: var(--surface-2); }
.pay-input {
  flex: 0 0 110px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-1); font-size: 13px; outline: none;
}
.pay-input:focus { border-color: var(--accent); }
.pay-chs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-ch {
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-1); transition: .15s; position: relative;
}
.pay-ch .ic { display: flex; }
.pay-ch .nm { font-size: 12px; font-weight: 700; }
.pay-ch .ds { font-size: 10px; color: var(--text-3); text-align: center; line-height: 1.4; }
.pay-ch .warn { position: absolute; top: 4px; right: 6px; font-size: 9px; color: #e6a23c; }
.pay-ch.on { border-color: var(--accent); background: var(--surface-2); }
.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pay-sum { font-size: 13px; color: var(--text-2); }
.pay-sum b { font-size: 17px; color: var(--accent); }
.pay-sum span { font-size: 11px; color: var(--text-3); }
.btn-pay {
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer; font-size: 14px; font-weight: 700;
  background: var(--accent); color: var(--accent-fg); text-decoration: none; display: inline-block;
}
.btn-pay:disabled { opacity: .6; cursor: default; }
.pay-result { margin-top: 12px; }
.pay-qr { display: flex; justify-content: center; padding: 8px 0; }
.pay-qr svg { width: 190px; height: 190px; background: #fff; border-radius: 10px; padding: 6px; }
.pay-qr-tip { font-size: 13px; text-align: center; color: var(--text-2); line-height: 1.8; }
.pay-qr-tip.small { font-size: 11px; color: var(--text-3); }
.pay-wait { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-3); }
.pay-wait .ok { color: #11a34a; font-weight: 700; }
.pay-wait .warn { color: #e6a23c; }
.pay-err { padding: 10px; border-radius: 10px; background: #fdecec; color: #c0392b; font-size: 12px; text-align: center; }
.pay-redirect { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mc-offline { margin-top: 10px; opacity: .9; }
.mc-note {
  margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  border: 1px dashed var(--border); background: var(--surface-2); color: var(--text-2);
}
/* 创业者DJ推广 */
.agent-link { display: flex; gap: 8px; margin-top: 12px; }
.agent-link input {
  flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 12px; outline: none;
}
.agent-inv { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.agent-inv b { display: block; margin-bottom: 4px; color: var(--text-2); }
.ai-row { display: flex; justify-content: space-between; padding: 4px 2px; border-bottom: 1px dashed var(--border); }

/* 创业者DJ：两种分佣身份选择 */
.ag-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ag-card {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 12px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.ag-card.creator { border-color: var(--accent); }
.ag-ct { font-size: 14px; font-weight: 700; color: var(--text-1); }
.ag-rate { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.ag-rate small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.ag-desc { font-size: 12px; line-height: 1.6; color: var(--text-2); flex: 1; }
.ag-btn { padding: 9px 10px; font-size: 13px; border-radius: 10px; }
.ag-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 推广链接 + 二维码 */
.ag-share { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; }
.ag-qr {
  width: 132px; height: 132px; flex: 0 0 132px; border-radius: 12px; border: 1.5px solid var(--border);
  background: #fff; padding: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ag-qr svg { width: 100%; height: 100%; display: block; }
.ag-qr-empty { font-size: 11px; color: #999; }
.ag-side { flex: 1; min-width: 0; }
.ag-lab { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.ag-side .agent-link { margin-top: 0; }
.ag-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-gh {
  padding: 7px 12px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 12px; cursor: pointer;
}
.btn-gh:hover { border-color: var(--accent); color: var(--accent); }
.btn-gh.danger:hover { border-color: #e04b4b; color: #e04b4b; }

/* 今日工作量 / 任务 */
.ag-work, .ag-tasks { margin-top: 14px; }
.ag-work-h {
  font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ag-ok { font-weight: 600; font-size: 11.5px; color: #12a05c; background: rgba(18,160,92,.12); padding: 2px 8px; border-radius: 20px; }
.ag-wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ag-w {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 4px; text-align: center;
}
.ag-w b { display: block; font-size: 15px; color: var(--text-1); }
.ag-w span { font-size: 11px; color: var(--text-3); }
.ag-task { margin-bottom: 8px; }
.at-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.at-h b { font-weight: 600; color: var(--text-3); }
.ag-task.done .at-h b { color: #12a05c; }
.at-bar { height: 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.at-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.ag-task.done .at-bar i { background: #12a05c; }

@media (max-width: 520px) {
  .mc-plans { grid-template-columns: 1fr; }
  .pay-chs { grid-template-columns: 1fr; }
  .pay-ch { flex-direction: row; justify-content: flex-start; gap: 10px; }
  .pay-ch .ds { text-align: left; }
  .ag-choose { grid-template-columns: 1fr; }
  .ag-share { flex-direction: column; align-items: center; }
  .ag-side { width: 100%; }
  .ag-wgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--accent); color: var(--accent-fg); padding: 10px 22px; border-radius: 10px; font-size: 13px;
  opacity: 0; pointer-events:none; transition: all .25s; z-index: 500; box-shadow: var(--shadow-lg);
  max-width: 80vw; text-align: center;
}
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

/* 自动播放被浏览器静音时的「开启声音」提示条 */
.unmute-tip {
  position: fixed; right: 20px; bottom: 96px; z-index: 300;
  display:flex; align-items:center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; color: var(--text-1);
  box-shadow: var(--shadow-lg); animation: unmuteIn .25s ease;
}
.unmute-tip button {
  border:none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
}
@keyframes unmuteIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
@media (max-width: 760px){
  .unmute-tip { left: 14px; right: 14px; bottom: 88px; justify-content: space-between; }
}

footer.site-foot {
  border-top: 1px solid var(--border); padding: 20px; text-align: center;
  font-size: 12px; color: var(--text-3); letter-spacing: .3px;
}
footer.site-foot .foot-addr { margin-top: 6px; }
footer.site-foot .foot-line a, footer.site-foot .foot-addr a { color: inherit; text-decoration: none; }
footer.site-foot .foot-line a:hover, footer.site-foot .foot-addr a:hover { color: var(--text-2); }

/* 页脚 APP 下载入口 */
footer.site-foot .foot-apps { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
footer.site-foot .foot-apps .dot { color: var(--text-3); opacity: .6; }
a.apk-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--accent-fg, #fff); background: var(--accent);
  border: 1px solid var(--accent); transition: filter .15s ease, transform .15s ease;
}
a.apk-link:hover { filter: brightness(1.12); transform: translateY(-1px); }
a.apk-link.ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
a.apk-link.ghost:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px){
  footer.site-foot .foot-apps { gap: 8px; }
  a.apk-link { padding: 7px 14px; font-size: 12px; }
}

/* ============================================================
   私人定制商城
   ============================================================ */
.shop-hero {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 26px 28px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.shop-hero h1 { font-size: 22px; letter-spacing: -.4px; margin-bottom: 8px; }
.shop-hero p { font-size: 13px; color: var(--text-2); max-width: 560px; line-height: 1.7; }
.shop-hero .hero-badge {
  font-size: 12px; color: var(--text-2); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 14px; background: var(--surface-2); line-height: 1.6;
}
.shop-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.card-head h2 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-head .step-no {
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.card-body { padding: 16px 18px; }

.spec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.spec-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 12px; cursor: pointer;
  text-align: center; transition: all .15s; background: var(--surface);
}
.spec-card:hover { border-color: var(--text-3); }
.spec-card.active { border-color: var(--accent); background: var(--surface-2); }
.spec-card .cap-name { font-size: 15px; font-weight: 800; }
.spec-card .cap-price { font-size: 17px; font-weight: 800; margin-top: 5px; }
.spec-card .cap-price small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.spec-card .cap-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.pick-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pick-toolbar input[type="text"] {
  flex: 1; min-width: 160px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px; font-size: 13px; background: var(--surface-2); color: var(--text-1); outline: none;
}
.pick-toolbar input[type="text"]:focus { border-color: var(--text-3); background: var(--surface); }
.pick-toolbar .count { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.pick-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.pick-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s;
}
.pick-row:last-child { border-bottom: none; }
.pick-row:hover { background: var(--surface-2); }
.pick-row.on { background: var(--hover); }
.pick-row input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.pick-row .pm { flex: 1; min-width: 0; }
.pick-row .pm .pt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row .pm .pa { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pick-row .pmeta { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pick-loadmore { text-align: center; padding: 12px; }
.pick-loadmore button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 12px; padding: 7px 18px; border-radius: 99px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 0; }
.field textarea {
  width: 100%; min-height: 78px; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: var(--surface-2);
  color: var(--text-1); resize: vertical;
}
.field textarea:focus { border-color: var(--text-2); background: var(--surface); }

.summary { position: sticky; top: 78px; }
.summary .card-body { padding: 16px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.sum-line b { color: var(--text-1); font-weight: 600; }
.sum-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 2px; }
.sum-total .lbl { font-size: 13px; color: var(--text-2); }
.sum-total .num { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.sum-chosen { max-height: 168px; overflow-y: auto; margin: 6px 0 4px; }
.sum-chosen .ci {
  font-size: 12px; color: var(--text-2); padding: 4px 0; display: flex; gap: 6px;
  border-bottom: 1px dashed var(--border);
}
.sum-chosen .ci:last-child { border-bottom: none; }
.sum-chosen .ci span.n { color: var(--text-3); width: 18px; flex-shrink: 0; }
.sum-chosen .ci span.t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-chosen .empty { font-size: 12px; color: var(--text-3); padding: 8px 0; }
.sum-tip { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }
.summary .btn { width: 100%; margin-top: 12px; }

.order-ok { text-align: left; }
.order-ok .ok-badge {
  width: 48px; height: 48px; border-radius: 50%; background: var(--hover);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px;
}
.order-ok .order-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border);
  margin: 10px 0 14px; letter-spacing: .5px; word-break: break-all;
}
.order-ok ul { list-style: none; font-size: 13px; color: var(--text-2); line-height: 1.9; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  /* ---- 顶栏：两行 —— 上行 logo + 会员，下行导航横向滑动 ---- */
  .topbar-inner {
    padding: 8px 14px; height: auto; min-height: 52px;
    gap: 10px; flex-wrap: wrap;
  }
  .logo { font-size: 16px; gap: 8px; }
  .logo .mark { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; }
  .nav {
    order: 5; flex: 1 0 100%; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 11px; font-size: 13px; }

  /* ---- 筛选行：标签与搜索各占一行 ---- */
  .list-filter { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .list-filter .chips { flex: 1 1 100%; }
  .list-filter .search-box { flex: 1 1 100%; }
  .list-filter .search-box input,
  .list-filter .search-box input:focus { width: 100%; }

  /* ---- 页面容器：左右留白收窄 ---- */
  .container { padding: 14px 12px 20px; }

  /* ---- 幻灯片：小屏按比例收，避免占满首屏 ---- */
  .ad-slider { height: 240px; border-radius: 14px; margin-bottom: 16px; }
  .slide { padding: 24px 22px; }
  .slide .slide-tag { font-size: 11px; margin-bottom: 8px; }
  .slide h3 { font-size: 22px; margin-bottom: 8px; }
  .slide p { font-size: 13px; margin-bottom: 16px; }
  .slide-btn { height: 36px; padding: 0 16px; font-size: 12.5px; }
  .slide-media .cap { padding: 30px 18px 14px; font-size: 14px; }
  .slide-arrow { width: 32px; height: 32px; font-size: 16px; }
  .slide-dots { right: 16px; bottom: 12px; }

  /* ---- 简介条：文字在上，三个按钮平铺一行 ---- */
  .intro-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 0 16px; }
  .intro-bar .intro-text { font-size: 12.5px; line-height: 1.6; }
  .intro-actions { width: 100%; gap: 8px; }
  .intro-actions .btn { flex: 1; height: 36px; padding: 0 6px; font-size: 13px; }

  /* ---- 区块标题：统一留白节奏，标题与排序按钮可换行不挤压 ---- */
  .section-head { margin: 18px 0 10px; gap: 8px; flex-wrap: wrap; }
  .section-head h2 { font-size: 16px; letter-spacing: -.2px; }
  .section-head h2 .bar { width: 3px; height: 14px; }
  .section-head .sub { font-size: 11px; }
  .sort-btns button { padding: 5px 12px; font-size: 12px; }

  /* ---- 分类标签：单行横向滑动，不堆成一坨 ---- */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 12px;
    padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 5px 12px; font-size: 12px; white-space: nowrap; }

  /* ---- 列表：隐藏表头与播放量/时长列，只留 序号 + 标题 + 操作 ---- */
  .track-list { margin-bottom: 20px; }
  .track-list-head { display:none; }
  .row, .row.row-rank { grid-template-columns: 26px 1fr auto; padding: 10px 12px; gap: 8px; }
  .row-meta { display:none; }
  .row-idx { font-size: 12px; text-align: center; }
  /* 歌名固定一行，超长省略号，保证每行高度一致 */
  .row-title { flex-wrap: nowrap; font-size: 14px; line-height: 1.35; }
  .row-title .t-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row-title .tag { flex-shrink: 0; }
  .row-sub { font-size: 11.5px; margin-top: 2px; }
  .row-actions { opacity: 1; }   /* 触屏没有 hover，操作按钮常显 */
  .act-btn { width: 28px; height: 28px; }
  .rows-more button { font-size: 12px; padding: 8px 20px; }
  .empty-tip { padding: 36px 0; font-size: 12px; }

  /* ---- 播放器底栏：单行迷你播放器（小封面 + 歌名 + 按钮），进度条贴顶边一条细线 ---- */
  .player-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto; padding: 9px 12px 10px; gap: 10px; align-items: center;
  }
  .np { gap: 9px; }
  .np-mark { width: 38px; height: 38px; border-radius: 9px; font-size: 15px; }
  [data-style="bar"] .np-mark { width: 38px; height: 38px; border-radius: 9px; }
  [data-style="cd"] .np-mark { width: 38px; height: 38px; }
  .cd-disc { width: 38px; height: 38px; }
  .np-info .t { font-size: 13px; }
  .np-info .a { font-size: 11px; }
  /* 磁带样式整体等比缩小，与其他样式保持同一行高 */
  [data-style="cassette"] .np-mark { width: 66px; height: 42px; }
  .cs-shell { width: 66px; height: 42px; padding: 5px 5px 0; }
  .cs-shell::before, .cs-shell::after { bottom: 3px; width: 5px; height: 5px; }
  .cs-shell::before { left: 10px; } .cs-shell::after { right: 10px; }
  .cs-window { width: 55px; height: 17px; padding: 0 4px; }
  .cs-reel { width: 12px; height: 12px; }
  .cs-band { height: 4px; margin: 0 2px; }
  .cs-sticker { width: 55px; height: 11px; margin-top: 4px; padding: 2px 4px; }
  .cs-sticker i { height: 2px; }
  [data-style="cd"] .cd-hole { width: 10px; height: 10px; }
  .np-eq { display: none !important; }          /* 省宽度，播放状态由按钮体现 */
  .controls { flex-direction: row; gap: 0; }
  .ctrl-btns { gap: 3px; }
  .cbtn { width: 30px; height: 30px; }
  .cbtn.main { width: 38px; height: 38px; }
  /* 进度条脱离文档流，贴到播放器顶边，变成一条可拖的细线 */
  .progress-row { position: absolute; top: 0; left: 0; right: 0; height: 12px; gap: 0; }
  .progress-row time { display: none; }
  .progress { height: 12px; }
  .progress .track { height: 3px; border-radius: 0; }
  .progress .fill { border-radius: 0; }
  .progress:hover .track { height: 3px; }
  .right-ctrl { display:none; }
  body { padding-bottom: 74px; }

  /* ---- 电饭煲主题：进度条独占一整行（热水壶要地方跑），播放器整体加高 ---- */
  .playerbar.kitchen .player-inner {
    display:grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto;
    padding:8px 12px 9px; gap:2px 8px; align-items:center;
  }
  .playerbar.kitchen .np { grid-area: 1 / 1; }
  /* 让 ctrl-btns 与 progress-row 直接参与外层 grid，进度条才能跨满整行 */
  .playerbar.kitchen .controls { display:contents; }
  .playerbar.kitchen .ctrl-btns { grid-area: 1 / 2; justify-content:flex-end; }
  .playerbar.playerbar.kitchen .progress-row{
    grid-area: 2 / 1 / 3 / 3;
    position:relative; top:auto; left:auto; right:auto;
    height:34px; gap:7px; padding:0 2px;
  }
  .playerbar.playerbar.kitchen .progress-row time{ display:block; font-size:10px; min-width:30px; }
  .playerbar.playerbar.kitchen .progress{ height:32px; }
  .playerbar.playerbar.kitchen .progress .track{ height:9px; border-radius:7px; }
  .playerbar.playerbar.kitchen .progress:hover .track{ height:9px; }
  .playerbar.kitchen .np-mark{ width:52px; height:44px; }
  .playerbar.kitchen .ck-pot{ width:52px; height:44px; }
  [data-style="kettle"] .mk-kettle .kt-big{ width:52px; height:44px; }
  .playerbar.kitchen .ck-lid { left:3px; top:7px;  width:46px; height:10px; }
  .playerbar.kitchen .ck-knob{ left:20px; top:3px; width:11px; height:5px; }
  .playerbar.kitchen .ck-body{ left:4px; top:15px; width:44px; height:27px; border-radius:3px 3px 10px 10px; }
  /* 播放器变高，页面底部留白同步加大（class 由 JS 按当前皮肤打在 body 上） */
  body.pl-kitchen { padding-bottom: 108px; }
  .unmute-tip { bottom: 140px; }

  /* ---- 弹窗 / 抽屉 ---- */
  .playlist-drawer { width: min(340px, 92vw); }
  .modal { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }

  /* ---- 商城 ---- */
  .shop-hero { padding: 18px; }
  .shop-hero h1 { font-size: 19px; }

  /* ---- 页脚 ---- */
  footer.site-foot { padding: 18px 12px; font-size: 11px; line-height: 1.8; }

  /* ---- 客服悬浮球：窄屏时抬到播放器上方，避免挡住「下一首」 ---- */
  .yk-launcher { bottom: 88px !important; right: 12px !important; width: 48px !important; height: 48px !important; }
}

/* ============================================================
   两侧竖立广告（对联广告）· 后台「广告管理 → 两侧竖幅」配置
   仅宽屏展示，窄屏自动隐藏；右上角 ✕ 可关闭（本次浏览有效）
   ============================================================ */
.side-ads {
  display: none;
  position: fixed;
  top: 88px;
  z-index: 40;
  width: 150px;
  flex-direction: column;
  gap: 10px;
}
.side-ads.show { display: flex; }
.side-ads.left  { left:  max(12px, calc((100vw - 1500px) / 2 - 168px)); }
.side-ads.right { right: max(12px, calc((100vw - 1500px) / 2 - 168px)); }
/* 跟随 1500px 版心：广告贴在版心外侧（留 18px 间距），不再压住内容 */
/* 屏幕留白不足以容纳两侧 150px 广告时隐藏，避免遮挡 1500px 版心内容 */
@media (max-width: 1839px) { .side-ads { display: none !important; } }

.side-ad-item {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.side-ad-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.side-ad-item img { display: block; width: 100%; height: auto; }
.side-ad-cap {
  display: block;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-ad-close {
  align-self: flex-end;
  margin-top: -2px;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}
.side-ad-close:hover { opacity: 1; color: var(--text-1); background: var(--hover); }

/* ============================================================
   「安装 APP」提示条（PWA · 手机桌面安装引导）
   底部居中小卡片，位于播放器底栏上方；✕ 关闭后本次浏览不再出现
   ============================================================ */
.install-tip {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(14px);
  z-index: 240;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.install-tip.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.install-tip .ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.install-tip .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-tip .tx b { font-size: 13px; color: var(--text-1); }
.install-tip .tx span { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.install-tip .go {
  flex-shrink: 0; border: none; border-radius: 9px; padding: 8px 16px;
  background: var(--accent); color: var(--accent-fg); font-size: 13px; font-weight: 700;
}
.install-tip .go:active { opacity: .85; }
.install-tip .x {
  flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-3); font-size: 13px; line-height: 1;
}
.install-tip .x:hover { background: var(--hover); color: var(--text-1); }

/* 手机端：避开迷你播放器（58~62px），左对齐更贴移动习惯 */
@media (max-width: 860px) {
  .install-tip {
    left: 12px; right: 12px; width: auto;
    transform: translateY(14px);
    bottom: 74px;
  }
  .install-tip.show { transform: translateY(0); }
  .install-tip .tx b { font-size: 12.5px; }
  .install-tip .tx span { font-size: 11px; }
}

/* ============================================================
   首页 · 软件下载
   ============================================================ */
.soft-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 36px;
}
.soft-more { font-size: 12.5px; color: var(--text-2); text-decoration: none; }
.soft-more:hover { color: var(--accent); }
.soft-foot .dot { color: var(--text-3); opacity: .6; }
.soft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.soft-item {
  background: var(--surface); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  text-decoration: none; color: inherit; transition: background .15s ease;
}
.soft-item:hover { background: var(--surface-2); }
.soft-item .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent);
  color: var(--accent-fg); display: flex; align-items: center; justify-content: center;
}
.soft-item .ic svg { width: 22px; height: 22px; fill: currentColor; }
.soft-item .tx { min-width: 0; }
.soft-item .tt { font-size: 15px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.soft-item .tt .tag {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: var(--hover); color: var(--text-2); border: 1px solid var(--border);
}
.soft-item .ds { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.soft-item .mt { margin-top: 7px; font-size: 11.5px; color: var(--text-3); }
.soft-item .go {
  margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
  border-radius: 8px; background: var(--accent); color: var(--accent-fg);
  font-size: 12.5px; font-weight: 600;
}
.soft-item .go.ghost { background: transparent; color: var(--text-1); border: 1px solid var(--border); }
.soft-item .go:active { opacity: .85; }
.soft-foot {
  padding: 11px 20px; border-top: 1px solid var(--border); background: var(--surface-2);
  font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.soft-foot a { color: var(--text-2); text-decoration: none; }
.soft-foot a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .soft-grid { grid-template-columns: 1fr; }
  .soft-item { padding: 15px 16px; }
  .soft-item .ic { width: 40px; height: 40px; }
}

/* =========================================================
   会员中心：分页标签 / 头像 / 收藏 / 积分
   ========================================================= */
.mc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.mc-tab {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 7px 14px; border-radius: 20px; font-size: 12.5px; cursor: pointer;
}
.mc-tab:hover { border-color: var(--accent); color: var(--accent); }
.mc-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.mc-sec-t { font-size: 13.5px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }

.mc-top { display: flex; align-items: center; gap: 12px; }
.mc-avatar {
  position: relative; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%;
  overflow: hidden; background: var(--surface-2); border: 1.5px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-avatar-ph { font-size: 20px; font-weight: 800; color: var(--accent); }
.mc-avatar-edit {
  position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: var(--accent); color: var(--accent-fg); font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.mc-prof { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mc-prof input, .wf-row input, .wf-row textarea {
  flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-1); font-size: 12.5px; outline: none;
}
.mc-prof button { flex: 0 0 auto; }
.wf-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.mc-work-form { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; margin-bottom: 14px; }

.mc-list { display: flex; flex-direction: column; gap: 8px; }
.ml-row {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
}
.ml-cover {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: var(--surface);
  background-size: cover; background-position: center;
}
.ml-info { flex: 1; min-width: 0; }
.ml-t { font-size: 13px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-s { font-size: 11.5px; color: var(--text-3); }
.ml-ops { display: flex; gap: 6px; flex-wrap: wrap; }

.mc-pts-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-n { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1; }
.pt-l { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.pt-rule { flex: 1; min-width: 200px; font-size: 11.5px; line-height: 1.8; color: var(--text-3); }
.mc-pts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ex-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 10px; background: var(--surface-2);
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.ex-n { font-size: 13px; font-weight: 700; color: var(--text-1); }
.ex-c { font-size: 11.5px; color: var(--text-2); }
.ex-c b { color: var(--accent); font-size: 15px; }
.ex-d { font-size: 11px; color: var(--text-3); flex: 1; }
.ex-btn { padding: 7px 10px; font-size: 12px; }
.ex-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mc-pts-log { margin-top: 14px; font-size: 12px; color: var(--text-3); }

/* ---------- 论坛 ---------- */
.forum-wrap { max-width: var(--wrap); margin: 0 auto; padding: 16px 20px 120px; }
.forum-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.forum-head h1 { font-size: 20px; font-weight: 800; color: var(--text-1); margin: 0; }
.forum-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.forum-board {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; text-align: left;
}
.forum-board:hover { border-color: var(--accent); }
.forum-board .bi { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.forum-board .bn { font-size: 14px; font-weight: 700; color: var(--text-1); }
.forum-board .bd { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.forum-board .bc { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.forum-post-list { display: flex; flex-direction: column; gap: 8px; }
.forum-post {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left; width: 100%;
}
.forum-post:hover { border-color: var(--accent); }
.fp-t { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.fp-m { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.fp-e { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.fp-tag { display: inline-block; font-size: 10.5px; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; padding: 1px 7px; margin-right: 6px; }
.forum-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.forum-form input, .forum-form textarea {
  padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text-1); font-size: 13px; outline: none; width: 100%;
}
.forum-form select {
  height: 36px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text-1); font-size: 13px; padding: 0 10px;
}
.forum-reply { border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 6px; }
.fr-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.fr-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.fr-av-ph { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--accent); font-weight: 700; }
.fr-like { margin-left: auto; border: none; background: none; color: var(--text-3); font-size: 11.5px; cursor: pointer; }
.fr-like.on { color: var(--accent); }
.forum-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 30px 0; }
.forum-pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---------- 小屏幻灯片再收一档（390px 左右） ---------- */
@media (max-width: 560px) {
  .ad-slider { height: 210px; }
  .slide { padding: 20px 18px; }
  .slide h3 { font-size: 19px; }
  .slide p { font-size: 12.5px; margin-bottom: 12px; }
  .slide-media .cap { padding: 26px 16px 12px; font-size: 13px; }
}

/* hidden 属性优先于任何 display（会员页用 hidden 切换登录态视图） */
.mc-guest[hidden], .mc-page[hidden], #wk-bar[hidden] { display: none !important; }

/* ============================================================
   会员中心（独立页面 member.html）
   ============================================================ */
.mc-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0 40px; }

/* 侧栏 */
.mc-side {
  position: sticky; top: 74px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 16px; text-align: center;
}
.mc-side .mc-avatar.big { width: 78px; height: 78px; flex: 0 0 78px; margin: 0 auto 12px; }
.mc-side .mc-avatar-ph { width: 78px; height: 78px; border-radius: 50%; font-size: 30px; }
.mc-s-nm { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; word-break: break-all; }
.mc-s-lv { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.mc-s-bal { background: var(--surface-2); border-radius: 10px; padding: 12px 8px; margin-bottom: 10px; }
.mc-s-bal .b-n { font-size: 22px; font-weight: 800; color: var(--accent); }
.mc-s-bal .b-l { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.mc-s-pts { font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.mc-s-pts b { color: var(--accent); font-size: 14px; }
.mc-s-ops { display: flex; flex-direction: column; gap: 8px; }
.mc-s-ops .btn-gh { text-align: center; }

/* 内容区 */
.mc-main { min-width: 0; }
.mc-main .mc-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.mc-sec-t { font-size: 14px; font-weight: 700; color: var(--text-1); margin: 20px 0 10px; }

/* 未登录卡片 */
.mc-guest {
  display: grid; grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px; align-items: center; padding: 44px 0 60px;
}
.guest-intro { min-width: 0; }
.guest-intro .gi-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  padding: 5px 12px; border-radius: 99px; background: var(--hover); color: var(--text-2);
}
.guest-intro h1 { font-size: 34px; line-height: 1.35; font-weight: 800; margin: 14px 0 20px; letter-spacing: -.4px; }
.guest-intro ul { list-style: none; display: grid; gap: 10px; max-width: 640px; }
.guest-intro li {
  font-size: 13.5px; color: var(--text-2); line-height: 1.6; padding-left: 22px; position: relative;
}
.guest-intro li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}
.guest-intro li b { color: var(--text-1); font-weight: 700; }
@media (max-width: 1000px) {
  .mc-guest { grid-template-columns: 1fr; }
  .guest-intro { display: none; }
}
.guest-card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; text-align: center;
}
.guest-card h2 { font-size: 21px; margin-bottom: 6px; }
.guest-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.guest-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.guest-tabs .gt {
  flex: 1; height: 38px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--text-2); font-size: 14px; cursor: pointer;
}
.guest-tabs .gt.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.guest-form { display: flex; flex-direction: column; gap: 10px; }
.guest-form input {
  height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--text-1); font-size: 14px;
}
.guest-form input:focus { outline: none; border-color: var(--accent); }
.guest-form .btn-pay { height: 44px; font-size: 15px; }
.guest-tip { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: var(--danger); }
.guest-back { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* ============ 批量上传：拖拽区 ============ */
.drop-zone {
  border: 2px dashed var(--border); border-radius: 14px; background: var(--surface);
  padding: 34px 20px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.drop-zone:hover { border-color: var(--accent); }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft, rgba(124,92,255,.08)); transform: scale(1.01); }
.dz-icon { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.dz-t { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; }
.dz-s { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }

/* 队列操作条 */
.up-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.up-bar-l { font-size: 13px; color: var(--text-2); }
.up-bar-r { display: flex; gap: 8px; }

/* 队列列表 */
.up-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.up-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.up-item.done { border-color: rgba(18,160,92,.45); }
.up-item.err { border-color: rgba(220,60,60,.45); }
.up-i-l { flex: 1; min-width: 0; }
.up-name { font-size: 13.5px; color: var(--text-1); }
.up-title {
  width: 100%; height: 30px; padding: 0 8px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text-1);
}
.up-title:disabled { opacity: .6; }
.up-meta { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.up-st { color: var(--text-2); }
.up-item.done .up-st { color: #12a05c; font-weight: 600; }
.up-item.err .up-st { color: var(--danger); font-weight: 600; }
.up-bar2 { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.up-bar2 i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .2s; }
.up-item.done .up-bar2 i { background: #12a05c; }
.up-item.err .up-bar2 i { background: var(--danger); }
.up-i-r { flex: 0 0 auto; }

@media (max-width: 860px) {
  .mc-page { grid-template-columns: 1fr; }
  .mc-side { position: static; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; text-align: left; align-items: center; padding: 14px; }
  .mc-side .mc-avatar.big, .mc-side .mc-avatar-ph { width: 54px; height: 54px; font-size: 22px; margin: 0; grid-row: span 2; }
  .mc-s-lv { margin-bottom: 0; }
  .mc-s-bal { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; margin: 6px 0 0; }
  .mc-s-bal .b-n { font-size: 18px; }
  .mc-s-pts { grid-column: 1 / -1; margin: 4px 0 8px; }
  .mc-s-ops { grid-column: 1 / -1; flex-direction: row; }
  .mc-s-ops .btn-gh { flex: 1; }
  .up-bar { flex-direction: column; align-items: stretch; }
  .up-bar-r { justify-content: flex-end; }
}


/* ============================================================
   全站统一版式：顶部导航 / 页脚 / 独立页面版面
   （顶部与页脚由服务端 partials 注入，改这里全站生效）
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.topbar-inner { max-width: var(--wrap); height: 64px; gap: 16px; }
.logo { gap: 9px; }
.logo .logo-txt {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05;
}
.logo .logo-txt i {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 2.2px;
  color: var(--text-3); margin-top: 2px;
}
.nav { flex: 1; justify-content: center; gap: 2px; }
.nav a {
  position: relative; padding: 8px 15px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: all .16s;
}
.nav a:hover { color: var(--text-1); background: var(--hover); }
.nav a.active { color: var(--text-1); font-weight: 700; background: var(--hover); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 2px; background: var(--accent);
}
html[data-theme="kitchen"] .nav a.active::after { background: #c94c28; }

/* 顶栏头像（会员中心 / 论坛等未加载 app.js 的页面） */
.user-chip .u-av {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.shell-bal { font-variant-numeric: tabular-nums; }

/* ---------- 统一页脚 ---------- */
footer.site-foot {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 34px 24px 20px; text-align: left;
}
.foot-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 28px;
}
.foot-brand .foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-brand .foot-logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.foot-brand .foot-logo .nm { display: flex; flex-direction: column; font-size: 16px; font-weight: 800; }
.foot-brand .foot-logo .nm i {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--text-3);
}
.foot-slogan {
  font-size: 12.5px; color: var(--text-2); line-height: 1.9; margin: 12px 0 14px; max-width: 320px;
}
.foot-apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.foot-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text-1); }
.foot-col a, .foot-col .foot-addr {
  display: block; font-size: 12.5px; color: var(--text-2); line-height: 2.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--wrap); margin: 24px auto 0; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-size: 11.5px; color: var(--text-3);
}

/* ---------- 独立页面头图 ---------- */
.page-hero {
  position: relative; overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(128,128,128,.16), rgba(128,128,128,0) 70%);
}
.ph-tx { position: relative; z-index: 1; min-width: 0; }
.ph-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 99px; background: var(--hover); color: var(--text-2);
}
.ph-tx h1 { font-size: 26px; font-weight: 800; letter-spacing: .5px; margin: 10px 0 6px; }
.ph-tx p { font-size: 13px; color: var(--text-2); line-height: 1.7; max-width: 560px; }
.ph-act { position: relative; z-index: 1; display: flex; gap: 8px; flex-shrink: 0; }
.ph-qr { position: relative; z-index: 1; text-align: center; flex-shrink: 0; }
.ph-qr img {
  width: 92px; height: 92px; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 4px;
}
.ph-qr span { display: block; font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* ---------- 首页四宫格快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.quick-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--text-3); }
.q-ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.q-ic svg { width: 20px; height: 20px; }
.q-ic.blue  { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.q-ic.red   { background: linear-gradient(135deg, #fb7185, #be123c); }
.q-ic.gold  { background: linear-gradient(135deg, #fbbf24, #b45309); }
.q-ic.green { background: linear-gradient(135deg, #34d399, #047857); }
.q-tx { display: flex; flex-direction: column; min-width: 0; }
.q-tx b { font-size: 14px; }
.q-tx i { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.q-go { margin-left: auto; color: var(--text-3); font-size: 14px; }

/* ---------- 首页：U盘 / 软件 双入口 ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px; }
.entry-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; min-height: 140px;
  display: flex; align-items: center; color: #fff; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entry-card.usb  { background: linear-gradient(135deg, #243447 0%, #101a26 100%); }
.entry-card.soft { background: linear-gradient(135deg, #0e8579 0%, #0b4f48 100%); }
.entry-card .e-bg {
  position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.e-tx { position: relative; z-index: 1; }
.e-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18);
}
.e-tx h3 { font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.e-tx p { font-size: 12.5px; line-height: 1.7; opacity: .88; max-width: 300px; }
.e-btn { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }

/* ---------- 分区「查看更多」 ---------- */
.more-link { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.more-link:hover { color: var(--accent); }
.section-block { margin-bottom: 8px; }

/* ---------- 榜单页：前三名 ---------- */
.top3-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.top3-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease;
}
.top3-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.t3-no {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 4px 9px; border-radius: 8px; flex-shrink: 0;
}
.top3-card.gold   .t3-no { background: #fdeec4; color: #8a5a0d; }
.top3-card.silver .t3-no { background: #e7eaee; color: #374151; }
.top3-card.bronze .t3-no { background: #f7e0cd; color: #93481b; }
.t3-main { min-width: 0; flex: 1; }
.t3-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t3-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.t3-meta { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.t3-play {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 软件下载页 ---------- */
.soft-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.sd-card {
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.sd-ic {
  width: 50px; height: 50px; border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sd-ic svg { width: 26px; height: 26px; fill: currentColor; }
.sd-ic.android { background: linear-gradient(135deg, #34d399, #047857); }
.sd-ic.pc      { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.sd-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-3); }
.sd-tx h2 { font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.sd-tx ul { list-style: none; }
.sd-tx li {
  font-size: 12.5px; color: var(--text-2); line-height: 1.9; padding-left: 14px; position: relative;
}
.sd-tx li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3);
}
.sd-meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.sd-btn {
  margin-top: auto; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
  transition: filter .15s ease, transform .15s ease;
}
.sd-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card {
  padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  display: flex; flex-direction: column; gap: 6px; transition: transform .18s ease, box-shadow .18s ease;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-card .m-ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--hover); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.mini-card .m-ic svg { width: 18px; height: 18px; }
.mini-card b { font-size: 14px; }
.mini-card i { font-style: normal; font-size: 12px; color: var(--text-2); line-height: 1.7; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.steps .s-no {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.steps b { font-size: 14px; display: block; margin-bottom: 4px; }
.steps i { font-style: normal; font-size: 12px; color: var(--text-2); line-height: 1.7; }
.soft-foot { margin-top: 14px; font-size: 13px; }
.soft-foot a { color: var(--accent); }
.soft-foot a:hover { text-decoration: underline; }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 860px) {
  .topbar-inner { height: auto; min-height: 54px; }
  .nav { flex: 1 0 100%; order: 5; justify-content: flex-start; }
  .nav a.active::after { display: none; }
  .page-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .page-hero .ph-qr { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .entry-grid { grid-template-columns: 1fr; }
  .top3-wrap { grid-template-columns: 1fr; }
  .soft-dl { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 18px; }
  .foot-brand .foot-apps { justify-content: flex-start; }
  .ph-tx h1 { font-size: 22px; }
  footer.site-foot { padding: 24px 14px 18px; }
}

/* =====================================================================
   论坛 v2 版式：板块卡片 / 帖子流 / 详情 / 富媒体编辑器 / 头像
   ===================================================================== */
.forum-head h1 { letter-spacing: -.3px; }

/* ---- 顶部统计条 ---- */
.fb-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.fb-s {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 1px;
}
.fb-s b { font-size: 18px; font-weight: 800; color: var(--text-1); }
.fb-s span { font-size: 11.5px; color: var(--text-3); }
.fb-note {
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; color: var(--text-2); margin-bottom: 12px;
}

/* ---- 板块卡片 ---- */
.forum-board-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.forum-board {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.forum-board:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.forum-board .bi {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; font-size: 22px;
  background: linear-gradient(135deg, #ff7a45, #ff4d6d); color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 69, .28);
}
.forum-board .bb { min-width: 0; flex: 1; }
.forum-board .bn { font-size: 14.5px; }
.forum-board .bd { font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-board .bc { font-size: 11.5px; margin-top: 5px; color: var(--text-3); }
.forum-board .bgo { font-size: 12px; color: var(--text-3); flex: 0 0 auto; }
.forum-board:hover .bgo { color: var(--accent); }

/* ---- 头像 ---- */
.f-av {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--border);
}
.f-av.sm { width: 32px; height: 32px; flex-basis: 32px; }
.f-av-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff7a45, #ff4d6d); border: none;
}
.f-av.sm.f-av-ph { font-size: 13px; }
.f-loc {
  font-size: 11px; color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; margin-left: 6px;
}

/* ---- 帖子列表 ---- */
.forum-post-list { gap: 10px; }
.forum-post {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.forum-post:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.forum-post .fp-main { min-width: 0; flex: 1; }
.forum-post .fp-t {
  font-size: 14.5px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff7a45, #ff4d6d); border-radius: 5px;
  padding: 1px 6px; margin-right: 6px; vertical-align: 1px;
}
.forum-post .fp-m {
  font-size: 11.5px; color: var(--text-3); margin-top: 4px;
  display: flex; align-items: center; flex-wrap: wrap;
}
.forum-post .fp-e {
  font-size: 12.5px; color: var(--text-2); margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-thumbs { display: flex; gap: 6px; margin-top: 7px; }
.fp-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border);
}
.fp-thumbs .fp-more {
  width: 62px; height: 62px; border-radius: 8px; background: var(--surface-2);
  color: var(--text-3); font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.fp-has { color: var(--text-3); margin-right: 8px; }
.fp-input {
  height: 36px; border: 1.5px solid var(--border); border-radius: 9px; padding: 0 12px;
  background: var(--surface-2); color: var(--text-1); outline: none; font-size: 13px;
}
.fp-input:focus { border-color: var(--accent); }
.fp-pg { font-size: 12px; color: var(--text-3); align-self: center; }

/* ---- 详情卡片 ---- */
.forum-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow);
}
.fp-detail .fd-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fd-u { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.fd-n { font-size: 14px; font-weight: 700; color: var(--text-1); }
.fd-m { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; flex-wrap: wrap; }
.fd-title {
  font-size: 18px; font-weight: 800; color: var(--text-1); line-height: 1.4; margin-bottom: 10px;
}
.fp-body { font-size: 14px; line-height: 1.75; color: var(--text-1); white-space: pre-wrap; word-break: break-word; }
.fd-foot { margin-top: 12px; font-size: 11.5px; color: var(--text-3); }
.forum-sec-t {
  font-size: 13px; font-weight: 700; color: var(--text-2); margin: 18px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.forum-sec-t::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.fr-like {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  border-radius: 20px; padding: 5px 12px; font-size: 12px; cursor: pointer; flex: 0 0 auto;
}
.fr-like:hover { border-color: var(--accent); color: var(--accent); }
.fr-like.on { background: #fff1eb; border-color: #ffb59a; color: #e8590c; font-weight: 700; }

/* ---- 回复 ---- */
.forum-replies { display: flex; flex-direction: column; gap: 10px; }
.forum-reply {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
}
.forum-reply .fr-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fr-who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fr-who b { font-size: 13.5px; color: var(--text-1); }
.fr-who span { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; flex-wrap: wrap; }

/* ---- 编辑器 ---- */
.fe {
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2);
  overflow: hidden; transition: border-color .15s;
}
.fe:focus-within { border-color: var(--accent); }
.fe-bar { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.fe-b {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer;
}
.fe-b:hover { border-color: var(--accent); color: var(--accent); }
.fe-up { display: inline-flex; align-items: center; cursor: pointer; }
.fe-tip { margin-left: auto; font-size: 11px; color: var(--text-3); }
.fe-text {
  width: 100%; border: 0; outline: none; resize: vertical; padding: 12px;
  background: var(--surface); color: var(--text-1); font-size: 14px; line-height: 1.7;
  font-family: inherit;
}
.fe-media { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
.fe-media:empty { display: none; }
.fe-mi {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 12px;
}
.fe-mi img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.fe-mi span { font-size: 16px; }
.fe-mi b { font-weight: 600; color: var(--text-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-mi-x {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1;
}
.fe-mi-x:hover { color: var(--danger); }
.fe-emoji { padding: 10px; background: var(--surface); border-top: 1px solid var(--border); }
.fe-eg { margin-bottom: 8px; }
.fe-eg-t { font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
.fe-eg-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.fe-e {
  border: 0; background: transparent; font-size: 20px; cursor: pointer; padding: 5px 0; border-radius: 8px;
}
.fe-e:hover { background: var(--hover); }
.fe-dlg { display: flex; gap: 6px; padding: 8px; background: var(--surface); border-top: 1px solid var(--border); }
.fe-dlg-in {
  flex: 1; min-width: 0; height: 34px; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0 10px; background: var(--surface-2); color: var(--text-1); outline: none; font-size: 13px;
}
.fe-actions { display: flex; gap: 8px; margin-top: 10px; }
.fr-me { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); }
.fr-me b { color: var(--text-1); }
.fp-reply-box { margin-top: 16px; }
.f-audio { display: none; }

/* ---- 媒体展示 ---- */
.fm-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.fm-imgs.one { grid-template-columns: minmax(0, 320px); }
.fm-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.fm-img img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--surface-2); }
.fm-imgs.one .fm-img img { height: auto; max-height: 360px; }
.fm-musics, .fm-videos { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fmm {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--border); background: linear-gradient(90deg, var(--surface-2), var(--surface));
}
.fmm.playing { border-color: #ffb59a; background: linear-gradient(90deg, #fff1eb, var(--surface)); }
.fmm-play {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ff7a45, #ff4d6d); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.fmm.playing .fmm-play { background: linear-gradient(135deg, #10b981, #059669); }
.fmm-body { min-width: 0; flex: 1; }
.fmm-t { font-size: 13px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmm-u { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmm-open { color: var(--text-3); text-decoration: none; font-size: 14px; padding: 0 4px; }
.fmv video { width: 100%; max-height: 380px; border-radius: 10px; background: #000; display: block; }
.fmv-t { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.fmv-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-1); text-decoration: none;
}
.fmv-link:hover { border-color: var(--accent); }
.fmv-ic { font-size: 18px; }
.fmv-link span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fmv-go { font-size: 11.5px; color: var(--text-3); }

/* ---- 弹层：头像选择 / 看图 ---- */
.fp-mask {
  position: fixed; inset: 0; z-index: 9999; background: var(--mask);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(3px);
}
.fp-panel {
  width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto;
}
.fp-panel .fp-t { font-size: 15px; font-weight: 800; color: var(--text-1); margin-bottom: 12px; }
.fp-av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.fp-av {
  border: 2px solid transparent; border-radius: 50%; padding: 2px; background: transparent; cursor: pointer;
}
.fp-av img { width: 100%; border-radius: 50%; display: block; }
.fp-av.on { border-color: #ff7a45; }
.fp-sec { font-size: 12px; color: var(--text-2); margin: 16px 0 8px; font-weight: 700; }
.fp-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.fp-row input {
  flex: 1; min-width: 0; height: 34px; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0 10px; background: var(--surface-2); color: var(--text-1); outline: none; font-size: 13px;
}
.fp-file { display: inline-flex; align-items: center; cursor: pointer; }
.fp-tip { font-size: 11.5px; color: var(--text-3); }
.fp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fp-img img { max-width: 100%; max-height: 88vh; border-radius: 10px; }

/* ---- 后台：论坛设置 ---- */
.fcfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fcfg {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
.fcfg span { font-size: 13px; color: var(--text-1); }
.fcfg small { display: block; font-size: 11px; color: var(--text-3); }

@media (max-width: 640px) {
  .fm-imgs { grid-template-columns: repeat(2, 1fr); }
  .forum-board-grid { grid-template-columns: 1fr; }
  .fp-av-grid { grid-template-columns: repeat(4, 1fr); }
  .forum-post { padding: 11px; }
}

/* =====================================================================
   论坛 · Discuz! 经典版面（宽度 / 色调 / 布局由后台「论坛设置」控制）
   ===================================================================== */
.forum-wrap {
  --fz-a: #3a6ea5;
  --fz-a2: #2b5b8a;
  --fz-soft: #eef4fa;
  --fz-soft2: #f7f9fc;
  --fz-ln: #d8e2ec;
  --fz-ln2: #e8eef4;
  --fz-t1: #1f2937;
  --fz-t2: #4b5563;
  --fz-t3: #8a94a6;
  --fz-pnl: #fff;
  --fz-radius: 8px;
}
.forum-wrap[data-ft="dark"] {
  --fz-a: #5b9bd5;
  --fz-a2: #7cb3e4;
  --fz-soft: #1b2430;
  --fz-soft2: #151d27;
  --fz-ln: #2b3644;
  --fz-ln2: #232d3a;
  --fz-t1: #e6edf5;
  --fz-t2: #aab6c6;
  --fz-t3: #7c8899;
  --fz-pnl: #141c26;
}
.forum-wrap[data-ft="orange"] { --fz-a: #e2661b; --fz-a2: #c4520f; --fz-soft: #fdf0e6; --fz-soft2: #fff8f2; --fz-ln: #f2d9c4; --fz-ln2: #f8e8da; }
.forum-wrap[data-ft="green"]  { --fz-a: #2e9e6b; --fz-a2: #24855a; --fz-soft: #e8f6ef; --fz-soft2: #f3fbf7; --fz-ln: #c9e8da; --fz-ln2: #e0f2ea; }
.forum-wrap[data-ft="purple"] { --fz-a: #7c5cc4; --fz-a2: #6a4bb0; --fz-soft: #f1ecfb; --fz-soft2: #f8f5fe; --fz-ln: #ddd2f2; --fz-ln2: #ece4f8; }

/* 宽度：默认 1500，后台可配 1200 / 960 / 全宽 */
.forum-wrap[data-fw="1500"] { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px 120px; }
.forum-wrap[data-fw="1200"] { max-width: 1200px; margin: 0 auto; padding: 14px 16px 120px; }
.forum-wrap[data-fw="960"]  { max-width: 960px;  margin: 0 auto; padding: 14px 14px 120px; }
.forum-wrap[data-fw="full"] { max-width: 100%;   margin: 0;     padding: 14px 20px 120px; }

.forum-head h1 { font-size: 21px; font-weight: 800; color: var(--fz-t1); }

/* ---------- 顶部信息统计条 ---------- */
.fz-info {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--fz-soft), var(--fz-soft2));
  border: 1px solid var(--fz-ln); border-radius: var(--fz-radius);
  padding: 9px 14px; margin-bottom: 16px; font-size: 12.5px; color: var(--fz-t2);
}
.fz-info b { color: var(--fz-t1); font-weight: 800; }
.fz-info .fz-hl { color: var(--fz-a); }
.fz-info-r { margin-left: auto; }

/* ---------- 面包屑 ---------- */
.fz-crumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fz-t3); padding: 7px 12px;
  background: var(--fz-soft2); border: 1px solid var(--fz-ln2);
  border-radius: var(--fz-radius); margin-bottom: 10px;
}
.fz-crumb a { color: var(--fz-a); text-decoration: none; cursor: pointer; font-weight: 600; }
.fz-crumb a:hover { text-decoration: underline; }
.fz-crumb span { color: var(--fz-t2); font-weight: 600; }
.fz-crumb .fz-cd { flex: 0 0 100%; font-size: 11.5px; color: var(--fz-t3); }

/* ---------- 分区 ---------- */
.fz-cat { margin-bottom: 18px; border: 1px solid var(--fz-ln); border-radius: var(--fz-radius); overflow: hidden; background: var(--fz-pnl); }
.fz-cat-h {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: linear-gradient(180deg, var(--fz-soft), var(--fz-soft2));
  border-bottom: 1px solid var(--fz-ln);
}
.fz-cat-h h2 {
  font-size: 14.5px; font-weight: 800; color: var(--fz-t1); margin: 0;
  padding-left: 9px; border-left: 3px solid var(--fz-a); line-height: 1.2;
}
.fz-cat-h span { margin-left: auto; font-size: 11.5px; color: var(--fz-t3); }

/* ---------- 通用表格 ---------- */
.fz-tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.fz-tbl col.cg-ico { width: 52px; }
.fz-tbl col.cg-n   { width: 82px; }
.fz-tbl col.cg-a   { width: 128px; }
.fz-tbl col.cg-l   { width: 230px; }
.fz-tbl thead th {
  background: var(--fz-soft2); color: var(--fz-t2); font-size: 12px; font-weight: 700;
  text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--fz-ln);
}
.fz-tbl tbody td { padding: 10px; border-bottom: 1px solid var(--fz-ln2); vertical-align: middle; }
.fz-tbl tbody tr:last-child td { border-bottom: 0; }
.fz-tbl tbody tr:hover { background: var(--fz-soft2); }
.fz-tbl a { color: var(--fz-t1); text-decoration: none; cursor: pointer; }
.fz-tbl a:hover { color: var(--fz-a); }

/* 图标格 */
.fz-c-ico { text-align: center; }
.fz-ic {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(145deg, var(--fz-a), var(--fz-a2));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.fz-ic.t-pin { background: linear-gradient(145deg, #d9534f, #c9302c); }

/* 板块格 */
.fz-frm { cursor: pointer; }
.fz-fn a { font-size: 14px; font-weight: 700; color: var(--fz-a) !important; }
.fz-fn a:hover { text-decoration: underline; }
.fz-fd { font-size: 11.5px; color: var(--fz-t3); margin-top: 3px; }
.fz-badge { display: inline-block; font-size: 10px; border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.fz-badge.dig { background: #fdf3d8; color: #a06a10; border: 1px solid #f0dcae; }

/* 数字格：上数字下说明 */
.fz-c-n { text-align: center; white-space: nowrap; }
.fz-c-n b { display: block; font-size: 14px; font-weight: 800; color: var(--fz-t1); line-height: 1.3; }
.fz-c-n b.fz-td-on { color: var(--fz-a); }
.fz-c-n span { display: block; font-size: 10.5px; color: var(--fz-t3); }

/* 最后发表：单行截断，避免长标题换行 */
.fz-c-l { font-size: 11.5px; line-height: 1.5; max-width: 0; }
.fz-lt, .fz-lm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-lt a { font-weight: 600; }
.fz-lm { color: var(--fz-t3); }
.fz-none { color: var(--fz-t3); font-size: 11.5px; }

/* ---------- 筛选标签栏 ---------- */
.fz-tabbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--fz-soft2);
  border: 1px solid var(--fz-ln2); border-radius: var(--fz-radius) var(--fz-radius) 0 0;
  border-bottom: 0;
}
.fz-tab {
  border: 1px solid transparent; background: transparent; color: var(--fz-t2);
  font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; cursor: pointer;
  font-family: inherit;
}
.fz-tab:hover { color: var(--fz-a); }
.fz-tab.on { background: var(--fz-a); border-color: var(--fz-a); color: #fff; }
.fz-q {
  border: 1px solid var(--fz-ln); background: var(--fz-pnl); color: var(--fz-t1);
  border-radius: 20px; padding: 5px 12px; font-size: 12.5px; font-family: inherit; width: 190px;
}
.fz-q:focus { outline: 0; border-color: var(--fz-a); }
.fz-tabbar .spacer { flex: 1; }
.fz-tabbar .btn { border-radius: 20px; }
.fz-topics { border: 1px solid var(--fz-ln2); border-radius: 0 0 var(--fz-radius) var(--fz-radius); }

/* ---------- 主题行 ---------- */
.fz-topic { cursor: pointer; }
.fz-topic.is-pin { background: var(--fz-soft2); }
.fz-topic.is-pin:hover { background: var(--fz-soft); }
.fz-c-tit .fz-tt { font-size: 13.5px; font-weight: 600; }
.fz-c-tit .fz-ex {
  font-size: 11.5px; color: var(--fz-t3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px;
}
.fz-tag {
  display: inline-block; font-size: 10px; border-radius: 3px;
  padding: 1px 5px; margin-right: 5px; vertical-align: middle; line-height: 1.5;
}
.fz-tag.pin { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.fz-tag.dig { background: #fdf3d8; color: #a06a10; border: 1px solid #f0dcae; }
.fz-tag.img { background: #e8f4fd; color: #2b6cb0; border: 1px solid #c7e0f5; }
.fz-tag.mus { background: #f3e8fd; color: #7c3aed; border: 1px solid #ddd0f7; }
.fz-tag.vid { background: #e6f6f1; color: #0f766e; border: 1px solid #c3e9df; }
.fz-c-a { font-size: 11.5px; line-height: 1.5; }
.fz-c-a .fz-an { font-weight: 600; display: inline-block; margin-left: 4px; }
.fz-c-a .fz-at { color: var(--fz-t3); }

/* ---------- 卡片网格布局 ---------- */
.fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fz-gcard {
  display: block; text-align: left; background: var(--fz-pnl);
  border: 1px solid var(--fz-ln); border-radius: var(--fz-radius);
  padding: 14px; cursor: pointer; font-family: inherit; transition: .15s;
}
.fz-gcard:hover { border-color: var(--fz-a); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.fz-gic { font-size: 24px; margin-bottom: 8px; }
.fz-gn { font-size: 14.5px; font-weight: 700; color: var(--fz-a); }
.fz-gd { font-size: 11.5px; color: var(--fz-t3); margin-top: 4px; }
.fz-gs { font-size: 11px; color: var(--fz-t3); margin-top: 8px; }
.fz-gs b { color: var(--fz-a); }

/* ---------- 主题头 ---------- */
.fz-th-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--fz-soft), var(--fz-soft2));
  border: 1px solid var(--fz-ln); border-radius: var(--fz-radius);
  padding: 12px 16px; margin-bottom: 12px;
}
.fz-th-head h1 { font-size: 19px; font-weight: 800; color: var(--fz-t1); margin: 0; line-height: 1.4; }
.fz-th-m { font-size: 11.5px; color: var(--fz-t3); margin-top: 5px; }
.fz-th-r { margin-left: auto; }

/* ---------- 楼层 ---------- */
.fz-thread { border: 1px solid var(--fz-ln); border-radius: var(--fz-radius); overflow: hidden; background: var(--fz-pnl); }
.fz-post { display: flex; align-items: stretch; border-bottom: 1px solid var(--fz-ln2); }
.fz-post:last-child { border-bottom: 0; }
.fz-post.is-op { background: var(--fz-soft2); }

/* 左侧用户信息卡 */
.fz-p-side {
  flex: 0 0 152px; width: 152px; padding: 14px 10px;
  background: var(--fz-soft2); border-right: 1px solid var(--fz-ln2);
  text-align: center;
}
.fz-post.is-op .fz-p-side { background: var(--fz-soft); }
.fz-uc-n {
  font-size: 12.5px; font-weight: 700; color: var(--fz-a);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 7px;
}
.fz-uc-g {
  display: inline-block; font-size: 10px; font-weight: 700; border-radius: 3px;
  padding: 1px 7px; margin-top: 7px; background: #eef1f5; color: #6b7280;
}
.fz-uc-g.g-admin { background: #fde8e8; color: #c0392b; }
.fz-uc-g.g-moderator { background: #e8f4fd; color: #2b6cb0; }
.fz-uc-g.g-vip { background: #fdf3d8; color: #a06a10; }
.fz-uc-lv { font-size: 11px; color: var(--fz-t2); margin-top: 5px; font-weight: 600; }
.fz-uc-bar { height: 4px; border-radius: 3px; background: var(--fz-ln); margin: 6px 6px 0; overflow: hidden; }
.fz-uc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fz-a), var(--fz-a2)); }
.fz-uc-st { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 9px 2px 0; font-size: 10.5px; text-align: left; }
.fz-uc-st dt { color: var(--fz-t3); white-space: nowrap; }
.fz-uc-st dd {
  margin: 0; color: var(--fz-t2); font-weight: 600; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 右侧内容 */
.fz-p-main { flex: 1; min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; }
.fz-p-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--fz-t3); padding-bottom: 8px; border-bottom: 1px dashed var(--fz-ln2); }
.fz-floor { font-weight: 700; color: var(--fz-t2); background: var(--fz-pnl); border: 1px solid var(--fz-ln); border-radius: 3px; padding: 1px 7px; }
.fz-floor.op { background: var(--fz-a); border-color: var(--fz-a); color: #fff; }
.fz-p-ct { font-size: 13.5px; line-height: 1.75; color: var(--fz-t1); padding: 11px 0; white-space: pre-wrap; word-break: break-word; }
.fz-p-act { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.fz-act {
  border: 1px solid var(--fz-ln); background: var(--fz-pnl); color: var(--fz-t2);
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 4px; cursor: pointer;
  font-family: inherit;
}
.fz-act:hover { border-color: var(--fz-a); color: var(--fz-a); }
.fz-act.on { background: var(--fz-a); border-color: var(--fz-a); color: #fff; }

/* 公告条 / 空态 / 分页 */
.fz-note {
  background: #fff8e6; border: 1px solid #f5e2b8; color: #8a6a20;
  font-size: 12.5px; padding: 8px 14px; border-radius: var(--fz-radius); margin-bottom: 12px;
}
.fz-empty { text-align: center; color: var(--fz-t3); font-size: 13px; padding: 34px 0; }
.fz-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.fz-pg {
  border: 1px solid var(--fz-ln); background: var(--fz-pnl); color: var(--fz-t2);
  font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 4px; cursor: pointer;
  font-family: inherit;
}
.fz-pg:hover:not(.dis) { border-color: var(--fz-a); color: var(--fz-a); background: var(--fz-soft); }
.fz-pg.dis { opacity: .45; cursor: default; }
.fz-pg-txt { font-size: 12px; color: var(--fz-t3); }

/* ---------- 回复框 ---------- */
.fz-reply-box {
  margin-top: 16px; background: var(--fz-pnl);
  border: 1px solid var(--fz-ln); border-radius: var(--fz-radius); padding: 14px 16px;
}
.fz-rb-h {
  font-size: 13.5px; font-weight: 800; color: var(--fz-t1);
  padding-bottom: 9px; border-bottom: 1px solid var(--fz-ln2); margin-bottom: 11px;
}
.fz-rb-me { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fz-t3); margin-bottom: 9px; }
.fz-rb-me b { color: var(--fz-a); }
.fz-rb-me .btn { margin-left: auto; }

/* 头像尺寸 */
.f-av { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.f-av-ph {
  background: linear-gradient(145deg, var(--fz-a), var(--fz-a2));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.f-av.lg { width: 62px; height: 62px; border-radius: 10px; font-size: 24px; }
.f-av.sm { width: 32px; height: 32px; border-radius: 7px; font-size: 13px; }
.f-av.xs { width: 22px; height: 22px; border-radius: 5px; font-size: 10.5px; }
.fz-c-a .f-av { vertical-align: middle; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .fz-tbl col.cg-l { width: 150px; }
  .fz-c-n, .fz-c-l { font-size: 11px; }
}
@media (max-width: 720px) {
  .fz-post { flex-direction: column; }
  .fz-p-side {
    flex: none; width: 100%; display: flex; align-items: center; gap: 10px;
    text-align: left; border-right: 0; border-bottom: 1px solid var(--fz-ln2); padding: 10px 12px;
  }
  .fz-uc-n { margin-bottom: 0; }
  .fz-uc-g, .fz-uc-lv, .fz-uc-bar, .fz-uc-st { display: none; }
  .fz-av.lg, .f-av.lg { width: 42px; height: 42px; font-size: 17px; }
  .fz-c-ex { max-width: 240px; }
  .fz-tabbar { padding: 7px 8px; }
  .fz-q { width: 130px; }
}

/* =====================================================================
   Discuz! 社区中心：二级导航 / 签到打卡 / 任务 / 排行 / 商城 / 我的
   ===================================================================== */
.fz-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--surface-1, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 7px; margin-bottom: 14px;
}
.fz-nv {
  height: 32px; padding: 0 14px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  color: var(--text-2, #555); font-size: 13px; font-weight: 600;
  font-family: inherit; transition: .15s;
}
.fz-nv:hover { background: var(--surface-2, #f3f4f6); color: var(--text-1, #222); }
.fz-nv.on {
  background: var(--fz-a, #2b5cff); color: #fff; border-color: var(--fz-a, #2b5cff);
}

.fz-sec-t {
  font-size: 14px; font-weight: 700; color: var(--text-1, #222);
  margin: 16px 0 10px; display: flex; align-items: baseline; gap: 8px;
}
.fz-sec-t small { font-size: 12px; font-weight: 400; color: var(--text-3, #999); }
.fz-tip {
  background: var(--surface-2, #f3f4f6); color: var(--text-2, #555);
  border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px;
}
.fz-none { font-size: 12.5px; color: var(--text-3, #999); padding: 8px 0; }
.fz-ok { color: #16a34a; }
.fz-wait { color: #d97706; }
.fz-dot {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  border-radius: 8px; background: #ef4444; color: #fff;
  font-size: 10px; text-align: center; padding: 0 4px; font-style: normal;
}

/* ---------- 签到打卡 ---------- */
.fz-sign {
  display: grid; grid-template-columns: 1fr 320px; gap: 14px; margin-bottom: 16px;
}
@media (max-width: 860px) { .fz-sign { grid-template-columns: 1fr; } }
.fz-sg-l {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 18px; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.fz-sg-btn {
  width: 190px; height: 190px; border-radius: 50%; cursor: pointer;
  border: none; font-family: inherit;
  background: linear-gradient(160deg, var(--fz-a, #2b5cff), var(--fz-a2, #5b8bff));
  color: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; box-shadow: 0 8px 22px rgba(43, 92, 255, .28);
  transition: transform .15s, box-shadow .15s;
}
.fz-sg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 92, 255, .34); }
.fz-sg-ic { font-size: 40px; line-height: 1; }
.fz-sg-btn b { font-size: 19px; font-weight: 700; }
.fz-sg-btn small { font-size: 12px; opacity: .9; }
.fz-sg-btn.done {
  background: var(--surface-2, #f3f4f6); color: var(--text-2, #666);
  box-shadow: none; cursor: default;
}
.fz-sg-btn.done:hover { transform: none; }
.fz-sg-mood {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.fz-sg-mood > span { font-size: 12.5px; color: var(--text-2, #666); }
.fz-mo {
  border: 1.5px solid var(--border, #e5e7eb); background: var(--surface-1, #fff);
  border-radius: 9px; padding: 5px 9px; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px; transition: .15s;
}
.fz-mo i { font-size: 10.5px; font-style: normal; color: var(--text-3, #999); }
.fz-mo:hover { border-color: var(--fz-a, #2b5cff); }
.fz-mo.on { border-color: var(--fz-a, #2b5cff); background: var(--fz-a-soft, #eef3ff); }
.fz-sg-tip {
  font-size: 12.5px; color: var(--text-2, #666); text-align: center;
  background: var(--surface-2, #f3f4f6); border-radius: 8px; padding: 8px 12px;
}
.fz-sg-r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.fz-sg-stat {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 14px 10px; text-align: center;
}
.fz-sg-stat b {
  display: block; font-size: 24px; color: var(--fz-a, #2b5cff); line-height: 1.2;
}
.fz-sg-stat span { font-size: 12px; color: var(--text-3, #999); }
.fz-sg-bonus, .fz-sg-cal, .fz-sg-rank {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.fz-sb-h, .fz-sc-h, .fz-sr-h {
  font-size: 13.5px; font-weight: 700; color: var(--text-1, #222); margin-bottom: 10px;
}
.fz-sb-bar {
  height: 8px; border-radius: 4px; background: var(--surface-2, #f3f4f6); overflow: hidden;
}
.fz-sb-bar i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--fz-a, #2b5cff), var(--fz-a2, #5b8bff));
  transition: width .4s;
}
.fz-sb-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fz-sb {
  font-size: 12px; padding: 4px 9px; border-radius: 6px;
  background: var(--surface-2, #f3f4f6); color: var(--text-2, #666);
}
.fz-sb.got { background: var(--fz-a-soft, #eef3ff); color: var(--fz-a, #2b5cff); font-weight: 600; }
.fz-sb-next { font-size: 12px; color: var(--text-3, #999); margin-top: 8px; }

.fz-sc-w, .fz-sc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.fz-sc-w span {
  text-align: center; font-size: 11.5px; color: var(--text-3, #999); padding: 3px 0;
}
.fz-cl {
  position: relative; aspect-ratio: 1; border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  background: var(--surface-2, #f3f4f6); color: var(--text-3, #999); font-size: 12px;
}
.fz-cl.pad { background: transparent; }
.fz-cl.on {
  background: var(--fz-a-soft, #eef3ff); color: var(--fz-a, #2b5cff); font-weight: 700;
}
.fz-cl i { position: absolute; bottom: 3px; font-size: 10px; font-style: normal; }

.fz-sr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-sr {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px;
  border-radius: 20px; background: var(--surface-2, #f3f4f6); font-size: 12.5px;
}
.fz-sr span { color: var(--text-1, #222); }
.fz-sr em { font-style: normal; font-size: 11px; color: var(--text-3, #999); }

/* ---------- 任务中心 ---------- */
.fz-tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fz-tk {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 14px;
}
.fz-tk.done { border-color: var(--fz-a, #2b5cff); background: var(--fz-a-soft, #eef3ff); }
.fz-tk.got { opacity: .72; }
.fz-tk-l { flex: 1; min-width: 0; }
.fz-tk-n { font-size: 13.5px; font-weight: 700; color: var(--text-1, #222); }
.fz-tk-d { font-size: 12px; color: var(--text-3, #999); margin: 3px 0 7px; }
.fz-tk-bar { height: 6px; border-radius: 3px; background: var(--surface-2, #f3f4f6); overflow: hidden; }
.fz-tk-bar i { display: block; height: 100%; background: var(--fz-a, #2b5cff); }
.fz-tk-p { font-size: 11.5px; color: var(--text-3, #999); margin-top: 5px; }
.fz-tk-r { text-align: center; flex: 0 0 76px; }
.fz-tk-r > .fz-tk-p { font-size: 17px; font-weight: 700; color: var(--fz-a, #2b5cff); margin: 0 0 7px; }
.fz-tk-b {
  width: 100%; height: 30px; border-radius: 7px; cursor: pointer; font-family: inherit;
  border: none; background: var(--fz-a, #2b5cff); color: #fff; font-size: 12.5px; font-weight: 600;
}
.fz-tk-b.dis { background: var(--surface-2, #f3f4f6); color: var(--text-3, #999); cursor: default; }

/* ---------- 排行榜 ---------- */
.fz-rank .fz-rk-no { text-align: center; font-weight: 700; color: var(--text-2, #666); }
.fz-rank .fz-rk-no.top { color: #f59e0b; font-size: 15px; }
.fz-rk-u { display: flex; align-items: center; gap: 7px; }
.fz-rk-u span { font-size: 13px; font-weight: 600; }

/* ---------- 积分商城 ---------- */
.fz-shop-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--text-2, #666);
}
.fz-shop-top b { color: var(--fz-a, #2b5cff); font-size: 18px; }
.fz-shop-note { font-size: 12px; color: var(--text-3, #999); }
.fz-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fz-sc {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.fz-sc-n { font-size: 13.5px; font-weight: 700; color: var(--text-1, #222); }
.fz-sc-d { font-size: 12px; color: var(--text-3, #999); flex: 1; }
.fz-sc-b { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fz-sc-b span { font-size: 13px; font-weight: 700; color: var(--fz-a, #2b5cff); }

/* ---------- 我的 ---------- */
.fz-me-head {
  display: flex; gap: 14px; align-items: center; margin-bottom: 12px;
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 16px;
}
.fz-me-i { flex: 1; min-width: 0; }
.fz-me-n { font-size: 16px; font-weight: 700; color: var(--text-1, #222); }
.fz-me-lv {
  font-size: 11.5px; font-weight: 600; color: var(--fz-a, #2b5cff);
  background: var(--fz-a-soft, #eef3ff); border-radius: 6px; padding: 2px 7px; margin-left: 6px;
}
.fz-me-s { font-size: 12.5px; color: var(--text-2, #666); margin-top: 4px; }
.fz-me-s b { color: var(--fz-a, #2b5cff); }
.fz-me-list { display: flex; flex-direction: column; gap: 8px; }
.fz-me-it {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 11px 13px; cursor: pointer; transition: .15s;
}
.fz-me-it:hover { border-color: var(--fz-a, #2b5cff); }
.fz-me-q { font-size: 12px; color: var(--text-3, #999); }
.fz-me-q b { color: var(--text-1, #222); }
.fz-me-c {
  font-size: 13px; color: var(--text-1, #222); margin: 4px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fz-me-t { font-size: 11.5px; color: var(--text-3, #999); }

/* ---------- 勋章 ---------- */
.fz-md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fz-md {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 11px; padding: 12px 8px; text-align: center; opacity: .5;
}
.fz-md.on { opacity: 1; border-color: var(--fz-a, #2b5cff); background: var(--fz-a-soft, #eef3ff); }
.fz-md-i { font-size: 26px; line-height: 1.2; }
.fz-md-n { font-size: 12.5px; font-weight: 700; color: var(--text-1, #222); margin-top: 3px; }
.fz-md-d { font-size: 11px; color: var(--text-3, #999); margin-top: 2px; }
.fz-md-g { font-size: 10.5px; color: var(--fz-a, #2b5cff); margin-top: 5px; font-weight: 600; }

/* ---------- 私信 ---------- */
.fz-pm { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
@media (max-width: 720px) { .fz-pm { grid-template-columns: 1fr; } }
.fz-pm-l, .fz-pm-r {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 11px; padding: 12px;
}
.fz-pm-ul { display: flex; flex-direction: column; gap: 5px; }
.fz-pm-i {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--text-1, #222); text-align: left;
}
.fz-pm-i:hover { background: var(--surface-2, #f3f4f6); }
.fz-pm-i.on { background: var(--fz-a-soft, #eef3ff); border-color: var(--fz-a, #2b5cff); }
.fz-pm-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-pm-t { font-size: 13.5px; font-weight: 700; color: var(--text-1, #222); margin-bottom: 10px; }
.fz-pm-ms {
  display: flex; flex-direction: column; gap: 9px; max-height: 340px;
  overflow-y: auto; padding-right: 4px;
}
.fz-pm-m { display: flex; gap: 7px; align-items: flex-start; }
.fz-pm-m.mine { flex-direction: row-reverse; }
.fz-pm-b {
  background: var(--surface-2, #f3f4f6); border-radius: 9px; padding: 7px 10px;
  font-size: 13px; color: var(--text-1, #222); max-width: 78%; word-break: break-word;
}
.fz-pm-m.mine .fz-pm-b { background: var(--fz-a-soft, #eef3ff); }
.fz-pm-b i {
  display: block; font-style: normal; font-size: 10.5px;
  color: var(--text-3, #999); margin-top: 3px;
}
.fz-pm-send { display: flex; gap: 8px; margin-top: 10px; }
.fz-pm-send input {
  flex: 1; height: 34px; border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 8px; padding: 0 10px; background: var(--surface-2, #f3f4f6);
  color: var(--text-1, #222); font-family: inherit; font-size: 13px;
}

/* ---------- 举报弹层 ---------- */
.fp-rep { display: flex; flex-wrap: wrap; gap: 7px; }
.fp-rb {
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--border, #e5e7eb); background: var(--surface-1, #fff);
  color: var(--text-2, #555); font-size: 12.5px;
}
.fp-rb:hover { border-color: var(--fz-a, #2b5cff); }
.fp-rb.on { border-color: var(--fz-a, #2b5cff); background: var(--fz-a-soft, #eef3ff); color: var(--fz-a, #2b5cff); }

/* ---------- 推广中心（我的 → 推广中心） ---------- */
.fz-promo { display: flex; flex-direction: column; gap: 12px; }
.fz-pc-code, .fz-pc-url, .fz-pc-st, .fz-pc-tip {
  background: var(--surface-1, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 11px; padding: 14px 16px;
}
.fz-pc-code > div, .fz-pc-url > div {
  font-size: 12px; color: var(--text-3, #999); margin-bottom: 7px;
}
.fz-pc-code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.fz-pc-code > div { margin-bottom: 0; flex: 0 0 auto; }
.fz-pc-code b {
  font-size: 22px; letter-spacing: 1.5px; color: var(--fz-a, #2b5cff);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.fz-pc-url input {
  width: 100%; height: 36px; border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 8px; padding: 0 10px; background: var(--surface-2, #f3f4f6);
  color: var(--text-2, #555); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; box-sizing: border-box;
}
.fz-pc-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fz-pc-st > div {
  text-align: center; background: var(--surface-2, #f3f4f6);
  border-radius: 9px; padding: 11px 6px;
}
.fz-pc-st b { display: block; font-size: 20px; color: var(--fz-a, #2b5cff); }
.fz-pc-st span { font-size: 11.5px; color: var(--text-3, #999); }
.fz-pc-tip {
  font-size: 12.5px; color: var(--text-2, #666); line-height: 1.8;
  background: var(--fz-a-soft, #eef3ff);
}

/* =====================================================================
   在线会员统计 / 图文广告位 / 收费阅读 / 管理操作条
   ===================================================================== */

/* ---------- 在线会员 ---------- */
.fz-on {
  margin-top: 16px; background: var(--surface-1, #fff);
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 14px 16px;
}
.fz-on-load { font-size: 12.5px; color: var(--text-3, #999); }
.fz-on-h {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px dashed var(--border, #e5e7eb);
}
.fz-on-h > b { font-size: 13.5px; color: var(--text-1, #222); }
.fz-on-h > span { font-size: 12.5px; color: var(--text-2, #666); }
.fz-on-h .fz-hl { color: var(--fz-a, #2b5cff); font-size: 15px; }
.fz-on-peak { margin-left: auto; font-size: 11.5px; color: var(--text-3, #999); }

.fz-on-g { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.fz-on-c {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2, #555);
  background: var(--surface-2, #f3f4f6); border-radius: 14px; padding: 4px 10px;
}
.fz-on-c i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, #64748b); display: inline-block;
}
.fz-on-c b { color: var(--c, #334155); font-size: 12.5px; }
.fz-on-c.guest { opacity: .85; }

.fz-on-l {
  display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 12px;
}
.fz-on-a {
  display: inline-flex; align-items: center; gap: 6px;
  border-left: 2px solid var(--c, #64748b); padding-left: 7px;
  font-size: 12px; color: var(--text-2, #555); max-width: 140px;
}
.fz-on-a em {
  font-style: normal; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 96px;
}
.fz-on-none { font-size: 12.5px; color: var(--text-3, #999); }

/* ---------- 图文广告位 / 轮播 ---------- */
.fz-ad { margin-bottom: 14px; }
.fz-ad:empty { display: none; }
.fz-ad-box {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface-1, #fff);
}
.fz-ad-car { position: relative; overflow: hidden; }
.fz-ad-track { display: flex; transition: transform .5s ease; }
.fz-adc {
  flex: 0 0 100%; display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; text-decoration: none; min-width: 0;
}
.fz-adc-img {
  width: 92px; height: 66px; border-radius: 9px; overflow: hidden;
  background: var(--fz-a-soft, #eef3ff); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.fz-adc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fz-adc-img em {
  font-style: normal; font-size: 22px; font-weight: 700;
  color: var(--fz-a, #2b5cff); opacity: .7;
}
.fz-adc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fz-adc-tx b {
  font-size: 14px; color: var(--text-1, #222); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fz-adc-bf {
  font-size: 12px; color: var(--text-2, #666); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fz-adc-tx em { font-style: normal; font-size: 11.5px; color: var(--text-3, #999); }
.fz-adc:hover .fz-adc-tx b { color: var(--fz-a, #2b5cff); }
.fz-ad-dots {
  display: flex; gap: 5px; justify-content: center; padding: 0 0 9px;
}
.fz-ad-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: var(--border, #d1d5db);
  cursor: pointer; transition: .2s;
}
.fz-ad-dots i.on { width: 16px; background: var(--fz-a, #2b5cff); }
.fz-ad-html { padding: 0; }
.fz-ad-html img { max-width: 100%; display: block; }

/* ---------- 收费阅读 ---------- */
.fz-tag.pay {
  background: #fff1e6; color: #c2410c; border-color: #fed7aa;
}
.fz-paybar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.fz-paybar .fz-pay-t { font-size: 13px; color: #9a3412; }
.fz-paybar .fz-pay-t b { font-size: 16px; color: #c2410c; }
.fz-paybar .fz-pay-s { font-size: 12px; color: #b45309; }
.fz-paybar .fz-pay-ok { margin-left: auto; font-size: 12.5px; color: #15803d; font-weight: 600; }
.fz-paybar .btn { margin-left: auto; }

.fz-paymask {
  margin-top: 14px; padding: 26px 18px; text-align: center;
  border-radius: 12px; border: 1px dashed #fdba74; background: #fffbf5;
}
.fz-pmask-ic { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.fz-pmask-t { font-size: 14px; color: #9a3412; margin-bottom: 6px; }
.fz-pmask-t b { color: #c2410c; }
.fz-pmask-d { font-size: 12.5px; color: #b45309; margin-bottom: 13px; }
.fz-pmask-d b { color: #c2410c; }

/* 发帖售价设置 */
.fz-payset {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  padding: 10px 13px; background: var(--surface-2, #f9fafb); margin-bottom: 10px;
}
.fz-ps-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-1, #222); cursor: pointer; }
.fz-ps-sw input { width: 15px; height: 15px; accent-color: var(--fz-a, #2b5cff); }
.fz-ps-f { font-size: 12.5px; color: var(--text-2, #555); display: inline-flex; align-items: center; gap: 5px; }
.fz-ps-f input {
  width: 74px; height: 30px; border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 7px; padding: 0 7px; background: var(--surface-1, #fff);
  color: var(--text-1, #222); font-family: inherit; font-size: 12.5px;
}
.fz-ps-tip { font-size: 11.5px; color: var(--text-3, #999); }

/* ---------- 版主操作条 ---------- */
.fz-modbar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: var(--surface-2, #f3f4f6); border: 1px solid var(--border, #e5e7eb);
  border-radius: 9px; padding: 7px 11px; margin-bottom: 12px;
}
.fz-modbar .fz-mod-t { font-size: 12px; font-weight: 700; color: var(--text-2, #555); margin-right: 3px; }
.fz-modbar .fz-act { background: var(--surface-1, #fff); }
.fz-modbar .fz-act.danger { color: #dc2626; border-color: #fecaca; }
.fz-modbar .fz-act.danger:hover { background: #fef2f2; }

/* 用户组徽章补齐 */
.fz-uc-g.g-supermod { background: #fef3c7; color: #b45309; }
.fz-uc-g.g-mod { background: #cffafe; color: #0e7490; }
.fz-uc-g.g-admin { background: #ffe4e6; color: #be123c; }

/* ============================================================
   全站 1500 宽版式适配（版心 --wrap: 1500px）
   ============================================================ */

/* 小于 1560px 视口：版心自动收为流式，不影响小屏 */
@media (max-width: 1560px) {
  :root { --wrap: 100%; }
}

/* ---------- 首页：最新音乐 + 热门榜单 左右分栏 ---------- */
.home-cols {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px;
  align-items: stretch; margin-bottom: 6px;
}
.home-cols > section { display: flex; flex-direction: column; min-width: 0; }
.home-cols .track-list { margin-bottom: 12px; flex: 1 1 auto; }
.home-cols .section-head { margin-top: 2px; }
@media (max-width: 1100px) {
  .home-cols { grid-template-columns: 1fr; }
}

/* ---------- 宽版心下的组件节奏 ---------- */
.ad-slider { height: 400px; }
@media (max-width: 860px) { .ad-slider { height: 300px; } }

.quick-grid { gap: 14px; }
.quick-card { padding: 15px 18px; }

.entry-card { min-height: 150px; padding: 26px 30px; }
.e-tx p { max-width: 420px; }

.page-hero { padding: 28px 32px; }
.ph-tx h1 { font-size: 28px; }

/* ---------- 音乐列表：宽屏列距更舒展 ---------- */
.track-list-head { padding: 10px 22px; }
.row { padding: 13px 22px; }
.row .c-ply, .row .c-dur { color: var(--text-2); }

/* ---------- 论坛 1500 宽：板块行与帖子列表对齐 ---------- */
@media (min-width: 1560px) {
  .forum-wrap .fz-b-row { padding: 16px 22px; }
  .fz-nav .fz-nv { padding: 9px 18px; }
}

/* ---------- 页脚：宽屏四栏分布更均匀（窄屏保持原有响应式列数） ---------- */
@media (min-width: 861px) {
  .foot-inner { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 0 24px; }
  .foot-bottom { padding-left: 24px; padding-right: 24px; }
}

/* ---------- 宽屏（≥1200）：列表行信息铺满，避免中段空旷 ---------- */
@media (min-width: 1200px) {
  .row-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
  .row-main .row-title { flex: 0 1 auto; min-width: 0; }
  .row-main .row-sub {
    margin-top: 0; margin-left: auto; text-align: right; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; color: var(--text-3);
  }
  .row-meta { text-align: right; font-variant-numeric: tabular-nums; }
}

/* ---------- 定制 U 盘：规格卡平摊整行 ---------- */
.spec-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-cards > * { flex: 1 1 180px; }

/* ---------- 下载页：卡片内容横向铺开 ---------- */
@media (min-width: 1200px) {
  .sd-card { padding: 26px 28px; }
  .sd-tx ul { columns: 2; column-gap: 28px; }
}

/* ---------- 列表行热度条（宽屏填充中段，避免行内空旷） ---------- */
.row-hot { display: none; }
@media (min-width: 1200px) {
  .row-hot {
    display: block; flex: 1 1 auto; min-width: 40px; max-width: 340px; height: 4px;
    border-radius: 3px; background: var(--track-bg); overflow: hidden;
  }
  .row-hot i {
    display: block; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
  }
}

/* ---------- 顶栏头像常驻 ---------- */
.user-chip.has-av { padding-left: 4px; gap: 7px; }
.user-chip .u-av {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--accent); color: var(--accent-fg); margin-right: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; overflow: hidden;
}
.user-chip .u-av.ph { letter-spacing: 0; }

/* ---------- 顶栏搜索（全站置顶） ---------- */
.tb-search {
  position: relative; flex: 0 1 260px; min-width: 140px; margin-left: auto;
}
.tb-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); display: flex; pointer-events: none;
}
.tb-search input {
  width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px 0 34px; font-size: 13px; background: var(--surface-2);
  color: var(--text-1); outline: none; transition: all .15s;
}
.tb-search input:focus { border-color: var(--text-2); background: var(--surface); }
.topbar-right { margin-left: 10px; }
@media (max-width: 1000px) { .tb-search { display: none; } }

/* ---------- 首页音乐分类：树形结构（点击展开/折叠） ---------- */
.cat-tree {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; margin-bottom: 26px; align-items: start;
}
.ct-node { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ct-node.lvl1 { padding: 4px 6px; }
.ct-row { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.ct-toggle {
  width: 22px; height: 22px; flex-shrink: 0; border: none; background: transparent;
  color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .16s ease, color .16s ease; padding: 0;
}
.ct-toggle:hover { color: var(--accent); }
.ct-node.open > .ct-row > .ct-toggle { transform: rotate(90deg); }
.ct-dot { width: 22px; flex-shrink: 0; text-align: center; color: var(--text-3); font-size: 14px; }
.ct-ic {
  font-size: 16px; line-height: 1; width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 5%, transparent));
}
.ct-name {
  font-size: 13.5px; font-weight: 600; color: var(--text-1); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-name:hover { color: var(--accent); }
.ct-kids { display: none; padding: 2px 4px 8px 26px; }
.ct-node.open > .ct-kids { display: block; }
.ct-node.lvl2 { border: none; background: transparent; border-radius: 8px; }
.ct-node.lvl2 > .ct-row { min-height: 32px; }
.ct-node.lvl2 .ct-name { font-weight: 500; font-size: 12.5px; color: var(--text-2); }
.ct-node.lvl2 .ct-name:hover { color: var(--accent); }
.ct-node.lvl2 .ct-kids {
  margin-left: 9px; padding-left: 18px; border-left: 1px dashed var(--border);
}
.ct-leaf {
  display: inline-block; font-size: 11.5px; color: var(--text-2);
  background: var(--surface-2); padding: 3px 9px; margin: 3px 4px 0 0;
  border-radius: 99px; border: 1px solid var(--border);
}
.ct-leaf:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
@media (max-width: 640px) { .cat-tree { grid-template-columns: repeat(2, 1fr); } }


/* ---------- 二 / 三级分类 chips ---------- */
.chips-sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.chips-sub .chip { font-size: 12.5px; padding: 6px 12px; }
.chips-sub .chip.up { background: var(--surface-2); color: var(--text-2); }

/* ============================================================
   版面美化收尾（统一圆角 / 悬停反馈 / 分区标题质感）
   ============================================================ */
.topbar { box-shadow: 0 1px 0 var(--border), 0 6px 18px rgba(15, 23, 42, .05); }
.section-head h2 .bar {
  width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
}
.section-head h2 { letter-spacing: -.2px; }
.section-head .more-link {
  font-size: 12.5px; color: var(--text-3); padding: 5px 12px; border-radius: 99px;
  transition: background .15s, color .15s;
}
.section-head .more-link:hover { background: var(--hover); color: var(--accent); }

/* 列表：圆角容器 + 行悬停更明显 */
.track-list {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.row { transition: background .14s ease; }
.row:hover { background: var(--hover); }
.row.current { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* 卡片统一质感 */
.quick-card, .entry-card, .sd-card, .mini-card, .soft-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-card:hover, .entry-card:hover, .mini-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
}


/* ============================================================
   浅色主按钮 / 浅置顶标签：浅色皮肤下由深色实心改为柔和浅底 + 强调色字，
   hover 时再变回强调色实心；深夜暗黑皮肤保持高对比不受影响。
   ============================================================ */
html .tb-btn.dark,
html .btn.btn-dark,
html .act-btn.primary,
html .tag.pin,
html .fz-tag.pin {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
}
html .tb-btn.dark:hover,
html .btn.btn-dark:hover,
html .act-btn.primary:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
html[data-theme="dark"] .tb-btn.dark,
html[data-theme="dark"] .btn.btn-dark,
html[data-theme="dark"] .act-btn.primary,
html[data-theme="dark"] .tag.pin,
html[data-theme="dark"] .fz-tag.pin {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
html[data-theme="dark"] .tb-btn.dark:hover,
html[data-theme="dark"] .btn.btn-dark:hover,
html[data-theme="dark"] .act-btn.primary:hover {
  background: var(--accent-hover);
}


/* ============================================================
   首页重设计 v3（2026-10-30）
   ① 全局基础：列表行封面/信息区（renderRows/renderRanked 全局共用）
   ② 首页专属：Hero / 卡片流 / 榜单前三 / 精细栅格，全部 home 限定
   ============================================================ */

/* ---------- ① 全局基础：新列表行结构 ---------- */
.row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-cover {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(0,0,0,.14);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #64748b, #334155);
}
.row-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.24), rgba(255,255,255,0) 55%);
}
.row-cover svg { position: relative; z-index: 1; opacity: .95; }
.row-info { min-width: 0; flex: 1 1 auto; }
.row-info .row-title { margin: 0; }
.row-info .row-sub { margin-top: 3px; }
/* 覆盖旧宽屏规则里针对旧结构的 row-sub 右对齐（新结构在 row-info 内应左对齐） */
@media (min-width: 1200px) {
  .row-main .row-sub { margin-left: 0; text-align: left; }
}

/* ============================================================
   ② 首页专属（body[data-page="home"] 限定）
   ============================================================ */
body[data-page="home"] .home-main { padding-top: 22px; }

/* ---------- 首屏 Hero ---------- */
body[data-page="home"] .home-hero {
  position: relative; overflow: hidden; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 20px;
  background: linear-gradient(118deg, var(--surface) 0%, var(--surface-2) 58%,
    color-mix(in srgb, var(--accent) 7%, var(--surface)) 100%);
  padding: 30px 34px; min-height: 208px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
body[data-page="home"] .home-hero::before {
  content: ""; position: absolute; right: 6%; top: -140px; width: 440px; height: 440px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
}
body[data-page="home"] .hh-body { position: relative; z-index: 2; max-width: 640px; min-width: 0; }
body[data-page="home"] .hh-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  padding: 5px 13px; border-radius: 99px; margin-bottom: 13px;
}
body[data-page="home"] .hh-title {
  font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.26;
  margin: 0 0 8px; color: var(--text-1);
}
body[data-page="home"] .hh-sub { font-size: 13.5px; color: var(--text-2); margin: 0 0 18px; }
body[data-page="home"] .hh-sub b { color: var(--text-1); font-weight: 600; }
body[data-page="home"] .hh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
body[data-page="home"] .hh-feats { display: flex; gap: 20px; flex-wrap: wrap; }
body[data-page="home"] .hh-feats span {
  font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px;
}
body[data-page="home"] .hh-feats i {
  font-style: normal; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}
/* Hero 右侧装饰：旋转唱片 + 跳动波形 */
body[data-page="home"] .hh-side { position: relative; z-index: 1; flex: 0 0 auto; width: 230px; height: 176px; }
body[data-page="home"] .hh-disc {
  position: absolute; right: 10px; top: 50%;
  width: 152px; height: 152px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #171a20 0 3px, #23272f 3px 5px);
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  animation: hhSpin 14s linear infinite;
}
body[data-page="home"] .hh-disc-hole {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 40%, #0c0e12 42% 100%);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
@keyframes hhSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
body[data-page="home"] .hh-eq {
  position: absolute; left: 0; bottom: 6px; display: flex; align-items: flex-end;
  gap: 4px; height: 50px;
}
body[data-page="home"] .hh-eq i {
  width: 5px; border-radius: 3px; height: 34%; transform-origin: bottom;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  animation: hhEq 1.1s ease-in-out infinite alternate;
}
body[data-page="home"] .hh-eq i:nth-child(2n)  { height: 62%; animation-delay: .15s; }
body[data-page="home"] .hh-eq i:nth-child(3n)  { height: 88%; animation-delay: .3s; }
body[data-page="home"] .hh-eq i:nth-child(5n)  { height: 46%; animation-delay: .45s; }
@keyframes hhEq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

/* ---------- 广告轮播：降高度，更克制 ---------- */
body[data-page="home"] .ad-slider { height: 240px; margin-bottom: 20px; border-radius: 16px; }
body[data-page="home"] .ad-slider .slide { padding: 26px 34px; }
body[data-page="home"] .ad-slider .slide h3 { font-size: 24px; }
body[data-page="home"] .ad-slider .slide p { font-size: 13px; margin-bottom: 16px; }
body[data-page="home"] .ad-slot:empty { display: none; }

/* ---------- 六宫格快捷入口：统一节奏 ---------- */
body[data-page="home"] .quick-grid {
  grid-template-columns: repeat(6, 1fr); gap: 13px; margin-bottom: 28px;
}
@media (max-width: 1240px) {
  body[data-page="home"] .quick-grid { grid-template-columns: repeat(3, 1fr); }
}
body[data-page="home"] .quick-card { padding: 16px 18px; border-radius: 16px; }
body[data-page="home"] .quick-card .q-ic { width: 44px; height: 44px; border-radius: 13px; }
body[data-page="home"] .quick-card .q-ic svg { width: 22px; height: 22px; }
body[data-page="home"] .quick-card .q-tx b { font-size: 14.5px; }
body[data-page="home"] .quick-card .q-tx i { font-size: 11.5px; margin-top: 3px; }

/* ---------- 分区标题：统一节奏 ---------- */
body[data-page="home"] .section-head { margin: 2px 0 14px; }
body[data-page="home"] .section-head h2 { font-size: 18px; }

/* ---------- 音乐分类：树形卡片规整 ---------- */
body[data-page="home"] .cat-tree {
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 12px; margin-bottom: 28px; align-items: start;
}
body[data-page="home"] .cat-tree .ct-node.lvl1 { border-radius: 14px; padding: 5px 8px; }
body[data-page="home"] .cat-tree .ct-node.lvl1 > .ct-row { min-height: 42px; }
body[data-page="home"] .cat-tree .ct-ic { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
body[data-page="home"] .cat-tree .ct-name { font-size: 13.5px; }
body[data-page="home"] .cat-tree .ct-leaf { font-size: 11.5px; }

/* ---------- 主播推荐：卡片流 ---------- */
body[data-page="home"] .rec-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px;
}
@media (max-width: 1400px) { body[data-page="home"] .rec-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { body[data-page="home"] .rec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { body[data-page="home"] .rec-grid { grid-template-columns: repeat(2, 1fr); } }
body[data-page="home"] .rec-card {
  cursor: pointer; min-width: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
body[data-page="home"] .rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
body[data-page="home"] .rc-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  filter: saturate(.68);
}
body[data-page="home"] .rc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.2));
}
body[data-page="home"] .rec-card:hover .rc-cover { filter: saturate(1); }
body[data-page="home"] .rc-badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 99px;
  background: rgba(255,255,255,.92); color: #1a1d21;
}
body[data-page="home"] .rc-play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  transform: translate(-50%, -50%) scale(.8);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.95); color: #1a1d21;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
body[data-page="home"] .rec-card:hover .rc-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
body[data-page="home"] .rc-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38px; z-index: 2;
  display: flex; align-items: flex-end; gap: 2px; padding: 0 10px 10px;
}
body[data-page="home"] .rc-wave i {
  flex: 1 1 0; min-width: 2px; border-radius: 2px; height: 40%;
  background: rgba(255,255,255,.42); transform-origin: bottom;
  animation: rcWave 1.2s ease-in-out infinite alternate;
}
body[data-page="home"] .rc-wave i:nth-child(3n)   { height: 72%; animation-delay: .2s; }
body[data-page="home"] .rc-wave i:nth-child(3n+1) { height: 56%; animation-delay: .4s; }
body[data-page="home"] .rc-wave i:nth-child(4n)   { height: 88%; animation-delay: .6s; }
@keyframes rcWave { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
body[data-page="home"] .rc-info { padding: 12px 14px 14px; min-width: 0; }
body[data-page="home"] .rc-title {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body[data-page="home"] .rc-sub {
  font-size: 12px; color: var(--text-2); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body[data-page="home"] .rc-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
body[data-page="home"] .rec-card.current .rc-title { color: var(--accent); }

/* ---------- 最新音乐 + 榜单 双栏：对齐节奏 ---------- */
body[data-page="home"] .home-cols {
  grid-template-columns: 1.65fr 1fr; gap: 22px; align-items: start; margin-bottom: 28px;
}
body[data-page="home"] .home-cols > section { min-width: 0; }
body[data-page="home"] .home-cols .track-list { margin-bottom: 0; border-radius: 16px; }
body[data-page="home"] .home-cols .section-head { margin-top: 0; }
body[data-page="home"] .track-list-head {
  grid-template-columns: 44px 1fr 90px 90px 130px; padding: 10px 20px;
}
/* 最新音乐行：封面 + 信息 + 播放量 + 时长 + 操作 */
body[data-page="home"] #latest .row {
  grid-template-columns: 44px 1fr 90px 90px 130px; padding: 11px 20px;
}
/* 榜单行（右栏更窄）：封面 + 信息 + 播放量 + 操作 */
body[data-page="home"] #rank .row.row-rank {
  grid-template-columns: 44px 1fr 76px 88px; padding: 11px 16px;
}
body[data-page="home"] .home-cols .row-idx { font-style: normal; font-variant-numeric: tabular-nums; }
body[data-page="home"] .home-cols .row-meta { text-align: right; font-variant-numeric: tabular-nums; }
/* 操作按钮收敛：默认低调、hover 才清晰，去掉「一排描边涂鸦」观感 */
body[data-page="home"] .home-cols .row-actions { opacity: .45; gap: 5px; }
body[data-page="home"] .home-cols .row:hover .row-actions,
body[data-page="home"] .home-cols .row.current .row-actions { opacity: 1; }
body[data-page="home"] .home-cols .act-btn:not(.primary) {
  background: color-mix(in srgb, var(--text-1) 7%, transparent); color: var(--text-2);
}
body[data-page="home"] .home-cols .act-btn:not(.primary):hover { background: var(--hover); color: var(--text-1); }

/* 榜单前三名：右栏竖排金银铜紧凑卡 */
body[data-page="home"] #top3.top3-wrap {
  grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px;
}
body[data-page="home"] #top3 .top3-card { padding: 11px 14px; border-radius: 13px; }
body[data-page="home"] #top3 .t3-no { font-size: 10.5px; padding: 4px 8px; }
body[data-page="home"] #top3 .t3-title { font-size: 13.5px; }
body[data-page="home"] #top3 .t3-sub { font-size: 11.5px; }
body[data-page="home"] #top3 .t3-meta { font-size: 11px; }
body[data-page="home"] #top3 .t3-play { width: 30px; height: 30px; }

/* ---------- U盘 / 软件 双卡：填白 + 图标 ---------- */
body[data-page="home"] .entry-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
body[data-page="home"] .entry-card { min-height: 168px; padding: 26px 30px; border-radius: 18px; }
body[data-page="home"] .entry-card .e-tx { max-width: 78%; }
body[data-page="home"] .entry-card .e-ic {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 84px; height: 84px; color: rgba(255,255,255,.32);
}
body[data-page="home"] .entry-card .e-ic svg { width: 84px; height: 84px; }
body[data-page="home"] .entry-card .e-tx h3 { font-size: 19px; }
body[data-page="home"] .entry-card .e-tx p { font-size: 12.5px; opacity: .9; }

/* ---------- 移动端单栏适配 ---------- */
@media (max-width: 1100px) {
  body[data-page="home"] .home-cols { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  body[data-page="home"] .hh-side { display: none; }
}
@media (max-width: 860px) {
  body[data-page="home"] .home-hero { padding: 22px 22px; min-height: 0; }
  body[data-page="home"] .hh-title { font-size: 24px; }
  body[data-page="home"] .hh-actions { margin-bottom: 14px; }
  body[data-page="home"] .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
  body[data-page="home"] .quick-card { padding: 13px 14px; }
  body[data-page="home"] .cat-tree { grid-template-columns: repeat(2, 1fr); }
  body[data-page="home"] .entry-grid { grid-template-columns: 1fr; }
  /* 列表行：隐藏播放量/时长，只留 序号 | 信息 | 操作，避免窄屏拥挤 */
  body[data-page="home"] .track-list-head { display: none; }
  body[data-page="home"] #latest .row,
  body[data-page="home"] #rank .row.row-rank { grid-template-columns: 34px 1fr auto; padding: 10px 14px; }
  body[data-page="home"] .home-cols .row-meta.c-ply,
  body[data-page="home"] .home-cols .row-meta.c-dur { display: none; }
  body[data-page="home"] .home-cols .row-actions { opacity: 1; }
  body[data-page="home"] .home-cols .row-cover { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  body[data-page="home"] .hh-title { font-size: 21px; }
  body[data-page="home"] .hh-feats { gap: 12px; }
  body[data-page="home"] .hh-actions .btn { padding: 0 14px; font-size: 13px; }
}


/* ============================================================
   首页重设计 v3 补强（2026-10-30）
   ============================================================ */

/* ---------- 云客客服：默认不遮挡，点悬浮球才显示 ----------
   云客脚本约 5 秒后会自动给 #ykPanel 加 yk-open 弹出大面板。这里不删它的 class，
   改以自定义标记 yk-user-open 为准：默认一律隐藏（无论脚本是否加了 yk-open），
   只有用户点悬浮球加上标记后面板才显示，避免自动弹遮挡正文。 */
body[data-page="home"] #ykPanel {
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
}
body[data-page="home"] #yk-root.yk-user-open #ykPanel {
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
  transform: none !important;
}
/* 悬浮球：移动端缩小并稍微上移，避开底部播放器条 */
@media (max-width: 860px) {
  #ykLauncher { transform: scale(.86); transform-origin: bottom right; }
}
/* 欢迎小卡：用户展开后才允许露出 */
body[data-page="home"] #ykCard { display: none !important; }

/* ---------- 首页正文底部留白：避开固定播放器条 / 悬浮球 ---------- */
body[data-page="home"] .home-main { padding-bottom: 96px; }
@media (max-width: 860px) { body[data-page="home"] .home-main { padding-bottom: 108px; } }

/* ---------- PWA 安装提示条：更轻、贴底避免打断 ---------- */
body[data-page="home"] .install-tip {
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
}

/* ---------- 移动端列表行：只保留主播放按钮，去掉图标噪声 ---------- */
@media (max-width: 860px) {
  body[data-page="home"] .home-cols .act-btn:not(.primary) { display: none; }
  body[data-page="home"] .home-cols .row-actions { opacity: 1; }
}

/* ---------- 封面色块：降低饱和更耐看（覆盖全局基础） ---------- */
.row-cover { filter: saturate(.86); }


/* 首页列表：弱化标签与次级图标，减少视觉噪声 */
body[data-page="home"] .home-cols .tag { font-size: 9.5px; padding: 1px 6px; }
body[data-page="home"] .home-cols .row-title { gap: 5px; }
body[data-page="home"] .home-cols .act-btn.primary { width: 32px; height: 32px; }


/* ============================================================
   首页重设计 v4（2026-10-30）：六宫格 / 社区热帖 / 动态数据条
   ============================================================ */

/* ---------- 新增入口图标配色 ---------- */
.q-ic.purple  { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.q-ic.orange  { background: linear-gradient(135deg, #fdba74, #c2410c); }

/* ---------- Hero 动态数据条：数字高亮 ---------- */
body[data-page="home"] .hh-feats b {
  color: var(--text-1); font-weight: 700; margin-left: 1px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 社区热帖：右栏榜单下方白卡 ---------- */
body[data-page="home"] .forum-hot {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 2px 16px 8px; margin-top: 14px;
}
body[data-page="home"] .fh-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 9px; border-bottom: 1px solid var(--border);
}
body[data-page="home"] .fh-head b { font-size: 14px; color: var(--text-1); }
body[data-page="home"] .fh-head a { font-size: 12px; color: var(--text-3); text-decoration: none; }
body[data-page="home"] .fh-head a:hover { color: var(--accent); }
body[data-page="home"] .fh-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 0;
  border-bottom: 1px dashed var(--border); text-decoration: none;
  color: var(--text-1); font-size: 13px;
}
body[data-page="home"] .fh-row:last-child { border-bottom: none; padding-bottom: 6px; }
body[data-page="home"] .fh-bd {
  flex-shrink: 0; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; padding: 2.5px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent);
}
body[data-page="home"] .fh-tt {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body[data-page="home"] .fh-row:hover .fh-tt { color: var(--accent); }
body[data-page="home"] .fh-meta {
  flex-shrink: 0; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  body[data-page="home"] .forum-hot { margin-top: 14px; }
}

/* ---------- 英文文案更长：移动端防横向溢出 ----------
   前台默认 English 后，导航项与快捷入口文案变长，窄屏会把页面撑宽。
   这里让顶栏导航可横向滑动，网格列用 minmax(0,1fr) 防止被内容顶宽，
   卡片内文字超出打省略号，保证任何语言下都不出现横向滚动条。 */
@media (max-width: 860px) {
  .nav {
    min-width: 0; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; }
  body[data-page="home"] .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-card, .q-tx { min-width: 0; }
  .q-tx b, .q-tx i {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .entry-card { overflow: hidden; }
  body[data-page="home"] .hh-feats span { max-width: 100%; }
}

/* ---------- 分类树一级节点：浅底更清晰 ---------- */
body[data-page="home"] .cat-tree .ct-node.lvl1 {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}
body[data-page="home"] .cat-tree .ct-node.lvl1:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

/* ============================================================
   手机版面协调化（v5）：降噪 / 对齐 / 悬浮层不打架
   ============================================================ */
@media (max-width: 640px) {
  /* 1) 列表行降噪：「推荐」徽章几乎每行都有，手机端隐藏（保留 置顶 / NEW），
        标题不再被两个徽章挤到截断 */
  .row-title .tag.rec { display: none; }
  .row { padding: 9px 10px; }
  .row .act-btn.primary { width: 34px; height: 34px; }

  /* 2) Hero：三个按钮 2+1 网格整齐排布，数据条 2 列，不再折得参差 */
  body[data-page="home"] .home-hero { padding: 22px 16px; min-height: 0; gap: 14px; }
  body[data-page="home"] .hh-title { font-size: 21px; line-height: 1.3; }
  body[data-page="home"] .hh-sub { font-size: 12.5px; }
  body[data-page="home"] .hh-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px;
  }
  body[data-page="home"] .hh-actions .btn {
    justify-content: center; white-space: nowrap; padding: 10px 8px; font-size: 13.5px;
  }
  body[data-page="home"] .hh-actions > :nth-child(3) { grid-column: 1 / -1; }
  body[data-page="home"] .hh-feats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px;
  }
  body[data-page="home"] .hh-feats span { white-space: nowrap; }
  body[data-page="home"] .hh-side { display: none; }

  /* 3) 广告横幅：手机端压扁，去描述只留标语，不再和 Hero 抢篇幅 */
  .ad-slider { height: 158px; }
  body[data-page="home"] .ad-slider { height: 158px; }
  body[data-page="home"] .ad-slider .slide { padding: 18px 16px; }
  body[data-page="home"] .ad-slider .slide h3 { font-size: 17px; }
  body[data-page="home"] .ad-slider .slide p { display: none; }
  .ad-slider .slide { padding: 20px 18px; }
  .ad-slider .slide h3 { font-size: 17px; margin-bottom: 6px; }
  .ad-slider .slide p { display: none; }
  .ad-slider .slide-btn { padding: 8px 16px; font-size: 13px; }

  /* 4) 快捷入口：标题不再截断（Member Center…），间距收紧 */
  body[data-page="home"] .quick-grid { gap: 10px; }
  body[data-page="home"] .quick-card { padding: 12px 12px; border-radius: 14px; }
  body[data-page="home"] .quick-card .q-ic { width: 40px; height: 40px; border-radius: 11px; }
  body[data-page="home"] .quick-card .q-tx b { font-size: 12.5px; letter-spacing: 0; }
  body[data-page="home"] .quick-card .q-tx i { font-size: 10.5px; }
  body[data-page="home"] .quick-card .q-go { display: none; }

  /* 5) 分类树 / 推荐卡：统一圆角与内边距节奏 */
  body[data-page="home"] .cat-tree .ct-node { padding: 12px 14px; }
  body[data-page="home"] .rec-card { border-radius: 13px; }
  body[data-page="home"] .rc-info { padding: 10px 12px 12px; }
  body[data-page="home"] .rc-title { font-size: 13px; }

  /* 6) U盘 / 软件双入口卡：压掉冗余高度 */
  .entry-card { min-height: 0; padding: 20px 18px; border-radius: 16px; }
  .entry-card h3 { font-size: 17px; }
  .entry-card .e-tx p { font-size: 12px; margin: 6px 0 12px; }
}

/* 7) 底部悬浮层不打架：播放器条(0) → 安装条(74) → 自动播放提示(150)，
      安装条右侧留出客服球位置 */
@media (max-width: 760px) {
  .install-tip { left: 12px; right: 70px; }
  .unmute-tip { bottom: 150px; }
  body.pl-kitchen .unmute-tip { bottom: 172px; }
  .yk-launcher { bottom: 82px !important; }
}

/* ---------- 顶栏小工具：一键去缓存 / 新打开首页 ---------- */
.tb-tools { display: inline-flex; align-items: center; gap: 6px; }
.tb-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .15s ease;
}
.tb-tool:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--hover); }
.tb-tool:active { transform: scale(.94); }
@media (max-width: 640px) { .tb-tool { width: 28px; height: 28px; border-radius: 8px; } }

/* ---------- 顶栏工具：宽屏显示文字，窄屏只留图标 ---------- */
.tb-tool-tx { font-size: 12px; font-weight: 600; white-space: nowrap; }
.tb-tool { padding: 0 8px; width: auto; height: 30px; gap: 5px; }
@media (max-width: 860px) {
  .tb-tool-tx { display: none; }
  .tb-tool { width: 28px; padding: 0; }
}
