/* NVFX 创作广场 · 深色专业媒体应用皮肤
   桌面=侧栏+网格+右详情面板+底部播放器；手机=chips+双列+全屏详情+迷你播放条
   注意：主题手机端全局 button{transform:scale(.83)}，本层一律覆盖复位 */
:root {
  --bg: #08090d; --bg2: #101219; --bg3: #1a1e28; --line: #272c3a; --bd: var(--line);
  --tx: #edeff7; --tx2: #9aa3b8; --tx3: #626a7d;
  --ac: #5579ff; --ac2: #8a5cff; --ok: #22c98a;
  --rad: 16px; --sbw: 236px; --plh: 78px;
  /* 语义面 token（播放器/进度/浮层/代码/封面/黑胶/阴影）——浅色块整体覆盖 */
  --player: #12151fee; --player-solid: #12141df5; --progress: #262b3d; --toast: #1e2330e6;
  --code-bg: #161b28; --code-tx: #dce3f2;
  --cover-art: linear-gradient(135deg,#1c2236,#141828);
  --cover-music: linear-gradient(135deg,#281d47,#141828);
  --cover-book: linear-gradient(135deg,#12333f,#141828);
  --vinyl: radial-gradient(circle at 32% 30%,#3a4670,#191d30 62%,#10131f);
  --vinyl-ring: #242b44;
  --shadow-card: 0 1px 2px rgba(0,0,0,.35);
  --shadow-lift: 0 12px 34px rgba(0,0,0,.5);
}
html, body.nvfx-store-body { height: 100%; margin: 0; background: var(--bg); color: var(--tx);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.nvfx-store-body button { transform: none !important; background: none; border: 0; color: var(--tx);
  font-size: 16px; cursor: pointer; font-family: inherit; }
.nvfx-store-body a { color: inherit; text-decoration: none; }
.nvfx-store-body ::-webkit-scrollbar { width: 8px; height: 8px; }
.nvfx-store-body ::-webkit-scrollbar-thumb { background: #2a2f40; border-radius: 4px; }
#nvfx-app { position: fixed; inset: 0; display: flex; }
/* 管理员 admin bar：顶部工具条让位（桌面 32px；≤782px WP 工具条 46px），
   底部若主题把工具条置底则同样让位，避免播放器被切割 */
body.admin-bar #nvfx-app { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #nvfx-app { top: 46px; } }
body.admin-bar #wpadminbar { z-index: 9999; }
.muted { color: var(--tx3); }

/* ── 侧栏（桌面常显 / 手机抽屉） ── */
#sidebar { width: var(--sbw); flex: none; background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto; padding: 18px 0 12px; z-index: 30; }
.sb-brand { font-size: 18px; font-weight: 700; padding: 0 20px 16px;
  background: linear-gradient(90deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#channels { flex: 1; }
.ch-item { display: flex; align-items: center; gap: 8px; padding: 10px 20px; color: var(--tx2);
  cursor: pointer; font-size: 14px; border-left: 3px solid transparent; }
.ch-item em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--tx3); }
.ch-ic { width: 20px; text-align: center; }
.ch-item:hover { background: var(--bg3); color: var(--tx); }
.ch-item.on { background: linear-gradient(90deg, #4d7cfe22, transparent); color: #fff; border-left-color: var(--ac); }
.ch-child { padding-left: 48px; font-size: 13px; }
.sb-back { padding: 12px 20px 0; color: var(--tx3); font-size: 13px; border-top: 1px solid var(--line); }
.sb-back:hover { color: var(--tx); }
#scrim { position: fixed; inset: 0; background: #000a; z-index: 29; }

/* ── 主区 ── */
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#topbar { display: flex; align-items: center; gap: 12px; padding: 14px 22px 10px; }
#btn-nav { display: none; font-size: 20px; padding: 6px 8px; }
#searchbox { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; }
#searchbox:focus-within { border-color: var(--ac); }
.s-ic { color: var(--tx3); font-size: 18px; }
#search { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--tx); font-size: 14px; height: 100%; }
#search::placeholder { color: var(--tx3); }
#search::-webkit-search-cancel-button { display: none; }
#search-clear { color: var(--tx3); font-size: 13px; padding: 4px; }
#sort { background: var(--bg3); color: var(--tx2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; font-size: 13px; outline: 0; }
#chips { display: none; }
#resultline { padding: 0 22px 6px; color: var(--tx2); font-size: 13px; }

@media (max-width: 700px) {   /* 移动端常驻条去模糊：全屏宽 backdrop-blur 每帧重合成=滚动掉帧主因，改半透明实色 */
  #player { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--player-solid); }
}

/* ── 流畅度工程（仅用 transform/opacity 走合成层，避免重排/重绘卡顿）── */
#grid-wrap, #detail-body, #drawer-body { overscroll-behavior: contain; }   /* 掐断滚动链→消除边界回弹抖动 */
#detail { contain: paint; }                                                 /* 详情面板绘制隔离，外层网格滚动互不干扰 */
.rv { opacity: 0; transform: translate3d(0, 16px, 0);   /* 不加常驻 will-change：避免整屏卡片各占 GPU 合成层反致掉帧，transform 过渡期间浏览器自动提层 */
  transition: opacity .40s cubic-bezier(.22,.61,.36,1), transform .40s cubic-bezier(.22,.61,.36,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .card, #detail, #player, #pl-art, .mus-art { animation: none !important; transition: none !important; }
}

#grid-wrap { flex: 1; overflow-y: auto; padding: 6px 22px calc(20px + var(--plh)); }
#grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), border-color .22s, box-shadow .22s; outline: 0; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ac) 45%, var(--line)); box-shadow: var(--shadow-lift); }
.card-cover { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--cover-art); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ic { font-size: 46px; color: var(--ac); opacity: .85; }
.card-music .card-cover { background: var(--cover-music); }
.card-music .cover-ic { color: var(--ac2); }
.card-book .card-cover { background: var(--cover-book); }
.card-book .cover-ic { color: #2ec9c9; }
.card-mode { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #000a; color: #cdd3e8; backdrop-filter: blur(4px); }
.card-play { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ac); color: #fff !important; font-size: 15px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 4px 14px #4d7cfe66; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; }
.card-play:hover { transform: scale(1.08); }
.card-info { padding: 10px 12px 12px; }
.card-info h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-ex { margin: 4px 0 0; font-size: 12px; color: var(--tx2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: var(--tx3); }
/* 卡片作者行：头像+昵称可点入个人主页（抖音式） */
.card-author { display: inline-flex; align-items: center; gap: 5px; color: var(--tx3); text-decoration: none; min-width: 0; }
.card-author:hover { color: var(--ac); }
.card-author img, .card-author .ca-ph { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--bg2); display: inline-flex; align-items: center; justify-content: center; color: var(--tx3); }
.card-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 10em; }
#grid-empty { text-align: center; padding: 80px 0; color: var(--tx2); }
.empty-ic { font-size: 42px; color: var(--ac); opacity: .6; }
.empty-sub { font-size: 13px; color: var(--tx3); }
#grid-loading { text-align: center; color: var(--tx3); padding: 18px 0; font-size: 13px; }
#grid-sentinel { height: 2px; }
/* ── 详情：桌面右面板 ── */
#detail { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 46vw); z-index: 25;
  background: var(--bg2); border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(0,0,0,.4);
  display: flex; flex-direction: column; animation: slidein .22s ease; }
#detail[hidden] { display: none; }
/* ── 滑动断层修复（纯 CSS，零 JS 改动）：详情打开期间垫同色底板。
   必须挂 #nvfx-app 内：app position:fixed 自成层叠上下文，#detail z25 只在 app 内部有效；
   挂 body::after 会整体盖住 app=内页白屏（已踩坑）。app::after z24：网格之上、详情之下。
   pointer-events:none 不拦截触摸；随基线 detail-open 类开合自动出现/消失。 ── */
@media (max-width: 859px) {   /* 仅手机端：详情=全屏，上下滑切作品会位移露底；
   桌面详情只是右侧面板、网格常显，全屏底板会盖住列表=禁挂 */
  body.detail-open #nvfx-app::after { content: ''; position: fixed; inset: 0;
    background: var(--bg2); z-index: 24; pointer-events: none; }
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#detail-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); flex: none; }
#detail-htitle { flex: 1; min-width: 0; font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#detail-head button { padding: 6px 8px; font-size: 16px; color: var(--tx2); border-radius: 8px; }
#detail-head button:hover { background: var(--bg3); color: var(--tx); }
#comment-count { font-size: 11px; color: var(--ac); margin-left: 2px; }
#detail-body { flex: 1; overflow-y: auto; padding: 18px 20px calc(24px + var(--plh)); }
.d-meta { color: var(--tx3); font-size: 12px; margin: 4px 0 14px; }
.d-content { margin-top: 12px; color: var(--tx2); font-size: 14px; }

/* gallery 详情 */
.gal-stage { position: relative; border-radius: var(--rad); overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center; min-height: 220px; }
/* 抖音式图集：所有图排成一条横向轨道，整屏左右滑动(scroll-snap 跟手)，电脑端触控板/拖拽/滚轮横滑亦可 */
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-snap { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; background: #000;
  border-radius: var(--rad); min-height: 220px; }
.gal-img { max-width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.gal-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0 2px; }
.gal-arrow { flex: none; width: 30px; height: 30px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #9aa2bd; font-size: 22px; line-height: 1; border-radius: 50%;
  opacity: .7; transition: opacity .15s, color .15s, background .15s; }
.gal-arrow:hover { background: #ffffff12; color: #fff; opacity: 1; }
.gal-arrow.off { opacity: .2; pointer-events: none; }
.gal-dots { padding: 0; }
.gal-dots { display: flex; gap: 7px; justify-content: center; padding: 12px 0 2px; }
.gal-dots i { width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
  background: #ffffff59; box-shadow: 0 0 0 1px #00000040; transition: background .15s, transform .15s; }
.gal-dots i.on { background: var(--ac); transform: scale(1.25); }
.gal-cap h2 { margin: 10px 0 0; font-size: 18px; }

/* music 详情 */
.mus { text-align: center; }
.mus-art { width: min(62%, 260px); aspect-ratio: 1; margin: 12px auto 18px; border-radius: 50%;
  background: var(--vinyl);
  border: 6px solid var(--vinyl-ring); display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--ac2); box-shadow: 0 16px 44px #000b; }
.mus-art.spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mus h2 { margin: 0; font-size: 19px; }
.mus-bigplay { margin: 12px auto 18px; display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, var(--ac), var(--ac2)) !important; color: #fff !important;
  border-radius: 999px; padding: 11px 30px !important; font-size: 15px !important; font-weight: 600;
  box-shadow: 0 6px 20px #4d7cfe55; }
.mus-bigplay:hover { filter: brightness(1.1); }
.mus-lyric { text-align: center; color: var(--tx2); font-size: 14px; line-height: 2;
  white-space: pre-wrap; max-height: 42vh; overflow-y: auto; padding: 6px 4px;
  mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 24px), transparent); }

/* book 详情 */
.book-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.book-art { flex: none; width: 56px; height: 56px; border-radius: 14px; font-size: 24px;
  background: var(--cover-book); display: flex; align-items: center; justify-content: center; }
.book-head h2 { margin: 0; font-size: 17px; }
.book-head .mus-bigplay { margin: 8px 0 0; padding: 8px 22px !important; font-size: 13px !important; }
.book-text { color: var(--tx); font-size: 15px; line-height: 2; white-space: pre-wrap;
  background: var(--bg3); border-radius: var(--rad); padding: 16px 18px; }

/* text 详情 */
.txt h2 { margin: 0 0 4px; font-size: 19px; }
.txt { font-size: 15px; line-height: 1.9; color: var(--tx); }
.txt img { max-width: 100%; border-radius: 10px; }

/* ── 常驻播放器 ── */
#player { position: fixed; left: var(--sbw); right: 0; bottom: 0; height: var(--plh); z-index: 26;
  background: var(--player); backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); }
#player[hidden] { display: none; }
#pl-progress { height: 4px; background: var(--progress); cursor: pointer; }
#pl-progress:hover { height: 6px; }
#pl-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 8px 20px; height: calc(var(--plh) - 4px); box-sizing: border-box; }
.pl-art { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--vinyl);
  display: flex; align-items: center; justify-content: center; color: var(--ac2); font-size: 20px; }
.pl-art.spin { animation: spin 10s linear infinite; }
.pl-meta { flex: 1; min-width: 0; cursor: pointer; }
#pl-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pl-author { font-size: 12px; color: var(--tx3); }
.pl-time { font-size: 12px; color: var(--tx3); font-variant-numeric: tabular-nums; flex: none; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; flex: none; }
.pl-ctrl button { width: 40px; height: 40px; border-radius: 50%; font-size: 15px; color: var(--tx2);
  display: flex; align-items: center; justify-content: center; }
.pl-ctrl button:hover { background: var(--bg3); color: var(--tx); }
#pl-play { width: 48px !important; height: 48px !important; background: var(--ac) !important; color: #fff !important; font-size: 17px; }

/* ── 评论：抖音式半屏面板 ── */
#drawer-mask { position: fixed; inset: 0; background: #0007; z-index: 39; }
#drawer-mask[hidden] { display: none; }
#drawer { position: fixed; left: 0; right: 0; bottom: 0; height: 68vh; z-index: 40;
  background: var(--bg2); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px #0009;
  display: flex; flex-direction: column; animation: drawer-up .22s ease-out; }
@keyframes drawer-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
#drawer[hidden] { display: none; }
#drawer-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; flex: none; }
#drawer-head { display: flex; justify-content: center; align-items: center; position: relative;
  padding: 10px 16px 12px; font-size: 13px; color: var(--tx2); flex: none; }
#drawer-head b { color: var(--tx); font-weight: 600; }
#drawer-close { position: absolute; right: 12px; top: 6px; color: var(--tx3); font-size: 15px;
  padding: 6px 8px; background: none; border: 0; transform: none !important; }
#drawer-body { flex: 1; overflow-y: auto; padding: 4px 16px 12px; overscroll-behavior: contain; }
/* 评论条目：左圆头像 + 名字/时间/正文 + 右侧♡ */
.cmt { display: flex; gap: 10px; margin: 14px 0; align-items: flex-start; }
.cmt-av { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--bg3); }
.cmt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-name { font-size: 12.5px; color: var(--tx3); font-weight: 600; }
.cmt-text { font-size: 14.5px; color: var(--tx); line-height: 1.55; margin: 3px 0; word-break: break-word; }
.cmt-text p { margin: 2px 0; }
.cmt-time { font-size: 11.5px; color: var(--tx3); }
.cmt-like { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--tx3); font-size: 15px; padding: 2px 4px; background: none; border: 0; transform: none !important; }
.cmt-like em { font-style: normal; font-size: 11px; }
.cmt-like.on { color: #fe2c55; }
.cmt-empty { color: var(--tx3); text-align: center; padding: 40px 0; font-size: 13px; }
/* 底部输入条：我的头像 + 圆角胶囊输入 + 圆形发送 */
#comment-form { display: flex; gap: 10px; align-items: center; flex: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cf-me { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
#cf-text { flex: 1; min-width: 0; background: var(--bg3); color: var(--tx); border: 0;
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-family: inherit; outline: 0; }
#cf-text::placeholder { color: var(--tx3); }
#cf-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--ac) !important; color: #fff !important; font-size: 16px; line-height: 1;
  transform: none !important; opacity: .45; transition: opacity .15s; }
#cf-send.ready { opacity: 1; }
.cf-login { color: var(--ac); padding: 12px; flex: 1; text-align: center;
  background: var(--bg3); border-radius: 999px; font-size: 14px; }
/* 桌面：右侧窄面板（保持半屏语义但靠右，宽 420） */
@media (min-width: 861px) {
  #drawer { left: auto; right: 16px; bottom: 16px; width: 420px; height: min(72vh, 640px);
    border-radius: 18px; box-shadow: 0 12px 48px #000a; }
}

/* ── toast ── */
#toast { position: fixed; left: 50%; bottom: calc(var(--plh) + 26px); transform: translateX(-50%);
  background: var(--toast); color: var(--tx); padding: 10px 22px; border-radius: 999px; font-size: 13px;
  z-index: 60; box-shadow: 0 8px 26px #000a; backdrop-filter: blur(8px); }

/* ── 手机（<860px）：chips 分类 + 双列卡片 + 全屏详情 + 迷你播放条 ── */
@media (max-width: 859px) {
  :root { --plh: 64px; }
  #sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .482s cubic-bezier(.32,.72,0,1); box-shadow: none; visibility: hidden; }
  #sidebar.open { transform: none; box-shadow: 14px 0 40px rgba(15,20,40,.18); visibility: visible; }
  #btn-nav { display: block; }
  #topbar { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 8px; }
  #searchbox { height: 40px; }
  #sort { display: none; }
  #chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 10px;
    scrollbar-width: none; flex: none; }
  #chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 7px 16px; border-radius: 999px; font-size: 13px;
    background: var(--bg3) !important; color: var(--tx2) !important; border: 1px solid var(--line); min-height: 34px; }
  .chip.on { background: var(--ac) !important; color: #fff !important; border-color: var(--ac); }
  .chip-sub { font-size: 12px; }
  #resultline { padding: 0 14px 6px; }
  #grid-wrap { padding: 2px 12px calc(16px + var(--plh)); }
  #grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-info { padding: 8px 10px 10px; }
  .card-info h3 { font-size: 13px; }
  .card-ex { display: none; }
  .card-play { opacity: 1; width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .cover-ic { font-size: 38px; }

  /* 详情=全屏沉浸页 */
  #detail { width: 100vw; border-left: 0; animation: rise .24s ease; }
  @keyframes rise { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }
  #detail-head { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
  #detail-head button { min-width: 44px; min-height: 44px; font-size: 18px; }
  #detail-body { padding: 14px 16px calc(20px + var(--plh)); }
  .mus-art { width: min(70vw, 280px); }
  .gal-img { max-height: 56vh; }
  .mus-lyric { max-height: none; }

  /* 迷你播放条：贴底全宽，触摸目标≥44px */
  #player { left: 0; }
  .pl-row { padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); gap: 10px; }
  .pl-art { width: 42px; height: 42px; }
  .pl-time { display: none; }
  #pl-prev, #pl-next { display: none; }
  #pl-play { width: 46px !important; height: 46px !important; }
  #pl-progress { height: 3px; }

  #toast { bottom: calc(var(--plh) + 16px); max-width: 86vw; }
}
/* 无分类树时（桌面）主区占满 */
body.no-store-nav #sidebar { display: none; }
body.no-store-nav #player { left: 0; }
body.no-store-nav #btn-nav { display: none; }

/* 收藏/点赞图标：默认跟随正文色（浅色=深字），激活态高亮 */
#detail-fav.fav-on { color: #f7b500 !important; }
#detail-like.like-on { color: #fe2c55 !important; }
#detail-like span { font-size: 11px; margin-left: 2px; color: inherit; }
html[data-theme="light"] #detail-head button { color: #3a4152; }
html[data-theme="light"] .cmt-like { color: #6b7280; }
html[data-theme="light"] #detail-fav.fav-on { color: #d99a00 !important; }
html[data-theme="light"] #detail-like.like-on { color: #e11d48 !important; }
html[data-theme="light"] .cmt-like.on { color: #e11d48; }

/* 父主题 newvfx/style.css 有 #sidebar{display:none}（旧布局遗留）；提升特异性覆盖 */
body.nvfx-store-body #sidebar { display: flex; }
@media (max-width: 859px) { body.nvfx-store-body #sidebar { display: flex; } }

/* ── 推荐徽标 ── */
.card-feat { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg,#f59e0b,#ef4444); padding: 2px 8px; border-radius: 999px; }

/* ── 头像用户菜单（学 app-shell） ── */
#userbox { position: relative; margin-left: 4px; flex: none; }
#ub-btn { display: flex; align-items: center; gap: 3px; background: none; border: 0; cursor: pointer;
  padding: 2px; border-radius: 999px; transform: none !important; }
#ub-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bd,#e5e7eb); }
.ub-caret { font-size: 10px; color: var(--tx2,#6b7280); }
#ub-menu { position: absolute; right: 0; top: 44px; min-width: 168px; background: var(--bg2,#fff); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 6px; z-index: 60; }
#ub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--tx,#111); text-decoration: none; font-size: 14px; }
#ub-menu a:hover { background: var(--bg3,#f3f4f6); }
#ub-menu .ub-create { color: #7c3aed; font-weight: 600; }
.ub-name { padding: 8px 12px; font-weight: 700; font-size: 13px; color: var(--tx2,#6b7280);
  border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-login { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #7c3aed; color: #fff !important;
  font-size: 13px; text-decoration: none; white-space: nowrap; }

/* ── 音乐多轨（UVR 拆分） ── */
.mus-tracks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.mus-track { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg3);
  font-size: 13px; cursor: pointer; transform: none !important; }
.mus-track.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* ── Chat 皮肤：原汁原味对话流 ── */
.chatlog { max-width: 760px; margin: 0 auto; }
.chatlog h2 { margin: 4px 0 6px; }
/* chat 气泡：头像列 + 主体列（同源 llm-chat 身份） */
.chat-turn { display: flex; gap: 10px; margin: 14px 0; align-items: flex-start; }
.chat-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--bg3,#eceef2); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--tx2,#6b7280); }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-main { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--tx); }
.chat-turn.chat-user .chat-main { background: var(--bg3); border-color: var(--line); }
.chat-who { font-size: 12px; font-weight: 700; color: var(--tx2,#6b7280); margin-bottom: 4px; }
.chat-md { font-size: 14.5px; line-height: 1.75; word-break: break-word; color: var(--tx); }
.chat-md pre { background: var(--code-bg); color: var(--code-tx); padding: 12px; border-radius: 10px; overflow: auto; font-size: 13px; }
.chat-md code { background: rgba(128,128,160,.16); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.chat-md pre code { background: none; padding: 0; }
.chat-md img { max-width: 100%; border-radius: 10px; }
.chat-md table { border-collapse: collapse; } .chat-md td,.chat-md th { border: 1px solid var(--line); padding: 4px 10px; }
.chat-md a { color: var(--ac); }
.chat-md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--ac2); color: var(--tx2); }
.chat-media { margin: 10px 0; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; }
.chat-media audio { width: 100%; margin-top: 6px; }
.cm-play { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg2,#1b2030); color: var(--tx); font-size: 13px; cursor: pointer; }
.cm-play:hover { background: var(--bg3); }
.cm-play svg { width: 15px; height: 15px; }
.chat-media img { max-width: 100%; max-height: 420px; border-radius: 8px; display: block; }
.cm-name { font-size: 12.5px; font-weight: 600; color: var(--tx2,#4b5563); margin-bottom: 4px; }

/* ── 二级来源独立条（一级进去=内容；二级在内容顶部） ── */
#subbar { display: flex; gap: 8px; padding: 2px 22px 10px; overflow-x: auto; flex: none; }
#subbar[hidden] { display: none; }
.sub-chip { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--tx2); font-size: 13px; cursor: pointer; transform: none !important; }
.sub-chip em { font-style: normal; font-size: 11px; color: var(--tx3); margin-left: 5px; }
.sub-chip:hover { color: var(--tx); border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.sub-chip.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.sub-chip.on em { color: #ffffffcc; }
@media (max-width: 860px) { #subbar { padding: 0 14px 8px; } }

/* ── 浅色模式（跟随站点 shell data-theme=light；深色为默认设计） ── */
html[data-theme="light"] .nvfx-store-body {
  --bg: #f4f5f9; --bg2: #ffffff; --bg3: #eef0f6; --line: #e2e6ef; --bd: var(--line);
  --tx: #1a2032; --tx2: #4b5568; --tx3: #8b93a7; --ac: #4f6ef7; --ac2: #7a5cff; --ok: #17a870;
  --player: #ffffffee; --player-solid: #ffffffF5; --progress: #e3e7f0; --toast: #2b3040e6;
  --code-bg: #f0f2f8; --code-tx: #3a4152;
  --cover-art: linear-gradient(135deg,#e8ecfa,#dde3f5);
  --cover-music: linear-gradient(135deg,#efe6fb,#e2e5f8);
  --cover-book: linear-gradient(135deg,#dff0f2,#e6e9f6);
  --vinyl: radial-gradient(circle at 32% 30%,#f2f4fb,#e2e6f2 62%,#d7dcea);
  --vinyl-ring: #dfe3ee;
  --shadow-card: 0 1px 3px rgba(20,30,60,.06);
  --shadow-lift: 0 12px 30px rgba(20,30,60,.12);
  background: var(--bg); color: var(--tx);
}
/* toast 在浅色下保持深底白字（浮层惯例），仅阴影变柔 */
html[data-theme="light"] .nvfx-store-body #toast { color: #f2f4fa; box-shadow: 0 8px 24px rgba(20,30,60,.25); }
html[data-theme="light"] .nvfx-store-body #sidebar { background: #fff; }
html[data-theme="light"] .nvfx-store-body #topbar { background: #ffffffcc; }
html[data-theme="light"] .nvfx-store-body #player,
html[data-theme="light"] .nvfx-store-body #detail-foot { background: #ffffffee; }
html[data-theme="light"] .nvfx-store-body #detail { box-shadow: -14px 0 40px rgba(30,40,80,.12); border-left-color: var(--line); }
html[data-theme="light"] .nvfx-store-body #drawer { box-shadow: 0 -12px 40px rgba(30,40,80,.16); }
html[data-theme="light"] .nvfx-store-body .admin-sheet { box-shadow: 0 12px 40px rgba(30,40,80,.16); }
html[data-theme="light"] .nvfx-store-body #mus-art, html[data-theme="light"] .nvfx-store-body .mus-art { box-shadow: 0 16px 44px rgba(30,40,80,.14); }
html[data-theme="light"] .nvfx-store-body .bubble { background: #eef0f8; }
html[data-theme="light"] .nvfx-store-body .bubble.ai { background: #fff; }
html[data-theme="light"] .nvfx-store-body .card { background: #fff; box-shadow: 0 1px 3px rgba(20,30,60,.06); }
html[data-theme="light"] .nvfx-store-body .card:hover { border-color: #c9d4f5; }
html[data-theme="light"] .nvfx-store-body .ch-item.on { background: #e9edff; color: #3d4ecc; border-color: #c3ccff; }
html[data-theme="light"] .nvfx-store-body .sub-chip.on { background: var(--ac); color: #fff; }
html[data-theme="light"] .nvfx-store-body ::-webkit-scrollbar-thumb { background: #c6ccdd; }
/* 主题按钮尺寸对齐顶栏控件（绘制/配色由 shell paintToggles 接管） */
#topbar .nvfx-theme-toggle { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; transform: none !important; padding: 0; }
#topbar .nvfx-theme-toggle svg { width: 18px; height: 18px; }

/* 管理员 admin bar 全面让位：#detail/#drawer 是独立 fixed 层（不在 #nvfx-app 内），
   顶部避开工具条；若工具条被置底（body.admin-bar #wpadminbar 底部）播放器同步上移 */
body.admin-bar #detail { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #detail { top: 46px; } }
/* #drawer 现为底部半屏面板，不受顶部 admin bar 影响 */

/* ── 触屏优先（抖音式）：手机上隐藏箭头按钮，靠滑动操作 ── */
@media (pointer: coarse) {
  #pl-prev, #pl-next { display: none; }          /* 播放器切曲：上下滑详情/点卡片 */
  .gal-arrow { display: none; }                  /* 图集：横滑翻图 + 圆点 */
}
/* 详情层纵向手势提示不抢滚动：正文可滚，边缘滑动切作品（JS 处理） */
#detail-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ── 运营/交互增量（v2）：热度角标·收藏页·相关作品·管理面板·空态CTA ── */
.card-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; color: #fff;
  background: #0009; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.card-views { position: absolute; left: 8px; bottom: 8px; font-size: 11px; color: #fff;
  background: #0008; padding: 1px 7px; border-radius: 999px; }
.chip-fav { color: #f7b500 !important; }
.chip-fav.on { background: #f7b500 !important; border-color: #f7b500; color: #fff !important; }
html[data-theme="light"] .chip-fav { color: #b47d00 !important; }
/* 收藏收纳页头部 */
#fav-head { display: flex; align-items: center; gap: 12px; padding: 6px 22px 10px; }
#fav-head[hidden] { display: none; }
#fav-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
#fav-title { font-size: 16px; }
#fav-sub { font-size: 12.5px; margin-top: 2px; }
@media (max-width: 859px) { #fav-head { padding: 4px 14px 8px; } #fav-avatar { width: 44px; height: 44px; } }
/* 空态/错误 CTA */
.empty-cta { display: inline-block; margin-top: 14px; padding: 9px 22px; border-radius: 999px;
  background: var(--ac); color: #fff !important; font-size: 14px; border: 0; cursor: pointer; transform: none !important; }
#grid-error { text-align: center; padding: 60px 0; }
/* 作者链接（详情 meta 内，跳 BP 主页） */
.d-author { color: var(--ac); font-weight: 600; }
.d-author:hover { text-decoration: underline; }
/* 详情底部「继续看看」 */
.d-related { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.d-rel-title { font-size: 13px; font-weight: 600; color: var(--tx2); margin-bottom: 10px; }
.d-rel-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 8px; border-radius: 10px; transform: none !important; }
.d-rel-item:hover { background: var(--bg3); }
.d-rel-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.d-rel-ic { width: 44px; height: 44px; border-radius: 8px; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--bg3); font-size: 20px; color: var(--ac); }
.d-rel-tx { min-width: 0; }
.d-rel-tx b { display: block; font-size: 13.5px; font-weight: 600; color: var(--tx);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-rel-tx em { font-style: normal; font-size: 11.5px; color: var(--tx3); }
/* 管理员操作面板（详情层内浮出） */
.admin-sheet { position: absolute; top: 58px; right: 12px; z-index: 50; min-width: 190px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px #0007; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.adm-title { font-size: 12px; color: var(--tx3); padding: 6px 10px 8px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.admin-sheet button { text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  color: var(--tx); transform: none !important; }
.admin-sheet button:hover { background: var(--bg3); }
.admin-sheet .adm-danger { color: #e11d48; }
.admin-sheet .adm-cancel { color: var(--tx3); border-top: 1px solid var(--line); margin-top: 4px; }
/* ── 主题按钮基线兜底：父主题 style.css 给所有 button 上 #333 深底（悬停纯黑），
   广场内未显式声明 background 的按钮会被染成深色圆块 → 统一 reset，再让各自规则接管 ── */
#nvfx-app button:not(.nvfx-theme-toggle) { background-color: transparent; border-color: transparent; color: var(--tx); }
#nvfx-app button:not(.nvfx-theme-toggle):hover { background-color: transparent; border-color: transparent; color: var(--tx); }
#nvfx-app .chip:hover, #nvfx-app .sort:hover { background-color: transparent; }
#nvfx-app .chip.on, #nvfx-app .chip.on:hover { background-color: var(--ac); color: #fff; }
#nvfx-app .empty-cta, #nvfx-app .empty-cta:hover,
#nvfx-app #comment-send, #nvfx-app #comment-send:hover { background-color: var(--ac); color: #fff; }
#nvfx-app .d-rel-item:hover { background-color: var(--bg3); }
#nvfx-app .d-rel-tx b { color: var(--tx); }
#nvfx-app .d-rel-tx em { color: var(--tx3); }
#nvfx-app .d-rel-ic { color: var(--ac); background-color: var(--bg3); }
#nvfx-app .admin-sheet button:hover { background-color: var(--bg3); }
#nvfx-app .admin-sheet .adm-danger, #nvfx-app .admin-sheet .adm-danger:hover { color: #e11d48; }
#nvfx-app .admin-sheet .adm-cancel, #nvfx-app .admin-sheet .adm-cancel:hover { color: var(--tx3); }
#nvfx-app #cmt-close:hover { background-color: var(--bg3); }
/* 图标按钮悬停只变色不变底 */
#nvfx-app #detail-head button:not(.nvfx-theme-toggle):hover { background-color: transparent; color: var(--ac); }
#nvfx-app .cmt-like:hover { background-color: transparent; color: #fe2c55; }
/* 跟手手势期间禁用旧入场动画干扰（JS 用 WAAPI 接管） */
#detail.gesturing { animation: none; }

/* 手势 v2：详情页禁浏览器原生手势抢跑（返回/下拉刷新交给 JS 引擎） */
@media (max-width: 859px) {
  #detail { touch-action: pan-y; overscroll-behavior: none; }
  #detail.gesturing { touch-action: none; }
}

/* SVG 图标随字号缩放（用户令：纯色 SVG，无 emoji） */
.cover-ic svg { width: 1em; height: 1em; }
.card-play svg, #pl-play svg, #pl-prev svg, #pl-next svg { width: 1.05em; height: 1.05em; }
.mus-bigplay svg { width: 1em; height: 1em; flex: none; }
.mus-art svg { width: .42em; height: .42em; }
.pl-art svg { width: 1em; height: 1em; }
#detail-head button svg { width: 1.05em; height: 1.05em; display: block; }
#detail-like, #detail-comment { display: inline-flex; align-items: center; gap: 4px; }
.book-art svg { width: 1em; height: 1em; color: #2ec9c9; }
.ch-ic svg { width: 1em; height: 1em; vertical-align: -.125em; }
.d-rel-ic svg { width: 22px; height: 22px; }
.card-views svg { width: .9em; height: .9em; vertical-align: -.08em; }
.card-badge svg { width: .95em; height: .95em; vertical-align: -.1em; }
.mus-track svg { width: .95em; height: .95em; vertical-align: -.1em; }
/* 详情内嵌评论 + 嵌套回复（WP threaded 风格） */
.inline-cmts { margin: 18px 4px 8px; border-top: 1px solid var(--bd); padding-top: 12px; }
.ic-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--tx2); margin-bottom: 4px; }
.ic-head b { color: var(--tx); }
.ic-more { margin-left: auto; background: none; border: 1px solid var(--bd); color: var(--tx2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
.ic-more:hover { color: var(--ac); border-color: var(--ac); }
.ic-list .cmt { margin: 10px 0; }
.cmt-nested { margin-left: 34px; }
.cmt-nested.d2 { margin-left: 28px; }
.cmt-nested.d3 { margin-left: 22px; }
.cmt-to { color: var(--ac); margin-left: 6px; font-weight: 500; }
.cmt-meta-row { display: flex; align-items: center; gap: 10px; }
.cmt-reply-btn, button.cmt-reply { background: none; border: none; color: var(--tx3); font-size: 11.5px; cursor: pointer; padding: 0; }
button.cmt-reply:hover { color: var(--ac); }

/* ── 封面徽标组：属性标志 + 图集数 统一左上 flex 排布，互不重叠，人工封面下仍醒目 ── */
.card-badges { position:absolute; top:8px; left:8px; z-index:2; display:flex; gap:6px; align-items:center; flex-wrap:wrap; max-width:calc(100% - 16px); }
.card-badges .card-mode, .card-badges .card-badge { position:static; top:auto; left:auto; }
.card-badges .card-mode { display:inline-flex; align-items:center; gap:4px; font-weight:600; letter-spacing:.2px;
  background:linear-gradient(135deg,#1c2333e6,#2a2f45e6); color:#fff; border:1px solid #ffffff2e;
  box-shadow:0 2px 8px #0005; backdrop-filter:blur(6px); }
.card-badges .card-mode svg { width:.95em; height:.95em; vertical-align:-.12em; opacity:.95; }
.card-badges .card-badge { display:inline-flex; align-items:center; gap:3px; font-weight:600;
  background:#000000b3; border:1px solid #ffffff24; box-shadow:0 2px 6px #0004; }

/* 详情底部「特色图」附加块：有图片特色图才出现（app.js attachFeaturedCover） */
.feat-attach { margin: 18px auto 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.feat-cap { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tx2); }
.feat-cap svg { width: 14px; height: 14px; opacity: .85; }
.feat-img { width: 150px; height: 150px; border-radius: 14px; object-fit: cover;
  border: 1px solid #ffffff22; box-shadow: 0 8px 24px #0007; }
html[data-theme="light"] .nvfx-store-body .feat-img { border-color: #00000018; box-shadow: 0 8px 24px rgba(30,40,80,.12); }
