/**
 * wk_claude_pc.css — PC 工作台统一设计层（Claude 暖米灰 + 橙）
 *
 * 作用域：仅 PC 工作台 body.huashu-theme，排除 H5 嵌入(.h5-embed)与小程序(.h5-mp)。
 * 加载顺序：在所有旧主题之后，靠 scope 特异性 + 顺序覆盖；
 * 顶不动的内联 !important 处对应用 !important。
 * 不改 HTML/JS；huashu_theme / workbench_pc_v2 / batch_clone 暂留可回滚。
 */

/* ========== 设计 token ========== */
:root {
  --wk-bg: #F5F4EE;          /* 暖米灰底 */
  --wk-card: #FFFFFF;        /* 卡片/输入白 */
  --wk-card-sub: #FAF9F5;    /* 次级浅卡片 */
  --wk-border: #E8E5DD;      /* 主边框 */
  --wk-border-strong: #DDD9CE;
  --wk-ink: #2B2A27;         /* 主文字（深墨） */
  --wk-ink-sub: #6B6862;     /* 次文字 */
  --wk-ink-faint: #A8A39A;   /* 占位/弱 */

  --wk-orange: #D97757;      /* 主橙 */
  --wk-orange-hover: #C5654A;
  --wk-orange-soft: rgba(217, 119, 87, 0.12);
  --wk-orange-ring: rgba(217, 119, 87, 0.18);

  --wk-radius: 10px;
  --wk-radius-sm: 8px;
  --wk-radius-lg: 14px;
  --wk-shadow-sm: 0 1px 2px rgba(43, 42, 39, 0.04);
  --wk-shadow-md: 0 4px 14px rgba(43, 42, 39, 0.08);

  /* 衬线（仅标题/品牌；参考 Claude 标题字）：拉丁 Source Serif 4，中文 Noto Serif SC */
  --wk-font-serif: "Source Serif 4", "Noto Serif SC", Georgia, "Songti SC", "STSong", serif;
}

/* 衬线仅作用于标题层：列标题 + 模态/面板标题 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-col-title-cn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .recharge-panel__title,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #settingsModal h2,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-settings-title {
  font-family: var(--wk-font-serif) !important;
  letter-spacing: 0.01em;
}

/* ========== 画布底色 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) {
  background-color: var(--wk-bg);
  color: var(--wk-ink);
}

/* 顶栏：去掉深色，统一为白底米边 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-dark {
  background: var(--wk-card) !important;
  border-bottom: 1px solid var(--wk-border) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;   /* 左内边距交给 inner(20px) 控制，使 logo 与列标题左对齐 */
}
/* 顶栏整行布局：logo 左 / 操作区右（本页 body 无 wb-island-skin，v2 的布局规则不生效，这里自带） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-main {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-inner {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  margin: 0 !important;
  max-width: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-brand {
  flex: 0 0 auto !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-rail {
  display: none !important;
}

/* 顶栏品牌：橙图标 + LUKTOOL 字标 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .lk-brand {
  text-decoration: none;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .lk-brand-mark {
  display: inline-flex;
  align-items: center;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .lk-brand {
  align-items: center;
  gap: 10px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .lk-brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--wk-ink);
  line-height: 1;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .lk-brand-sub {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--wk-ink-faint);
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--wk-border-strong);
}

/* 顶栏右侧操作：深色可见 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions #creditsDisplay,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions a,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions button,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions span {
  color: var(--wk-ink-sub) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions a:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions button:hover {
  color: var(--wk-orange) !important;
}
/* 充值做成橙色小胶囊，突出 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions [data-recharge-open] {
  background: var(--wk-orange) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-actions [data-recharge-open]:hover {
  background: var(--wk-orange-hover) !important;
  color: #fff !important;
}

/* ========== 三列等宽固定 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) main > .flex-1.flex.overflow-hidden {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 0 !important;
  min-width: 0;
  background: var(--wk-bg);
}

/* 三列：等宽、统一内边距、米色分隔线 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside {
  min-width: 0 !important;
  width: auto !important;
  flex: none !important;
  background: var(--wk-bg) !important;
  padding: 20px !important;
  overflow-y: auto;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel {
  border-right: 1px solid var(--wk-border) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside {
  border-left: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #mainCol {
  max-width: none !important;
  margin: 0 !important;
}

/* 三列标题：小号中文 + 巨型描边英文 ghost */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-column-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  overflow: hidden;
  white-space: nowrap;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-col-title-cn {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wk-ink);
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-col-title-en {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #E7E3DA;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: clip;
}

/* ========== 主按钮（橙实心，三列共用 .btn / #genBtn / #batchGenerateBtn） ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #genBtn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchGenerateBtn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .btn:not(#batchClearBtn) {
  background: var(--wk-orange) !important;
  border: 1px solid var(--wk-orange) !important;
  color: #FFFFFF !important;
  border-radius: var(--wk-radius) !important;
  font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #genBtn:hover:not(:disabled),
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchGenerateBtn:hover:not(:disabled),
body.huashu-theme:not(.h5-embed):not(.h5-mp) .btn:not(#batchClearBtn):hover:not(:disabled) {
  background: var(--wk-orange-hover) !important;
  border-color: var(--wk-orange-hover) !important;
  box-shadow: var(--wk-shadow-md);
  transform: translateY(-1px);
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 次级按钮（批量清空）：白底米边 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClearBtn {
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  color: var(--wk-ink-sub) !important;
  border-radius: var(--wk-radius) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClearBtn:hover {
  background: var(--wk-card-sub) !important;
  border-color: var(--wk-ink-faint) !important;
}

/* 优化描述等文字按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #optBtn {
  color: var(--wk-orange);
  font-size: 12px;
  font-weight: 600;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #optBtn:hover { color: var(--wk-orange-hover); }

/* ========== 参数分段按钮（比例/清晰度/质量/数量，含中栏 batch-*） ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-mp-seg,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-count-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-aspect-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-res-btn {
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  color: var(--wk-ink-sub) !important;
  border-radius: var(--wk-radius-sm) !important;
  font-weight: 500;
  transition: all .15s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-btn:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-res-btn:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-mp-seg:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-count-btn:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-aspect-btn:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-res-btn:hover {
  border-color: var(--wk-orange) !important;
  color: var(--wk-ink) !important;
}
/* 选中态：浅橙底 + 橙边 + 橙字 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-btn.wk-aspect-active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-res-btn.wk-res-active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-mp-seg.wk-aspect-active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-mp-seg.wk-res-active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-count-btn.wk-res-active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-aspect-btn.active,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-res-btn.active {
  background: var(--wk-orange-soft) !important;
  border-color: var(--wk-orange) !important;
  color: var(--wk-orange-hover) !important;
  font-weight: 600;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-res-sub {
  color: var(--wk-ink-faint) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-btn.wk-aspect-active .wk-res-sub,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-res-btn.wk-res-active .wk-res-sub {
  color: var(--wk-orange-hover) !important;
}

/* ========== 参考图框：左栏 .wk-ref-dash-slot 与中栏 .batch-upload-slot 统一 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .slot.wk-ref-dash-slot,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-single-upload {
  background: var(--wk-card) !important;
  border: 1.5px dashed var(--wk-border-strong) !important;
  border-radius: var(--wk-radius) !important;
  color: var(--wk-ink-faint) !important;
  transition: border-color .15s ease, background .15s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .slot.wk-ref-dash-slot:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-single-upload:hover {
  border-color: var(--wk-orange) !important;
  background: var(--wk-orange-soft) !important;
}
/* 参考框标签 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-dash-lbl {
  color: var(--wk-ink-faint) !important;
  font-size: 12px;
}
/* 粘贴按钮：简约小胶囊 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-paste {
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  color: var(--wk-ink-sub) !important;
  border-radius: 999px !important;
  font-size: 11px;
  padding: 2px 10px;
  transition: all .15s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-paste:hover {
  border-color: var(--wk-orange) !important;
  color: var(--wk-orange) !important;
}

/* ========== 输入框 / textarea ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #prompt,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchPrompt,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #negativePrompt,
body.huashu-theme:not(.h5-embed):not(.h5-mp) input[type="text"],
body.huashu-theme:not(.h5-embed):not(.h5-mp) input[type="number"] {
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  color: var(--wk-ink) !important;
  border-radius: var(--wk-radius) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #prompt::placeholder,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchPrompt::placeholder,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #negativePrompt::placeholder {
  color: var(--wk-ink-faint) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #prompt:focus,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchPrompt:focus,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #negativePrompt:focus {
  border-color: var(--wk-orange) !important;
  box-shadow: 0 0 0 3px var(--wk-orange-ring) !important;
  outline: none !important;
}

/* ========== 卡片化区块（参数区/参考区留白） ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .tpl-banner {
  background: var(--wk-orange-soft) !important;
  border: 1px solid var(--wk-orange) !important;
  border-radius: var(--wk-radius) !important;
  color: var(--wk-ink) !important;
}

/* ========== 图库（右栏） ========== */
/* 顶部细工具条：右对齐「批量操作」按钮（galCount 隐藏，按钮常驻可见） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-height: 0 !important;
  padding: 0 0 8px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-head #galCount { display: none !important; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside #galBatchBtn {
  color: var(--wk-orange) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside #galBatchBtn:hover { color: var(--wk-orange-hover) !important; }
/* tab:左列分段按钮风格(独立白底圆角边框、选中橙) */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-tabs {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 6px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-tab {
  flex: 1 1 0 !important;
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  border-radius: var(--wk-radius-sm) !important;
  color: var(--wk-ink-sub) !important;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 4px !important;
  text-align: center;
  transition: all .15s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-tab:hover {
  border-color: var(--wk-orange) !important;
  color: var(--wk-ink) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-tab.on {
  background: var(--wk-orange-soft) !important;
  border-color: var(--wk-orange) !important;
  color: var(--wk-orange-hover) !important;
  font-weight: 600;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-cell {
  border: 1px solid var(--wk-border) !important;
  border-radius: var(--wk-radius) !important;
  background: var(--wk-card) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-cell:hover {
  border-color: var(--wk-orange) !important;
  box-shadow: var(--wk-shadow-md);
}

/* ========== 第二轮：左列重排 ========== */
/* 隐藏模型选择，参数网格由 4 列变 3 列 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkMpModelSlot {
  display: none !important;
}
/* 清晰度 + 质量 同行（2 列），数量单独整行 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkParamsGrid {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkParamsGrid > .wk-mp-param-col:last-child {
  grid-column: 1 / -1 !important;
}
/* 堆叠后显示参数标签 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkParamsGrid .wk-param-label--pc-hidden {
  display: block !important;
  font-size: 12px;
  color: #555555;
  margin-bottom: 6px;
}

/* 比例按钮：形状示意 + 文字 + 像素，紧凑不溢出 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkAspectBar {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-auto-top {
  font-size: 16px !important;
  font-weight: 800 !important;
}
/* 去掉自定义比例：浮层面板不可达，彻底隐藏 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCustomRow {
  display: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkAspectBar .wk-aspect-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 4px !important;
  min-width: 0;
}
/* 固定高度图标槽：让所有比例按钮的文字/像素整行齐平 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-icon {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-shape {
  display: block;
  border: 1.5px solid var(--wk-ink-faint);
  border-radius: 2px;
  background: transparent;
  flex: 0 0 auto;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-btn.wk-aspect-active .wk-aspect-shape {
  border-color: var(--wk-orange);
  background: var(--wk-orange-soft);
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-aspect-main {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkAspectBar .wk-res-sub {
  font-size: 9px !important;
  line-height: 1.1;
  white-space: nowrap;
}

/* 清晰度 / 质量 行：横向等分 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkQualityRow {
  display: flex !important;
  gap: 6px !important;
}

/* 参数分段按钮文字不超框 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkQualityRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCountRow .wk-count-btn {
  padding: 8px 4px !important;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow .wk-res-sub {
  font-size: 9px !important;
  white-space: nowrap;
}
/* 数量 1-8 一行等分 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCountRow {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

/* 参考图 4 框：固定小尺寸，上传后不变大 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-dashed-row {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .slot.wk-ref-dash-slot {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 6px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .slot.wk-ref-dash-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* 删底部状态条（蓝框/粉框） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #stBar,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #errBar {
  display: none !important;
}

/* ========== 第二轮：批量复刻重排 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-sec-label {
  font-size: 12px;
  font-weight: 500;
  color: #555555;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #refImageCount {
  color: var(--wk-ink-faint);
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchOptBtn {
  color: var(--wk-orange);
  font-size: 12px;
  font-weight: 600;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchOptBtn:hover { color: var(--wk-orange-hover); }

/* 参考图 14 槽（7×2）：矮、虚线、对齐左栏风格 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #refImageGrid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot {
  position: relative;
  height: 64px !important;
  min-height: 64px !important;
  padding: 6px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--wk-card) !important;
  border: 1.5px dashed var(--wk-border-strong) !important;
  border-radius: var(--wk-radius-sm) !important;
  overflow: hidden;
  cursor: pointer;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot:hover {
  border-color: var(--wk-orange) !important;
  background: var(--wk-orange-soft) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-slot-lbl,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-lbl {
  font-size: 10px;
  color: var(--wk-ink-faint);
  white-space: nowrap;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot.has-image,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-slot.has-image {
  border-style: solid !important;
  padding: 0 !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot img,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 产品 / Logo / 模特：一行三框 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-slot {
  position: relative;
  height: 84px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--wk-card) !important;
  border: 1.5px dashed var(--wk-border-strong) !important;
  border-radius: var(--wk-radius) !important;
  overflow: hidden;
  cursor: pointer;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-slot:hover {
  border-color: var(--wk-orange) !important;
  background: var(--wk-orange-soft) !important;
}

/* 产品双图/Logo/模特：四框一行 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-grid-4 .batch-trio-slot {
  min-width: 0 !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  height: 72px !important;
}
/* 产品双图(左) + 反向提示词(右) 同行 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-neg-row {
  display: flex !important;
  gap: 12px;
  align-items: stretch;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-col { flex: 1.5 1 0; min-width: 0; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-neg-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchNegativePrompt {
  flex: 1 1 auto;
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border-strong) !important;
  color: var(--wk-ink) !important;
  border-radius: var(--wk-radius) !important;
  min-height: 84px;
  font-size: 12px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchNegativePrompt::placeholder { color: var(--wk-ink-faint) !important; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchNegativePrompt:focus {
  border-color: var(--wk-orange) !important;
  box-shadow: 0 0 0 3px var(--wk-orange-ring) !important;
  outline: none !important;
}

/* 批量比例条：5×2，按钮竖排 形状+文字+像素（对齐左栏 #wkAspectBar） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .batch-aspect-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 4px !important;
  min-width: 0;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .wk-aspect-shape {
  border: 1.5px solid var(--wk-ink-faint);
  border-radius: 2px;
  background: transparent;
  flex: 0 0 auto;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .batch-aspect-btn.active .wk-aspect-shape {
  border-color: var(--wk-orange);
  background: var(--wk-orange-soft);
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .wk-aspect-main {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .wk-res-sub {
  font-size: 9px !important;
  line-height: 1.1;
  white-space: nowrap;
}

/* 批量 清晰度 + 质量 同行 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-param-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchQualityRow {
  display: flex !important;
  gap: 6px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow .batch-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchQualityRow .batch-res-btn {
  padding: 8px 4px !important;
  font-size: 13px;
  white-space: nowrap;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow .wk-res-sub {
  font-size: 9px !important;
  white-space: nowrap;
}

/* 删除 × 按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  line-height: 16px; text-align: center;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}

/* 批量提示词框与左栏描述等高 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchPrompt {
  min-height: 96px;
}

/* ========== 我的图片：3 列 + 操作按钮常驻图下 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-cell {
  position: relative;
  display: flex !important;
  flex-direction: column;
  aspect-ratio: auto !important;
  height: auto !important;
  overflow: hidden;
  background: var(--wk-card) !important;
  border: 1px solid var(--wk-border) !important;
  border-radius: var(--wk-radius) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-cell img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block;
}
/* 去掉一切蓝色阴影/glow/ring，统一中性+橙 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-cell,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-cell:hover,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside [class*="pending"],
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .wk-task-card {
  box-shadow: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-cell:hover {
  border-color: var(--wk-orange) !important;
  box-shadow: var(--wk-shadow-md) !important;
}
/* 操作行：常驻在缩略图下方 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-overlay {
  position: static !important;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 5px;
  background: var(--wk-card-sub) !important;
  border-top: 1px solid var(--wk-border);
  opacity: 1 !important;
  justify-content: center;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-btn {
  flex: 0 1 auto;
  min-width: 0;
  background: #fff !important;
  color: var(--wk-ink-sub) !important;
  border: 1px solid var(--wk-border-strong) !important;
  border-radius: 6px !important;
  padding: 3px 4px !important;
  font-size: 10px !important;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-btn:hover {
  background: var(--wk-orange) !important;
  color: #fff !important;
  border-color: var(--wk-orange) !important;
}
/* 收藏爱心：图片右上角常驻 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-heart {
  position: absolute;
  top: 6px; right: 6px;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  cursor: pointer;
  z-index: 2;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-heart.gal-heart-in {
  color: var(--wk-orange);
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}
/* 灰样图占位：图本身即灰，hover 仍显示按钮供调样式 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-sample {
  cursor: default;
}

/* ========== 页脚 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-footer {
  flex: 0 0 auto;
  padding: 10px 20px;
  background: var(--wk-card);
  border-top: 1px solid var(--wk-border);
  font-size: 11px;
  color: var(--wk-ink-faint);
  text-align: left;
}
/* H5 / 小程序不显示 PC 专属装饰元素（避免无样式裸字污染移动端） */
body.huashu-theme.h5-embed .wk-pc-footer,
body.huashu-theme.h5-mp .wk-pc-footer,
body.huashu-theme.h5-embed .wk-col-title-en,
body.huashu-theme.h5-mp .wk-col-title-en,
body.huashu-theme.h5-embed .lk-brand-sub,
body.huashu-theme.h5-mp .lk-brand-sub,
body.huashu-theme.h5-embed .wk-aspect-auto-top,
body.huashu-theme.h5-mp .wk-aspect-auto-top {
  display: none !important;
}

/* ========== 一屏适配 M1 Pro 14"（1512×~860）+ 图1舒展比例 ========== */
/* 顶栏高度（与设计稿一致） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-header-dark {
  height: 52px !important;
  flex: 0 0 52px !important;
}
/* 三列内边距 + 左中列控件不滚、右列图库内部可滚 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside {
  padding: 10px 14px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel {
  overflow: hidden !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside {
  overflow-y: auto !important;
}
/* 区块间距 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll .mb-4,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel .mb-4,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll .mb-2,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel .mb-2,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkRatioSection {
  margin-bottom: 8px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkParamsGrid {
  margin-bottom: 8px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkRefSlotsAnchor {
  margin-top: 0 !important;
}
/* 标题 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-column-title { margin-bottom: 6px !important; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-col-title-en { font-size: 23px !important; }
/* 比例按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkAspectBar .wk-aspect-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar .batch-aspect-btn {
  padding: 4px 4px !important;
  gap: 2px !important;
}
/* 清晰度/质量/数量按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkQualityRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow .batch-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchQualityRow .batch-res-btn {
  padding: 4px 4px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCountRow .wk-count-btn {
  padding: 5px 4px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkAspectBar,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchAspectBar {
  gap: 4px !important;
}
/* 参数标签下边距 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkParamsGrid .wk-param-label--pc-hidden,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-sec-label {
  margin-bottom: 6px !important;
}
/* 参考图槽（宽随 grid，高舒展） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .slot.wk-ref-dash-slot {
  height: 60px !important; min-height: 60px !important; max-height: 60px !important;
  aspect-ratio: auto !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: var(--wk-radius) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-upload-slot {
  aspect-ratio: auto !important;
  height: 40px !important; min-height: 40px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-dash-lbl {
  font-size: 12px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-ref-dashed-row .wk-ref-paste {
  padding: 3px 12px !important;
  font-size: 12px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-grid-4 .batch-trio-slot {
  height: 58px !important;
  padding: 6px !important;
  gap: 4px !important;
}
/* 批量参考槽/trio 的"粘贴"按钮改小,与外框留白、不贴边 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #refImageGrid .wk-ref-paste,
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-trio-slot .wk-ref-paste {
  padding: 0 8px !important;
  font-size: 10px !important;
  line-height: 16px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #refImageGrid .batch-upload-slot {
  gap: 2px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #refImageGrid .batch-slot-lbl {
  line-height: 1.1 !important;
}
/* textarea：正向高框（对齐图1） */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #negativePrompt {
  min-height: 38px !important; max-height: 38px !important; height: 38px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-negative-prompt-block {
  margin-bottom: 8px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll #prompt {
  height: 90px !important; min-height: 90px !important; max-height: 90px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchPrompt {
  min-height: 143px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchNegativePrompt {
  flex: 0 0 auto !important;
  height: 48px !important; min-height: 48px !important; max-height: 48px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  overflow-y: auto !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .batch-neg-col { align-self: flex-start !important; }
/* 生成 / 批量按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #genBtn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchGenerateBtn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClearBtn {
  padding-top: 10px !important; padding-bottom: 10px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #genBtn {
  margin-top: 8px !important;
}
/* 页脚 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-pc-footer {
  padding: 8px 16px !important;
}

/* ========== 底部按钮对齐(弹性):正向框撑开,按钮顶到列底,跨宽度自动齐平 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel {
  display: flex !important;
  flex-direction: column !important;
}
/* 标题与中列顶部固定区块禁止被纵向压缩，只让正向框吸收收缩 →
   两列顶部对齐、标题不被压扁、参考图不顶到标题 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll > .wk-column-title,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel > .wk-column-title,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel > .mb-4:not(:has(#batchPrompt)),
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel > .batch-trio-neg-row,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel > .batch-param-row {
  flex: 0 0 auto !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll > #mainCol {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-width: none !important;
}
/* 左列正向框撑开 → 生成按钮到列底 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll .wk-prompt-block {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll #prompt {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 50px !important;
  max-height: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkCenterScroll #genBtn { flex: 0 0 auto !important; }
/* 中列正向框撑开 → 比例/清晰度/质量/按钮被顶到列底 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel .mb-4:has(#batchPrompt) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchClonePanel #batchPrompt {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 50px !important;
  max-height: none !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchActionRow { flex: 0 0 auto !important; }

/* ========== 清晰度 / 质量 按钮等高 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkQualityRow .wk-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow .batch-res-btn,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchQualityRow .batch-res-btn {
  height: 42px !important;
  min-height: 42px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkResRow .wk-res-sub,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkQualityRow .wk-res-sub,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchResRow .wk-res-sub,
body.huashu-theme:not(.h5-embed):not(.h5-mp) #batchQualityRow .wk-res-sub {
  white-space: nowrap !important;
}

/* 顶栏积分刷新图标按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-credits-refresh {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 0;
}

/* ========== 焦点可达性 / 选区 ========== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) ::selection {
  background: var(--wk-orange-ring);
  color: var(--wk-ink);
}

/* ========== 像素数字滚动后的回弹 ========== */
.wk-res-sub.wk-num-pop {
  animation: wkNumPop 200ms ease-out;
}
@keyframes wkNumPop {
  0% { transform: scale(1.14); color: var(--wk-orange); }
  100% { transform: scale(1); }
}

/* ========== 图库「参」二选小菜单 ========== */
.wk-ref-menu {
  position: fixed;
  z-index: 9999;
  min-width: 132px;
  padding: 4px;
  background: var(--wk-card, #fff);
  border: 1px solid var(--wk-border-strong, #ddd9ce);
  border-radius: var(--wk-radius-sm, 8px);
  box-shadow: var(--wk-shadow-md, 0 4px 14px rgba(43, 42, 39, 0.14));
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: wkRefMenuIn 120ms ease-out;
}
@keyframes wkRefMenuIn {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.wk-ref-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--wk-ink, #2b2a27);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.wk-ref-menu-item:hover {
  background: var(--wk-orange-soft, rgba(217, 119, 87, 0.12));
  color: var(--wk-orange-hover, #c5654a);
}

/* ========== 预览大图自适应视口（三端通用，不加 PC scope）==========
   注意：用 vw/vh（相对视口的确定值）而非 100%——#modalImg 外层 wrapper 高度由图片
   撑开=不定高，max-height:100% 对其无效会导致大图溢出只见局部。 */
#imgModal #modalImg,
#modalImg {
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transform-origin: center center;
  will-change: transform;
}

/* 右栏标题不可被纵向压缩：作品/收藏夹图多时也常驻显示「我的图片 MY CREATIONS」 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #wkTaskAside > .wk-column-title {
  flex: 0 0 auto !important;
}

/* ===================== 暗色皮肤（参考 Claude 暖暗）===================== */
/* 主题切换按钮 + 日/月图标 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 0;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: var(--wk-ink-sub) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-theme-toggle:hover { color: var(--wk-orange) !important; }
body.huashu-theme:not(.h5-embed):not(.h5-mp) .wk-theme-ic-sun { display: none; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .wk-theme-ic-moon { display: none; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .wk-theme-ic-sun { display: inline; }

/* token 覆盖：整套暖暗调色板（大部分组件走 var(--wk-*) 自动生效） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) {
  --wk-bg: #1C1B19;
  --wk-card: #262522;
  --wk-card-sub: #211F1D;
  --wk-border: #38352F;
  --wk-border-strong: #4A463F;
  --wk-ink: #ECE9E2;
  --wk-ink-sub: #ADA89E;
  --wk-ink-faint: #79756C;
  --wk-orange: #D97757;
  --wk-orange-hover: #E5906F;
  --wk-orange-soft: rgba(217, 119, 87, 0.16);
  --wk-orange-ring: rgba(217, 119, 87, 0.32);
  --wk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --wk-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* 顶栏 / 右栏：兜底（HTML 带 bg-white / 内联白） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .wk-pc-header {
  background: var(--wk-card) !important;
  border-bottom-color: var(--wk-border) !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #wkTaskAside { background: var(--wk-bg) !important; }

/* 列标题巨型英文水印：暗底改为极暗描边色（否则浅色水印过亮） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .wk-col-title-en { color: #2E2C28 !important; }

/* 批量区段标题（硬编码 #555） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .batch-sec-label { color: var(--wk-ink-sub) !important; }

/* 图库卡片操作按钮（硬编码 #fff 底） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-btn {
  background: var(--wk-card) !important;
  color: var(--wk-ink-sub) !important;
  border-color: var(--wk-border-strong) !important;
}

/* 图库批量动作条（内联 #f9fafb / #e5e7eb） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #galBatchActionBar {
  background: var(--wk-card-sub) !important;
  border-bottom-color: var(--wk-border) !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #galBatchSelectedCount { color: var(--wk-ink-sub) !important; }
/* 全选按钮（内联白底浅边） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #batchActionSelectAll {
  background: var(--wk-card) !important;
  color: var(--wk-ink) !important;
  border-color: var(--wk-border-strong) !important;
}

/* 灰样图占位：暗底下压暗，避免过亮 */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #wkTaskAside .gal-sample img,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .gal-cell.gal-sample { filter: brightness(0.62); }

/* 图片预览遮罩 */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) #imgModal { background: rgba(0, 0, 0, 0.82) !important; }

/* 充值弹窗（暗色；二维码保持白底以便扫描） */
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-modal__card {
  background: var(--wk-card) !important;
  color: var(--wk-ink) !important;
  border: 1px solid var(--wk-border) !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-panel__title,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-scan__head,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-code__head { color: var(--wk-ink) !important; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-modal__close { color: var(--wk-ink-sub) !important; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-lead,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-scan,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-plan-btn,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-code {
  background: var(--wk-card-sub) !important;
  border-color: var(--wk-border) !important;
  color: var(--wk-ink) !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-scan__hint,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-code__hint,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-plan-btn__meta,
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-or { color: var(--wk-ink-sub) !important; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-plan-btn:hover { border-color: var(--wk-orange) !important; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-code-input {
  background: var(--wk-card) !important;
  border-color: var(--wk-border-strong) !important;
  color: var(--wk-ink) !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .recharge-xianyu-line a { color: var(--wk-orange) !important; }

/* ===================== 图库批量动作条 + 按钮（Claude 风）===================== */
body.huashu-theme:not(.h5-embed):not(.h5-mp) #galBatchActionBar {
  background: var(--wk-card-sub) !important;
  border-bottom: 1px solid var(--wk-border) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) #galBatchSelectedCount { color: var(--wk-ink-sub) !important; }

/* 默认：中性幽灵按钮 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini {
  background: var(--wk-card) !important;
  color: var(--wk-ink-sub) !important;
  border: 1px solid var(--wk-border-strong) !important;
  padding: 4px 11px !important;
  border-radius: var(--wk-radius-sm) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini:hover {
  border-color: var(--wk-orange) !important;
  color: var(--wk-orange-hover) !important;
}
/* 主操作（下载 / 加收藏）：橙描边浅橙底，hover 实心橙 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-primary {
  background: var(--wk-orange-soft) !important;
  color: var(--wk-orange-hover) !important;
  border-color: var(--wk-orange) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-primary:hover {
  background: var(--wk-orange) !important;
  color: #fff !important;
}
/* 破坏性（移入回收站 / 永久删除）：克制砖红字，不用大红实心 */
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-danger {
  background: var(--wk-card) !important;
  color: #B3553C !important;
  border-color: var(--wk-border-strong) !important;
}
body.huashu-theme:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-danger:hover {
  border-color: #C2603F !important;
  color: #C2603F !important;
}
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-danger { color: #D98368 !important; }
body.huashu-theme.wk-dark:not(.h5-embed):not(.h5-mp) .gal-mini.gal-mini-danger:hover { color: #E5957B !important; border-color: #E5957B !important; }
