/* =========================================================
   链接提取 · 番茄小说 —— 全站样式 (纯 CSS, 无构建依赖)
   设计: 暗色为主基调, 红橙渐变品牌色, 圆角卡片 + 细边框
   ========================================================= */

:root {
  /* 色板 (与 Next.js 版 shadcn dark 主题对齐) */
  --background: #0a0a0b;
  --card: #131315;
  --card-2: #1a1a1d;
  --foreground: #f2f2f3;
  --muted-fg: #9d9da7;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --brand: #e8503a;
  --brand-2: #ff7849;
  --brand-grad: linear-gradient(135deg, #ef4444, #f97316);
  --danger: #f87171;
  --success: #4ade80;
  --warning: #fbbf24;
  --info: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-w: 896px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  height: 56px; display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.brand:hover { opacity: 0.85; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}
.brand .logo svg { width: 17px; height: 17px; color: #fff; }
.brand em { font-style: normal; color: var(--brand-2); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted-fg); }
.site-nav a {
  padding: 6px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.site-nav a:hover { background: var(--card-2); }
.site-nav a.active { background: var(--card-2); color: var(--foreground); font-weight: 500; }

/* ---------- 布局容器 ---------- */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.page-main { padding: 36px 0 72px; }

/* ---------- 首页 Hero ---------- */

.hero { text-align: center; margin-bottom: 32px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; color: var(--muted-fg); margin-bottom: 12px;
}
.hero .pill svg { width: 12px; height: 12px; }
.hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.hero p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }

/* ---------- 输入区卡片 ---------- */

.parse-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.parse-row { display: flex; gap: 12px; flex-direction: column; }
@media (min-width: 640px) { .parse-row { flex-direction: row; } }

.input-wrap { position: relative; flex: 1; }
.input-wrap svg.icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-fg); pointer-events: none;
}

.input-main {
  width: 100%; height: 48px;
  background: var(--card-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px 0 38px; font-size: 15px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-main:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232, 80, 58, 0.18); }
.input-main:disabled { opacity: 0.55; }

.btn-primary {
  height: 48px; padding: 0 30px;
  background: var(--brand-grad); color: #fff;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary svg { width: 16px; height: 16px; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 平台支持区 ---------- */

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 32px 0 12px;
}
.section-title h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted-fg);
}
.section-title h2 svg { width: 15px; height: 15px; }
.section-title .count { font-size: 12px; color: var(--muted-fg); }

.platform-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .platform-grid { grid-template-columns: repeat(4, 1fr); } }

.platform-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.platform-card .head { display: flex; align-items: center; gap: 10px; }
.platform-card .ic {
  width: 32px; height: 32px; border-radius: 9px; background: var(--card-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.platform-card .ic svg { width: 16px; height: 16px; color: var(--muted-fg); }
.platform-card .t { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.platform-card .h { font-size: 11px; color: var(--muted-fg); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-card .badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-p {
  border-radius: 999px; padding: 2px 10px;
  font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.95);
}
.platform-note { margin-top: 10px; text-align: center; font-size: 11px; color: var(--muted-fg); }

/* ---------- 错误横幅 ---------- */

.error-banner {
  margin-top: 16px;
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13.5px; color: var(--danger);
}
.error-banner svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }

/* ---------- 解析结果 ---------- */

.result-card {
  margin-top: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.result-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.result-head img.avatar {
  width: 44px; height: 44px; border-radius: 999px; object-fit: cover;
  background: var(--card-2); flex-shrink: 0;
}
.result-head .avatar-fallback {
  width: 44px; height: 44px; border-radius: 999px; background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 17px; flex-shrink: 0;
}
.result-head .meta { min-width: 0; flex: 1; }
.result-head .author-name { font-size: 13px; color: var(--muted-fg); }
.result-head .platform-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.95);
  border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 1px;
}
.result-head .title { font-size: 15.5px; font-weight: 600; margin-top: 2px; line-height: 1.45; }

.result-body { padding: 20px; }
.result-body video { width: 100%; max-height: 520px; border-radius: 12px; background: #000; outline: none; }
.result-body audio { width: 100%; margin: 8px 0; }

.cover-img { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }

.img-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .img-grid { grid-template-columns: repeat(3, 1fr); } }
.img-grid a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--card-2); }
.img-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.2s; }
.img-grid a:hover img { transform: scale(1.03); }

.quality-tag {
  display: inline-block; margin-left: 8px;
  background: rgba(96, 165, 250, 0.14); color: var(--info);
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 500; vertical-align: 1px;
}

/* 歌词面板 */
.lyric-panel { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lyric-panel summary {
  padding: 10px 16px; cursor: pointer; user-select: none;
  font-size: 13px; color: var(--muted-fg);
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.lyric-panel summary::-webkit-details-marker { display: none; }
.lyric-panel summary svg { width: 14px; height: 14px; }
.lyric-panel .lyric-body {
  padding: 4px 16px 14px; max-height: 260px; overflow-y: auto;
  font-size: 13px; color: var(--muted-fg); line-height: 1.9;
  white-space: pre-line;
}

/* 操作按钮区 */
.actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline {
  height: 40px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-2); transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: var(--brand); background: rgba(232, 80, 58, 0.07); }
.btn-outline svg { width: 14px; height: 14px; }

/* ---------- 解析历史 ---------- */

.history-section { margin-top: 32px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; cursor: pointer; transition: border-color 0.15s;
}
.history-item:hover { border-color: var(--border-strong); }
.history-item .h-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--card-2); flex-shrink: 0; }
.history-item .h-cover-fallback {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: var(--card-2); display: flex; align-items: center; justify-content: center;
}
.history-item .h-cover-fallback svg { width: 18px; height: 18px; color: var(--muted-fg); }
.history-item .h-main { flex: 1; min-width: 0; }
.history-item .h-title { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .h-sub { font-size: 11.5px; color: var(--muted-fg); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .h-del { color: var(--muted-fg); padding: 6px; border-radius: 8px; flex-shrink: 0; }
.history-item .h-del:hover { color: var(--danger); background: rgba(248,113,113,0.1); }
.history-item .h-del svg { width: 14px; height: 14px; display: block; }
.history-empty { text-align: center; color: var(--muted-fg); font-size: 13px; padding: 20px 0; }

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: auto; border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 16px; text-align: center;
  font-size: 12px; color: var(--muted-fg); line-height: 1.8;
}
.site-footer .fbrand { display: flex; align-items: center; justify-content: center; gap: 6px; }
.site-footer .fbrand svg { width: 13px; height: 13px; color: var(--brand); }

/* ---------- 番茄小说页 ---------- */

.fq-hero { text-align: center; margin-bottom: 28px; }
.fq-hero .pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--muted-fg); margin-bottom: 12px;
}
.fq-hero .pill svg { width: 12px; height: 12px; }
.fq-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.fq-hero p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }

/* 搜索 tabs */
.fq-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.fq-tabs button {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted-fg);
  transition: background 0.15s;
}
.fq-tabs button:hover { background: var(--card-2); }
.fq-tabs button.active { background: var(--card-2); color: var(--foreground); font-weight: 500; }

/* 书籍卡片 */
.book-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .book-grid { grid-template-columns: repeat(4, 1fr); } }

.book-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.book-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.book-card .b-cover {
  width: 100%; aspect-ratio: 3/4.2; border-radius: 10px; object-fit: cover;
  background: linear-gradient(160deg, #2a2a30, #1a1a1d); margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.book-card .b-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-card .b-author { font-size: 12px; color: var(--muted-fg); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-card .b-word { font-size: 11px; color: var(--muted-fg); opacity: 0.75; margin-top: 3px; }

/* 书籍详情 */
.book-detail { display: flex; gap: 20px; }
.book-detail .d-cover {
  width: 168px; aspect-ratio: 3/4.2; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(160deg, #2a2a30, #1a1a1d); box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
@media (max-width: 640px) {
  .book-detail { flex-direction: column; align-items: center; text-align: center; }
  .book-detail .d-cover { width: 140px; }
  .book-detail .d-actions { justify-content: center; }
}
.book-detail .d-main { flex: 1; min-width: 0; }
.book-detail .d-title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.book-detail .d-author { margin-top: 4px; color: var(--brand-2); font-size: 14px; }
.book-detail .d-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stat-chip {
  background: var(--card-2); border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; color: var(--muted-fg);
}
.book-detail .d-abstract { margin-top: 14px; font-size: 13.5px; color: var(--muted-fg); line-height: 1.8; }
.book-detail .d-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* 章节列表 */
.chapter-list { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.chapter-item {
  padding: 11px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
  font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px;
  transition: background 0.12s;
}
.chapter-item:last-child { border-bottom: none; }
.chapter-item:hover { background: var(--card-2); }
.chapter-item .c-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item.readed { color: var(--muted-fg); opacity: 0.65; }
.chapter-item.readed .c-title::after { content: " 已读"; font-size: 10px; color: var(--success); }
.pager { display: flex; justify-content: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.pager button, .pager .pg-cur {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); transition: border-color 0.15s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager .pg-cur { background: var(--brand-grad); border-color: transparent; color: #fff; font-weight: 600; }

/* 阅读器 */
.reader {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: #efe7d7; color: #33302a;
  transition: background 0.25s, color 0.25s;
}
.reader.dark { background: #16161a; color: #c8c8cf; }
.reader.green { background: #c7e5c3; color: #2c3a2c; }
.reader .r-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 13px;
  background: inherit; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.reader.dark .r-bar { border-bottom: 1px solid var(--border); }
.reader .r-bar .r-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.reader .r-bar button { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; }
.reader .r-bar button:hover { background: rgba(0,0,0,0.07); }
.reader.dark .r-bar button:hover { background: rgba(255,255,255,0.08); }
.reader .r-content { max-width: 720px; margin: 0 auto; padding: 32px 22px 96px; }
.reader .r-ch-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; line-height: 1.5; }
.reader .r-text { font-size: 17.5px; line-height: 2.05; letter-spacing: 0.02em; white-space: pre-line; }
.reader .r-nav {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.06) 30%);
}
.reader.dark .r-nav { background: linear-gradient(transparent, rgba(0,0,0,0.35) 30%); }
.reader .r-nav button {
  flex: 1; height: 42px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(0,0,0,0.14);
}
.reader.dark .r-nav button { border-color: var(--border-strong); }
.reader .r-nav button:disabled { opacity: 0.35; cursor: not-allowed; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  width: 100%; max-width: 480px; max-height: 84vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.modal .m-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal .m-head .m-title { flex: 1; font-size: 15px; font-weight: 600; }
.modal .m-head .m-close { padding: 4px 8px; border-radius: 8px; color: var(--muted-fg); }
.modal .m-head .m-close:hover { background: var(--card-2); color: var(--foreground); }
.modal .m-body { padding: 16px 20px; overflow-y: auto; }
.modal .m-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* 下载对话框 */
.dl-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.dl-opt label { min-width: 64px; color: var(--muted-fg); }
.dl-opt input[type=number] {
  width: 90px; height: 36px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--card-2); padding: 0 10px; outline: none; font-size: 13.5px;
}
.dl-status { margin-top: 10px; font-size: 12.5px; color: var(--muted-fg); min-height: 20px; }
.progress-bar { height: 7px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin-top: 8px; }
.progress-bar .fill { height: 100%; background: var(--brand-grad); border-radius: 999px; width: 0%; transition: width 0.2s; }

/* 评论 */
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item .c-head { display: flex; align-items: center; gap: 8px; }
.comment-item .c-avatar { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; background: var(--card-2); }
.comment-item .c-avatar-fb { width: 30px; height: 30px; border-radius: 999px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.comment-item .c-name { font-size: 12.5px; font-weight: 500; }
.comment-item .c-time { font-size: 11px; color: var(--muted-fg); margin-left: auto; }
.comment-item .c-text { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--foreground); }

/* Toast */
.toast-wrap { position: fixed; top: 70px; left: 0; right: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: rgba(20, 20, 22, 0.95); border: 1px solid var(--border-strong);
  color: var(--foreground); border-radius: 999px; padding: 8px 18px;
  font-size: 13px; box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}
.toast.error { border-color: rgba(248,113,113,0.5); color: var(--danger); }
.toast.success { border-color: rgba(74,222,128,0.5); color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* 加载态 */
.loading-block { text-align: center; padding: 40px 0; color: var(--muted-fg); font-size: 13.5px; }
.loading-block .spin { width: 22px; height: 22px; margin: 0 auto 10px; display: block; color: var(--brand); }
.skeleton-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--card-2) 25%, #232327 50%, var(--card-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 返回按钮 */
.back-row { margin-bottom: 18px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted-fg); font-size: 13.5px; padding: 6px 12px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.btn-back:hover { background: var(--card-2); color: var(--foreground); }
.btn-back svg { width: 15px; height: 15px; }

/* 工具类 */
.hidden { display: none !important; }
.text-muted { color: var(--muted-fg); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
