/* =============================================================================
 * youminStudiosStudios —— 全站样式表（1413 行）
 * ============================================================================
 *
 * 【设计基线】CSDN 博客风格，桌面优先，移动端自适应
 *
 * 【⚠️ 改样式前必看的三件事】
 *
 * 1. 深色模式是默认的。
 *    html 默认不加 .light 就是深色（2026-10-07 起改为默认深色）。
 *    浅色是例外，要显式加 .light 类。所以如果你发现"改了没生效"，
 *    先确认自己是不是在深色模式下调的色值。
 *
 * 2. 颜色一律用 CSS 变量，不要写死色值。
 *    :root 里定义了 --primary / --text / --line / --bg / --card 等，
 *    深浅色只切换这一组变量。写死色值会导致深色模式下出现不可读的文字。
 *
 * 3. 移动端底部导航栏有坑（已踩过，勿改坏）。
 *    顶栏用了 backdrop-filter，会把内部 fixed 元素的定位基准从视口
 *    改成顶栏自身（CSS containing block 规则），导致底栏跑到页面顶部。
 *    .mobile-tabbar 因此挂在 body 末尾（见 js/cloud.js 的 Nav 模块），
 *    不要给顶栏加 overflow 或 transform，会再次触发这个问题。
 *
 * 【主要区块】
 *   设计变量 :root → 基础重置 → 导航栏 .nav → 手机底栏 .mobile-tabbar
 *   → 卡片 .card → 表单 .field / .btn → 帖子列表 → 个人主页 → 音乐页
 *   → 弹窗 Modal → 消息中心 → 管理后台 admin → 状态监控 status
 *
 * 【其他】
 *   - 页面内 <style> 块只放该页独有的样式，通用样式请写在这里
 *   - 改完记得 bump 各 .html 里的 style.css?v=NN
 *
 * 详细说明见同目录《项目交接说明.md》。
 * ========================================================================== */

/* youminStudiosStudios - 复刻 CSDN 博客首页布局（桌面优先） */
:root {
  --primary: #7c5cff;
  --primary-dark: #6344f5;
  --primary-soft: rgba(124, 92, 255, .10);
  --text: #222226;
  --text-2: #555666;
  --text-3: #999aaa;
  --line: #e8e8ed;
  --bg: #f5f6f7;
  --card: #ffffff;
  --radius: 14px;
  --nav-h: 56px;
  --toolbar-h: 0px;   /* 顶栏上方「免费工具箱」工具栏高度，由 js/toolkit.js 实时测量写入 */
  --code-bg: #282c34;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
::selection { background: rgba(124, 92, 255, .22); }

.mono { font-family: "SF Mono", Consolas, "Cascadia Code", monospace; }

/* ---------- 顶部导航（CSDN 式白底） ---------- */
.nav {
  position: sticky; top: var(--toolbar-h, 0px); z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 24px;
}
.logo {
  font-weight: 800; font-size: 21px; color: var(--primary);
  display: flex; align-items: center; gap: 8px; letter-spacing: -.5px; flex-shrink: 0;
}
.logo .dot {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--primary);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-2); font-size: 15px; padding: 6px 13px;
  border-radius: 6px; transition: .15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-search {
  flex: 1; max-width: 460px; display: flex; align-items: center;
  background: #f5f6f7; border: 1px solid #e8e8ed;
  border-radius: 4px; padding: 0 4px 0 14px; height: 36px;
  transition: .2s;
}
.nav-search:focus-within { border-color: var(--primary); background: #fff; }
.nav-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text); min-width: 0;
}
.nav-search button {
  border: none; background: var(--primary); color: #fff;
  border-radius: 4px; padding: 5px 18px; font-size: 13px;
}
.nav-search button:hover { background: var(--primary-dark); }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: 0 0 auto; margin-left: auto; padding-left: 12px; }

/* 搜索：默认只显示 🔍 图标，点击后展开下拉面板，不再长期占用导航空间 */
.nav-search-wrap { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.nav-search-icon {
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 6px 8px; border-radius: 8px;
  color: var(--text-2); transition: .15s;
}
.nav-search-icon:hover { background: rgba(127,127,127,.16); color: var(--primary); }
.nav-search-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 320px; display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.nav-search-pop input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text); padding: 6px 8px;
}
.nav-search-pop button {
  border: none; background: var(--primary); color: #fff;
  border-radius: 7px; padding: 7px 16px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.nav-search-pop button:hover { background: var(--primary-dark); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff; border: none;
  padding: 7px 18px; border-radius: 4px; font-size: 14px;
  transition: .15s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--text-2); border: 1px solid #dcdce2; }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn.sm { padding: 5px 14px; font-size: 13px; }
.btn.danger { background: #ef4444; }
.btn.danger:hover { background: #dc2626; }
.btn:disabled { opacity: .6; }

/* ---------- 频道标签栏（CSDN 第二排） ---------- */
.tabbar {
  position: sticky; top: calc(var(--nav-h) + var(--toolbar-h, 0px)); z-index: 55;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.tabbar-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.tabbar-inner::-webkit-scrollbar { display: none; }
.tabbar a {
  position: relative; flex-shrink: 0;
  color: var(--text-2); font-size: 15px; padding: 12px 16px 10px;
  transition: .15s; white-space: nowrap;
}
.tabbar a:hover { color: var(--primary); }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 3px; background: var(--primary);
}
.tabbar .tab-count { font-size: 11px; opacity: .5; margin-left: 2px; }
/* 频道栏可横滑提示：未滚到尽头时右缘渐隐，暗示「后面还有」 */
.tabbar-inner.can-scroll {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.tabbar-inner.can-scroll.at-end {
  -webkit-mask-image: none; mask-image: none;
}

/* ---------- 三栏布局 ---------- */
.container { max-width: 1380px; margin: 0 auto; padding: 16px 24px 60px; }
.layout {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 300px;
  gap: 14px; align-items: start;
}
.layout.profile-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.back-bar { margin: 14px 0 10px; }
.back-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
  padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 10px; transition: .15s;
}
.back-bar a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .left-rail { display: none; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: block; }
}

/* 左侧图标菜单栏 */
.left-rail {
  position: sticky; top: calc(var(--nav-h) + var(--toolbar-h, 0px) + 56px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 0;
}
.left-rail a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px; font-size: 12.5px; color: var(--text-2);
  border-radius: 6px; margin: 0 6px; transition: .15s;
}
.left-rail a .ri { font-size: 19px; }
.left-rail a:hover { color: var(--primary); background: var(--primary-soft); }
.left-rail a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.left-rail .rail-divider { height: 1px; background: var(--line); margin: 6px 12px; }

/* 中间信息流（一整块白卡 + 分隔线） */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feed { padding: 4px 0; }
.feed-item { display: block; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #fafafa; }
.feed-title-row { display: flex; align-items: baseline; gap: 8px; }
.feed-title {
  font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-item:hover .feed-title { color: var(--primary); }
/* 帖子列表首图缩略图（浮动右侧） */
.feed-item { overflow: hidden; }
.feed-thumb {
  float: right; width: 88px; height: 88px; object-fit: cover;
  border-radius: 16px; margin: 2px 0 8px 14px;
  border: 1px solid var(--glass-border, var(--line));
  box-shadow: 0 4px 16px rgba(31, 38, 135, .12);
  background: var(--primary-soft);
}
.feed-excerpt {
  color: var(--text-2); font-size: 14px; margin: 6px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.feed-meta .m-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.feed-meta .m-author:hover { color: var(--primary); }
.mini-avatar {
  width: 20px; height: 20px; border-radius: 50%; color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.feed-meta .num { color: var(--text-3); }
.feed-meta .feed-tags { margin-left: auto; display: inline-flex; gap: 6px; }
.pin-badge {
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 3px; flex-shrink: 0;
}
.tag {
  display: inline-block; background: #f5f6f7; color: var(--text-2);
  font-size: 12px; padding: 1px 8px; border-radius: 3px; border: 1px solid var(--line);
}
.cat-chip {
  background: #f5f6f7; color: var(--text-2); font-size: 12px;
  padding: 1px 8px; border-radius: 3px; border: 1px solid var(--line);
}

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-bar .clear { font-size: 13px; color: var(--primary); }

/* ---------- 右侧栏 ---------- */
.sidebar .card { margin-bottom: 14px; }
.side-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.side-card-bd { padding: 12px 16px; }

/* 热榜 */
.hot-list { list-style: none; }
.hot-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 14px; }
.hot-list .hot-num { flex-shrink: 0; width: 18px; font-weight: 700; font-style: italic; color: #c0c4cc; text-align: center; }
.hot-list li:nth-child(1) .hot-num { color: #7c5cff; }
.hot-list li:nth-child(2) .hot-num { color: #a855f7; }
.hot-list li:nth-child(3) .hot-num { color: #ec4899; }
.hot-list a {
  flex: 1; min-width: 0; color: var(--text); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hot-list a:hover { color: var(--primary); }
.hot-list .hot-views { flex-shrink: 0; font-size: 12px; color: var(--text-3); }

/* 站长卡片 */
.owner-card { text-align: center; }
.owner-card .owner-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 800; background: var(--primary);
}
.owner-card .owner-name { font-size: 16px; font-weight: 700; }
.owner-card .owner-desc { font-size: 13px; color: var(--text-2); margin: 4px 0 12px; }

.tag-cloud a {
  display: inline-block; margin: 0 6px 8px 0; font-size: 13px;
  background: #f5f6f7; color: var(--text-2); padding: 3px 10px;
  border-radius: 3px; border: 1px solid var(--line); transition: .15s;
}
.tag-cloud a:hover, .tag-cloud a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-cloud a .count { opacity: .6; font-size: 11px; margin-left: 3px; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 4px; color: var(--text-2); font-size: 14px; border-radius: 4px; }
.cat-list a:hover { color: var(--primary); background: var(--primary-soft); }
.cat-list .count { color: var(--text-3); font-size: 12px; }

/* ---------- 文章详情 ---------- */
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 28px; letter-spacing: -.5px; line-height: 1.4; margin: 12px 0; }
.article-body { padding: 32px 36px; }
@media (max-width: 640px) { .article-body { padding: 20px 16px; } }
.article-body a, .markdown a { color: var(--primary); }

.markdown h1, .markdown h2, .markdown h3 { margin: 26px 0 12px; letter-spacing: -.3px; line-height: 1.4; }
.markdown h1 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.markdown h2 { font-size: 20px; padding-left: 10px; border-left: 4px solid var(--primary); }
.markdown h3 { font-size: 17px; }
.markdown p { margin: 12px 0; }
.markdown ul, .markdown ol { margin: 12px 0 12px 24px; }
.markdown li { margin: 6px 0; }
.markdown code {
  font-family: "SF Mono", Consolas, monospace; font-size: 13px;
  background: #f3efff; color: #6d4fd8; padding: 2px 6px; border-radius: 6px;
}
.markdown pre {
  background: var(--code-bg); color: #e2e8f0; padding: 16px 18px;
  border-radius: 6px; overflow-x: auto; margin: 16px 0;
}
.markdown pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; line-height: 1.65; }
.markdown blockquote {
  border-left: 4px solid var(--primary); background: #fff5f2;
  padding: 10px 16px; margin: 16px 0; border-radius: 0 6px 6px 0; color: #8a3a24;
}
.markdown table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.markdown th { background: #f5f6f7; }
.markdown img { border-radius: 6px; margin: 8px 0; }
.markdown hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.article-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ---------- 评论区 ---------- */
.comments { margin-top: 28px; }
.comments h2 { font-size: 18px; margin-bottom: 14px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.comment .c-author { font-weight: 600; font-size: 14px; }
.comment .c-author.admin::after {
  content: "站长"; font-size: 11px; font-weight: 500; color: #fff;
  background: var(--primary); padding: 1px 7px; border-radius: 3px;
  margin-left: 6px; vertical-align: 1px;
}
.comment .c-time { font-size: 12px; color: var(--text-3); }
.comment .c-text { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.comment .c-images { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.comment .c-images img {
  max-width: 180px; max-height: 180px; border-radius: 6px;
  border: 1px solid var(--line); cursor: zoom-in;
}

.comment-form { margin-top: 18px; }
.comment-form textarea {
  width: 100%; min-height: 90px; padding: 12px 14px; resize: vertical;
  border: 1px solid #dcdce2; border-radius: 6px;
  background: #fff; outline: none; transition: .15s;
}
.comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.form-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.form-toolbar .spacer { flex: 1; }
.icon-btn {
  background: #fff; border: 1px solid #dcdce2; border-radius: 6px;
  padding: 6px 12px; font-size: 14px; color: var(--text-2); transition: .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.emoji-panel {
  display: none; grid-template-columns: repeat(8, 1fr); gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; margin-top: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}
.emoji-panel.open { display: grid; }
.emoji-panel button { background: none; border: none; font-size: 20px; padding: 4px; border-radius: 6px; }
.emoji-panel button:hover { background: var(--primary-soft); }
.upload-preview { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.upload-preview .up-item { position: relative; }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.upload-preview .up-del {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
  border-radius: 50%; background: #ef4444; color: #fff; border: none;
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.login-hint {
  background: var(--primary-soft); border: 1px solid rgba(252, 85, 49, .2); color: var(--primary-dark);
  padding: 14px 16px; border-radius: 6px; font-size: 14px; text-align: center;
}
.login-hint a { color: var(--primary); font-weight: 600; }
.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 14px; }

/* ---------- 表单页 ---------- */
.form-card { padding: 30px 34px; max-width: 440px; margin: 32px auto; }
.form-card h1 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 13px; border: 1px solid #dcdce2;
  border-radius: 6px; background: #fff; outline: none; transition: .15s;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.form-error { color: #ef4444; font-size: 13px; margin: 8px 0; min-height: 18px; }
.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 22px;
  background: #f5f6f7; padding: 4px; border-radius: 6px;
}
.auth-tabs button {
  flex: 1; padding: 7px; border: none; background: transparent; border-radius: 4px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
}
.auth-tabs button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* 登录页「其他登录方式（邮箱）」折叠面板 */
.alt-auth { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.alt-toggle {
  width: 100%; background: transparent; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-2); padding: 6px 0; text-align: center; border-radius: 6px;
}
.alt-toggle:hover { color: var(--primary); background: rgba(127,127,127,.08); }
#altPanel { margin-top: 8px; }

/* ---------- 编辑器 ---------- */
.editor-wrap { padding: 26px 30px; }
.editor-wrap textarea#content {
  width: 100%; min-height: 380px; padding: 14px; resize: vertical;
  border: 1px solid #dcdce2; border-radius: 6px;
  font-family: "SF Mono", Consolas, monospace; font-size: 14px; line-height: 1.7;
  background: #fff; outline: none;
}
.editor-wrap textarea#content:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.preview-box {
  border: 1px dashed #dcdce2; border-radius: 6px;
  padding: 4px 18px 18px; min-height: 200px; background: #fafafa;
}
.preview-label { font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin: 12px 0 4px; }

/* ---------- 关于页 ---------- */
.about-body { padding: 34px 38px; }
.about-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.about-hero .big-avatar {
  width: 80px; height: 80px; border-radius: 50%; font-size: 34px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
  background: var(--primary);
}
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }

.footer { text-align: center; color: var(--text-3); font-size: 13px; padding: 28px 0 40px; }
.footer .mono { font-size: 12px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(34, 34, 38, .92); color: #fff; padding: 9px 22px; border-radius: 6px;
  font-size: 14px; opacity: 0; transition: .25s; z-index: 99; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.lightbox {
  position: fixed; inset: 0; background: rgba(20, 20, 30, .75); z-index: 100;
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }

/* ===================== 按 UA 识别结果强制手机版 ===================== */
html.ua-mobile { --nav-h: 96px; }
html.ua-mobile .nav-inner { height: auto; padding: 8px 12px; gap: 8px; flex-wrap: wrap; align-items: center; }
html.ua-mobile .logo { font-size: 17px; }
html.ua-mobile .logo .dot { width: 26px; height: 26px; font-size: 12px; }
html.ua-mobile .nav-user { order: 1; margin-left: auto; gap: 8px; font-size: 12px; }
html.ua-mobile .nav-user span { display: none; }
html.ua-mobile .nav-user .btn.sm { padding: 5px 10px; font-size: 12px; }
html.ua-mobile .nav-links { order: 3; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
html.ua-mobile .nav-links::-webkit-scrollbar { display: none; }
html.ua-mobile .nav-links a { font-size: 14px; padding: 6px 10px; white-space: nowrap; }
html.ua-mobile .nav-search-wrap { order: 4; flex: 0 0 auto; }
html.ua-mobile .tabbar-inner { padding: 0 12px; }
html.ua-mobile .tabbar a { font-size: 14px; padding: 11px 12px 9px; }
html.ua-mobile .container { padding: 12px 12px 56px; }
html.ua-mobile .layout { grid-template-columns: 1fr; gap: 14px; }
html.ua-mobile .left-rail { display: none; }
html.ua-mobile .sidebar { display: block; }
html.ua-mobile .hero { padding: 22px 18px; }
html.ua-mobile .hero h1 { font-size: 20px; }
html.ua-mobile .hero p { font-size: 13.5px; }
html.ua-mobile .feed-item { padding: 14px 14px 12px; }
html.ua-mobile .feed-title { font-size: 16.5px; -webkit-line-clamp: 2; }
html.ua-mobile .feed-excerpt { font-size: 13.5px; }
html.ua-mobile .feed-meta { font-size: 12px; gap: 10px; }
html.ua-mobile .feed-meta .feed-tags { margin-left: 0; width: 100%; }
html.ua-mobile .article-body { padding: 18px 16px; }
html.ua-mobile .article-header h1 { font-size: 21px; }
html.ua-mobile .markdown h1 { font-size: 20px; }
html.ua-mobile .markdown h2 { font-size: 17.5px; }
html.ua-mobile .markdown pre { padding: 12px 14px; font-size: 12.5px; }
html.ua-mobile .comments { padding: 18px 16px !important; }
html.ua-mobile .avatar { width: 34px; height: 34px; font-size: 14px; }
html.ua-mobile .emoji-panel { grid-template-columns: repeat(6, 1fr); }
html.ua-mobile .form-card { padding: 22px 18px; margin: 14px auto; border-radius: 12px; }
html.ua-mobile .editor-wrap { padding: 18px 16px; }
html.ua-mobile .editor-grid { grid-template-columns: 1fr; }
html.ua-mobile .about-body { padding: 22px 18px; }
html.ua-mobile .footer { padding: 20px 0 32px; font-size: 12px; }

/* ===================== 手机端适配（窄屏） ===================== */
@media (max-width: 640px) {
  :root { --nav-h: 96px; }

  /* 导航：两行（Logo+用户 / 菜单+搜索） */
  .nav-inner {
    height: auto; padding: 8px 12px; gap: 8px; flex-wrap: wrap; align-items: center;
  }
  .logo { font-size: 17px; }
  .logo .dot { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
  .nav-user { order: 1; margin-left: auto; gap: 8px; font-size: 12px; }
  .nav-user span { display: none; }           /* 空间紧张，隐藏用户名 */
  .nav-user .btn.sm { padding: 5px 10px; font-size: 12px; }
  .nav-links { order: 3; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 14px; padding: 6px 10px; white-space: nowrap; }
  .nav-search-wrap { order: 4; flex: 0 0 auto; }
  .nav-search-pop { position: fixed; top: calc(var(--nav-h) + var(--toolbar-h, 0px) + 10px); left: 12px; right: 12px; width: auto; }

  /* 频道栏 */
  .tabbar-inner { padding: 0 12px; }
  .tabbar a { font-size: 14px; padding: 11px 12px 9px; }

  /* 主体容器 */
  .container { padding: 12px 12px 56px; }
  .layout { grid-template-columns: 1fr; gap: 14px; }

  /* 横幅 */
  .hero { padding: 22px 18px; border-radius: 12px; }
  .hero h1 { font-size: 20px; }
  .hero p { font-size: 13.5px; }
  .hero::before, .hero::after { display: none; }

  /* 信息流 */
  .feed { padding: 2px 0; }
  .feed-item { padding: 14px 14px 12px; }
  .feed-title { font-size: 16.5px; -webkit-line-clamp: 2; }
  .feed-excerpt { font-size: 13.5px; margin: 6px 0 8px; }
  .feed-meta { font-size: 12px; gap: 10px; }
  .feed-meta .feed-tags { margin-left: 0; width: 100%; }
  .pin-badge { font-size: 11px; padding: 1px 6px; }

  /* 侧栏卡片 */
  .sidebar .card { margin-bottom: 12px; }
  .side-card-hd { padding: 10px 14px; font-size: 14px; }
  .side-card-bd { padding: 10px 14px; }
  .owner-card .owner-avatar { width: 56px; height: 56px; font-size: 22px; }

  /* 文章详情 */
  .article-body { padding: 18px 16px; }
  .article-header h1 { font-size: 21px; margin: 10px 0; }
  .article-actions { flex-wrap: wrap; }
  .markdown h1 { font-size: 20px; }
  .markdown h2 { font-size: 17.5px; }
  .markdown h3 { font-size: 16px; }
  .markdown pre { padding: 12px 14px; font-size: 12.5px; border-radius: 8px; }
  .markdown table { font-size: 13px; display: block; overflow-x: auto; white-space: nowrap; }

  /* 评论区 */
  .comments { padding: 18px 16px !important; margin-top: 16px; }
  .comments h2 { font-size: 17px; }
  .comment { padding: 14px 0; gap: 10px; }
  .avatar { width: 34px; height: 34px; font-size: 14px; }
  .comment .c-text { font-size: 14px; }
  .comment .c-images img { max-width: 110px; max-height: 110px; }
  .emoji-panel { grid-template-columns: repeat(6, 1fr); }
  .comment-form textarea { min-height: 76px; font-size: 15px; }
  .form-toolbar { flex-wrap: wrap; gap: 6px; }
  .form-toolbar .spacer { display: none; }
  .form-toolbar .btn.sm { margin-left: auto; }

  /* 表单 / 登录 */
  .form-card { padding: 22px 18px; margin: 14px auto; max-width: none; border-radius: 12px; }
  .form-card h1 { font-size: 20px; }
  .auth-tabs button { font-size: 13px; padding: 7px 4px; }
  .code-row { flex-wrap: nowrap; }
  .code-row button { padding: 9px 10px; font-size: 12.5px; }

  /* 编辑器 */
  .editor-wrap { padding: 18px 16px; }
  .editor-wrap textarea#content { min-height: 240px; font-size: 15px; }
  .editor-grid { grid-template-columns: 1fr; gap: 14px; }
  .preview-box { padding: 4px 14px 14px; }

  /* 关于页 */
  .about-body { padding: 22px 18px; }
  .about-hero { gap: 16px; }
  .about-hero .big-avatar { width: 64px; height: 64px; font-size: 28px; border-radius: 50%; }

  /* 后台管理 */
  .container[style*="max-width"] { max-width: none !important; }

  .footer { padding: 20px 0 32px; font-size: 12px; }
  .toast { bottom: 20px; font-size: 13px; padding: 8px 18px; }
}

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.modal-card { background: #fff; border-radius: 12px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 1px solid var(--line); }
.modal-msg { font-size: 14.5px; line-height: 1.7; color: var(--text); word-break: break-all; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal-field { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; line-height: 1.6; color: var(--text); background: #fff; resize: vertical; }
.modal-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ===== 链接小卡片 ===== */
.link-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft, #fafafa); text-decoration: none; transition: .15s; }
.link-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.link-card-icon { font-size: 22px; }
.link-card-body { flex: 1; min-width: 0; }
.link-card-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.link-card-desc { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #f0f0f0; color: var(--text-3); }
.link-card.official .link-card-tag { background: var(--primary-soft); color: var(--primary); }

/* ============================================================
   液态玻璃 / 毛玻璃 主题系统（追加覆盖，后写胜先写）
   ============================================================ */
:root {
  --glass-bg: rgba(255, 255, 255, .42);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-shadow: 0 8px 32px rgba(88, 60, 200, .14);
  --glass-blur: 22px;
}
[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-soft: rgba(167, 139, 250, .16);
  --text: #e9e9f0;
  --text-2: #b6b6c4;
  --text-3: #76768a;
  --line: rgba(255, 255, 255, .12);
  --bg: #0b0d13;
  --card: rgba(255, 255, 255, .06);
  --glass-bg: rgba(28, 26, 46, .5);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .45);
  --code-bg: #1c1f29;
}
body {
  background: linear-gradient(135deg, #f1ecff 0%, #efe7fb 45%, #e6ecff 100%);
  transition: background .4s;
}
[data-theme="dark"] body {
  background: radial-gradient(circle at 22% 0%, #1b1430, #0a0814 66%);
}
/* 玻璃化覆盖 */
.nav {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.7);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.7);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.modal-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(1.7);
  backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.btn.ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.container { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

/* ---------- ColorOS 风格光标流光（全站共用：cloud.js 注入 body） ---------- */
.cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  transform: translate(var(--mx, 50vw), var(--my, 38vh));
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.cursor-glow .blob {
  position: absolute; left: 0; top: 0;
  width: 22vmax; height: 22vmax; margin: -11vmax 0 0 -11vmax;
  border-radius: 50%;
  -webkit-filter: blur(60px); filter: blur(60px); opacity: .4;
  will-change: transform;
}
.cursor-glow .b1 { background: radial-gradient(circle, #00e5ff 0%, rgba(0,229,255,0) 55%); animation: cos-drift1 15s ease-in-out infinite; }
.cursor-glow .b2 { background: radial-gradient(circle, #b06bff 0%, rgba(176,107,255,0) 55%); animation: cos-drift2 19s ease-in-out infinite; }
.cursor-glow .b3 { background: radial-gradient(circle, #ff6ec7 0%, rgba(255,110,199,0) 55%); animation: cos-drift3 23s ease-in-out infinite; }
@keyframes cos-drift1 { 0%,100% { transform: translate(-12vw, -8vh); } 50% { transform: translate(14vw, 10vh); } }
@keyframes cos-drift2 { 0%,100% { transform: translate(10vw, 6vh); } 50% { transform: translate(-14vw, -10vh); } }
@keyframes cos-drift3 { 0%,100% { transform: translate(2vw, -12vh); } 50% { transform: translate(-8vw, 12vh); } }
@media (prefers-reduced-motion: reduce) {
  .cursor-glow .blob { animation: none; }
  .cursor-glow { transition: none; }
}

/* 主题切换按钮 */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--text); font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
  transition: transform .2s;
}
.theme-toggle:active { transform: rotate(40deg); }

/* ===== Y币徽标 ===== */
.coin-badge { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 20px; background: linear-gradient(135deg, #ffd66b, #ff9f43); color: #5a3b00; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(255,159,67,.4); white-space: nowrap; }

/* ===== 等级徽章 ===== */
.lv-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; color: #fff; background: #94a3b8; vertical-align: middle; }
.lv-badge.lv2 { background: #38bdf8; }
.lv-badge.lv3 { background: #34d399; }
.lv-badge.lv4 { background: #60a5fa; }
.lv-badge.lv5 { background: #a78bfa; }
.lv-badge.lv6 { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.role-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); margin-left: 4px; }
.member-no { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #eef2f7; color: #475569; margin-left: 4px; vertical-align: middle; }
.member-no.owner { background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; }
.sub-chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: #eef2ff; color: #4f46e5; text-decoration: none; margin-left: 4px; vertical-align: middle; }
.sub-chip:hover { background: #e0e7ff; }

/* ===== 评论区 ===== */
.c-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.c-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-name { font-size: 13.5px; font-weight: 600; }
.c-time { font-size: 12px; color: var(--text-3); }
.c-body { font-size: 14.5px; line-height: 1.75; color: var(--text); word-break: break-word; }
.c-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.c-actions button { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 12.5px; padding: 0; }
.c-actions button:hover { color: var(--primary); }
.c-actions button.liked { color: var(--primary); font-weight: 600; }
.c-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-images img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid var(--line); }
.c-replies { margin-left: 38px; padding-left: 14px; border-left: 2px solid var(--line); margin-top: 10px; }
.c-reply-box { margin-left: 38px; margin-top: 8px; display: flex; gap: 8px; }
.c-reply-box input { flex: 1; }

/* ===== 表情面板 ===== */
.emoji-panel { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 10px; width: 268px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 6px; line-height: 1; }
.emoji-grid button:hover { background: var(--primary-soft); }
.emoji-tabs { display: flex; gap: 6px; margin-bottom: 8px; font-size: 12px; }
.emoji-tabs button { background: #f3f4f6; border: none; padding: 3px 10px; border-radius: 20px; cursor: pointer; color: var(--text-2); }
.emoji-tabs button.on { background: var(--primary); color: #fff; }
.sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sticker-grid img { width: 100%; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fafafa; }
.sticker-grid img:hover { border-color: var(--primary); }

/* ===== 游客提示横幅（顶部） ===== */
.guest-banner {
  background: linear-gradient(90deg, #fff7ed, #fff1f0);
  border-bottom: 1px solid #ffd8c2;
  color: #9a3412; font-size: 13.5px; line-height: 1.7;
  padding: 10px 24px; text-align: center;
}
.guest-banner a { color: var(--primary); font-weight: 600; }
.guest-banner #guestExit { color: var(--primary); font-weight: 600; margin-left: 6px; cursor: pointer; }

/* ===== 文章作者（置于标题下方） ===== */
.article-author {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 4px; font-size: 14px; color: var(--text-2);
}
.article-author .c-name { font-weight: 600; color: var(--text); }

/* ===== 游客资料提示 ===== */
.guest-note {
  background: var(--primary-soft); border: 1px solid rgba(252, 85, 49, .2);
  color: var(--primary-dark); padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 16px;
}

/* ===== 收藏夹 / 快捷收藏星标 ===== */
.fav-card .switch-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.feed-title-row { align-items: center; }
.fav-mini {
  margin-left: auto; cursor: pointer; color: var(--text-3);
  font-size: 17px; line-height: 1; user-select: none; transition: .15s;
  border: 1px solid var(--line); border-radius: 50%; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0;
}
.fav-mini:hover { border-color: var(--primary); color: var(--primary); }
.fav-mini.on { color: #f59e0b; border-color: #f59e0b; }

/* ===== 个人主页：小屏必须单列 =====
   注意：上面 .layout.profile-layout（两个类，权重更高）写在媒体查询之外，
   会压过媒体查询里 .layout（一个类）的单列规则，所以这里用同等权重 + 更靠后的
   声明，保证 ≤860px 时个人主页也是单列。 */
@media (max-width: 860px) {
  .layout.profile-layout { grid-template-columns: 1fr; }
}

/* ===== 让全站卡片更有「AI 液态玻璃」紫光感 ===== */
.card { border-radius: 22px; }
.nav-inner .logo .dot { box-shadow: 0 4px 14px rgba(124,92,255,.5); }
/* 侧栏卡片（热榜/站长等）更圆润通透，头部与内容区分隔淡化为光晕线 */
.sidebar .card, .left-rail .card { border-radius: 22px; overflow: hidden; }
.sidebar .card .side-card-hd {
  background: linear-gradient(90deg, rgba(124,92,255,.10), rgba(236,72,153,.06) 60%, transparent);
  border-bottom: 1px solid rgba(124,92,255,.14);
}
.sidebar .card { box-shadow: 0 10px 36px rgba(88, 60, 200, .14); }

/* ===== 勋章墙 / 我的帖子筛选（个人主页 + 活动页共用） ===== */
.medal-wall { display: flex; flex-wrap: wrap; gap: 14px; }
.medal-item { width: 92px; text-align: center; }
.medal-item .m-ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; box-shadow: 0 6px 18px rgba(124,92,255,.35); }
.medal-item .m-name { font-size: 12.5px; color: var(--text-2); }
.post-filter { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.post-filter input { flex: 1; min-width: 160px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.post-filter select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }

/* ===== 通用弹窗头（音乐上传 / 编辑帖子等 modal 共用） ===== */
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.modal-x { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 4px 8px; border-radius: 6px; }
.modal-x:hover { background: var(--line); }

/* 暗色模式下弹窗卡片跟随主题，不刺眼 */
[data-theme="dark"] .modal-card { background: var(--glass-bg); color: var(--text); border-color: var(--glass-border); }

/* ===== 个人主页：公开统计（获赞/粉丝/关注） ===== */
.profile-stats { display: flex; gap: 28px; margin: 16px 0 4px; }
.profile-stats .ps { text-align: center; cursor: default; }
.profile-stats .ps b { display: block; font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; }
.profile-stats .ps span { font-size: 12.5px; color: var(--text-3); }

/* 本人专属：Y币钱包（他人看不到） */
.profile-actions { margin-top: 12px; }
.wallet-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 14px;
  font-size: 14.5px; color: var(--text);
  background: linear-gradient(120deg, rgba(245,158,11,.16), rgba(124,92,255,.12));
  border: 1px solid rgba(245,158,11,.32); box-shadow: 0 6px 18px rgba(245,158,11,.14);
}
.wallet-pill b { font-size: 17px; color: #d97706; font-weight: 800; }
[data-theme="dark"] .wallet-pill b { color: #fbbf24; }
.wallet-hint { font-size: 12px; color: var(--text-3); }

/* 关注 / 已关注 按钮 */
.follow-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; border: none;
  box-shadow: 0 6px 18px rgba(124,92,255,.4); font-weight: 700; padding: 9px 22px; border-radius: 999px;
}
.follow-btn.on { background: var(--card); color: var(--text-2); border: 1px solid var(--line); box-shadow: none; }
.follow-btn:active { transform: scale(.97); }

/* ===== 手机版（B站式：底部 tab 栏 + 单列堆叠 + 玻璃） ===== */
.mobile-tabbar { display: none; }
@media (max-width: 860px) {
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 72;
    height: 56px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-bg); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--glass-border); justify-content: space-around; align-items: center;
  }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font-size: 11px; text-decoration: none; }
  .mobile-tabbar a.on { color: var(--primary); }
  .mobile-tabbar .mti { font-size: 20px; line-height: 1; }
  .mobile-tabbar a { position: relative; }
  .mobile-tabbar .nav-badge { position: absolute; top: 1px; left: 50%; transform: translateX(9px); margin-left: 0; }
  .mobile-tabbar .mt-pub {
    flex: 0 0 auto; width: 46px; height: 46px; margin-top: -16px; border-radius: 50%;
    background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(124,92,255,.5);
  }
  /* 顶栏：手机端也显示页面入口（首页/设置等），可横滑，避免「点进消息后抬头找不到切换入口」 */
  .nav-inner { gap: 8px; padding: 0 12px; }
  .nav-links { display: flex; flex: 1 1 100%; order: 3; gap: 1px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-search-wrap { flex: 0 0 auto; }
  .nav-user { gap: 6px; }
  .nav-user #publishBtn, .nav-user a[href="/u.html"], .nav-user a[href="/manage.html"], .nav-user > span:not(.coin-badge) { display: none; }
  /* 单列堆叠，隐藏左右栏（热榜等次级内容在手机端从底部导航进入） */
  .layout { grid-template-columns: 1fr !important; }
  .left-rail, .sidebar { display: none; }
  .container { padding: 10px; }
  .footer { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .tabbar-inner { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .feed-item { padding: 14px; }
  .feed-thumb { width: 100%; height: 180px; margin: 8px 0 0; border-radius: 12px; object-fit: cover; }
  .profile-stats { gap: 20px; }
  .card { border-radius: 18px; }
}

/* ===== 帖子视频播放器 ===== */

/* ===== 导航未读红点 ===== */
.nav-badge {
  display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 3px;
  background: #ff4d4f; color: #fff; border-radius: 999px; font-size: 11px; line-height: 16px;
  text-align: center; vertical-align: middle; font-weight: 700;
}

/* ===== 经验条 ===== */
.exp-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.exp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#8b5cf6,#6366f1); transition: width .5s; }
.exp-text { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ===== 消息中心 / 私信 ===== */
.msg-tabs { display: flex; gap: 8px; }
.msg-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); font-size: 14px; }
.msg-tab.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.dm-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 60vh; }
.dm-list { border-right: 1px solid var(--line); max-height: 70vh; overflow-y: auto; }
.dm-conv { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.dm-conv:hover, .dm-conv.on { background: var(--primary-soft); }
.dm-conv-name { font-weight: 700; font-size: 14px; }
.dm-conv-last { font-size: 12.5px; color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-unread { background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.dm-thread { display: flex; flex-direction: column; min-height: 60vh; }
.dm-thread-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dm-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 56vh; }
.dm-bubble { max-width: 72%; align-self: flex-start; background: var(--bg); padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
.dm-bubble.mine { align-self: flex-end; background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; border-radius: 14px 14px 4px 14px; }
.dm-bubble-text { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.dm-bubble-time { font-size: 11px; opacity: .6; margin-top: 4px; }
.dm-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.dm-input input { flex: 1; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); outline: none; }
.dm-input input:focus { border-color: var(--primary); }
.dm-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
@media (max-width: 640px) { .dm-layout { grid-template-columns: 1fr; } .dm-list { max-height: 30vh; } }

/* ===== 全局搜索页 ===== */
.search-box { display: flex; gap: 8px; margin-bottom: 16px; }
.search-box input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; outline: none; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-section { margin-bottom: 22px; }
.search-section h2 { font-size: 16px; margin-bottom: 10px; }
.search-user { display: flex; align-items: center; gap: 10px; }
.search-user .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.search-user .meta { flex: 1; }

/* 账号恢复面板：忘记密码 / 找回会员号 共用同一菜单 */
.rec-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.rt { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer; font-family: inherit; }
.rt.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.recover-result { margin-top: 18px; padding: 16px; border-radius: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.recover-result .big { font-size: 18px; font-weight: 600; color: #047857; }
.recover-result .row { font-size: 14px; color: #065f46; margin-top: 6px; }
.recover-result a { color: var(--primary); margin-left: 6px; }

/* 视频点击加载占位（签名不可用时才出现，避免自动整文件下载） */

/* 游客媒体占位：平台存储仅对登录用户开放，游客看到锁形卡片引导登录 */
.media-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 150px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); cursor: pointer; text-align: center; padding: 14px; box-sizing: border-box; }
.media-lock .ml-ico { font-size: 26px; line-height: 1; }
.media-lock b { font-size: 13.5px; color: var(--text); }
.media-lock i { font-size: 12px; color: var(--text-3); font-style: normal; }
.media-lock:hover { border-color: var(--primary); }
.media-lock:hover b { color: var(--primary); }

/* 频道版主金色标识 */
.mod-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; margin-left: 5px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #4a3a08; background: #f5d565; border: 1px solid #d4af37; white-space: nowrap; vertical-align: middle; cursor: help; }
.mod-badge-lg { font-size: 12px; padding: 2px 10px; }
/* 频道聚合页 */
.ch-item { display: block; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.ch-item:last-child { border-bottom: none; }
.ch-item:hover { background: #fafafa; }
.ch-body { min-width: 0; }
.ch-item .feed-title { display: block; margin: 6px 0 4px; }
.ch-item .feed-excerpt { margin-bottom: 8px; }
.ch-hero { padding: 20px 18px; border-radius: 16px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--card); }
.ch-hero .ch-icon { font-size: 32px; }
.ch-hero h1 { font-size: 22px; margin: 6px 0 4px; }
.ch-mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.ch-mods .mod-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.ch-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ch-subs a { padding: 4px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); color: var(--text-2); }
.ch-subs a:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 会员 VIP 标识与头像框 ===== */
.vip-badge { display: inline-flex; align-items: center; margin-left: 4px; padding: 0 5px; height: 15px; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #fff; border-radius: 4px; background: linear-gradient(135deg, #8b5cf6, #6366f1); vertical-align: middle; }
[data-theme="dark"] .vip-badge { box-shadow: 0 1px 6px rgba(124,92,255,.5); }
.avatar, .profile-avatar, .owner-avatar, .mini-avatar { transition: box-shadow .25s; }
.af-aurora { box-shadow: 0 0 0 3px #7c5cff, 0 0 14px rgba(124,92,255,.5) !important; }
.af-flame  { box-shadow: 0 0 0 3px #f97316, 0 0 14px rgba(249,115,22,.5) !important; }
.af-ocean  { box-shadow: 0 0 0 3px #0ea5e9, 0 0 14px rgba(14,165,233,.5) !important; }
.af-mint   { box-shadow: 0 0 0 3px #10b981, 0 0 14px rgba(16,185,129,.5) !important; }
.af-rose   { box-shadow: 0 0 0 3px #f43f5e, 0 0 14px rgba(244,63,94,.5) !important; }
.af-star   { box-shadow: 0 0 0 3px #cbd5e1, 0 0 14px rgba(203,213,225,.6) !important; }
.af-galaxy { box-shadow: 0 0 0 3px #6366f1, 0 0 14px rgba(99,102,241,.55) !important; }
.af-gold   { box-shadow: 0 0 0 3px #d4a017, 0 0 14px rgba(212,160,23,.55) !important; }
.af-neon   { box-shadow: 0 0 0 3px #ec4899, 0 0 14px rgba(236,72,153,.55) !important; }
.af-crimson{ box-shadow: 0 0 0 3px #dc2626, 0 0 14px rgba(220,38,38,.55) !important; }

/* VIP 昵称紫光特效：vipNameWrap 包裹后生效 */
.vip-name { color: #7c3aed; font-weight: 600; text-shadow: 0 0 10px rgba(124,58,237,.25); }
[data-theme="dark"] .vip-name { color: #b79bff; text-shadow: 0 0 12px rgba(139,92,246,.55); }

/* 会员进阶徽章 / 内测标 / 优先审核标 */
.badge-tier, .badge-beta, .badge-fast { display: inline-block; font-size: 11.5px; line-height: 1.6; padding: 1px 8px; border-radius: 999px; margin-left: 4px; font-weight: 600; vertical-align: middle; }
.badge-tier.tier-year { background: linear-gradient(135deg,#f59e0b,#d4a017); color:#3a2a00; }
.badge-tier.tier-senior { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color:#1e293b; }
.badge-tier.tier-loyal { background: linear-gradient(135deg,#c084fc,#a855f7); color:#fff; }
.badge-tier.tier-active { background: linear-gradient(135deg,#7dd3fc,#38bdf8); color:#05384a; }
.badge-beta { background: linear-gradient(135deg,#22d3ee,#06b6d4); color:#04323a; }
.badge-fast { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#3a2a00; }

/* YS 等级（账号年龄：太阳/月亮/星星，按注册时长） */
.ys-age-wrap { display: inline-flex; align-items: center; }
.ys-age { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-2); background: rgba(124,92,255,.10); border: 1px solid rgba(124,92,255,.28); padding: 1px 9px; border-radius: 999px; margin-left: 4px; }
.ys-age b { font-weight: 700; color: var(--primary); margin-left: 3px; }

/* 身份标识小药丸：会员号 / UID（两者并列，不再混淆） */
.id-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); background: var(--card); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.id-chip b { color: var(--primary); font-weight: 600; letter-spacing: .3px; }
.id-uid { cursor: pointer; transition: .15s; }
.id-uid:hover { border-color: var(--primary); }

/* 超级会员等级（SVIP）皇冠徽章：按累计开通天数分 1~5 级 */
.badge-svip { display: inline-block; font-size: 11.5px; line-height: 1.6; padding: 1px 8px; border-radius: 999px; margin-left: 4px; font-weight: 700; vertical-align: middle; color: #3a2a00; }
.badge-svip.svip1 { background: linear-gradient(135deg,#fde68a,#fbbf24); }
.badge-svip.svip2 { background: linear-gradient(135deg,#fcd34d,#f59e0b); }
.badge-svip.svip3 { background: linear-gradient(135deg,#fbbf24,#d97706); color: #fff; }
.badge-svip.svip4 { background: linear-gradient(135deg,#f59e0b,#b45309); color: #fff; }
.badge-svip.svip5 { background: linear-gradient(135deg,#fbbf24,#92400e); color: #fff; box-shadow: 0 0 0 1px rgba(251,191,36,.5); }

/* ---------- 会员中心（u.html） ---------- */
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vc-row:last-child { border-bottom: none; }
.vc-k { font-size: 13.5px; color: var(--text-2); }
.vc-v { font-size: 13.5px; color: var(--text); }

/* ---------- 提前 24h 抢先看（post.html） ---------- */
.early-lock { text-align: center; padding: 48px 20px; color: var(--text-2); }
.early-lock .btn { display: inline-block; background: var(--primary); color: #fff; padding: 9px 18px; border-radius: 10px; text-decoration: none; }

/* ---------- 会员专属表情角标（评论区） ---------- */
.st-wrap { position: relative; display: inline-block; }
.st-vip { position: absolute; top: -4px; right: -4px; background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #3a2a00; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 999px; line-height: 14px; z-index: 2; }

/* ---------- 音乐无损 / 精选角标（music.html） ---------- */
.mq-lossless { background: linear-gradient(135deg,#a78bfa,#7c5cff); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-left: 4px; font-weight: 700; }
.mq-feat { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #3a2a00; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-left: 4px; font-weight: 700; }
[data-theme="dark"] .badge-svip.svip3,
[data-theme="dark"] .badge-svip.svip4,
[data-theme="dark"] .badge-svip.svip5 { color: #fff; }

/* 会员主页装扮主题（作用于 #profileCard） */
.vip-theme-aurora { background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(99,102,241,.10)) !important; }
.vip-theme-sunset { background: linear-gradient(135deg, rgba(251,146,60,.20), rgba(244,63,94,.12)) !important; }
.vip-theme-forest { background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(5,150,105,.10)) !important; }
.vip-theme-midnight { background: linear-gradient(135deg, rgba(30,41,59,.92), rgba(15,23,42,.82)) !important; color:#e2e8f0; }
[data-theme="dark"] .vip-theme-aurora { background: linear-gradient(135deg, rgba(139,92,246,.30), rgba(99,102,241,.18)) !important; }

/* 装扮按钮 */
.decor-row { display: flex; flex-wrap: wrap; gap: 8px; }
.decor-btn { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: .15s; }
.decor-btn:hover { border-color: var(--primary); }
.decor-btn.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.decor-btn.color { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.decor-btn.color.on { box-shadow: 0 0 0 3px rgba(124,58,237,.4); }

/* 主页帖子翻页 */
.pager { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 4px; }
.pager-info { font-size: 12.5px; color: var(--text-3); }
.pager-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pg { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; min-width: 38px; }
.pg:hover:not(.disabled) { border-color: var(--primary); }
.pg.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pg.disabled { opacity: .4; cursor: not-allowed; }
.pg-link { margin-left: 6px; border: 1px solid var(--line); background: transparent; color: var(--primary); border-radius: 6px; padding: 1px 8px; font-size: 12px; cursor: pointer; }
.pg-link:hover { background: var(--primary); color: #fff; }

/* ===== 会员中心 ===== */
.vip-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(99,102,241,.05)); }
.vip-card.off { background: none; }
.vip-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vip-hd b { font-size: 15px; }
.vip-until { font-size: 12.5px; color: var(--text-3); }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; background: var(--card); }
.plan:hover { border-color: var(--primary); }
.plan b { display: block; font-size: 14px; margin-bottom: 4px; }
.plan i { font-size: 12px; color: var(--text-3); font-style: normal; }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; margin-top: 8px; }
.frame-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; background: var(--card); }
.frame-item.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.frame-item b { display: block; font-size: 12.5px; margin-top: 6px; }
.frame-item i { font-size: 11px; color: var(--text-3); font-style: normal; }
.frame-demo { width: 34px; height: 34px; border-radius: 50%; margin: 2px auto 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.priv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13.5px; }

/* ===== 访客记录 ===== */
.visitor-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.visitor-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.visitor-item .vt { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* ===== 频道面板（☰ 展开全部频道） ===== */
.ch-more { flex: 0 0 auto; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 14px; white-space: nowrap; user-select: none; }
.ch-more:hover { color: var(--primary); background: rgba(127,127,127,.12); }
.ch-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.ch-card { margin: 64px auto; width: min(600px, 94vw); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.ch-card h3 { margin: 0 0 12px; font-size: 15px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ch-cell { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: var(--bg); }
.ch-cell .cinfo { flex: 1; min-width: 0; }
.ch-cell b { display: block; font-size: 13.5px; }
.ch-cell i { font-size: 11.5px; color: var(--text-3); font-style: normal; }
.sub-btn { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.sub-btn.on { border-color: var(--primary); color: var(--primary); }
.sub-big { padding: 6px 16px; font-size: 13px; }

/* ===== 勋章墙 ===== */
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.medal-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; background: var(--card); }
.medal-item .mi { font-size: 26px; line-height: 1; }
.medal-item b { display: block; font-size: 13px; margin-top: 6px; }
.medal-item i { font-size: 11.5px; color: var(--text-3); font-style: normal; }
.medal-item.locked { opacity: .45; filter: grayscale(1); }

/* 会员卡折叠 + 红色会员提醒（2026-10-10 重构） */
.vip-compact { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:linear-gradient(135deg, rgba(139,92,246,.10), rgba(99,102,241,.05)); }
.vip-toggle { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px; cursor:pointer; user-select:none; }
.vip-toggle-l { display:flex; align-items:center; gap:8px; min-width:0; }
.vip-toggle b { font-size:15px; }
.vip-pill-red { flex:0 0 auto; background:var(--primary); color:#fff; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; box-shadow:0 2px 8px rgba(124,92,246,.4); }
.vip-compact.off .vip-pill-red { animation: vipPulse 1.6s ease-in-out infinite; }
@keyframes vipPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.1); } }
.vip-caret { flex:0 0 auto; transition:transform .2s ease; font-size:13px; color:var(--text-3); }
.vip-toggle.open .vip-caret, .vip-sub.open .vip-caret, .medal-toggle.open .vip-caret { transform:rotate(180deg); }
.vip-body { padding:0 14px 14px; }
.vip-perks { font-size:12.5px; color:var(--text-2); line-height:1.8; background:rgba(124,92,246,.08); border-radius:10px; padding:8px 10px; margin-bottom:10px; }
.vip-coins { font-size:12.5px; color:var(--text-3); margin-top:6px; }
.vip-sub { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13.5px; font-weight:600; padding:9px 0; margin-top:6px; cursor:pointer; user-select:none; border-top:1px solid var(--line); }
.vip-sub-body { padding-bottom:2px; }
.frame-actions { margin-top:8px; }
.vip-days { font-size:12px; color:var(--text-3); margin-top:8px; }
/* 头像框紧凑 + 小预览 */
.frame-grid-sm { grid-template-columns: repeat(auto-fill, minmax(76px,1fr)); gap:8px; }
.frame-grid-sm .frame-item { padding:8px 4px; }
.frame-grid-sm .frame-demo { width:40px; height:40px; font-size:18px; margin:0 auto 4px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--line); }
/* 勋章墙折叠 */
.medal-toggle { display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; margin-bottom:12px; }
/* 资料卡头像左右切换 */
.pf-row { transition: flex-direction .2s ease; }
#profileCard.avatar-right .pf-row { flex-direction: row-reverse; text-align:right; }
#profileCard.avatar-right .pf-row > div { text-align:right; }

/* ===== 数据看板 ===== */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dash-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.dash-item span { display: block; font-size: 12.5px; color: var(--text-3); }
.dash-item b { font-size: 22px; font-weight: 800; }

/* ===== 草稿恢复提示 ===== */
.draft-tip { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; border: 1px dashed var(--primary); background: rgba(124,92,255,.06); }
.draft-tip button { margin-left: auto; }

/* ===== 音乐基地（QQ 音乐式） ===== */
.mq { max-width: 960px; margin: 0 auto; padding: 22px 16px 40px; }
.mq-hero {
  position: relative; border-radius: 20px; padding: 30px 26px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #1f1147 0%, #3b1d7a 45%, #6b2fb5 100%);
}
.mq-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.mq-disc {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.35); margin-bottom: 14px;
}
.mq-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.mq-hero p { font-size: 13.5px; opacity: .82; margin-top: 4px; }
.mq-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.mq-actions .btn { background: #fff; color: #4c1d95; border: none; font-weight: 700; }
.mq-actions .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.mq-bar { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.mq-bar input[type=text], .mq-bar input:not([type]) { flex: 1; min-width: 180px; }
#mqSearch { flex: 1; min-width: 180px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.mq-tabs { display: flex; gap: 6px; }
.mq-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.mq-tabs button.on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.mq-list { list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.mq-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mq-item:last-child { border-bottom: none; }
.mq-item:hover { background: var(--bg); }
.mq-no { font-size: 12px; color: var(--text-3); width: 20px; font-family: "SF Mono", Consolas, monospace; }
.mq-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.mq-info { flex: 1; min-width: 0; }
.mq-info b { display: block; font-size: 14px; }
.mq-info span { font-size: 12px; color: var(--text-3); }
.mq-play { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--primary); cursor: pointer; }
.mq-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.mq-note a { color: var(--primary); word-break: break-all; }

/* 底部播放条 */
.mq-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.10);
}
.pp-cover { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: #7c5cff; flex: 0 0 auto; }
.pp-meta { min-width: 0; width: 180px; }
.pp-meta b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-meta span { font-size: 12px; color: var(--text-3); }
.pp-ctrl { display: flex; align-items: center; gap: 6px; }
.pp-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; }
.pp-ctrl .pp-play { width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; font-size: 15px; }
.pp-prog { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; }
.pp-prog span { font-size: 11.5px; color: var(--text-3); font-family: "SF Mono", Consolas, monospace; }
.pp-prog input[type=range] { flex: 1; }
.pp-vol { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-3); }
.pp-vol input[type=range] { width: 86px; }
.up-terms { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 4px 0 2px; }
.up-terms a { color: var(--primary); }

@media (max-width: 860px) {
  body { padding-bottom: 150px; }
  .mq-player { flex-wrap: wrap; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .pp-meta { width: auto; flex: 1; }
  .pp-prog { order: 5; width: 100%; flex: 1 0 100%; }
  .pp-vol { display: none; }
  .mq-hero h1 { font-size: 22px; }
}

/* ===== 音乐创作者申请 / 协议 ===== */
.apply-card, .terms-card { max-width: 760px; margin: 22px auto; padding: 26px 24px; }
.apply-card h1, .terms-card h1 { font-size: 22px; margin-bottom: 6px; }
.apply-card .sub, .terms-card .sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; }
.apply-terms { padding: 12px 14px; border: 1px dashed var(--primary); border-radius: 10px; background: var(--primary-soft); margin-bottom: 16px; }
.quiz-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.quiz-q { font-size: 14.5px; margin-bottom: 8px; }
.quiz-o { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.quiz-opt:hover { border-color: var(--primary); }
.apply-result { text-align: center; padding: 26px 0; }
.apply-result .score { font-size: 46px; font-weight: 800; color: var(--primary); }
.apply-result .score i { font-size: 16px; font-style: normal; margin-left: 4px; }
.apply-result p { margin: 10px 0 18px; color: var(--text-2); }
.apply-ok { padding: 22px; text-align: center; color: var(--text-2); }
.terms-card h2 { font-size: 16px; margin: 20px 0 8px; }
.terms-card p, .terms-card li { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.terms-card ul { margin: 8px 0 8px 20px; }
.terms-card a { color: var(--primary); }
.terms-foot { display: flex; gap: 10px; margin-top: 24px; }

/* ===== 顶栏「▾」更多菜单（窄屏折叠导航项） ===== */
.nav-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: 4px; border-radius: 6px;
  color: var(--text-2); font-size: 13px; cursor: pointer; user-select: none; flex: 0 0 auto;
}
.nav-more:hover { color: var(--primary); background: rgba(127,127,127,.12); }
.nav-drop {
  position: fixed; z-index: 200; min-width: 168px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16); display: flex; flex-direction: column;
}
.nav-drop a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.nav-drop a:hover { background: var(--bg); color: var(--primary); }
.nav-drop a.on { color: var(--primary); font-weight: 600; }

/* 顶栏 🎨 光效样式菜单 */
.style-menu { z-index: 210; }
.style-menu-title { font-size: 12px; color: var(--text-3); padding: 6px 12px 4px; }
.style-menu .style-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: none; background: transparent; border-radius: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; text-align: left; }
.style-menu .style-opt:hover { background: var(--bg); color: var(--primary); }
.style-menu .style-opt.on { color: var(--primary); font-weight: 600; }
.style-menu .swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(127,127,127,.3); flex: 0 0 auto; }
.style-menu-tag { margin-left: auto; font-size: 11px; color: #ef4444; background: rgba(239,68,68,.12); padding: 1px 6px; border-radius: 999px; }
.style-menu-hint { font-size: 11px; color: var(--text-3); padding: 6px 12px 8px; line-height: 1.5; }

/* ===== 全屏播放页 ===== */
.mq-full { position: fixed; inset: 0; z-index: 300; overflow: auto; }
.mq-full-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #7c5cff 0%, #1b1035 60%, #0d0a1a 100%); transition: background .4s; }
.mq-full-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: 56px 20px 60px; color: #fff; text-align: center; min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.mq-full-cover {
  width: min(300px, 62vw); aspect-ratio: 1; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 92px; font-weight: 800; color: rgba(255,255,255,.92); box-shadow: 0 24px 60px rgba(0,0,0,.42); margin: 8px 0 22px;
  background: #7c5cff;
}
.mq-full-meta b { display: block; font-size: 24px; font-weight: 700; }
.mq-full-meta span { display: block; font-size: 14px; opacity: .78; margin-top: 6px; }
.mq-full-prog { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin: 22px 0 6px; }
.mq-full-prog span { font-size: 12px; opacity: .7; font-family: "SF Mono", Consolas, monospace; }
.mq-full-prog input[type=range] { flex: 1; }
.mq-full-ctrl { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.mq-full-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff; font-size: 16px; cursor: pointer; }
.mq-full-ctrl .pp-play { width: 58px; height: 58px; background: #fff; color: #4c1d95; border: none; font-size: 20px; }
.mq-full-close {
  position: absolute; top: 16px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer;
}
.mq-lyric { width: 100%; max-width: 560px; margin-top: 30px; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(8px); }
.mq-lyric-title { font-size: 13px; opacity: .7; margin-bottom: 10px; letter-spacing: .5px; }
.mq-lyric-body p { font-size: 15px; line-height: 2.05; opacity: .94; }
.mq-lyric-body .lyric-tag { font-size: 12.5px; opacity: .66; margin-bottom: 8px; }
.mq-lyric-body .lyric-lic { font-size: 12px; opacity: .6; margin-top: 10px; }
@media (max-width: 640px) {
  .mq-full-inner { padding: 48px 16px 48px; }
  .mq-full-meta b { font-size: 19px; }
  .mq-full-cover { width: min(210px, 56vw); font-size: 64px; }
}

/* ===== 全局迷你播放条（任何页面常驻） ===== */
.ym-mini {
  position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 95;
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}
.ym-cover { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: #7c5cff; flex: 0 0 auto; }
.ym-info { min-width: 0; flex: 1; }
.ym-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ym-info span { font-size: 12px; color: var(--text-3); }
.ym-info .ym-last { display: block; font-size: 11.5px; color: var(--primary); cursor: pointer; }
.ym-info .ym-last i { font-style: normal; text-decoration: underline; }
.ym-ctrl { display: flex; align-items: center; gap: 4px; }
.ym-ctrl button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; font-size: 13px; }
.ym-ctrl .ym-play { width: 38px; height: 38px; background: var(--primary); color: #fff; border: none; font-size: 14px; }
.ym-prog { display: flex; align-items: center; gap: 8px; width: 210px; }
.ym-prog span { font-size: 11px; color: var(--text-3); font-family: "SF Mono", Consolas, monospace; }
.ym-prog input[type=range] { flex: 1; min-width: 60px; }
body { padding-bottom: 86px; }
@media (max-width: 860px) {
  .ym-mini { left: 8px; right: 8px; bottom: 66px; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-radius: 14px; }
  .ym-info { flex: 1; }
  .ym-prog { order: 5; width: 100%; }
  .ym-ctrl button { width: 36px; height: 36px; }
  .ym-ctrl .ym-play { width: 42px; height: 42px; }
}

/* ===== 修复：迷你条 + 底栏叠加导致的底部遮挡 ===== */
/* 实测 390x844：迷你条 683~778、底栏 788~844，共占 161px，
   而全局 body 留白只有 86px → 滚到底时最后内容被遮住。移动端补足留白。 */
@media (max-width: 860px) {
  body { padding-bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }
  .ym-mini { gap: 6px; padding: 7px 10px; }
  .ym-cover { width: 34px; height: 34px; border-radius: 8px; }
  .ym-info b { font-size: 12.5px; }
  .ym-info span { font-size: 11px; }
}

/* ===== 修复：手机端底部两条栏太挤 =====
   实测：迷你条(95px) + 底部导航(56px) 共占 161px，页面显得被塞满。
   改法：迷你条压缩为单行（去掉上一首/静音，进度条贴底成细线），
        留白从 172px 降到 124px。 */
@media (max-width: 860px) {
  body { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
  .ym-mini {
    left: 8px; right: 8px; bottom: 60px; gap: 8px; padding: 7px 10px 9px;
    border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 6px 22px rgba(0,0,0,.13);
  }
  .ym-cover { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
  .ym-info b { font-size: 12.5px; line-height: 1.4; }
  .ym-info span { font-size: 11px; line-height: 1.3; }
  .ym-ctrl #ymPrev, .ym-ctrl #ymMute { display: none; }   /* 单行放不下，次要功能移到全屏页 */
  .ym-ctrl button { width: 34px; height: 34px; }
  .ym-ctrl .ym-play { width: 38px; height: 38px; }
  /* 进度条变成贴在卡片底边的一条细线 */
  .ym-mini .ym-prog { position: absolute; left: 10px; right: 10px; bottom: 3px; width: auto; }
  .ym-mini .ym-prog span { display: none; }
  .ym-mini .ym-prog input[type=range] { height: 3px; }
}
/* 微调：迷你条与底部导航之间留出呼吸间隙，层次更清楚 */
@media (max-width: 860px) {
  body { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
  .ym-mini { bottom: 64px; }
  .ym-mini .ym-prog input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; }
  .ym-mini .ym-prog input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  }
  .ym-mini .ym-prog input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 2px; }
}

/* ===== 手机端：顶栏头像+名称、搜索更醒目、底栏 5 项 ===== */
.nav-me { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.nav-me-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.nav-me-name { font-size: 13px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  /* 登录后顶栏显示头像与昵称（之前把"我的主页"整个隐藏了） */
  .nav-user .nav-me { display: inline-flex; }
  .nav-user .nav-me-name { display: inline; max-width: 70px; }
  /* 搜索按钮加大加底色，手机上更醒目 */
  .nav-search-icon { width: 38px; height: 38px; font-size: 17px; background: rgba(127,127,127,.14); }
  .nav-search-pop { top: calc(var(--nav-h) + var(--toolbar-h, 0px) + 8px); left: 10px; right: 10px; }
  /* 底栏 5 项时图标略收窄，避免挤 */
  .mobile-tabbar a { font-size: 10.5px; }
  .mobile-tabbar .mti { font-size: 19px; }
}
.ch-quick { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ch-quick a { flex: 1; min-width: 96px; text-align: center; padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--text-2); background: var(--bg); }
.ch-quick a:hover { border-color: var(--primary); color: var(--primary); }
.ch-more { font-size: 17px; font-weight: 700; }
/* 修正优先级：旧规则 .nav-user a[href="/u.html"]{display:none} 会把头像昵称一起隐藏，
   这里用同等特异度但位置更靠后来覆盖它。 */
@media (max-width: 860px) {
  .nav-user a.nav-me { display: inline-flex; }
}
/* 保险：头像不被 flex 压缩 */
.nav-me-avatar { min-width: 26px; min-height: 26px; }
@media (max-width: 860px) { .nav-me-avatar { min-width: 24px; min-height: 24px; } }


/* ===== 频道栏铺满整行（手机端）=====
   之前只固定 3 项 + ▾，右侧留一大片空白；现在按屏宽给数量 + flex 均分，铺满不空。 */
@media (max-width: 860px) {
  .tabbar-inner { justify-content: flex-start; }
  .tabbar-inner > a { flex: 1 1 0; min-width: 0; text-align: center; padding: 11px 4px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-inner > .ch-more { flex: 0 0 28px; text-align: center; padding: 11px 0 9px; display: inline-flex; align-items: center; justify-content: center; }
}
/* ▾ 按钮做成明确的"展开"控件：圆形底 + 更大的点击区 */
.tabbar-inner > .ch-more, .ch-more {
  width: 30px; height: 28px; border-radius: 9px; background: rgba(127,127,127,.14);
  font-size: 15px; line-height: 1; color: var(--text-2); justify-content: center;
  display: inline-flex; align-items: center; margin: 0 2px;
}
.tabbar-inner > .ch-more:hover, .ch-more:hover { background: var(--primary); color: #fff; }/* 圣诞曲目标记 */
.mq-xmas { margin-right: 5px; }
.mq-item .mq-info b .mq-xmas + * { vertical-align: middle; }

/* ===== 版权曲（外链跳转正版平台） ===== */
.mq-cr {
  display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .2px; vertical-align: 2px;
  color: #b45309; background: rgba(245, 158, 11, .16); border: 1px solid rgba(245, 158, 11, .34);
  white-space: nowrap;
}
.mq-lic { display: none; }
.mq-item.is-link .mq-dot { opacity: .55; }
.mq-item.is-link { cursor: pointer; }
.mq-item.is-link:hover { background: rgba(245, 158, 11, .07); }
.mq-item.is-link .mq-play {
  color: #b45309; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .12); font-size: 15px;
}
.mq-item.is-link .mq-play:hover { background: #f59e0b; color: #fff; }
.mq-note a, .mq-note .cr-link { color: var(--primary); }

/* ===== 版权曲：正版平台选择弹窗 ===== */
.plat-card {
  position: relative; width: min(430px, 92vw); margin: 12vh auto 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.plat-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2); cursor: pointer; font-size: 14px;
}
.plat-x:hover { background: var(--line); }
.plat-hd b { display: block; font-size: 16.5px; margin-bottom: 6px; padding-right: 34px; }
.plat-hd span { display: block; font-size: 12.5px; line-height: 1.75; color: var(--text-3); margin-bottom: 16px; }
.plat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 9px; }
.plat-item {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  text-decoration: none; font-size: 13.5px; transition: transform .12s, border-color .12s;
}
.plat-item:hover { border-color: var(--pc, var(--primary)); transform: translateY(-1px); }
.plat-item i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.plat-item span { flex: 1; }
.plat-item em { font-style: normal; color: var(--text-3); font-size: 12px; }
.plat-item:hover em { color: var(--pc, var(--primary)); }
.plat-tip { margin-top: 14px; font-size: 11.5px; line-height: 1.8; color: var(--text-3); }

/* ===== 音乐上传按钮（醒目） ===== */
.up-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  color: #fff !important; border: none !important; font-weight: 700;
  box-shadow: 0 4px 16px rgba(239, 68, 68, .32);
}
.up-btn:hover { filter: brightness(1.08); }

/* ===== 上传格式说明 ===== */
.up-fmt {
  margin-top: 8px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; font-size: 12px;
}
.up-fmt-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 11px;
  border-bottom: 1px solid var(--line); line-height: 1.5;
}
.up-fmt-row:last-child { border-bottom: none; }
.up-fmt-row b { flex: 0 0 86px; font-size: 11.5px; font-weight: 700; }
.up-fmt-row span { color: var(--text-3); }
.up-fmt-ok b { color: #10b981; }
.up-fmt-bad { background: rgba(239, 68, 68, .07); }
.up-fmt-bad b { color: #ef4444; }

/* ===================== 外观样式（data-style）：毛玻璃 / 液态玻璃 / 纯白 / 纯黑 ===================== */
/* 毛玻璃为默认，沿用各主题现有玻璃取值；这里显式锚定，便于从其他样式切回 */
[data-style="frosted"] { --glass-blur: 22px; }

/* 液态玻璃：更大模糊半径 + 更高透度，观感更"水润"，但 GPU 负载更大（切换时会弹确认） */
[data-style="liquid"] {
  --glass-blur: 36px;
  --glass-shadow: 0 10px 44px rgba(88, 60, 200, .20);
}
[data-theme="dark"][data-style="liquid"] {
  --glass-bg: rgba(28, 26, 46, .32);
  --glass-border: rgba(255, 255, 255, .22);
}
[data-theme="light"][data-style="liquid"] {
  --glass-bg: rgba(255, 255, 255, .30);
  --glass-border: rgba(255, 255, 255, .82);
}

/* 纯黑：实色，关闭玻璃（仅在深色主题下可选）。底部光标光晕保留不动 */
[data-theme="dark"][data-style="pure-black"] {
  --bg: #000000;
  --card: #0b0b0f;
  --glass-bg: #000000;
  --glass-border: #1d1d24;
  --glass-blur: 0px;
  --glass-shadow: none;
  --line: rgba(255, 255, 255, .10);
}
[data-theme="dark"][data-style="pure-black"] body { background: #000000; }

/* 纯白：实色，关闭玻璃（仅在浅色主题下可选） */
[data-theme="light"][data-style="pure-white"] {
  --bg: #ffffff;
  --card: #ffffff;
  --glass-bg: #ffffff;
  --glass-border: #e8e8ed;
  --glass-blur: 0px;
  --glass-shadow: none;
  --line: #e8e8ed;
}
[data-theme="light"][data-style="pure-white"] body { background: #ffffff; }

/* ===================== v89：暗色模式白色残留修复 + 全局圆润化（液态玻璃观感） ===================== */

/* 导航与频道栏统一玻璃质感（深浅主题一致） */
.nav { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.14); }
.card { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.12); }

/* —— 暗色下把残留的白色硬底换成玻璃/卡片变量 —— */
[data-theme="dark"] .nav-search { background: rgba(255,255,255,.05); border-color: var(--line); }
[data-theme="dark"] .nav-search:focus-within { background: rgba(255,255,255,.09); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .editor-wrap textarea#content,
[data-theme="dark"] .modal-field,
[data-theme="dark"] .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--text); }
[data-theme="dark"] .emoji-panel,
[data-theme="dark"] .nav-search-pop { background: var(--glass-bg); border-color: var(--glass-border); }
[data-theme="dark"] .auth-tabs { background: rgba(255,255,255,.05); }
[data-theme="dark"] .auth-tabs button.active { background: rgba(255,255,255,.09); }
[data-theme="dark"] .preview-box { background: rgba(255,255,255,.04); }
[data-theme="dark"] .feed-item:hover,
[data-theme="dark"] .ch-item:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .tag,
[data-theme="dark"] .cat-chip,
[data-theme="dark"] .tag-cloud a { background: rgba(255,255,255,.06); }
[data-theme="dark"] .link-card { background: rgba(255,255,255,.05); }
/* —— 黑主题补漏：写死浅色但此前没有 dark 覆盖的元素（2026-10-20 复盘） —— */
[data-theme="dark"] .btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--text-2); }
[data-theme="dark"] .btn.ghost:hover { background: rgba(255,255,255,.10); }
[data-theme="dark"] .markdown th { background: rgba(255,255,255,.06); }
[data-theme="dark"] .link-card-tag { background: rgba(255,255,255,.08); }
[data-theme="dark"] .emoji-tabs button { background: rgba(255,255,255,.08); }
[data-theme="dark"] .sticker-grid img { background: rgba(255,255,255,.06); }
[data-theme="dark"] .fav-mini { background: rgba(255,255,255,.06); }
[data-theme="dark"] .bar { background: rgba(255,255,255,.10); }

/* —— 全局圆润化：液态玻璃主打圆润、光滑、透亮 —— */
.btn { border-radius: 12px; }
.btn.sm { border-radius: 10px; }
.field input, .field select,
.comment-form textarea,
.editor-wrap textarea#content,
.modal-field { border-radius: 12px; }
.nav-search { border-radius: 12px; }
.auth-tabs { border-radius: 12px; }
.auth-tabs button { border-radius: 9px; }
.tag, .cat-chip { border-radius: 999px; }
.pin-badge { border-radius: 6px; }
.modal-card { border-radius: 18px; }
.emoji-panel { border-radius: 14px; }
.search-box input,
.dm-input input,
.nav-search-pop input { border-radius: 999px; }

/* ===================== v60：文本不可选中 + 液态玻璃回弹 ===================== */

/* ---------- A. 文本防复制（全站锁定，输入框放行） ----------
 * 目的：页面文案不可被鼠标框选/拖拽复制，避免被人直接复制走内容。
 * 例外：input / textarea / [contenteditable] 必须放行，
 *      否则管理后台的密码框、发帖正文框无法正常输入和编辑。
 */
html, body, * , *::before, *::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
/* 放行：需要正常输入 / 粘贴的控件 */
input, textarea, select,
[contenteditable="true"], [contenteditable="plaintext-only"],
.emoji-panel, .md-preview, .copyable {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
/* 图片也一并禁止拖拽（避免直接把配图拖走） */
img { -webkit-user-drag: none; user-drag: none; }
/* 选中高亮改成不可见（配合上面的锁定，双保险） */
::selection { background: transparent; color: inherit; }
::-moz-selection { background: transparent; color: inherit; }

/* ---------- B. 液态玻璃核心 ----------
 * 三层叠加：
 *   1) backdrop-filter 模糊 + 饱和度提升（折射感）
 *   2) 半透明渐变底 + 内高光描边（厚度感）
 *   3) 跟随鼠标的镜面高光（--mx/--my，由 JS 写入）
 */
:root {
  /* 弹簧参数：--spring 控制回弹曲线强度，cubic-bezier 第二个控制点 >1 即过冲 */
  --spring-ease: cubic-bezier(.34, 1.56, .64, 1);
  --spring-scale: .955;
  --liquid-blur: 30px;
  --liquid-sat: 1.85;
  /* 液态玻璃高光跟随坐标，JS 更新 */
  --mx: 50%;
  --my: 50%;
}

/* 全站开启液态玻璃观感：所有玻璃容器统一参数 */
.nav,
.tabbar,
.card,
.btn,
.field input,
.field select,
.comment-form textarea,
.editor-wrap textarea#content,
.modal-field,
.modal-card,
.emoji-panel,
.nav-search-pop,
.nav-search,
.auth-tabs,
.tag,
.cat-chip,
.link-card,
.icon-btn,
.mobile-tabbar {
  --glass-blur: var(--liquid-blur);
  backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-sat));
  -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-sat));
}

/* 玻璃底：半透明 + 顶部内高光 + 底部柔和内阴影，塑造"厚度"
 * ⚠️ 注意：.nav / .tabbar 原本是 position:sticky，这里绝不能覆盖成 relative，
 *    否则顶栏会跟着页面一起滚走（踩过一次）。所以只给卡片类补 position。 */
.card, .modal-card, .nav-search-pop, .emoji-panel {
  position: relative;
  isolation: isolate;
}
/* 顶栏/频道栏：保持 sticky，仅补玻璃质感与描边 */
.nav, .tabbar {
  isolation: isolate;
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
.nav, .tabbar, .card, .modal-card, .nav-search-pop, .emoji-panel {
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
/* 镜面高光层：跟随鼠标，径向渐变做玻璃反光 */
.nav::after, .tabbar::after, .card::after, .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .45s var(--spring-ease);
  background: radial-gradient(
    220px circle at var(--mx) var(--my),
    rgba(255,255,255,.55),
    rgba(255,255,255,.18) 42%,
    transparent 68%
  );
}
/* 悬停时点亮高光 */
.nav:hover::after, .tabbar:hover::after, .card:hover::after, .btn:hover::after { opacity: 1; }

/* ---------- C. 回弹效果（弹簧） ----------
 * 手法：按下瞬间缩小（:active 无过渡→瞬时），松开时用 overshoot 曲线弹回，
 *      形成"按下去→啵一下弹回来"的 iOS 手感。
 */
.btn,
.nav-links a,
.nav-search button,
.nav-search-icon,
.tabbar a,
.tag,
.cat-chip,
.icon-btn,
.mobile-tabbar a,
.card {
  transition:
    transform .52s var(--spring-ease),
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .4s var(--spring-ease),
    backdrop-filter .3s ease;
  will-change: transform;
}
/* 按下：瞬时压缩（不回弹，避免按下时就有拖影） */
.btn:active,
.nav-links a:active,
.nav-search button:active,
.nav-search-icon:active,
.tabbar a:active,
.tag:active,
.cat-chip:active,
.icon-btn:active,
.mobile-tabbar a:active {
  transform: scale(var(--spring-scale));
  transition-duration: .06s;
  transition-timing-function: ease-out;
}
/* 悬停：轻微上浮 + 阴影加深，松手回弹更明显 */
.btn:hover,
.nav-links a:hover,
.nav-search button:hover,
.nav-search-icon:hover,
.tabbar a:hover,
.tag:hover,
.cat-chip:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}
.btn:hover { box-shadow: 0 8px 22px rgba(124, 92, 255, .34); }
.card:hover { transform: translateY(-3px); }

/* 键盘可达性：聚焦时也有回弹反馈（配合上面的防选中，不影响 Tab 导航） */
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-search button:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  transform: scale(1.03);
}

/* 尊重系统「减弱动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-links a, .tabbar a, .tag, .cat-chip, .card, .icon-btn {
    transition: background-color .01ms, color .01ms;
    transform: none !important;
  }
  .nav:hover::after, .tabbar:hover::after, .card:hover::after, .btn:hover::after { opacity: 0; }
}


/* ===================== v61：玻璃增强 + 可读性修复 + 返回键 ===================== */

/* ---------- 1. 液态玻璃再增强（用户反馈"还是有点弱"） ----------
 * 手法：加大模糊半径 + 提饱和度 + 加边缘折射高光，让玻璃更"厚"更亮。 */
:root {
  --liquid-blur: 44px;
  --liquid-sat: 2.3;
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.30),
                inset 0 -1px 0 rgba(255,255,255,.10),
                inset 1px 0 0 rgba(255,255,255,.10),
                inset -1px 0 0 rgba(255,255,255,.10);
}
.nav, .tabbar, .card, .modal-card, .nav-search-pop, .emoji-panel {
  box-shadow: var(--glass-shadow), var(--glass-edge);
}
/* 高光更亮更明显（已合并到 v60 的 ::after 定义里，此处仅保留说明）
   原本这里重复定义了一份 ::after 造成分散维护，现已合并到 1600 行那处。 */
/* 暗色下玻璃底更通透，避免"灰蒙蒙"看不清字 */
[data-theme="dark"] {
  --glass-bg: rgba(30, 28, 52, .38);
  --glass-border: rgba(255, 255, 255, .18);
}

/* ---------- 2. 游客提示横幅：改成品牌紫渐变（原来是橙白，跟站点不搭且暗色下刺眼） ---------- */
.guest-banner {
  background: linear-gradient(90deg, rgba(124, 92, 255, .18), rgba(167, 139, 250, .14));
  border-bottom: 1px solid rgba(124, 92, 255, .35);
  color: var(--text);
  padding: 11px 24px;
}
[data-theme="dark"] .guest-banner {
  background: linear-gradient(90deg, rgba(124, 92, 255, .26), rgba(88, 60, 200, .18));
  border-bottom-color: rgba(167, 139, 250, .4);
}
.guest-banner a, .guest-banner #guestExit { color: var(--primary); font-weight: 600; }
.guest-banner b { color: var(--primary); }

/* ---------- 3. 选择频道的地方文字看不见 → 强制可读 ---------- */
/* 频道页「全部频道」下方的频道胶囊：暗色下原本靠 --text-2，在玻璃底上偏灰 */
.ch-subs a {
  color: var(--text);
  background: rgba(124, 92, 255, .10);
  border-color: var(--glass-border);
  font-weight: 500;
}
.ch-subs a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 频道页 h1 与副标题同样提亮 */
#chHero h1 { color: var(--text); }
#chHero p { color: var(--text-2) !important; }
/* 分类小标签 */
.cat-chip { color: var(--text-2); background: rgba(124, 92, 255, .10); border-color: var(--glass-border); }
[data-theme="dark"] .cat-chip { color: var(--text-2); background: rgba(255,255,255,.08); }
/* 左侧频道栏选中项：补足对比 */
.left-rail a.active { color: var(--primary); background: rgba(124, 92, 255, .18); }

/* ---------- 4. 返回键：给缺的页面补一个悬浮返回按钮 ---------- */
.back-fab {
  position: fixed; left: 18px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: transform .5s var(--spring-ease), box-shadow .3s ease;
}
.back-fab:hover { transform: translateY(-3px) scale(1.04); }
.back-fab:active { transform: scale(.955); }
/* 手机/平板：底部常驻迷你播放条(+tabbar)，返回键抬到它们上方 */
/* 抬到迷你播放条上方（播放条恢复单行后约 54px + 底部 64px 定位，返回键放 136px 处不再被盖） */
html.ua-mobile .back-fab { bottom: 136px; }
/* 电脑：迷你播放条几乎通宽、常驻底部，返回键与它重叠（浅色被挡住、深色半透明会透出来很糊），
   抬高到半空又突兀；且需要返回的页面（post/search/u/privacy）都自带返回按钮。
   所以电脑端不显示这个悬浮返回键（与浅色主题下"本就被挡住"的既有观感一致）。 */
html.ua-desktop .back-fab { display: none; }

/* ===================== v62：回弹加强 + 消除横向滚动 ===================== */

/* ---------- 1. 回弹加强（用户要求"弹得更厉害"） ---------- */
:root {
  /* 更大的过冲、更久的回弹：控制点 1.7 会明显过冲，手感更"Q弹" */
  --spring-ease: cubic-bezier(.22, 1.45, .38, 1);
  /* 按下去更深，配合弹回幅度更大 */
  --spring-scale: .94;
}
.nav-links a, .tabbar a, .btn, .icon-btn, .tag, .cat-chip, .card, .mobile-tabbar a {
  transition:
    transform .62s var(--spring-ease),
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .4s var(--spring-ease),
    backdrop-filter .3s ease;
}
/* 按下更深、且几乎瞬时（回弹全部留给松手） */
.btn:active, .nav-links a:active, .nav-search button:active,
.nav-search-icon:active, .tabbar a:active, .tag:active,
.cat-chip:active, .icon-btn:active, .mobile-tabbar a:active {
  transform: scale(var(--spring-scale)) translateY(1px);
  transition-duration: .05s;
  transition-timing-function: ease-out;
}
/* 悬停上浮（原v62：这里曾用 scale()，与 :active 的 scale() 打架，
   造成鼠标一放上去就"一缩一大"，已废弃；位移统一交给 v69 收口块与 JS磁吸） */

/* ---------- 2. 消除横向滚动（用户截图里底部那条横向滚动条） ----------
 * 只允许纵向滚动，横向一律锁死。
 * ⚠️ 注意：不要给 .nav 加 overflow（有 backdrop-filter 的老坑），
 *    这里只在 body/html 层设 overflow-x，nav 保持 sticky。 */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
/* 防止子元素横向溢出把页面撑宽 */
.container, .nav-inner, .card, .main, .wrap { max-width: 100%; }
/* 长链接/长单词兜底换行，避免把版面撑破
 * ⚠️ 不要对 div/span/代码/URL 用 overflow-wrap:anywhere ——
 * anywhere 会在任意字符处断开，正文里的代码片段和网址会被拦腰折断，
 * 站点是技术社区（数码评测/AI 笔记），这类内容很多，必须避开。
 * 收紧到标题类元素，其余交给默认换行。 */
h1, h2, h3, h4, h5, h6, th, td, .nav-links a, .tabbar a, .cat-chip, .tag {
  overflow-wrap: break-word;
  word-break: break-word;
}
/* 长URL / 无空格长串只做兜底（必要时才断），优先在分隔符处断 */
a[href^="http"], .markdown a, .c-body a, .feed-excerpt a {
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
}
/* 代码、URL、输入框一律不做 anywhere 断词 */
code, pre, kbd, samp, textarea, input, pre code, .md-preview pre,
.markdown pre, .feed-excerpt, .c-body, .dm-bubble-text {
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
}
/* 极长无空格串（如超长 token）仍在必要时断开，但优先在分隔符处 */
.markdown code, .markdown pre, .c-body code {
  white-space: pre-wrap;
  word-break: break-word;
}
/* 自定义滚动条：细一点，不抢视线 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, .28);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(124, 92, 255, .5); }

/* 减弱动效：全部关掉位移缩放 */
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-links a, .tabbar a, .tag, .cat-chip, .card, .icon-btn, .back-fab {
    transform: none !important;
    transition: background-color .01ms !important, color .01ms !important;
  }
}

/* ===================== v63：修「▾ 更多」按钮 + 修悬停缩放打架 ===================== */

/* ---------- 1. 顶栏「▾ 更多」按钮 ----------
 * 之前是个裸 ▾ 字符，没样式没回弹，看着像个乱码疙瘩。改成正经小圆钮。 */
.nav-more {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(124, 92, 255, .12);
  border: 1px solid var(--glass-border, var(--line));
  color: var(--primary);
  font-size: 11px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .55s var(--spring-ease),
              background-color .25s ease,
              box-shadow .3s ease;
}
.nav-more:hover {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(124, 92, 255, .38);
}
.nav-more:active { transform: scale(.88); transition-duration: .05s; }

/* ---------- 2. 悬停不再缩放（已废弃，位移统一由 v69 收口块裁决） ----------
 * 历史：这里先用过 scale(1.05~1.1)，又改成 translateY，
 *       都与 :active 的 scale() 或 JS 磁吸打架，已全部移交给 v69 收口块。 */

/* ---------- 3. 导航间距收紧：宽屏平铺时也不挤 ----------
 * 之前 1180px 就判定"宽屏可平铺 8 项"，实际右侧还有搜索/主题/发布/头像，
 * 容易把「登录/发布」挤出去。把阈值提到 1280，并让导航项间距自适应压缩。 */
.nav-links { gap: 1px; }
.nav-links a { padding: 6px 10px; font-size: 14.5px; }
.nav-more { margin-left: 5px; }

/* 中等宽度：优先折叠，别硬挤 */
@media (max-width: 1279px) {
  .nav-links a { padding: 6px 9px; font-size: 14px; }
}
/* 右侧按钮间距略收，给中间导航让位 */
.nav-user { gap: 9px; }

/* ===================== v64：导航实时自适应 + 平铺撑满 ===================== */

/* .nav-fill：所有项都放得下时，均匀铺满整条导航（用户要求"均匀铺满一整条"） */
.nav-links.nav-fill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
}
.nav-links.nav-fill > a {
  flex: 1 1 auto;
  text-align: center;
  padding: 6px 4px;
  /* 左右留一点余量，悬停高亮块不会贴到相邻项 */
  margin: 0 1px;
}
/* ▾ 出现时它不参与平铺，占固定宽度靠右 */
.nav-links > .nav-more { flex: 0 0 auto; }

/* 折叠态（放不下的收进 ▾）：紧凑排布，从左往右自然排 */
.nav-links:not(.nav-fill) {
  display: flex;
  justify-content: flex-start;
  gap: 1px;
  flex: 0 1 auto;
  overflow: hidden;
}

/* 隐藏项彻底不占位 */
.nav-links > a[hidden] { display: none !important; }

/* 中等宽度下自动收窄内边距，配合 JS 实时折叠 */
@media (max-width: 1400px) {
  .nav-links:not(.nav-fill) > a { padding: 6px 8px; font-size: 14px; }
}
@media (max-width: 1180px) {
  .nav-links:not(.nav-fill) > a { padding: 6px 7px; font-size: 13.5px; }
  .nav-user { gap: 7px; }
}
/* 桌面端隐藏「更多」圆钮的 hover 上浮在窄屏容易抖动，改小幅度 */
@media (max-width: 1180px) {
  /* 箭头已改为 CSS 三角形（border 绘制），不再受 font-size 影响，
     这里只微调按钮尺寸即可，不必再压font-size。 */
  .nav-more { width: 26px; height: 26px; }
}

/* ===================== v65：两轴磁吸（交由 JS 控制 transform） ===================== */
/* 磁吸漂移由 js/cloud.js 的 pointermove 直接写 inline transform，
 * 所以这里必须去掉同元素的 CSS hover 位移，否则两者会打架抖动。 */
.btn:hover, .nav-links a:hover, .tag:hover, .cat-chip:hover,
.icon-btn:hover, .card:hover, .nav-search-icon:hover,
.nav-search button:hover, .nav-more:hover,
.ch-item:hover, .feed-item:hover {
  transform: none;
}
/* 颜色/阴影等非位移效果保留 */
.btn:hover { box-shadow: 0 8px 22px rgba(124, 92, 255, .34); }
.icon-btn:hover { box-shadow: 0 6px 16px rgba(124, 92, 255, .28); }
/* 触摸设备：没有 hover 概念，直接交给 JS 的按压回弹 */
@media (hover: none) {
  .btn:hover, .nav-links a:hover, .tag:hover, .cat-chip:hover,
  .icon-btn:hover, .card:hover, .nav-more:hover { transform: none; }
}

/* ===================== v66：修正「铺满」过头 + 磁吸收敛 ===================== */

/* ---------- 1. 导航不再被拉成一盘散沙 ----------
 *之前 space-between + 子项 flex:1，会把 8 项均分到 1380px 的全宽里，
 * 项与项之间空得离谱，看着断开。改成「居中 + 随窗口缩放的自适应间距」，
 * 既保持均匀，又不会散架。 */
.nav-links.nav-fill {
  justify-content: center;
  gap: clamp(4px, 0.9vw, 16px);
}
.nav-links.nav-fill > a {
  flex: 0 0 auto;          /* 不再强行等分宽度 */
  text-align: center;
  padding: 6px 10px;
  margin: 0;
}

/* ---------- 2. 游客横幅与正文同宽（原来铺满整屏，与 1380px 正文不对齐） ---------- */
.guest-banner { text-align: center; }
.guest-banner > * { max-width: 1380px; margin: 0 auto; }

/* ---------- 3. 磁吸只给小控件，大卡片不再晃 ----------
 * 大面积卡片跟着鼠标漂会显得很晃、也影响阅读。只让按钮/标签/图标等小件磁吸。 */


/* ===================== v67：卡片恢复磁吸 ===================== */
/* 卡片磁吸由 JS 写inline transform，CSS 不能用 !important 锁死它，否则 JS 白写。
   卡片过渡单独放慢一些，漂起来不生硬（过渡本身不要设 transform 值）。 */
.card, .ch-item, .feed-item {
  transition: transform .6s cubic-bezier(.18,1.7,.32,1),
              background-color .28s ease,
              box-shadow .4s ease;
}

/* ===================== v68：修高光层溢出圆角 + 磁吸方向 ===================== */

/* ---------- 1. 淡色长方形跑出圆角框（用户截图里的问题） ----------
 * .card::after 高光层用 inset:0 + border-radius:inherit，
 * 但父级没有裁剪时，高光在圆角之外仍按矩形绘制 → 圆角框外露出淡色长方形。
 *
 * 【改为不用 overflow 裁剪】原因：给 .card 加 overflow:hidden 会裁掉
 * 卡片内部将来可能出现的下拉/弹层/浮层，是隐藏地雷。
 * 现在改用 border-radius 让高光层自己贴合圆角形状，不再溢出。
 * ⚠️ .nav / .tabbar 从不加 overflow（文件头老坑：顶栏有 backdrop-filter，
 *    加 overflow 会让手机底部 tabbar 跑到页面顶部）。 */
.btn, .nav-search-pop, .modal-card { overflow: hidden; }
/* 帖子条目本来就有 overflow:hidden（原本用于裁剪摘要），保留 */
.feed-item, .ch-item { overflow: hidden; }
/* 高光层紧贴圆角：圆角外的部分落在容器外，改用 clip-path 精确裁到圆角内，
 * 这样既能裁出圆角，又不影响子元素布局/浮层。 */
.card::after, .btn::after {
  border-radius: inherit;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 99%, transparent 100%);
  mask-image: radial-gradient(100% 100% at 50% 50%, #000 99%, transparent 100%);
}

/* ---------- 2. 磁吸漂移收敛回框内 ----------
 * 卡片磁吸时整体位移，配合 overflow:hidden 后高光不会外溢。
 * 位移幅度也收一点，避免大卡片明显"离开"原来的位置。 */

/* =============================================================================
 * v69：审查报告修复 —— 统一收口块（所有动效相关的最终裁决写在这里）
 * ============================================================================
 * 背景：v60~v68 之间追加了多个覆盖块，同一条规则散落多处，容易漏改
 *      （"淡色长方形出界"就是这么来的）。本块把这些裁决集中声明一次，
 *      作为唯一可信来源；改动效只需看这一段。
 * ========================================================================== */

/* ---------- 1. 磁吸漂移由 JS 写 inline transform 接管 ----------
 * CSS 一律不要在这些元素上写 :hover 的 transform，否则与 JS 打架抖动。 */
.btn:hover, .nav-links a:hover, .tabbar a:hover, .tag:hover,
.cat-chip:hover, .icon-btn:hover, .card:hover, .ch-item:hover,
.feed-item:hover, .nav-more:hover, .nav-search-icon:hover,
.nav-search button:hover {
  transform: none;
}
/* 保留非位移的悬停反馈 */
.btn:hover { box-shadow: 0 8px 22px rgba(124, 92, 255, .34); }
.icon-btn:hover { box-shadow: 0 6px 16px rgba(124, 92, 255, .28); }

/* ---------- 2. 可点击元素不参与磁吸 ----------
 * 元素被推开后位置变了，用户点击容易命中旁边的元素。
 * 这些元素只保留按压回弹（由 JS 的 playBounce 负责），不做 hover 位移。 */
.btn, .nav-more, .icon-btn {
  transition: transform .62s var(--spring-ease),
              background-color .28s ease,
              box-shadow .3s ease;
}

/* ---------- 3. 高光层裁剪到圆角内（不用 overflow，避免裁掉卡片内浮层） ---------- */
.card::after, .btn::after {
  border-radius: inherit;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 99%, transparent 100%);
  mask-image: radial-gradient(100% 100% at 50% 50%, #000 99%, transparent 100%);
}
/* 只有这些（本身不含浮层）才允许 overflow 裁剪；
   ⚠️ .nav / .tabbar 永远不要加 overflow（backdrop-filter 老坑） */
.btn, .nav-search-pop, .modal-card { overflow: hidden; }

/* ---------- 4. 减弱动效（无障碍降级，必须放最后） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .btn:hover, .tag:hover, .cat-chip:hover { transform: none !important; }
}

/* ===================== v70：修「更多」按钮空显�� ===================== */
/* Bug：JS 用 el.hidden = true 隐藏按钮，但 .nav-more 写了 display:inline-flex，
   作者样式优先级高于 UA 的 [hidden]{display:none} → hidden 完全失效，
   于是"没有可折叠项时"这个空圆圈照样显示（用户截图圈出来的就是它）。
   而且 ▾ 字形被压到 11px，几乎看不见，像个空白圆点。 */
.nav-more[hidden] { display: none !important; }
/* 空态绝不显示：JS 侧已判定无折叠项时彻底隐藏（双保险） */
.nav-more:empty { display: none; }
/* 恢复箭头可读性：放大字号并加粗，避免缩成模糊小点 */
.nav-more { font-size: 15px; font-weight: 700; line-height: 1; }

/* 用 CSS 画下拉箭头，不再依赖 ▾ 字形
 * 原因：▾ 在不同系统/字体下渲染差异很大，常被压成看不清的小点。 */
.nav-more::before {
  content: '';
  width: 0; height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5.5px solid currentColor;
  /* 让三角形在 inline-flex 里真正垂直居中 */
  margin-top: 2px;
}

/* ==========================================================================
 *  顶栏「免费工具箱」工具栏（YMToolkit）  —— js/toolkit.js
 *  位置：sticky 于 #nav 之上；高度由 JS 写入 --toolbar-h，把 .nav 向下顶开
 * ========================================================================== */
.ym-toolbar {
  position: sticky; top: 0; z-index: 61;
  background: linear-gradient(120deg, rgba(124,92,255,.12), rgba(99,102,241,.06) 55%, rgba(124,92,255,.10));
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .ym-toolbar {
  background: linear-gradient(120deg, rgba(167,139,250,.16), rgba(124,92,255,.08) 55%, rgba(167,139,250,.14));
}
.ym-tb-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 14px; height: 46px;
  display: flex; align-items: center; gap: 10px;
}
.ym-tb-brand {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-weight: 700; font-size: 13.5px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid transparent; border-radius: 999px;
  padding: 5px 12px; transition: .15s; white-space: nowrap;
}
.ym-tb-brand:hover { border-color: var(--primary); }
.ym-tb-brand-ico { font-size: 15px; }
.ym-tb-quick {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.ym-tb-quick::-webkit-scrollbar { display: none; }
.ym-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: 0 0 auto;
  font-size: 13px; color: var(--text-2); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; transition: .15s;
}
.ym-chip:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.ym-chip-drive { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; font-weight: 600; box-shadow: 0 3px 12px rgba(124,92,255,.3); }
.ym-chip-drive:hover { color: #fff; filter: brightness(1.08); border-color: transparent; }
.ym-tool-drive { background: linear-gradient(135deg, var(--primary-soft), transparent); border-color: var(--primary); }
.ym-chip-ico { font-size: 14px; }
.ym-tb-all {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px; padding: 5px 13px; box-shadow: 0 4px 14px rgba(124,92,255,.35);
  transition: .15s; white-space: nowrap;
}
.ym-tb-all:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ym-tb-all-n { background: rgba(255,255,255,.28); border-radius: 999px; padding: 0 6px; font-size: 11px; }

/* ---------- 弹窗通用 ---------- */
.ym-mask {
  position: fixed; inset: 0; z-index: 10000; padding: 18px;
  background: rgba(15,23,42,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s ease;
}
.ym-mask.on { opacity: 1; }
.ym-x {
  margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px; border: none; border-radius: 8px;
  background: rgba(127,127,127,.12); color: var(--text-2); font-size: 15px; line-height: 1; transition: .15s;
}
.ym-x:hover { background: rgba(239,68,68,.14); color: #ef4444; }

/* ---------- 全部工具面板 ---------- */
.ym-panel {
  width: 100%; max-width: 700px; max-height: 86vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.32);
  transform: translateY(14px) scale(.97); transition: transform .2s ease;
}
.ym-mask.on .ym-panel { transform: none; }
.ym-panel-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 13px; background: var(--card); border-bottom: 1px solid var(--line);
}
.ym-panel-head-t h3 { font-size: 18px; color: var(--text); }
.ym-panel-head-t p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.ym-panel-body { padding: 8px 20px 4px; }
.ym-cat { margin: 12px 0 6px; }
.ym-cat-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 8px 2px 10px; }
.ym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ym-tool {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); transition: .15s;
}
.ym-tool:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.ym-tool-ico { font-size: 22px; }
.ym-tool-name { font-weight: 600; font-size: 14px; color: var(--text); }
.ym-tool-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.ym-panel-foot { padding: 12px 20px 18px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- 单个工具卡 ---------- */
.ym-tool-card {
  width: 100%; max-width: 440px; max-height: 90vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.32);
  transform: translateY(14px) scale(.97); transition: transform .2s ease;
}
.ym-mask.on .ym-tool-card { transform: none; }
.ym-tool-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ym-tool-head-ico { font-size: 28px; flex: 0 0 auto; }
.ym-tool-head-t { min-width: 0; }
.ym-tool-head-t h3 { font-size: 17px; color: var(--text); }
.ym-tool-head-t p { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.ym-fields { padding: 16px 18px 4px; display: flex; flex-direction: column; gap: 13px; }
.ym-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.ym-field input, .ym-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fff; font-family: inherit;
}
[data-theme="dark"] .ym-field input, [data-theme="dark"] .ym-field select { background: rgba(255,255,255,.06); }
.ym-field input:focus, .ym-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ym-run-wrap { padding: 14px 18px 0; }
.ym-run {
  width: 100%; padding: 11px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: 0 6px 18px rgba(124,92,255,.35); transition: .15s;
}
.ym-run:hover { filter: brightness(1.06); }
.ym-run:disabled { opacity: .7; cursor: default; }
.ym-result { padding: 14px 18px 20px; }
.ym-result:empty { display: none; }
.ym-loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; padding: 8px 0; }
.ym-spin {
  width: 18px; height: 18px; border: 2.5px solid var(--primary-soft); border-top-color: var(--primary);
  border-radius: 50%; animation: ym-spin .7s linear infinite; flex: 0 0 auto;
}
@keyframes ym-spin { to { transform: rotate(360deg); } }
.ym-err { font-size: 13.5px; color: #ef4444; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }
.ym-note { font-size: 11.5px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }

/* ---------- 结果样式 ---------- */
.ym-res-img { margin-top: 4px; }
.ym-res-img img { max-width: 100%; max-height: 52vh; border-radius: 12px; display: block; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.ym-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.ym-res-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* ⚠️ 原类名 .ym-mini 与全局迷你播放条（1347 行）重名，末尾规则把播放条
   display:flex 覆盖成 inline-block，导致播放条竖排撑到 123px 高、盖住返回键
   和全站底部内容（2026-10-21 复盘）。工具按钮改名为 .ym-miniact，勿再改回。 */
.ym-miniact {
  font-size: 12.5px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); transition: .15s; text-decoration: none; display: inline-block;
}
[data-theme="dark"] .ym-miniact { background: rgba(255,255,255,.06); }
.ym-miniact:hover { color: var(--primary); border-color: var(--primary); }

.ym-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ym-kv-full { grid-template-columns: 1fr; }
.ym-kv > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.ym-kv .k { font-size: 11.5px; color: var(--text-3); }
.ym-kv .v { font-size: 14px; font-weight: 600; color: var(--text); }

.ym-weather .ym-wnow { display: flex; align-items: center; gap: 16px; }
.ym-wico { font-size: 52px; line-height: 1; }
.ym-big-temp { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1.1; }
.ym-wdesc { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.ym-wdays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ym-wday { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.ym-wday-d { font-size: 12px; color: var(--text-2); }
.ym-wday-i { font-size: 22px; margin: 4px 0; }
.ym-wday-t { font-size: 12.5px; font-weight: 600; color: var(--text); }

.ym-rate-head { font-size: 16px; font-weight: 700; color: var(--text); }
.ym-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ym-rate { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.ym-rate-cur { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.ym-rate-val { font-size: 14px; font-weight: 600; color: var(--text); }

.ym-count { text-align: center; padding: 8px 0 4px; }
.ym-count-num { font-size: 56px; font-weight: 800; color: var(--primary); line-height: 1; }
.ym-count-label { font-size: 14.5px; color: var(--text); margin-top: 8px; }
.ym-count-label b { color: var(--primary); }

.ym-quote { font-size: 16.5px; line-height: 1.8; color: var(--text); padding: 16px; background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 12px; }
.ym-quote-from { font-size: 13px; color: var(--text-3); text-align: right; margin-top: 10px; }

.ym-trans-out { font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; word-break: break-word; }
.ym-mono { font-family: "SF Mono", Consolas, "Cascadia Code", monospace; font-size: 17px; letter-spacing: 1px; color: var(--text); background: var(--code-bg); border-radius: 12px; padding: 14px 16px; word-break: break-all; user-select: all; }
.ym-name { font-size: 34px; font-weight: 800; color: var(--text); text-align: center; letter-spacing: 4px; padding: 12px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .ym-tb-inner { height: 44px; padding: 0 10px; gap: 8px; }
  .ym-tb-brand-txt { display: none; }
  .ym-chip { font-size: 12.5px; padding: 4px 9px; }
  .ym-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .ym-rate-grid { grid-template-columns: 1fr; }
  .ym-wdays { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
 *  「我的网盘」全屏面板（YMDrive，做进免费工具箱）—— js/drive.js
 * ========================================================================== */
.ym-drive {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; transition: opacity .18s ease;
}
.ym-drive.on { opacity: 1; }
.ym-drive-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card);
}
.ym-drive-title { font-size: 17px; font-weight: 700; color: var(--text); }
.ym-drive-quota { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.ym-quota-bar { width: 140px; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ym-quota-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transition: width .4s; }
.ym-drive-close { width: 34px; height: 34px; border: none; border-radius: 9px; background: rgba(127,127,127,.12); color: var(--text-2); font-size: 15px; }
.ym-drive-close:hover { background: rgba(239,68,68,.14); color: #ef4444; }

.ym-drive-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--card);
}
.ym-dbtn {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2); transition: .15s; white-space: nowrap;
}
[data-theme="dark"] .ym-dbtn { background: rgba(255,255,255,.06); }
.ym-dbtn:hover { color: var(--primary); border-color: var(--primary); }
.ym-dbtn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; box-shadow: 0 4px 14px rgba(124,92,255,.3); }
.ym-dbtn.primary:hover { filter: brightness(1.06); color: #fff; }
.ym-dbtn.danger { background: #ef4444; color: #fff; border: none; }
.ym-dbtn.ghost { background: transparent; }
.ym-dbtn:disabled { opacity: .6; cursor: default; }

.ym-drive-crumbs { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ym-drive-crumbs::-webkit-scrollbar { display: none; }
.ym-crumb { font-size: 13px; color: var(--text-2); padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.ym-crumb:hover { color: var(--primary); background: var(--primary-soft); }
.ym-crumb.on { color: var(--text); font-weight: 600; }
.ym-crumb-sep { color: var(--text-3); }
.ym-drive-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.ym-drive-body { flex: 1 1 auto; overflow: auto; padding: 16px 18px 40px; }
.ym-drive-body.drag { outline: 2px dashed var(--primary); outline-offset: -10px; background: var(--primary-soft); }
.ym-drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ym-drive-list { display: flex; flex-direction: column; gap: 8px; }
.ym-drive-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 60px 20px; font-size: 14px; line-height: 1.8; }
.ym-drive-uploading { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 13px; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.16); z-index: 5; }

.ym-ditem {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); transition: .15s; cursor: pointer;
}
.ym-drive-grid .ym-ditem { flex-direction: column; text-align: center; padding: 16px 12px; }
.ym-ditem:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(124,92,255,.12); transform: translateY(-2px); }
.ym-ditem-ico { font-size: 34px; flex: 0 0 auto; }
.ym-drive-list .ym-ditem-ico { font-size: 24px; }
.ym-ditem-main { min-width: 0; flex: 1 1 auto; }
.ym-ditem-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ym-ditem-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ym-ditem-acts { display: flex; gap: 4px; flex: 0 0 auto; }
.ym-drive-grid .ym-ditem-acts { position: absolute; top: 6px; right: 6px; opacity: 0; transition: .15s; }
.ym-drive-grid .ym-ditem:hover .ym-ditem-acts { opacity: 1; }
.ym-drive-list .ym-ditem-acts { opacity: 1; }
.ym-dact { width: 28px; height: 28px; border: none; border-radius: 7px; background: rgba(127,127,127,.12); color: var(--text-2); font-size: 13px; line-height: 1; }
.ym-dact:hover { background: var(--primary-soft); color: var(--primary); }
.ym-dact.danger:hover { background: rgba(239,68,68,.14); color: #ef4444; }

.ym-dmask { position: absolute; inset: 0; z-index: 10; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .16s; }
.ym-dmask.on { opacity: 1; }
.ym-dbox { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ym-dbox h3 { font-size: 16px; color: var(--text); margin-bottom: 12px; }
.ym-dbox p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.ym-dbox input, .ym-dbox select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text); background: #fff; font-family: inherit; }
[data-theme="dark"] .ym-dbox input, [data-theme="dark"] .ym-dbox select { background: rgba(255,255,255,.06); }
.ym-dbox input:focus, .ym-dbox select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ym-dbox-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ym-share-url input { font-size: 12px; word-break: break-all; }

.ym-lightbox { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .16s; }
.ym-lightbox.on { opacity: 1; }
.ym-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.ym-lightbox-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; }

@media (max-width: 640px) {
  .ym-drive-quota .ym-quota-bar { width: 90px; }
  .ym-drive-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .ym-drive-grid .ym-ditem-acts { opacity: 1; }
}

/* ---------- 网盘：搜索框 + 应用项高亮 + 预览浮层 ---------- */
.ym-dsearch { flex: 0 1 190px; min-width: 120px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text); background: #fff; font-family: inherit; }
[data-theme="dark"] .ym-dsearch { background: rgba(255,255,255,.06); }
.ym-dsearch:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ym-ditem-app { border-color: var(--primary) !important; background: var(--primary-soft); }
.ym-ditem-app .ym-ditem-ico { filter: none; }

.ym-preview { position: fixed; inset: 0; z-index: 9999; background: var(--card); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.ym-preview.on { opacity: 1; }
.ym-preview-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); flex: 0 0 auto; }
.ym-preview-name { font-weight: 600; color: var(--text); font-size: 14px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ym-preview-info { font-size: 12px; color: var(--text-3); }
.ym-preview-close { margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.ym-preview-close:hover { background: var(--primary-soft); color: var(--primary); }
.ym-preview-frame { flex: 1 1 auto; width: 100%; border: none; background: #fff; }
[data-theme="dark"] .ym-preview-frame { background: #0b0f17; }
.ym-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 15px; background: var(--card); z-index: 1; }

