/* ============================================================
   喵雾ASMR v2 - 设计系统
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f2f5;
  --bg-input: #f5f6f8;
  --bg-soft: #fafbfc;
  --primary: #e85a71;
  --primary-dark: #d4485f;
  --primary-light: #fce8ec;
  --accent: #6c5ce7;
  --accent-light: #f0edff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #999;
  --border: #e6e8ee;
  --border-light: #f0f1f5;
  --success: #00b894;
  --success-light: #e8f8f5;
  --danger: #e74c3c;
  --danger-light: #fdedec;
  --warning: #fdcb6e;
  --vip: #f39c12;
  --vip-dark: #e67e22;
  --vip-light: #fef5e7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(22,24,35,.04), 0 4px 16px rgba(22,24,35,.05);
  --shadow-hover: 0 4px 14px rgba(22,24,35,.08), 0 10px 30px rgba(22,24,35,.08);
  --nav-h: 62px;
}
html[data-theme="dark"] {
  --bg: #0f1117;
  --bg-white: #171a23;
  --bg-card: #171a23;
  --bg-hover: #21242f;
  --bg-input: #1d2029;
  --bg-soft: #14161d;
  --primary-light: #3a2027;
  --accent-light: #26213a;
  --text: #e8eaf2;
  --text-secondary: #b6bac7;
  --text-muted: #7a7f8f;
  --border: #262a36;
  --border-light: #21242e;
  --success-light: #13302a;
  --danger-light: #33201f;
  --vip-light: #33291a;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120,120,140,.35); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶部条 ---------- */
.top-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.top-bar-inner { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a, .top-bar-links span { cursor: pointer; transition: color .15s; }
.top-bar-links a:hover, .top-bar-links span:hover { color: var(--primary); }

/* ---------- 导航 ---------- */
.navbar { background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 7px; flex-shrink: 0; letter-spacing: .5px; }
.logo svg { width: 26px; height: 26px; }
.nav-menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav-item { padding: 8px 15px; font-size: 14px; color: var(--text-secondary); cursor: pointer; border-radius: 20px; transition: all .18s; font-weight: 500; white-space: nowrap; }
.nav-item:hover { color: var(--primary); background: var(--primary-light); }
.nav-item.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-item.vip { color: var(--vip); }
.nav-item.vip:hover { background: var(--vip-light); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 14px 8px 34px; font-size: 13px; width: 180px; outline: none; transition: all .2s; color: var(--text);
}
.search-box input:focus { border-color: var(--primary); width: 230px; background: var(--bg-white); }
.search-box svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }

/* ---------- 按钮 ---------- */
.btn { padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .18s; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(232,90,113,.35); }
.btn-vip { background: linear-gradient(135deg, var(--vip), var(--vip-dark)); color: #fff; }
.btn-vip:hover { box-shadow: 0 4px 12px rgba(243,156,18,.45); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .88; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--bg-input); color: var(--text-secondary); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { color: var(--primary); background: var(--primary-light); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.nav-burger { display: none; }

/* ---------- 用户菜单 ---------- */
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 12px; border-radius: 20px; background: var(--bg-input); transition: background .15s; }
.user-menu:hover { background: var(--bg-hover); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-name { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-badge { display: inline-block; padding: 1px 7px; background: linear-gradient(135deg, var(--vip), var(--vip-dark)); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); min-width: 180px; box-shadow: var(--shadow-hover); overflow: hidden; display: none; z-index: 200; }
.user-dropdown.show { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { padding: 10px 16px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all .12s; display: flex; align-items: center; gap: 8px; }
.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-vip-info { padding: 12px 16px; background: linear-gradient(135deg, #fef9e7, #fef5e7); border-bottom: 1px solid var(--border-light); font-size: 12px; color: var(--vip-dark); }
html[data-theme="dark"] .dropdown-vip-info { background: var(--vip-light); }

/* ---------- 主内容 ---------- */
.main-wrap { max-width: 1240px; margin: 0 auto; padding: 20px; width: 100%; flex: 1; min-height: calc(100vh - 180px); }
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 公告条 ---------- */
.notice-bar { background: linear-gradient(135deg, #fff5f5, #fff0f3); border: 1px solid #ffd6de; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: var(--primary-dark); line-height: 1.7; }
.notice-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
html[data-theme="dark"] .notice-bar { background: var(--primary-light); border-color: #5a2c36; }

/* ---------- 会员横幅 ---------- */
.vip-banner { background: linear-gradient(120deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%); border-radius: 14px; padding: 26px 30px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; position: relative; overflow: hidden; }
.vip-banner::before { content: ''; position: absolute; top: -60%; right: -8%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(243,156,18,.22) 0%, transparent 70%); border-radius: 50%; }
.vip-banner::after { content: ''; position: absolute; bottom: -70%; left: 20%; width: 240px; height: 240px; background: radial-gradient(circle, rgba(108,92,231,.25) 0%, transparent 70%); border-radius: 50%; }
.vip-banner-content, .vip-banner-btn { position: relative; z-index: 1; }
.vip-banner h3 { font-size: 21px; margin-bottom: 6px; background: linear-gradient(135deg, #f39c12, #f1c40f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.vip-banner p { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- 分类栏 ---------- */
.category-bar { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; box-shadow: var(--shadow); }
.category-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.category-tag { padding: 6px 15px; border-radius: 18px; font-size: 13px; cursor: pointer; color: var(--text-secondary); transition: all .18s; }
.category-tag:hover { color: var(--primary); background: var(--primary-light); }
.category-tag.active { background: var(--primary); color: #fff; font-weight: 600; }
.sort-select { margin-left: auto; display: flex; gap: 4px; }
.sort-tag { padding: 5px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; color: var(--text-muted); transition: all .15s; }
.sort-tag:hover { color: var(--text); }
.sort-tag.active { background: var(--bg-input); color: var(--text); font-weight: 600; }

/* ---------- 作品网格 ---------- */
.work-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.work-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .22s; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.work-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.work-card:hover .work-cover img { transform: scale(1.06); }
.work-type-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #fff; backdrop-filter: blur(4px); }
.type-audio { background: rgba(108,92,231,.92); }
.type-video { background: rgba(232,90,113,.92); }
.type-image { background: rgba(0,184,148,.92); }
.type-vip { background: linear-gradient(135deg, var(--vip), var(--vip-dark)); }
.work-duration { position: absolute; bottom: 10px; right: 10px; padding: 2px 8px; background: rgba(0,0,0,.72); border-radius: 5px; font-size: 11px; color: #fff; backdrop-filter: blur(2px); }
.work-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.work-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.work-card:hover .work-title { color: var(--primary); }
.work-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.work-tag { padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--bg-input); color: var(--text-muted); }
.work-tag.hot { background: #fff0f3; color: var(--primary); }
.work-tag.new { background: var(--success-light); color: var(--success); }
.work-tag.vip { background: var(--vip-light); color: var(--vip-dark); }
.work-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.work-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.work-author-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex-shrink: 0; }
.work-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; }
.work-stats { display: flex; gap: 12px; flex-shrink: 0; }
.work-stat { display: flex; align-items: center; gap: 3px; }
.work-stat svg { width: 13px; height: 13px; }

.load-more { text-align: center; margin-top: 26px; }

/* ---------- 通用页面头 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-count { font-size: 13px; font-weight: 600; color: var(--primary); background: var(--bg-input); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 4px; }
.page-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.author-head .btn { flex-shrink: 0; }

/* ---------- 作者网格 ---------- */
.author-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.author-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .22s; box-shadow: var(--shadow); }
.author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.author-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111; }
.author-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; filter: brightness(.82); }
.author-card:hover .author-cover img { transform: scale(1.06); }
.author-avatar { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); border: 2.5px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.author-info { padding: 12px 14px 14px; }
.author-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-card:hover .author-name { color: var(--primary); }
.author-meta { font-size: 12px; color: var(--text-muted); }

/* ---------- 骨架屏 ---------- */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.detail-main { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-player { position: relative; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.detail-player video { width: 100%; height: 100%; }
.detail-player audio { width: 92%; }
.player-placeholder { text-align: center; color: #8a8a9a; padding: 40px; }
.player-placeholder svg { width: 64px; height: 64px; margin-bottom: 12px; opacity: .4; }

/* 图片展示 */
.image-gallery { padding: 16px; background: #0c0d12; }
.image-gallery-main { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius-sm); background: #000; }
.image-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.image-gallery-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: all .18s; background: #222; }
.image-gallery-thumb:hover { border-color: var(--primary); }
.image-gallery-thumb.active { border-color: var(--primary); }
.image-gallery-thumb-wrapper { position: relative; flex-shrink: 0; cursor: pointer; }
.thumb-lock { position: absolute; top: 0; left: 0; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.8); border-radius: 6px; color: #fff; }
.gallery-vip-tip { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(135deg, #fff8e1, #ffecb3); border: 1px solid #ffd54f; border-radius: var(--radius-sm); margin-top: 10px; font-size: 13px; color: #b45309; flex-wrap: wrap; }
html[data-theme="dark"] .gallery-vip-tip { background: var(--vip-light); color: var(--vip-dark); }
.gallery-vip-tip .btn { margin-left: auto; }

.detail-content { padding: 20px 24px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.detail-title { font-size: 21px; font-weight: 700; line-height: 1.4; flex: 1; min-width: 0; }
.fav-card { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .18s; flex-shrink: 0; }
.fav-card .fav-star { font-size: 17px; line-height: 1; color: var(--vip); }
.fav-card .fav-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.fav-card:hover { border-color: var(--vip); background: var(--vip-light); }
.fav-card.on { border-color: var(--vip); background: var(--vip-light); color: var(--vip-dark); }
.like-card { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .18s; flex-shrink: 0; }
.like-card .like-thumb { font-size: 15px; line-height: 1; }
.like-card .like-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.like-card:hover { border-color: #ff6b6b; background: #fff0f0; }
.like-card.on { border-color: #ff6b6b; background: #fff0f0; color: #e63946; }
html[data-theme="dark"] .like-card:hover, html[data-theme="dark"] .like-card.on { border-color: #ff6b6b; background: rgba(230,57,70,.14); color: #ff8a8a; }
.detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); scrollbar-width: none; }
.detail-meta::-webkit-scrollbar { display: none; }
.detail-meta-item { display: flex; align-items: center; gap: 5px; }
.detail-meta-item.author-link { cursor: pointer; }
.detail-meta-item.author-link:hover { color: var(--primary); text-decoration: underline; }
.detail-desc { font-size: 14px; line-height: 1.9; color: var(--text-secondary); padding: 16px; background: var(--bg-input); border-radius: var(--radius-sm); margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; }
.detail-desc-locked { background: var(--bg-soft); border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center; }
.desc-lock-content { text-align: center; color: var(--text-muted); display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.desc-lock-content svg { width: 15px; height: 15px; color: var(--vip); flex-shrink: 0; }
.desc-lock-content p { margin: 0; font-size: 12.5px; }
.desc-lock-content .btn { padding: 4px 12px; font-size: 12px; }

/* 会员提示 */
.vip-notice { padding: 22px; background: linear-gradient(120deg, #1a1a2e, #16213e); border-radius: var(--radius); text-align: center; color: #fff; margin-bottom: 18px; }
.vip-notice h4 { font-size: 18px; margin-bottom: 8px; background: linear-gradient(135deg, #f39c12, #f1c40f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.vip-notice p { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 14px; }

/* 试听遮罩 */
.preview-overlay { position: absolute; inset: 0; background: rgba(8,8,12,.88); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 10; text-align: center; padding: 20px; }
.preview-overlay.show { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.preview-overlay h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.preview-overlay p { font-size: 13px; color: #b0b0c0; margin-bottom: 18px; max-width: 320px; line-height: 1.7; }
.preview-timer { font-size: 12px; color: #888; margin-top: 10px; }

/* ---------- 评论区 ---------- */
.comments-section { margin-top: 18px; }
.comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.comments-title { font-size: 16px; font-weight: 700; }
.comments-hint { font-size: 12px; color: var(--text-muted); }
.comment-input-box { display: flex; gap: 10px; margin-bottom: 18px; align-items: flex-end; }
.comment-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; outline: none; resize: vertical; min-height: 60px; font-family: inherit; color: var(--text); transition: border .15s; }
.comment-input:focus { border-color: var(--primary); background: var(--bg-white); }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; padding: 13px 14px; background: var(--bg-input); border-radius: var(--radius-sm); }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-user { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anon-tag { font-size: 10px; padding: 1px 6px; background: var(--bg-white); border-radius: 3px; color: var(--text-muted); border: 1px solid var(--border); }
.comment-time { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.comment-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; word-break: break-word; }
.comment-foot { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.comment-like { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; transition: color .15s; }
.comment-like:hover { color: var(--primary); }
.comment-like.liked { color: var(--primary); font-weight: 600; }
.comment-like svg { width: 13px; height: 13px; }
.comment-reply-btn { font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; }
.comment-reply-btn:hover { color: var(--primary); }
.comment-replies { margin-top: 12px; padding-left: 44px; display: flex; flex-direction: column; gap: 10px; }
.comment-reply-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; }
.reply-input-row { display: flex; gap: 8px; margin-top: 10px; padding-left: 44px; }
.reply-input-row input { flex: 1; background: var(--bg-white); border: 1px solid var(--border); border-radius: 18px; padding: 8px 14px; font-size: 13px; outline: none; color: var(--text); }
.reply-input-row input:focus { border-color: var(--primary); }
.no-comments { text-align: center; padding: 40px; color: var(--text-muted); font-size: 13px; }

/* ---------- 侧边栏 ---------- */
.detail-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nav-h) + 16px); }
.sidebar-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.sidebar-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item { display: flex; gap: 10px; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); transition: background .15s; }
.related-item:hover { background: var(--bg-hover); }
.related-cover { width: 88px; height: 50px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: #111; }
.related-info { flex: 1; min-width: 0; }
.related-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.related-meta { font-size: 11px; color: var(--text-muted); }
.sidebar-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sidebar-stat { text-align: center; padding: 12px 8px; background: var(--bg-input); border-radius: var(--radius-sm); }
.sidebar-stat b { display: block; font-size: 20px; color: var(--primary); }
.sidebar-stat span { font-size: 11px; color: var(--text-muted); }

/* ---------- 认证 ---------- */
.auth-container { max-width: 420px; margin: 40px auto; background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo h2 { font-size: 28px; color: var(--primary); margin-bottom: 4px; }
.auth-logo p { font-size: 13px; color: var(--text-muted); }
.auth-tabs { display: flex; margin-bottom: 22px; background: var(--bg-input); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; cursor: pointer; border-radius: 8px; color: var(--text-muted); transition: all .18s; font-weight: 500; }
.auth-tab.active { background: var(--bg-white); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.08); font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.form-input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: 14px; outline: none; transition: all .18s; color: var(--text); font-family: inherit; }
.form-input:focus { border-color: var(--primary); background: var(--bg-white); box-shadow: 0 0 0 3px rgba(232,90,113,.12); }
select.form-input { appearance: auto; }
textarea.form-input { resize: vertical; line-height: 1.7; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.auth-notice { padding: 10px 12px; background: #fff8e6; border: 1px solid #ffe0a3; border-radius: 6px; font-size: 12px; color: #b8860b; margin-bottom: 16px; line-height: 1.6; }
.auth-submit { width: 100%; padding: 12px; font-size: 15px; margin-top: 6px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .form-input { flex: 1; }
.captcha-canvas { width: 120px; height: 42px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); flex-shrink: 0; }

/* ---------- VIP 页 ---------- */
.vip-page { max-width: 860px; margin: 0 auto; }
.vip-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.vip-plan { background: var(--bg-white); border: 2px solid var(--border); border-radius: 14px; padding: 26px; text-align: center; transition: all .25s; position: relative; }
.vip-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.vip-plan.featured { border-color: var(--vip); background: linear-gradient(180deg, #fef9e7 0%, var(--bg-white) 100%); }
html[data-theme="dark"] .vip-plan.featured { background: linear-gradient(180deg, var(--vip-light) 0%, var(--bg-card) 100%); }
.vip-plan.featured::before { content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--vip), var(--vip-dark)); color: #fff; padding: 3px 18px; border-radius: 14px; font-size: 12px; font-weight: 700; }
.vip-plan h3 { font-size: 18px; margin-bottom: 8px; }
.vip-plan .price { font-size: 38px; font-weight: 800; color: var(--vip); margin-bottom: 4px; }
.vip-plan .price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.vip-plan .desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.vip-plan ul { list-style: none; text-align: left; margin-bottom: 20px; }
.vip-plan li { padding: 6px 0; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.vip-plan li svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
.vip-action-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all .18s; box-shadow: var(--shadow); }
.vip-action-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.vip-action-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vip-action-icon svg { width: 26px; height: 26px; }
.vip-action-info { flex: 1; }
.vip-action-info h3 { font-size: 16px; margin-bottom: 3px; }
.vip-action-info p { font-size: 13px; color: var(--text-muted); }
.card-recharge { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 24px; box-shadow: var(--shadow); }
.card-recharge h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-recharge-input { display: flex; gap: 10px; margin-bottom: 10px; }
.card-recharge-input input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 14px; outline: none; letter-spacing: 2px; color: var(--text); }
.card-recharge-input input:focus { border-color: var(--vip); }
.card-recharge-hint { font-size: 12px; color: var(--text-muted); }

/* ---------- 弹窗 ---------- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,12,20,.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.modal-overlay.show { display: flex; animation: fadeIn .18s; }
.modal { background: var(--bg-white); border-radius: 14px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: modalIn .2s ease; }
.modal-sm { max-width: 420px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg-white); z-index: 2; border-radius: 14px 14px 0 0; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-input); border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--bg-white); border-radius: 0 0 14px 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-row { display: flex; gap: 8px; align-items: center; }
.upload-row .form-input { flex: 1; }
.upload-row .btn { flex-shrink: 0; white-space: nowrap; }

/* ---------- Toast ---------- */
.toast-container { position: fixed; top: 78px; right: 20px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: slideIn .3s ease; color: #fff; display: flex; align-items: center; gap: 8px; max-width: 340px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--accent); }
.toast-vip { background: linear-gradient(135deg, var(--vip), var(--vip-dark)); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { animation: slideOut .25s forwards; }
@keyframes slideOut { to { transform: translateX(110%); opacity: 0; } }

/* ---------- 空状态 / 页脚 ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 60px; height: 60px; margin-bottom: 14px; opacity: .3; }
.empty-state p { font-size: 14px; margin-bottom: 14px; }
.footer { background: var(--bg-white); border-top: 1px solid var(--border); padding: 22px; text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 40px; }
.footer-links { margin-bottom: 8px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-links a, .footer-links span { cursor: pointer; }
.footer-links a:hover, .footer-links span:hover { color: var(--primary); }

/* ---------- 管理后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.admin-sidebar { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; position: sticky; top: calc(var(--nav-h) + 16px); box-shadow: var(--shadow); }
.admin-nav-item { padding: 11px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; gap: 9px; margin-bottom: 2px; transition: all .15s; }
.admin-nav-item svg { width: 15px; height: 15px; }
.admin-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.admin-content { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); gap: 12px; flex-wrap: wrap; }
.admin-title { font-size: 18px; font-weight: 700; }
.admin-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; transition: all .18s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-card b { display: block; font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card span { font-size: 12px; color: var(--text-muted); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg-input); white-space: nowrap; }
.data-table td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg-hover); }
.table-thumb { width: 56px; height: 32px; border-radius: 4px; object-fit: cover; background: #111; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--vip-light); color: #b8860b; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-vip { background: var(--vip-light); color: var(--vip-dark); }
.table-wrap { overflow-x: auto; }

/* 后台工具条 */
.admin-toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-toolbar label { display: block; margin-bottom: 5px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.admin-toolbar .form-input { width: 130px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .admin-nav-item { white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 720px) {
  .navbar-inner { padding: 0 12px; gap: 10px; height: 56px; }
  .logo { font-size: 19px; }
  .logo svg { width: 22px; height: 22px; }
  .nav-menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-white); border-bottom: 1px solid var(--border); flex-direction: column; padding: 10px; gap: 4px; z-index: 99; box-shadow: var(--shadow-hover); }
  .nav-menu.open { display: flex; }
  .nav-burger { display: inline-flex; }
  .nav-item { border-radius: 8px; }
  .search-box input { width: 90px; padding: 7px 10px 7px 30px; font-size: 12px; }
  .search-box input:focus { width: 110px; }
  .main-wrap { padding: 12px; }
  .work-list { grid-template-columns: 1fr; }
  .detail-content { padding: 16px; }
  .detail-title { font-size: 18px; }
  .auth-container { margin: 16px 10px; padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .top-bar-inner { padding: 6px 12px; font-size: 11px; }
  .top-bar-links { display: none; }
  .vip-banner { flex-direction: column; gap: 12px; text-align: center; padding: 22px; }
  .vip-plans { grid-template-columns: 1fr; }
  .comment-replies { padding-left: 24px; }
  .reply-input-row { padding-left: 24px; }
  .admin-content { padding: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn { padding: 7px 16px; }
  .detail-head { flex-wrap: wrap; }
  .fav-card { padding: 7px 12px; font-size: 12px; }
.like-card { padding: 7px 12px; font-size: 12px; }
  .author-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .page-head { flex-direction: column; align-items: flex-start; }
}
.trial-card { background: linear-gradient(135deg, rgba(232,90,113,.08), rgba(232,90,113,.16)); border: 1.5px dashed rgba(232,90,113,.45); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.trial-card h4 { font-size: 14px; margin: 0 0 4px; color: var(--text); }
.trial-card p { font-size: 12px; color: var(--text-muted); margin: 0; }
.trial-card .btn { flex-shrink: 0; }
.trial-card.trial-used { background: var(--bg-soft); border-color: var(--border); }
.image-gallery-login { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--text-muted); background: var(--bg-input); border-radius: var(--radius-md); padding: 20px; }
.image-gallery-login svg { width: 52px; height: 52px; opacity: .4; }
.image-gallery-login p { font-size: 14px; margin: 0; }
.detail-meta { min-height: 28px; align-items: center; }
.detail-meta .badge { margin: 0 2px; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.comment-input-inline { flex: 1; min-width: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: 18px; padding: 9px 14px; font-size: 13px; outline: none; color: var(--text); font-family: inherit; transition: border .15s; }
.comment-input-inline:focus { border-color: var(--primary); background: var(--bg-white); }
.comment-total { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.sidebar-card .comment-item { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.sidebar-card .comment-item:last-child { border-bottom: none; }
.sidebar-card .comment-avatar { width: 26px; height: 26px; font-size: 11px; }
.sidebar-card .comment-text { font-size: 13px; }
.sidebar-card .comment-user { font-size: 11px; }
.sidebar-card .comment-foot { margin-top: 4px; }
.sidebar-card .no-comments { font-size: 12px; color: var(--text-muted); padding: 8px 0; }
.sidebar-card .reply-input-row { margin-top: 6px; }
.sidebar-card .reply-input-row input { flex: 1; min-width: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: 14px; padding: 7px 10px; font-size: 12px; outline: none; color: var(--text); font-family: inherit; }
.banner-redeem { display: flex; gap: 8px; margin-top: 14px; max-width: 440px; align-items: center; }
.banner-card-input { flex: 1; min-width: 0; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 20px; padding: 10px 16px; font-size: 13px; outline: none; color: #fff; font-family: inherit; letter-spacing: 1px; }
.banner-card-input::placeholder { color: rgba(255,255,255,.65); }
.vip-benefits { max-width: 520px; margin: 24px auto 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.vip-benefits h3 { margin: 0 0 14px; font-size: 16px; }
.vip-benefits ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.vip-benefits li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.vip-benefits li svg { color: var(--success, #52c41a); flex-shrink: 0; }
.vip-plans { display: flex; justify-content: center; }
.vip-plan.featured { border: 2px solid var(--primary); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.vip-plan.featured h3 { margin-bottom: 6px; }

/* v5.10 赞助链接大卡片 */
.sponsor-plans { display: flex; justify-content: center; padding: 30px 16px; }
.sponsor-card { max-width: 640px; width: 100%; min-height: 300px; margin: 0 !important; display: flex; align-items: center; justify-content: center; border: 2px solid var(--primary); border-radius: 18px; cursor: pointer; background: linear-gradient(135deg, var(--bg-white), var(--vip-light)); box-shadow: 0 8px 30px rgba(0,0,0,.10); transition: transform .15s ease, box-shadow .15s ease; }
.sponsor-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,.14); }
.sponsor-btn { font-size: 20px; padding: 14px 56px; border-radius: 999px; }
/* v5.11 修复：赞助链接卡片 hover 不再上下跳动 */
.sponsor-card { transition: box-shadow .15s ease; }
.sponsor-card:hover { transform: none; box-shadow: 0 12px 36px rgba(0,0,0,.14); }
.sponsor-btn { transition: box-shadow .15s ease; }
.sponsor-btn:hover { box-shadow: 0 4px 12px rgba(243,156,18,.45); }

/* v5.12 分页控件 + 页脚公告 + 移动端2列 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 10px; flex-wrap: wrap; }
.pager-btn { padding: 8px 14px; border-radius: 18px; font-size: 13px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-nums { display: flex; align-items: center; gap: 5px; }
.pager-num { min-width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.pager-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-notice { margin: 0 0 16px; }
@media (max-width: 768px) {
  .work-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .work-body { padding: 8px 8px 10px; }
  .work-title { font-size: 13px; min-height: 36px; }
  .work-footer { font-size: 11px; }
  .work-tag { font-size: 10px; padding: 1px 6px; }
  .pager-btn { padding: 8px 12px; font-size: 13px; }
}

/* 备案号 */
.beian-link { color: inherit; text-decoration: none; }
.beian-link:hover { text-decoration: underline; }
