/* ============================================================
 * tech.css —— 科技感 / 炫酷视觉层（v3 · 强化版）
 * ------------------------------------------------------------
 * 设计思路：**深色霓虹框架 + 亮色工作区**
 *   · 框架（PC 左侧栏、手机底部导航、顶栏装饰）→ 深蓝黑 + 霓虹发光
 *   · 工作区（画布、卡片、表单）→ 保持浅色，保证可读性
 * 只做视觉，不改任何 DOM 结构与交互逻辑。
 * 主题色：主 #34d399 · 紫 #10b981 · 青 #a3e635
 * ============================================================ */

:root {
  --tk-p1: #34d399;
  --tk-p2: #10b981;
  --tk-p3: #a3e635;
  --tk-ink: #1f2959;
  --tk-line: rgba(52, 211, 153, .16);
  --tk-glass: rgba(255, 255, 255, .74);
  --tk-grad: linear-gradient(120deg, #34d399, #10b981 58%, #a3e635);
  /* 深色科技框架 */
  --tk-dark-1: #04120d;
  --tk-dark-2: #0a2a20;
  --tk-neon: rgba(110, 231, 183, .85);
}

/* ============================================================
 * 1. 背景：柔光晕 + 精密网格（网格缓慢流动）
 * ============================================================ */
body:not(.admin-body) {
  background-color: #f2fbf6;
  background-image:
    radial-gradient(1100px 560px at 10% -12%, rgba(52, 211, 153, .20), transparent 62%),
    radial-gradient(900px 520px at 102% -4%, rgba(163, 230, 53, .18), transparent 58%),
    radial-gradient(760px 460px at 50% 118%, rgba(16, 185, 129, .14), transparent 60%),
    linear-gradient(rgba(52, 211, 153, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, .06) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px, 34px 34px;
  background-attachment: fixed;
  animation: tk-grid 26s linear infinite;
}
@keyframes tk-grid {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0, 34px 34px, 34px 34px; }
}

/* 页面顶部流动光带 */
body:not(.admin-body)::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, transparent, #34d399, #10b981, #a3e635, transparent);
  background-size: 200% 100%;
  animation: tk-flow 3.2s linear infinite;
  box-shadow: 0 0 14px rgba(52, 211, 153, .9);
  pointer-events: none;
}
@keyframes tk-flow { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* ============================================================
 * 2. 顶栏：毛玻璃 + 霓虹底边 + 渐变标题
 * ============================================================ */
.topbar {
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  position: relative;
  box-shadow: 0 10px 30px -24px rgba(31, 41, 89, .7);
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tk-p1), var(--tk-p3), transparent);
  opacity: .8;
  pointer-events: none;
}
.topbar .title {
  background: var(--tk-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: .4px;
  text-shadow: 0 0 22px rgba(52, 211, 153, .28);
}
.topbar .status .dot {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18), 0 0 12px rgba(16, 185, 129, .9);
  animation: tk-pulse 2.1s ease-in-out infinite;
}
@keyframes tk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }

/* 设备切换按钮 */
.ws-device-switch,
.m-pc-switch {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--tk-line);
  background: rgba(255, 255, 255, .9);
  color: #4a5568;
  text-decoration: none;
  white-space: nowrap;
  transition: all .16s ease;
}
.ws-device-switch:hover,
.m-pc-switch:hover {
  border-color: rgba(52, 211, 153, .6);
  color: #3b46b8;
  box-shadow: 0 8px 20px -12px rgba(52, 211, 153, 1), 0 0 0 3px rgba(52, 211, 153, .1);
}
.m-pc-switch { margin: 0; font-size: 10px; padding: 5px 8px; }

/* ============================================================
 * 3. PC（≥1080px）：左侧「深色霓虹指挥舱」
 * ============================================================ */
@media (min-width: 1080px) {
  .ws-page { padding-left: 248px; }

  /* 悬浮玻璃舱：不再贴边一大块黑，而是带留边圆角的独立玻璃面板 */
  .ws-page .top-nav {
    position: fixed;
    left: 14px; top: 14px; bottom: 14px;
    width: 222px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 18px 12px 16px;
    margin: 0;
    overflow-y: auto;
    z-index: 950;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .93) 0%, rgba(236, 253, 245, .9) 60%, rgba(240, 253, 248, .92) 100%);
    border: 1px solid rgba(16, 185, 129, .22);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 34px 80px -48px rgba(5, 150, 105, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
  }
  /* 网格纹理层（弱化，随圆角裁切） */
  .ws-page .top-nav::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(16, 185, 129, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(16, 185, 129, .07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 75%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 75%);
  }
  /* 侧栏标题 */
  .ws-page .top-nav::before {
    content: '⌁ 工作舱';
    position: relative; z-index: 1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #0e9f6e;
    text-shadow: none;
    padding: 2px 10px 12px;
    border-bottom: 1px solid rgba(16, 185, 129, .16);
    margin-bottom: 8px;
  }
  .ws-page .top-nav a {
    position: relative; z-index: 1;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    border-radius: 12px !important;
    padding: 10px 13px !important;
    font-size: 13.5px !important;
    border: 0 !important;
    color: #416257 !important;
    transition: all .18s ease;
  }
  .ws-page .top-nav a:hover {
    color: #065f46 !important;
    background: rgba(16, 185, 129, .12) !important;
    transform: translateX(3px);
  }
  /* 选中项：亮绿填充胶囊（浅绿主题的视觉重心） */
  .ws-page .top-nav a.active {
    color: #065f46 !important;
    font-weight: 800;
    background: linear-gradient(120deg, #34d399, #a3e635) !important;
    box-shadow: 0 12px 26px -12px rgba(52, 211, 153, 1), 0 0 0 1px rgba(110, 231, 183, .5);
    text-shadow: none;
  }
  .ws-page .top-nav a.active::before {
    content: '';
    position: absolute; left: 0; top: 24%; bottom: 24%; width: 3px; border-radius: 2px;
    background: rgba(6, 32, 24, .8);
  }
  .ws-page .top-nav .divider { display: none; }

  .ws-page .main { padding: 8px 30px 46px 16px; max-width: 1680px; }
}

/* ============================================================
 * 4. 面板 / 卡片：玻璃拟态 + 霓虹描边
 * ============================================================ */
.panel,
.canvas-wrapper,
.ws-card,
.card { border-radius: 18px; }

.workspace .panel {
  background: var(--tk-glass);
  -webkit-backdrop-filter: blur(10px) saturate(155%);
  backdrop-filter: blur(10px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 22px 58px -36px rgba(31, 41, 89, .55), 0 0 0 1px rgba(52, 211, 153, .07);
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}
.workspace .panel:hover {
  box-shadow: 0 28px 68px -36px rgba(52, 211, 153, .95), 0 0 0 1px rgba(52, 211, 153, .28);
}
.workspace .panel::before {
  content: '';
  position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .9), rgba(163, 230, 53, .9), transparent);
  opacity: .6;
  pointer-events: none;
}
.workspace .panel.active { animation: tk-in .36s cubic-bezier(.22, 1, .36, 1); }
@keyframes tk-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
 * 5. 主按钮：渐变 + 霓虹光晕 + 扫光特效
 * ============================================================ */
.gen-btn,
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--tk-grad);
  background-size: 180% 100%;
  border: 0;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px -14px rgba(52, 211, 153, 1), inset 0 1px 0 rgba(255, 255, 255, .34);
  transition: transform .16s ease, box-shadow .16s ease, background-position .5s ease;
}
.gen-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 20px 42px -14px rgba(52, 211, 153, 1), 0 0 26px -6px rgba(16, 185, 129, .9);
}
.gen-btn:active,
.btn-primary:active { transform: translateY(0) scale(.99); }
/* 扫光 */
.gen-btn::after,
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .58), transparent);
  transform: skewX(-18deg);
  animation: tk-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tk-shine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }
.gen-btn .cost {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ============================================================
 * 6. 选项按钮（分辨率等）：选中霓虹发光
 * ============================================================ */
.btn-grid { gap: 10px; }
.btn-grid .opt {
  border-radius: 12px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.btn-grid .opt:hover { transform: translateY(-1px); }
.btn-grid .opt.active {
  background: linear-gradient(120deg, rgba(52, 211, 153, .18), rgba(163, 230, 53, .16));
  border-color: rgba(52, 211, 153, .7);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .14), 0 10px 26px -14px rgba(52, 211, 153, 1);
  color: #3b46b8;
  font-weight: 700;
}

/* ============================================================
 * 7. 表单 / 进度条 / 滚动条
 * ============================================================ */
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(52, 211, 153, .65);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .14), 0 0 18px -6px rgba(52, 211, 153, .9);
  outline: none;
}
#progress-bar,
.progress-bar {
  background: var(--tk-grad);
  background-size: 200% 100%;
  animation: tk-flow 2.2s linear infinite;
  box-shadow: 0 0 14px rgba(52, 211, 153, .75);
}
* { scrollbar-width: thin; scrollbar-color: rgba(52, 211, 153, .5) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(52, 211, 153, .55), rgba(16, 185, 129, .55));
  border: 3px solid transparent;
  border-radius: 20px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #34d399, #10b981); background-clip: padding-box; }

/* ============================================================
 * 8. 图片 / 占位
 * ============================================================ */
.workspace .viewport img,
img#free-img {
  border-radius: 14px;
  box-shadow: 0 20px 46px -26px rgba(31, 41, 89, .62);
  transition: transform .25s ease, box-shadow .25s ease;
}
.workspace .viewport img:hover,
img#free-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -26px rgba(52, 211, 153, .85);
}
.placeholder {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(52, 211, 153, .07), rgba(163, 230, 53, .12), rgba(52, 211, 153, .07));
  background-size: 200% 100%;
  animation: tk-flow 3s linear infinite;
  border: 1px dashed rgba(52, 211, 153, .32);
}

/* ============================================================
 * 9. 手机端（≤767px）：吸顶毛玻璃 + 深色霓虹底栏
 * ============================================================ */
@media (max-width: 767px) {
  .m-page .h5-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    border-bottom: 1px solid rgba(16, 185, 129, .16);
  }
  .m-page .h5-header h1,
  .m-page .h5-header h1 span { color: #065f46 !important; text-shadow: none; }
  .m-page .h5-header .credits { color: #065f46 !important; }
  .m-page .h5-header .m-pc-switch {
    background: rgba(16, 185, 129, .1) !important;
    border-color: rgba(16, 185, 129, .3) !important;
    color: #0e9f6e !important;
  }
  .m-page .h5-header .recharge-btn {
    background: linear-gradient(120deg, #34d399, #a3e635) !important;
    color: #065f46 !important;
    border: 0 !important;
    font-weight: 800;
  }

  /* 悬浮胶囊底栏：不再一整条黑贴边 */
  .m-page .h5-tabbar {
    position: fixed !important;
    left: 10px; right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 20px !important;
    padding: 6px 4px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(240, 253, 248, .93)) !important;
    border: 1px solid rgba(16, 185, 129, .22) !important;
    border-top: 1px solid rgba(16, 185, 129, .22) !important;
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    backdrop-filter: blur(18px) saturate(165%);
    box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(52, 211, 153, .1) !important;
  }
  .m-page .h5-tabbar .tab-item { color: #64748b !important; border-radius: 14px; }
  .m-page .h5-tabbar .tab-item.active {
    color: #065f46 !important;
    background: linear-gradient(120deg, #34d399, #a3e635) !important;
    text-shadow: none;
    box-shadow: 0 10px 24px -12px rgba(52, 211, 153, 1);
  }
  .m-page .h5-tabbar .tab-item.active .ico {
    filter: none;
    transform: scale(1.12);
  }
  .m-page .h5-tabbar .tab-item.active::after { display: none; }
  /* 给悬浮底栏留出空间，内容不被遮住 */
  .m-page .h5-body { padding-bottom: 96px !important; }
  .m-page .canvas-card { border-radius: 16px; }

  /* ---------- 手机端：参考图上传框（此前无样式，裸 emoji 直接暴露） ---------- */
  .m-page .upload-box {
    position: relative;
    border: 1.6px dashed rgba(52, 211, 153, .5);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(52, 211, 153, .06), rgba(163, 230, 53, .04));
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
  }
  .m-page .upload-box:hover,
  .m-page .upload-box:active {
    border-color: rgba(52, 211, 153, .9);
    background: linear-gradient(180deg, rgba(52, 211, 153, .12), rgba(163, 230, 53, .08));
    box-shadow: 0 14px 34px -22px rgba(52, 211, 153, 1), 0 0 0 3px rgba(52, 211, 153, .1);
  }
  .m-page .upload-box.has-image {
    border-style: solid;
    border-color: rgba(52, 211, 153, .65);
  }
  .m-page .upload-box .empty-text .icon {
    width: 52px; height: 52px; line-height: 52px;
    margin: 0 auto 8px;
    border-radius: 16px;
    font-size: 22px;
    background: linear-gradient(135deg, #34d399, #a3e635);
    color: #065f46;
    box-shadow: 0 12px 26px -12px rgba(52, 211, 153, 1), inset 0 1px 0 rgba(255, 255, 255, .4);
    animation: tk-breathe 3.6s ease-in-out infinite;
  }
  .m-page .upload-box .empty-text p {
    font-size: 13px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 4px;
  }
  .m-page .upload-box .empty-text .sub { font-size: 11px; color: var(--text-subtle, #94a3b8); }
  .m-page .upload-box .preview img { border-radius: 12px; border: 1px solid rgba(52, 211, 153, .35); }
  .m-page .upload-box .preview .actions span { padding: 4px 8px; border-radius: 8px; background: rgba(52, 211, 153, .12); }
  .m-page .upload-box .preview .actions .remove { background: rgba(239, 68, 68, .12); }


  /* 上传框改横排条式：左徽章 + 文案 + 右侧"选择图片"胶囊按钮 */
  .m-page .upload-box .empty-text {
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .m-page .upload-box .empty-text .icon {
    width: auto; height: auto; margin: 0 0 4px;
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    animation: none;
  }
  .m-page .upload-box .empty-text p {
    font-size: 12px; font-weight: 650; margin: 0 0 2px; color: var(--text);
  }
  .m-page .upload-box .empty-text .sub { font-size: 10px; }

  /* 序号徽章：浅色内联样式在深色下突兀，统一为霓虹绿胶囊 */
  .m-page .badge {
    background: rgba(52, 211, 153, .16) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(52, 211, 153, .3);
  }
}

/* ============================================================
 * 10. 模型 / 行卡片：悬浮霓虹
 * ============================================================ */
.model-row {
  border-radius: 12px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.model-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -18px rgba(52, 211, 153, 1);
  border-color: rgba(52, 211, 153, .45);
}

/* ============================================================
 * 11. 特效：选中面板呼吸霓虹 + 品牌发光
 * ============================================================ */
.workspace .panel.active::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35), inset 0 0 36px -16px rgba(52, 211, 153, .6);
  animation: tk-breathe 3.6s ease-in-out infinite;
}
@keyframes tk-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.ws-page header .logo,
.m-page .h5-header .logo {
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, .55));
}
.ws-page .credits,
.m-page .credits {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 0 18px -6px rgba(52, 211, 153, .9);
}

/* ============================================================
 * 13. 积分账单
 * ============================================================ */
.bills-wrap { max-width: 830px; margin: 0 auto; padding: 4px 0 34px; }

.bills-balance {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 26px 22px; text-align: center;
  background: linear-gradient(135deg, #34d399, #10b981 55%, #a3e635);
  color: #fff;
  box-shadow: 0 26px 60px -32px rgba(52, 211, 153, 1);
}
.bills-balance::after {
  content: '';
  position: absolute; left: -10%; right: -10%; top: -60%; height: 180px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .38), transparent);
  animation: tk-float 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes tk-float { from { transform: translate3d(-8%, 0, 0); } to { transform: translate3d(8%, 8%, 0); } }
.bills-balance .bb-label { font-size: 12px; opacity: .86; letter-spacing: 1px; }
.bills-balance .bb-num {
  font-size: 44px; font-weight: 900; line-height: 1.12; margin: 6px 0 4px;
  text-shadow: 0 0 28px rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
}
.bills-balance .bb-sub { font-size: 11px; opacity: .82; }

.bills-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.bs-item {
  background: var(--card, rgba(255, 255, 255, .9));
  border: 1px solid var(--border, rgba(52, 211, 153, .16));
  border-radius: 14px; padding: 14px 10px; text-align: center;
  box-shadow: 0 14px 34px -26px rgba(31, 41, 89, .5);
}
.bs-item .bs-n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bs-item .bs-n.plus { color: #10b981; text-shadow: 0 0 16px rgba(16, 185, 129, .45); }
.bs-item .bs-n.minus { color: #ef4444; text-shadow: 0 0 16px rgba(239, 68, 68, .4); }
.bs-item .bs-l { font-size: 11px; color: var(--text-muted, #64748b); margin-top: 3px; }

.bills-list { display: flex; flex-direction: column; gap: 8px; }
.bills-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card, rgba(255, 255, 255, .9));
  border: 1px solid var(--border, rgba(52, 211, 153, .16));
  border-radius: 14px; padding: 13px 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bills-item:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, .5);
  box-shadow: 0 18px 42px -26px rgba(52, 211, 153, 1), 0 0 0 1px rgba(52, 211, 153, .14);
}
.bi-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  background: rgba(110, 231, 183, .16); color: #8b9bd0;
}
.bi-ico.plus { background: rgba(16, 185, 129, .16); color: #10b981; box-shadow: 0 0 16px -6px rgba(16, 185, 129, .9); }
.bi-ico.minus { background: rgba(239, 68, 68, .16); color: #ef4444; box-shadow: 0 0 16px -6px rgba(239, 68, 68, .9); }
.bi-body { flex: 1; min-width: 0; }
.bi-title { font-size: 13.5px; font-weight: 650; word-break: break-word; }
.bi-time { font-size: 11px; color: var(--text-subtle, #94a3b8); margin-top: 3px; font-variant-numeric: tabular-nums; }
.bi-amt { font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bi-amt.plus { color: #10b981; text-shadow: 0 0 14px rgba(16, 185, 129, .5); }
.bi-amt.minus { color: #ef4444; text-shadow: 0 0 14px rgba(239, 68, 68, .45); }

.bills-empty { text-align: center; padding: 46px 20px; color: var(--text-muted, #94a3b8); }
.bills-empty .be-ico { font-size: 34px; margin-bottom: 8px; }
.bills-empty .be-title { font-size: 14px; font-weight: 700; color: var(--text, #0f172a); }
.bills-empty .be-hint { font-size: 12px; margin-top: 6px; opacity: .85; }

.bills-page { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; }
.bills-page a,
.bills-page span {
  padding: 8px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--border, rgba(52, 211, 153, .2));
  background: var(--card, #fff);
  color: #7c5cff;
}
.bills-page .cur {
  background: linear-gradient(120deg, #34d399, #10b981);
  color: #fff; border: 0;
  box-shadow: 0 10px 24px -14px rgba(52, 211, 153, 1);
}
.bills-page .disabled { opacity: .4; }


/* ---------- PC 端上传框图标徽章（emoji 已统一替换为 SVG 矢量图标） ---------- */
.ws-page .upload-box .empty-text .icon {
  width: auto; height: auto; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  color: #10b981;
  background: none;
  box-shadow: none;
}
.ws-page .upload-box .empty-text p { font-size: 12.5px; font-weight: 650; color: var(--text); margin: 0 0 3px; }
.ws-page .upload-box .empty-text .sub { font-size: 10.5px; color: var(--text-subtle); }


/* 上传图标：+ 号加大（手机/电脑统一 42px） */
.m-page .upload-box .empty-text .icon svg,
.ws-page .upload-box .empty-text .icon svg {
  width: 42px; height: 42px; stroke-width: 1.6;
}

/* ============================================================
 * 14. 特效：滚入淡入 + 数字计数（无 JS 时保持可见，不会白屏）
 * ============================================================ */
html.tk-js .tk-reveal { opacity: 0; transform: translateY(14px); }
html.tk-js .tk-reveal.tk-in { animation: tk-rise .62s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes tk-rise { to { opacity: 1; transform: none; } }

/* ============================================================
 * 12. 无障碍：尊重「减少动态效果」
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
 * 20. 精修层 v3.2.31：滚动条 / 卡片层次 / 按钮态 / 表格 / 空状态
 * ------------------------------------------------------------
 * 仅做视觉增强，不改动任何布局结构与交互逻辑。
 * ============================================================ */

/* ---------- 滚动条：细、圆、随主题 ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, .25);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, .48); background-clip: content-box; }

/* ---------- 面板 / 卡片：更柔和的层次 ---------- */
.panel {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -22px rgba(15, 23, 42, .38);
}
.panel .card, .panel .canvas-area, .panel .params-panel { border-radius: 14px; }

/* ---------- 分辨率/参数按钮组：选中态更清晰 ---------- */
.btn-grid .opt {
  border-radius: 10px;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}
.btn-grid .opt:hover { transform: translateY(-1px); }
.btn-grid .opt.active {
  box-shadow: 0 6px 16px -10px rgba(16, 185, 129, .85);
}

/* ---------- 生成按钮：渐变 + 悬浮 ---------- */
.gen-btn {
  border-radius: 12px;
  background: linear-gradient(120deg, #10b981, #10b981 52%, #a3e635);
  background-size: 180% 100%;
  border: 0;
  transition: background-position .45s ease, transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 12px 26px -16px rgba(16, 185, 129, .95);
}
.gen-btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.gen-btn:disabled { opacity: .62; transform: none; cursor: not-allowed; }

/* ---------- 历史缩略图：悬浮放大 ---------- */
/* v3.2.32：选择器修正为 .item（真实类名），此前写的 .thumb 不生效 */
.history-bar .strip .item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.history-bar .strip .item:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, .55);
}

/* ---------- 上传框：拖拽高亮 ---------- */
.upload-box:hover { border-color: #10b981 !important; }
.upload-box.dragover, .upload-box.drag-over {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, .06) !important;
}

/* ---------- 空状态：统一观感 ---------- */
.empty-state, .empty-text { color: var(--text-subtle, #94a3b8); }
.empty-state img, .empty-state svg { opacity: .85; }

/* ---------- 顶部栏 / 侧栏：轻毛玻璃 ---------- */
.topbar, .h5-header {
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}

/* ---------- 移动端：触摸反馈 + 安全区 ---------- */
@media (max-width: 767px) {
  .h5-body { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  button, .btn, .opt, .gen-btn { -webkit-tap-highlight-color: transparent; }
  .panel, .card { border-radius: 14px; }
  /* 表格在手机上横向滚动，避免挤压变形 */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* ---------- 深色主题下滚动条跟随 ---------- */
[data-theme="dark"] *::-webkit-scrollbar-thumb { background: rgba(52, 211, 153, .3); background-clip: content-box; }
