/* =========================================================
   驾驶舱页面：片库 / 工坊 / 选品单 / 后台 / 详情抽屉 / 账号
   ========================================================= */

/* ---------- 页面通用 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 22px;
}
.page-title {
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.page-sub { margin-top: 6px; color: var(--text-3); font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; flex: none; }
.figure { font-family: var(--font-display); font-size: 40px; font-weight: 650; line-height: 1; color: var(--text); letter-spacing: -0.04em; }
.figure-label { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar select.input { width: auto; min-width: 120px; }

/* ---------- 同步横幅 ---------- */
.sync-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 11px 16px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 12.5px;
  color: var(--text-2);
}
.sync-row b { color: var(--text); font-weight: 600; }
.sync-row .progress { flex: 1; min-width: 120px; max-width: 260px; }
.sync-row .sync-right { margin-left: auto; }

/* ---------- 片库：统计卡 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  --sc: var(--accent);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px 16px;
  border-radius: var(--r-lg);
  background: radial-gradient(260px 140px at 100% 0%, color-mix(in srgb, var(--sc) 16%, transparent), transparent 70%), var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--shadow-card);
  overflow: hidden;
}
.stat-card.sc-male { --sc: var(--male); }
.stat-card.sc-female { --sc: var(--female); }
.stat-card.sc-rated { --sc: #b48cf0; }
.sc-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  color: var(--sc);
  background: color-mix(in srgb, var(--sc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent);
  box-shadow: 0 10px 24px -12px var(--sc);
}
.sc-ic .i { width: 21px; height: 21px; }
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sc-top { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.sc-lbl { font-size: 13px; color: var(--text-2); font-weight: 550; }
.sc-val { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }
.sc-note { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--glass-2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 50%, transparent), var(--sc)); box-shadow: 0 0 10px var(--sc); }

/* ---------- 片库：胶囊筛选 ---------- */
.filter-bar { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.fpill-wrap { position: relative; }
.fpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.fpill .i { width: 15px; height: 15px; color: var(--text-3); }
.fpill .chev { width: 13px; height: 13px; transition: transform var(--t) var(--ease); }
.fpill:hover { color: var(--text); border-color: var(--line-3); }
.fpill-wrap.has-value .fpill { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.fpill-wrap.has-value .fpill .i { color: var(--accent); }
.fpill-wrap.is-open .fpill { color: var(--text); background: var(--glass-2); border-color: var(--line-3); }
.fpill-wrap.is-open .chev { transform: rotate(180deg); }
.fgroup-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-grad); color: var(--on-accent); font-size: 10.5px; font-weight: 750; display: inline-grid; place-items: center; }
.fgroup-count:empty { display: none; }

.fpop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: 320px;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--pop);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--line-2);
  box-shadow: var(--glass-hi), var(--shadow-pop);
}
.fpop.to-left { left: auto; right: 0; }
.fpop--wide { width: 540px; }
.fpill-wrap.is-open .fpop { display: flex; animation: popIn 240ms var(--ease-sheet) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.fpop > .input + .input { margin-top: -6px; }
.hint { font-size: 11.5px; color: var(--text-3); }
.filter-reset { margin-left: 4px; }
.filter-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-tools #sortSelect { width: 156px; height: 38px; border-radius: var(--r-pill); padding-left: 16px; background-color: var(--glass); border-color: var(--glass-line); }
.filter-tools .seg button { height: 30px; padding: 0 11px; }

.tag-tools { display: flex; gap: 8px; }
.tag-tools .input { flex: 1; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: all var(--t-fast) var(--ease);
}
.tag-btn small { font-variant-numeric: tabular-nums; font-size: 10px; color: var(--text-4); }
.tag-btn:hover { border-color: var(--line-3); color: var(--text); }
.tag-btn.inc { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 50%, transparent); background: var(--pos-soft); }
.tag-btn.exc { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 50%, transparent); background: var(--neg-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.tag-btn.inc small, .tag-btn.exc small { color: inherit; opacity: 0.6; }

/* 快捷视角：胶囊下方一行文字标签 */
.views { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.view-tab {
  position: relative;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.view-tab:hover { color: var(--text); background: var(--glass); }
.view-tab.is-active { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

/* 一句话识别说明 */
.parse-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--glass);
  border: 1px solid var(--accent-line);
  box-shadow: var(--glass-hi);
  animation: rowIn 360ms var(--ease) both;
}
.pn-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; color: var(--on-accent); background: var(--accent-grad); box-shadow: 0 8px 22px -10px var(--glow); }
.pn-main { flex: 1; min-width: 0; }
.pn-q { font-size: 15px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.pn-sub b { color: var(--accent); }

/* ---------- 片库：主体布局 ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.results { min-width: 0; container-type: inline-size; container-name: results; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; min-width: 0; }
.results-count .big { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.results-unit { font-size: 12.5px; color: var(--text-3); }
.results-summary { font-size: 12.5px; color: var(--text-3); margin-left: 8px; }
.results-summary b { color: var(--text-2); font-weight: 650; }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.foot-note { margin-top: 22px; font-size: 11.5px; color: var(--text-4); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

/* 补充条件 */
.refine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  height: 52px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  color: var(--text-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.refine:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.refine .i { color: var(--accent); }
.refine input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 13.5px; color: var(--text); }
.refine input::placeholder { color: var(--text-3); }
.refine input::-webkit-search-cancel-button { display: none; }

/* D2 数据表 */
.rows {
  position: relative;
  padding: 4px 6px 6px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--shadow-card);
}
.row {
  --cols: 22px minmax(0, 1fr) 118px 70px 128px 96px 70px 104px;
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  cursor: default;
}
.row:not(.row-head) + .row:not(.row-head)::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--line); }
.row-head { padding-top: 11px; padding-bottom: 9px; font-size: 11.5px; font-weight: 550; letter-spacing: 0.04em; color: var(--text-3); }
.row:not(.row-head):hover { background: var(--glass-2); }
.row.is-focus {
  background: linear-gradient(90deg, rgba(232, 176, 75, 0.15), rgba(232, 176, 75, 0.04));
  box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 30px -12px var(--glow);
}
.row.is-focus::before, .row.is-focus + .row::before { opacity: 0; }
.row.is-selected { background: var(--accent-soft); }
.col-score, .col-heat, .col-ocean { justify-self: start; }
.col-ai { display: flex; align-items: center; gap: 7px; }
.col-ai small { font-size: 11px; color: var(--text-3); }

.row-check { display: grid; place-items: center; }
.row-book { display: flex; align-items: center; gap: 13px; min-width: 0; }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.row-title h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.01em; cursor: pointer; transition: color var(--t-fast); }
.row-title h4:hover { color: var(--accent); }
.feat-star .i { width: 13px; height: 13px; color: var(--accent); fill: currentColor; }
.row-sub { display: flex; align-items: center; gap: 4px 9px; font-size: 11.5px; color: var(--text-3); min-width: 0; white-space: nowrap; overflow: hidden; }
.row-sub .sep { width: 1px; height: 9px; background: var(--line-2); }

.cell-num { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cell-num .na { color: var(--text-4); font-weight: 400; font-size: 12px; }
.cell-num .star .i { width: 13px; height: 13px; color: var(--accent); fill: currentColor; stroke: none; }
.heat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.heat .flame .i { width: 14px; height: 14px; color: #f39a4a; }
.heat-bar { width: 96px; height: 4px; border-radius: 2px; background: var(--glass-2); overflow: hidden; }
.heat-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(243, 154, 74, 0.5), #f3c672); }
.ocean { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ocean .zero { color: var(--pos); }
.ocean .slash { color: var(--text-4); margin: 0 3px; font-weight: 400; }
.ocean small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 400; }

.row-actions { display: flex; justify-content: flex-end; gap: 0; }
.row-actions .icon-btn { width: 32px; height: 32px; color: var(--text-3); }
.row-actions .icon-btn:hover { color: var(--text); }
.row-actions .icon-btn.is-on { color: var(--accent); }
.row-actions .icon-btn.is-on .i { stroke-width: 2; }
.row-actions .icon-btn .i { width: 15px; height: 15px; }
@media (hover: hover) {
  .row-actions .icon-btn:not(.is-on) { opacity: 0; transition: opacity var(--t-fast); }
  .row:hover .row-actions .icon-btn, .row.is-focus .row-actions .icon-btn, .row-actions .icon-btn:focus-visible { opacity: 1; }
}

@container results (max-width: 900px) {
  .row { --cols: 22px minmax(0, 1fr) 70px 120px 90px 64px 96px; }
  .row .col-ch { display: none; }
}
@container results (max-width: 700px) {
  .row { --cols: 22px minmax(0, 1fr) 110px 56px 80px; }
  .row .col-score, .row .col-ocean { display: none; }
}
@container results (max-width: 520px) {
  .row { --cols: minmax(0, 1fr) auto; gap: 10px; padding: 12px 8px; }
  .row-head { display: none; }
  .row .row-check, .row .col-heat { display: none; }
  .row .col-ai small { display: none; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .row-actions .icon-btn { opacity: 1 !important; }
}

.row.sk-row .sk-cover { width: 42px; height: 56px; border-radius: 6px; }

/* B2 推荐卡 */
.rcards { display: flex; flex-direction: column; gap: 12px; }
.rcard {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.rcard:hover { border-color: var(--line-3); }
.rcard.is-focus { border-color: var(--accent-line); box-shadow: var(--glass-hi), 0 0 30px -14px var(--glow); }
.rcard-cover { cursor: pointer; border-radius: 10px; transition: transform var(--t) var(--ease); }
.rcard-cover .cover { border-radius: 10px; }
.rcard-cover:hover { transform: scale(1.03); }
.rcard-main { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.rcard-main h4 { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; line-height: 1.35; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t-fast); }
.rcard-main h4:hover { color: var(--accent); }
.rcard-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rcard-reason { padding-left: 12px; border-left: 2px solid var(--accent); font-size: 13px; line-height: 1.7; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-desc { font-size: 12.5px; line-height: 1.7; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.rcard-score { display: flex; align-items: baseline; gap: 4px; }
.rcard-score .lbl { font-size: 15px; font-weight: 700; color: var(--text-2); margin-right: 2px; }
.rcard-score b { font-size: 38px; font-weight: 750; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(180deg, #ffe3a3, #e0a23a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"]:not([data-stage="cinema"]) .rcard-score b { background: linear-gradient(180deg, #d89a2c, #a86a10); -webkit-background-clip: text; background-clip: text; }
.rcard-score.is-heat b { font-size: 28px; background: none; color: var(--text); }
.rcard-score small { font-size: 14px; color: var(--text-3); }
.rcard-kind { font-size: 11.5px; color: var(--text-3); }
.rcard-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.rcard-meta b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.rcard-meta .zero { color: var(--pos); }
.rcard-btns { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
@container results (max-width: 640px) {
  .rcard { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .rcard-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .rcard-score b { font-size: 28px; }
  .rcard-btns { margin-top: 0; }
}

/* 片库海报墙：选中时金色描边 */
.results .wall .pcard.is-focus .pcard-art { box-shadow: 0 0 0 2px var(--accent-line), 0 20px 50px -18px var(--glow); }

/* 右侧迷你档案 */
.preview { position: sticky; top: calc(var(--top-h) + 12px); min-width: 0; }
.preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border-color: var(--accent-line);
  box-shadow: var(--glass-hi), 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 40px -20px var(--glow);
  animation: swapIn 300ms var(--ease) both;
}
.preview-card > :not(.backdrop) { position: relative; z-index: 1; }
.pv-backdrop { height: 240px; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); opacity: 0.75; }
.pv-empty { align-items: center; justify-content: center; min-height: 320px; color: var(--text-3); font-size: 13px; border-color: var(--glass-line); }
.pv-empty > .i { width: 34px; height: 34px; color: var(--text-4); }
.pv-head { display: flex; gap: 16px; align-items: flex-start; }
.pv-cover { cursor: pointer; flex: none; }
.pv-cover .cover { width: 104px; border-radius: 10px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pv-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.pv-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pv-title { font-family: var(--font-serif); font-size: 20px; font-weight: 800; line-height: 1.35; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-title:hover { color: var(--accent); }
.pv-author { font-size: 12px; color: var(--text-3); }
.pv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pv-pitch { display: flex; gap: 8px; font-family: var(--font-serif); font-size: 13.5px; line-height: 1.7; color: var(--text); }
.pv-pitch .i { flex: none; width: 16px; height: 16px; color: var(--accent); fill: currentColor; stroke: none; margin-top: 3px; }
.pv-desc { font-size: 12.5px; line-height: 1.75; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-radar { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -4px 0; }
.pv-radar .radar { max-width: 100%; height: auto; }
.pv-verdict { font-family: var(--font-serif); font-size: 13px; line-height: 1.7; color: var(--text-2); text-align: center; padding: 0 6px; }
.pv-noai { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--text-3); }
.pv-noai .i { color: var(--accent); }
.pv-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-nums > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); }
.pv-nums b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.pv-nums b small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.pv-nums b.zero { color: var(--pos); }
.pv-nums span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.pv-nums span .i { width: 13px; height: 13px; color: #f39a4a; }
.pv-nums span .grade { min-width: 19px; height: 19px; font-size: 10.5px; border-radius: 5px; }
.pv-actions { display: flex; flex-direction: column; gap: 8px; }
.pv-actions .btn-primary, .pv-actions .btn.block { height: 44px; font-size: 14px; }
.pv-links { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }

/* 批量条 */
.bulk-bar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 45;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-pill);
  background: var(--pop);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  animation: toastIn 320ms var(--ease-sheet) both;
}
.bulk-bar b { color: var(--accent); }

/* ---------- 评测工坊 ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.basket-panel { display: flex; flex-direction: column; max-height: 660px; }
.basket-list { overflow-y: auto; padding: 8px; flex: 1; }
.bitem { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background var(--t-fast); }
.bitem:hover { background: var(--glass-2); }
.bitem-main { flex: 1; min-width: 0; cursor: pointer; }
.bitem-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bitem-main:hover .bitem-title { color: var(--accent); }
.bitem-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-tag { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.cost-tag.cache { color: var(--pos); background: var(--pos-soft); }
.cost-tag.fresh { color: var(--accent); background: var(--accent-soft); }
.bitem .icon-btn { opacity: 0.5; }
.bitem:hover .icon-btn { opacity: 1; }

.config-panel { display: flex; flex-direction: column; }
.config-body { padding: 20px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.mode-card:hover { border-color: var(--line-3); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card:has(input:checked) { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 80%), var(--glass); box-shadow: 0 0 0 1px var(--accent-line) inset, 0 14px 30px -18px var(--glow); }
.mode-card:has(input:focus-visible) { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.mode-name { font-weight: 650; font-size: 14px; }
.mode-price { font-size: 12px; color: var(--text-2); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.mode-price b { font-size: 20px; color: var(--accent); font-weight: 700; }
.mode-price em { font-style: normal; color: var(--text-3); font-size: 11px; margin-left: 4px; }
.mode-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.65; }
.prompt-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 10px; }
.checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}
.checkout-cost { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.checkout-cost .num { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; }
.checkout-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.checkout-meta b { color: var(--text-2); font-weight: 600; }
.checkout-meta .warn { color: var(--neg); }
.fine-print { padding: 0 20px 18px; font-size: 11px; color: var(--text-4); }

.reports-panel { overflow: hidden; }
.reports { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 300px; }
.job-list { border-right: 1px solid var(--line); padding: 8px; max-height: 640px; overflow-y: auto; }
.job {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: left;
  transition: background var(--t-fast);
}
.job:hover { background: var(--glass-2); }
.job.is-active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.job-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.job-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-3); padding-left: 15px; }
.job-detail { padding: 20px 22px; min-width: 0; }
.jd-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jd-title { font-size: 16px; font-weight: 650; }
.jd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.jd-meta b { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.jd-prompt { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--glass-2); font-size: 12px; color: var(--text-2); border-left: 2px solid var(--accent); }
.jd-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 11.5px; color: var(--text-3); }
.jd-progress .progress { flex: 1; }
.jd-table td.title-cell { min-width: 170px; }
.jd-table .link { font-weight: 600; cursor: pointer; }
.jd-table .link:hover { color: var(--accent); }
.jd-text { max-width: 420px; font-size: 12px; line-height: 1.65; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.jd-text strong { color: var(--text); font-weight: 600; }
.jd-text .fit { color: var(--pos); }
.jd-text .err { color: var(--neg); }

/* ---------- 我的选品单 ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.board.single { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lane.is-over { border-color: var(--accent); background: var(--accent-soft); }
.lane-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; font-size: 13px; font-weight: 650; }
.lane-head .num { margin-left: auto; color: var(--text-3); font-weight: 600; font-size: 12px; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--glass-2); display: inline-grid; place-items: center; }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 8px currentColor; }
.lane[data-stage="待深读"] .lane-dot { background: var(--male); }
.lane[data-stage="重点立项"] .lane-dot { background: var(--accent); }
.lane[data-stage="暂不考虑"] .lane-dot { background: var(--text-4); }
.lane-body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; min-height: 90px; }
.lane-empty { padding: 26px 10px; text-align: center; font-size: 11.5px; color: var(--text-4); border: 1px dashed var(--line-2); border-radius: 12px; }
.board.single .lane { display: contents; }
.board.single .lane-head { display: none; }
.board.single .lane-body { display: contents; }

.fav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  cursor: grab;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
}
.fav:hover { border-color: var(--line-3); transform: translateY(-1px); }
.fav.is-dragging { opacity: 0.4; }
.fav-top { display: flex; gap: 11px; min-width: 0; }
.fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fav-title { font-size: 13.5px; font-weight: 650; line-height: 1.4; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-title:hover { color: var(--accent); }
.fav-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-metrics { display: flex; gap: 10px; font-size: 11px; color: var(--text-3); margin-top: 3px; flex-wrap: wrap; align-items: center; }
.fav-metrics b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); margin-right: 2px; }
.fav-note { font-size: 12px; min-height: 52px; cursor: text; }
.fav-foot { display: flex; align-items: center; gap: 4px; }
.fav-foot select { width: auto; flex: 1; min-width: 0; }
.fav-foot .icon-btn { width: 30px; height: 30px; color: var(--text-3); }
.fav-foot .icon-btn:hover { color: var(--text); }
.fav-foot .icon-btn.is-on { color: var(--accent); }
.fav-foot .icon-btn.danger:hover { color: var(--neg); background: var(--neg-soft); }

/* ---------- 管理后台 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  overflow: hidden;
}
.stat-grid .tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(320px 200px at 100% 0%, var(--accent-soft), transparent 70%), var(--glass);
}
.stat-grid .tile:first-child .tile-val { font-size: 48px; letter-spacing: -0.05em; }
.tile-lbl { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.tile-val { margin-top: 6px; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.tile.accent .tile-val { color: var(--accent); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-grid .span-2 { grid-column: 1 / -1; }
.admin-grid .table-wrap { max-height: 320px; }
.codes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-3); }
.code-cell { display: flex; align-items: center; gap: 6px; }
.code-cell .icon-btn { width: 26px; height: 26px; opacity: 0.55; }
.code-cell .icon-btn:hover { opacity: 1; }
.code-cell .icon-btn .i { width: 13px; height: 13px; }
#wbImportArea { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
#wbImportArea .input { font-size: 12px; }

/* ---------- 详情抽屉内容 ---------- */
.dw-cine { position: relative; margin: 0 -30px; padding: 74px 30px 24px; overflow: hidden; isolation: isolate; }
.dw-cine > :not(.backdrop) { position: relative; z-index: 1; }
.dw-backdrop { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.dw-cine::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(5, 5, 8, 0.55), transparent 70%); pointer-events: none; }
html[data-theme="light"]:not([data-stage="cinema"]) .dw-cine::after { display: none; }
.dw-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: end; }
.dw-hero .cover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 230, 180, 0.18), 0 0 60px -12px var(--glow); }
.dw-info { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dw-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dw-title { font-family: var(--font-serif); font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: 0.01em; margin-top: 2px; text-wrap: balance; }
html:not([data-theme="light"]) .dw-title, html[data-stage="cinema"] .dw-title { background: linear-gradient(180deg, #fffaf0 30%, #ecd3a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dw-author { font-size: 12.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dw-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.dw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.dw-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 0 18px; border-left: 1px solid var(--line-2); min-width: 0; }
.dw-stats > div:first-child { padding-left: 0; border-left: 0; }
.dw-stats > div > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dw-stats > div > span .grade { min-width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
.dw-stats b { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.dw-stats b small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.dw-stats b.zero { color: var(--pos); }
.dw-stats b.gold { color: var(--accent); }
.dw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.dw-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--accent-line);
  background: radial-gradient(420px 200px at 0% 0%, var(--accent-soft), transparent 72%), var(--glass);
  box-shadow: var(--glass-hi), 0 0 40px -20px var(--glow);
}
.dw-score { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-right: 22px; border-right: 1px solid var(--line); }
.dw-score .big { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.dw-score .big small { font-size: 13px; color: var(--text-3); letter-spacing: 0; font-weight: 500; }
.dw-score .lbl { font-size: 11px; color: var(--text-3); }
.dw-quote { font-family: var(--font-serif); font-size: 16px; line-height: 1.75; }
.dw-quote-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.dw-section { margin-top: 30px; }
.dw-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dw-section-head h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.dw-section-head h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--accent-grad); box-shadow: 0 0 10px var(--glow); }

.metrics-bento .m-lead .bento-big { font-size: 36px; }
.metrics-bento .m-lead .bento-big small { font-size: 16px; color: var(--text-3); margin-left: 2px; }

.eval-tabs { margin-bottom: 16px; }
.eval-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--glass-hi); }
.eval-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.eblock { padding: 15px 17px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.eblock-title { font-size: 12px; font-weight: 650; color: var(--text-3); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.eblock-title .i { width: 14px; height: 14px; }
.eblock p { font-size: 13px; line-height: 1.8; color: var(--text); white-space: pre-line; }
.eblock.hl { grid-column: 1 / -1; border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--glass); }
.eblock.hl .eblock-title { color: var(--accent); }
.eblock.pos .eblock-title { color: var(--pos); }
.eblock.neg .eblock-title { color: var(--neg); }
.eval-empty { padding: 22px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eval-empty p { color: var(--text-2); font-size: 13px; }
.eval-empty p small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 3px; }

.synopsis { font-size: 13px; line-height: 1.9; color: var(--text-2); white-space: pre-line; position: relative; }
.synopsis.is-clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }

.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rel { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); min-width: 0; }
.rel:hover { border-color: var(--accent-line); background: var(--glass-2); transform: translateY(-1px); }
.rel-main { min-width: 0; }
.rel-title { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.fav-editor { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--glass-line); background: var(--glass); display: flex; flex-direction: column; gap: 12px; }
.fav-editor-foot { display: flex; align-items: center; gap: 8px; }
.fav-editor-foot .spacer { flex: 1; }

/* ---------- 账号弹窗 ---------- */
.modal-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 20px; }
.modal-brand .brand-mark { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 4px; }
.modal-brand .brand-mark svg { width: 32px; height: 32px; }
.demo-fill { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-fill .link-btn { font-family: var(--font-mono); }

.wallet-hero { display: flex; align-items: flex-end; gap: 36px; margin-top: 20px; padding: 22px 24px; border-radius: var(--r-lg); background: radial-gradient(360px 160px at 0% 0%, var(--accent-soft), transparent 75%), var(--glass); border: 1px solid var(--accent-line); }
.wallet-figure { display: flex; flex-direction: column; gap: 6px; }
.wallet-figure .figure { font-size: 46px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wallet-figure.sub .num { font-size: 22px; font-weight: 650; color: var(--text-2); }
.redeem { display: flex; gap: 8px; margin-top: 16px; }
.redeem .input { flex: 1; height: 40px; }
.redeem .btn { height: 40px; }
.ledger { border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow-y: auto; background: var(--glass); }
.lrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lrow:last-child { border-bottom: 0; }
.lrow-note { color: var(--text); }
.lrow-time { font-variant-numeric: tabular-nums; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.lrow-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lrow-amt .plus { color: var(--pos); }
.lrow-amt .minus { color: var(--neg); }
.lrow-amt small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 400; }

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .explore { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
}

@media (max-width: 1100px) {
  .stat-card { padding: 16px; gap: 12px; }
  .sc-ic { width: 38px; height: 38px; border-radius: 11px; }
  .sc-top { flex-direction: column; align-items: flex-start; gap: 0; }
  .sc-val { font-size: 24px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-grid .tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .studio { grid-template-columns: 1fr; }
  .basket-panel { max-height: 420px; }
  .admin-grid { grid-template-columns: 1fr; }
  .filter-tools { margin-left: 0; width: 100%; justify-content: flex-end; }
}

@media (max-width: 960px) {
  .reports { grid-template-columns: 1fr; }
  .job-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .eval-body { grid-template-columns: 1fr; justify-items: center; }
  .eval-body .dims { width: 100%; }
}

@media (max-width: 760px) {
  .page-head { flex-direction: column; align-items: flex-start; padding: 12px 0 16px; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { padding: 12px 14px; }
  .sc-ic { display: none; }
  .sc-val { font-size: 21px; }
  .sc-bar { margin-top: 6px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 2px 14px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .fpill-wrap, .filter-reset { flex: none; }
  .filter-tools { flex: none; width: auto; margin-left: 4px; }
  .fpop, .fpop--wide, .fpop.to-left {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 62vh;
    overflow-y: auto;
  }
  .results-summary { margin-left: 0; width: 100%; }
  .refine { height: 46px; }
  .refine .btn { padding: 0 10px; }
  .metrics-bento { grid-template-columns: 1fr 1fr; }
  .metrics-bento .m-lead { grid-column: 1 / -1; grid-row: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-body { padding: 0 18px 48px; }
  .dw-cine { margin: 0 -18px; padding: 64px 18px 20px; }
  .dw-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .dw-hero .cover { width: 96px; }
  .dw-title { font-size: 23px; }
  .dw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .dw-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .dw-stats b { font-size: 22px; }
  .drawer-hint { display: none; }
  .rel-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .wallet-hero { gap: 24px; }
}

/* ---------- 登录框：登录原因 + 能用上什么 ---------- */
.modal-brand { margin-bottom: 16px; }
.auth-reason { max-width: 320px; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.auth-perks { list-style: none; margin: 0 0 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.auth-perks li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); }
.auth-perks .i { flex: none; width: 15px; height: 15px; color: var(--accent); }

/* ---------- 片库表格：没评测的书直接给「AI 评测」入口 ---------- */
.ai-try { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent-line); opacity: 0.72; transition: opacity var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
.ai-try .i { width: 13px; height: 13px; }
.row:hover .ai-try, .row.is-focus .ai-try, .ai-try:focus-visible { opacity: 1; }
.ai-try:hover { border-style: solid; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.ai-try.is-on { opacity: 1; color: var(--pos); background: var(--pos-soft); border: 1px solid color-mix(in srgb, var(--pos) 40%, transparent); }

/* ---------- 选品单空状态：四列看板示意 ---------- */
.fav-intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; padding: 36px 40px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); }
.fav-intro-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fav-intro-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.fav-intro-ic .i { width: 22px; height: 22px; }
.fav-intro-copy p { font-size: 13px; line-height: 1.8; color: var(--text-2); max-width: 420px; }
.fav-demo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fav-demo-lane { display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px dashed var(--line-2); animation: stRiseF 600ms var(--ease) calc(var(--i) * 90ms) both; }
.fav-demo-lane:nth-child(3) { border-color: var(--accent-line); background: var(--accent-soft); }
.fav-demo-head b { display: block; font-size: 12.5px; font-weight: 650; color: var(--text); }
.fav-demo-head span { display: block; margin-top: 2px; font-size: 11px; color: var(--text-3); }
.fav-demo-card { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 5px 8px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.fav-demo-card i { grid-row: 1 / 3; width: 22px; height: 30px; border-radius: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #333), #222); }
.fav-demo-card span { height: 6px; border-radius: 3px; background: var(--line-3); }
.fav-demo-card span:last-child { width: 60%; background: var(--line-2); }
.fav-demo-card.is-moving { animation: favMove 4.8s var(--ease-sheet) 0.8s infinite; }
@keyframes favMove {
  0%, 12% { transform: none; }
  30%, 45% { transform: translateX(calc(100% + 20px)) rotate(2deg); box-shadow: 0 18px 30px -12px var(--glow); }
  62%, 80% { transform: translateX(calc(200% + 40px)); }
  100% { transform: none; opacity: 1; }
}
@keyframes stRiseF { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .fav-demo-card.is-moving, .fav-demo-lane { animation: none; } }

/* ---------- 个人中心：修改密码 ---------- */
.pwd-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pwd-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 2px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pwd-toggle:hover { color: var(--text); }
.pwd-toggle .i { width: 15px; height: 15px; color: var(--accent); }
.pwd-toggle .chev { margin-left: auto; color: var(--text-3); transition: transform var(--t) var(--ease); }
.pwd-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pwd-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pwd-form[hidden] { display: none; }
.pwd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }

/* ---------- 后台：临时密码、导出记录 ---------- */
.temp-pwd { margin: 10px 0; padding: 12px 14px; border-radius: 12px; text-align: center; background: var(--accent-soft); border: 1px dashed var(--accent-line); }
.temp-pwd code { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); user-select: all; }
.exports-wrap { max-height: 360px; overflow-y: auto; }
.exp-query { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
