/* ============================================================
   多风格配色包（打手端 / 商家端共用）  v1
   - 不修改任何既有主题文件，仅按 body[data-theme] 覆盖变量与少量硬编码色
   - 默认（无 data-theme 或 =mint）完全不生效，保持现有薄荷绿
   - 引入顺序：必须放在 worker-theme.css / merchant-theme.css 之后
   ============================================================ */

/* ==================== 1. 深色系 ==================== */
body[data-theme="dark"]{
  --mint:#4d8dff; --mint-l:#6ba1ff; --mint-d:#3d78e8;
  --mint-soft:rgba(77,141,255,.16); --mint-line:rgba(77,141,255,.40);

  --bg:#0f1319; --surface:#171d26; --elev:#1d242e; --elev-2:#232b37;
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.06);
  --text:#e9eff7; --dim:#9aa7b6; --mute:#6d7a8a;

  --brand:#3d78e8; --brand-2:#6ba1ff; --brand-soft:rgba(77,141,255,.16);

  --ok:#34d399; --ok-soft:rgba(52,211,153,.14);
  --warn:#f0b350; --warn-soft:rgba(240,179,80,.14);
  --bad:#ff6b6b; --bad-soft:rgba(255,107,107,.14);
  --info:#5aa2ff; --info-soft:rgba(90,162,255,.14);

  --sh-1:0 1px 2px rgba(0,0,0,.40);
  --sh-2:0 2px 12px rgba(0,0,0,.45);
}

/* ==================== 2. 浅色系 ==================== */
body[data-theme="light"]{
  --mint:#2f7cf6; --mint-l:#4a90ff; --mint-d:#1f66d8;
  --mint-soft:#eaf2ff; --mint-line:#b8d3fb;

  --bg:#f4f7fb; --surface:#ffffff; --elev:#f8fafd; --elev-2:#eef2f8;
  --line:rgba(23,32,46,.10); --line-soft:rgba(23,32,46,.055);
  --text:#17202e; --dim:#5a6779; --mute:#93a1b3;

  --brand:#1f66d8; --brand-2:#4a90ff; --brand-soft:#eaf2ff;

  --ok:#109c6a; --ok-soft:#e6f9f0;
  --warn:#c2790a; --warn-soft:#fff5e4;
  --bad:#e0433a; --bad-soft:#fdeeec;
  --info:#2f7cf6; --info-soft:#eaf2ff;

  --sh-1:0 1px 2px rgba(20,35,60,.06);
  --sh-2:0 2px 12px rgba(20,35,60,.09);
}

/* ==================== 3. 科技风 ==================== */
body[data-theme="tech"]{
  --mint:#00e0d0; --mint-l:#22f0ff; --mint-d:#00b8ab;
  --mint-soft:rgba(0,224,208,.13); --mint-line:rgba(0,224,208,.42);

  --bg:#060a10; --surface:#0c131e; --elev:#101a28; --elev-2:#152234;
  --line:rgba(0,224,208,.18); --line-soft:rgba(0,224,208,.09);
  --text:#dff9fb; --dim:#85a6b8; --mute:#5d7a8c;

  --brand:#00b8ab; --brand-2:#00e0d0; --brand-soft:rgba(0,224,208,.13);

  --ok:#22f0b0; --ok-soft:rgba(34,240,176,.13);
  --warn:#ffc247; --warn-soft:rgba(255,194,71,.13);
  --bad:#ff5f7a; --bad-soft:rgba(255,95,122,.13);
  --info:#3ec9ff; --info-soft:rgba(62,201,255,.13);

  --sh-1:0 1px 3px rgba(0,0,0,.55);
  --sh-2:0 0 18px rgba(0,224,208,.18);
}

/* ==================== 4. 温柔粉可爱风 ==================== */
body[data-theme="pink"]{
  --mint:#ff6fa5; --mint-l:#ffa3c4; --mint-d:#e8518c;
  --mint-soft:#ffe9f1; --mint-line:#ffc9dd;

  --bg:#fff6f9; --surface:#ffffff; --elev:#fffafc; --elev-2:#ffeeF4;
  --line:rgba(180,80,120,.14); --line-soft:rgba(180,80,120,.07);
  --text:#43242f; --dim:#8a5b6b; --mute:#b98ba0;

  --brand:#e8518c; --brand-2:#ff6fa5; --brand-soft:#ffe9f1;

  --ok:#3fbe8b; --ok-soft:#e8faf2;
  --warn:#e0902e; --warn-soft:#fff4e2;
  --bad:#f2596e; --bad-soft:#ffe8ec;
  --info:#6f8cf5; --info-soft:#ecefff;

  --sh-1:0 1px 2px rgba(180,80,120,.10);
  --sh-2:0 3px 14px rgba(232,81,140,.14);
}

/* ==================== 5. 黄色耐看风 ==================== */
body[data-theme="yellow"]{
  --mint:#d99e1f; --mint-l:#efc253; --mint-d:#b8830a;
  --mint-soft:#fdf3d9; --mint-line:#ecd9a4;

  --bg:#fdf9ee; --surface:#ffffff; --elev:#fffdf7; --elev-2:#f8f2e2;
  --line:rgba(120,90,20,.14); --line-soft:rgba(120,90,20,.07);
  --text:#3a2f16; --dim:#7a6a44; --mute:#a89a78;

  --brand:#b8830a; --brand-2:#d99e1f; --brand-soft:#fdf3d9;

  --ok:#2f9e6b; --ok-soft:#e7f8f0;
  --warn:#c2790a; --warn-soft:#fdf3d9;
  --bad:#d94a3d; --bad-soft:#fdeeec;
  --info:#3d7fd0; --info-soft:#eaf2fd;

  --sh-1:0 1px 2px rgba(120,90,20,.08);
  --sh-2:0 2px 12px rgba(120,90,20,.10);
}

/* ============================================================
   共用修正：覆盖主题文件里写死的浅色/深色值
   （无 data-theme 或 =mint 时不生效）
   ============================================================ */

/* --- 顶栏：模糊半透明底 --- */
body[data-theme] .appbar{
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--surface) 88%,transparent) 0%,
    color-mix(in srgb,var(--surface) 96%,transparent) 78%) !important;
  border-bottom:1px solid var(--line-soft);
}

/* --- 顶栏胶囊 / 白底块 --- */
body[data-theme] .pill{background:var(--elev-2);border-color:var(--line-soft)}
body[data-theme] .pill.brand{background:var(--mint-soft);border-color:var(--mint-line)}

/* --- 底部导航条 --- */
body[data-theme] .tabs-bar{
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  border-top:1px solid var(--line-soft);
}
body[data-theme] .tab .count{background:#ff4d4f;color:#fff;border-color:var(--surface)}
body[data-theme] .tab.active{color:var(--mint-d)}
body[data-theme] .tab.active::after,
body[data-theme] .tab.active::before{background:var(--mint-d)}

/* --- 卡片 / 面板底 --- */
body[data-theme] .panel,
body[data-theme] .hero,
body[data-theme] .ocard,
body[data-theme] .order{background:var(--surface);border-color:var(--line-soft)}

/* --- 新单提示条 / 押金入口卡 --- */
body[data-theme] .newbar,
body[data-theme] .deposit-entry{
  background:linear-gradient(135deg,var(--mint-soft),var(--elev-2)) !important;
  border-color:var(--mint-line) !important;
}

/* --- 搜索框聚焦 --- */
body[data-theme] .om-search input:focus{
  background:var(--surface);
  border-color:var(--mint-line);
  box-shadow:0 0 0 3px var(--mint-soft);
}

/* --- 订单/卡片缩略图（原深绿渐变） --- */
body[data-theme] .thumb,
body[data-theme] .ocard .thumb{
  background:linear-gradient(160deg,var(--elev-2),var(--elev));
  color:var(--text);
  box-shadow:inset 0 0 0 1px var(--mint-line);
}

/* --- 状态左侧色条 --- */
body[data-theme] .ocard.s-review::before,
body[data-theme] .order.s-review::before{background:var(--warn)}
body[data-theme] .ocard.s-cancelled::before,
body[data-theme] .order.s-cancelled::before{background:var(--mute)}

/* --- 状态文字 --- */
body[data-theme] .st-review{color:var(--warn)}
body[data-theme] .st-done{color:var(--mint-d)}

/* --- 老板 ID 高亮块内小按钮 --- */
body[data-theme] .boss-cp{
  background:var(--surface) !important;
  color:var(--mint-d) !important;
  border:1px solid var(--mint-line) !important;
}

/* --- 登录页 --- */
body[data-theme] .auth-shell{
  background:linear-gradient(180deg,var(--bg),var(--elev-2)) !important;
}
body[data-theme] .auth-card{background:var(--surface);border:1px solid var(--line-soft)}
body[data-theme] .auth-tabs{background:var(--elev-2)}
body[data-theme] .auth-tabs button.active{background:var(--surface);color:var(--mint-d)}

/* --- 数据总览首块 KPI（深色底白字） --- */
body[data-theme="dark"] .dv-kpis .dv-kpi:first-child,
body[data-theme="tech"] .dv-kpis .dv-kpi:first-child{
  background:linear-gradient(135deg,var(--mint-d),var(--mint));
}

/* --- 输入框 / 下拉 --- */
body[data-theme] .input,
body[data-theme] select.input{background:var(--elev);color:var(--text);border-color:var(--line)}

/* --- 底部说明 --- */
body[data-theme] .foot-note{color:var(--mute)}

/* --- 圆角略调，避免深色下发闷 --- */
body[data-theme="tech"] .panel,
body[data-theme="tech"] .order,
body[data-theme="tech"] .ocard{border-color:var(--line)}


/* ============================================================
   追加主题包 v2：星空黑夜 / 潮玩撞色 / 萌宠陪伴 / 多巴胺
   + 订单卡「新/来自分享」角标与状态条争用 ::before 的修正
   仅按 body[data-theme] 生效，默认薄荷绿完全不受影响
   ============================================================ */

/* ============================================================
   共用修正：订单卡左侧状态条（worker-theme.css 的 .order::before）
   与 app.css 的 .order.fresh/.pin::before（角标文字）争用同一伪元素
   → ::before 归一为 4px 状态条，角标改挂 ::after
   ============================================================ */
body[data-theme] .order::before,
body[data-theme] .ocard::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:var(--mint);border-radius:0;
}
body[data-theme] .order.s-open::before,
body[data-theme] .ocard.s-open::before{background:var(--mint)}
body[data-theme] .order.s-doing::before,
body[data-theme] .ocard.s-doing::before{background:var(--info)}
body[data-theme] .order.s-review::before,
body[data-theme] .ocard.s-review::before{background:var(--warn)}
body[data-theme] .order.s-done::before,
body[data-theme] .ocard.s-done::before{background:var(--mint-d)}
body[data-theme] .order.s-cancelled::before,
body[data-theme] .ocard.s-cancelled::before{background:var(--mute)}

body[data-theme] .order.fresh::after{
  content:"新";position:absolute;top:0;right:0;z-index:2;
  background:var(--mint);color:#fff;font-size:10px;padding:2px 8px;
  border-bottom-left-radius:8px;letter-spacing:.05em;
}
body[data-theme] .order.pin::after{
  content:"来自分享";position:absolute;top:0;right:0;z-index:2;
  background:var(--brand);color:#fff;font-size:10px;padding:3px 9px;
  border-bottom-left-radius:8px;font-weight:600;letter-spacing:.03em;
}

/* ==================== 6. 星空黑夜 ==================== */
body[data-theme="starry"]{
  --mint:#7c9cff; --mint-l:#a7bcff; --mint-d:#5a7cf0;
  --mint-soft:rgba(124,156,255,.16); --mint-line:rgba(124,156,255,.42);

  --bg:#060a18; --surface:#0d1426; --elev:#121b31; --elev-2:#18233d;
  --line:rgba(140,170,255,.18); --line-soft:rgba(140,170,255,.09);
  --text:#e8edff; --dim:#98a5c8; --mute:#6b7699;

  --brand:#6f5cff; --brand-2:#9b8cff; --brand-soft:rgba(155,140,255,.18);

  --ok:#4ade80; --ok-soft:rgba(74,222,128,.14);
  --warn:#ffc857; --warn-soft:rgba(255,200,87,.14);
  --bad:#ff6b81; --bad-soft:rgba(255,107,129,.14);
  --info:#5aa2ff; --info-soft:rgba(90,162,255,.14);

  --sh-1:0 1px 2px rgba(0,0,0,.55);
  --sh-2:0 4px 22px rgba(60,90,200,.24);

  background-color:#060a18;
  background-image:
    radial-gradient(2.6px 2.6px at 24px 38px,#fff 0,rgba(255,255,255,.95) 42%,rgba(255,255,255,0) 100%),
    radial-gradient(2.2px 2.2px at 108px 132px,#fff 0,rgba(214,230,255,.9) 42%,rgba(255,255,255,0) 100%),
    radial-gradient(1.8px 1.8px at 62px 84px,rgba(200,222,255,.95) 0,rgba(255,255,255,0) 100%),
    radial-gradient(2.4px 2.4px at 168px 26px,rgba(255,248,225,.95) 0,rgba(255,255,255,0) 100%),
    radial-gradient(1.6px 1.6px at 190px 96px,rgba(255,255,255,.8) 0,rgba(255,255,255,0) 100%),
    radial-gradient(1.7px 1.7px at 12px 150px,rgba(196,214,255,.85) 0,rgba(255,255,255,0) 100%),
    radial-gradient(circle at 50% -14%,rgba(72,92,220,.32),transparent 58%),
    radial-gradient(circle at 88% 62%,rgba(140,96,255,.16),transparent 55%);
  background-size:180px 180px,240px 240px,140px 140px,300px 300px,210px 210px,270px 270px,100% 100%,100% 100%;
  background-repeat:repeat,repeat,repeat,repeat,repeat,repeat,no-repeat,no-repeat;
  background-attachment:fixed;
}
body[data-theme="starry"] .appbar{
  background:linear-gradient(180deg,rgba(9,14,32,.94),rgba(6,10,24,.96)) !important;
  border-bottom:1px solid rgba(124,156,255,.20);
  box-shadow:0 6px 26px rgba(24,40,110,.34);
}
body[data-theme="starry"] .panel,
body[data-theme="starry"] .hero,
body[data-theme="starry"] .order,
body[data-theme="starry"] .ocard{
  background:linear-gradient(180deg,rgba(19,28,52,.94),rgba(12,19,37,.96));
  border-color:rgba(124,156,255,.20);
  box-shadow:0 0 0 1px rgba(124,156,255,.06),0 8px 24px rgba(0,0,0,.42);
}
body[data-theme="starry"] .tabs-bar{
  background:rgba(8,13,29,.95);
  border-top:1px solid rgba(124,156,255,.18);
}
body[data-theme="starry"] .tab.active{color:var(--mint-l)}
body[data-theme="starry"] .btn.primary{
  background:linear-gradient(135deg,#7c9cff,#6f5cff);
  box-shadow:0 6px 18px rgba(110,120,255,.34);
}

/* ==================== 7. 潮玩撞色 ====================
   参考：荧光黄绿底 #E7EC98 + 紫 #7266D4 + 奶油贴纸 #F9FACE + 深墨紫描边 #231B3D
   风格：贴纸式厚描边 + 硬投影 + 轻微旋转的标签                           */
body[data-theme="pop"]{
  --mint:#7266d4; --mint-l:#9b8ff0; --mint-d:#5a4cc0;
  --mint-soft:#ece8fb; --mint-line:#cdc4f5;

  --bg:#e7ec98; --surface:#fffdf2; --elev:#f9face; --elev-2:#f2f4d8;
  --line:#231b3d; --line-soft:rgba(35,27,61,.18);
  --text:#231b3d; --dim:#5b5380; --mute:#8b86a4;

  --brand:#7266d4; --brand-2:#2b2440; --brand-soft:#e9e5fb;

  --ok:#4f9d5a; --ok-soft:#e9f3d9;
  --warn:#e0a63a; --warn-soft:#fbf3d4;
  --bad:#e2513f; --bad-soft:#fde5df;
  --info:#4a7fd6; --info-soft:#e6eefc;

  --r:18px; --r-sm:12px; --r-lg:24px;
  --sh-1:2px 2px 0 #231b3d;
  --sh-2:4px 4px 0 #231b3d;

  background-image:
    radial-gradient(circle at 10% 6%,rgba(249,250,206,.75),transparent 40%),
    radial-gradient(circle at 92% 16%,rgba(114,102,212,.14),transparent 42%),
    radial-gradient(circle at 74% 92%,rgba(250,235,94,.40),transparent 40%);
  background-attachment:fixed;
}
body[data-theme="pop"] .appbar{
  background:linear-gradient(100deg,#e7ec98 0%,#dfe6a0 46%,#cdc7f2 100%) !important;
  border-bottom:3px solid #231b3d;
  box-shadow:0 4px 0 #231b3d;
  color:#231b3d;
}
body[data-theme="pop"] .appbar .brand,
body[data-theme="pop"] .appbar .brand .sub,
body[data-theme="pop"] .appbar .btn.ghost{color:#231b3d}
body[data-theme="pop"] .appbar .logo{
  background:#7266d4;color:#f9face;border:2px solid #231b3d;
  box-shadow:2px 2px 0 #231b3d;
}
body[data-theme="pop"] .appbar .pill{
  background:#fffdf2;border:2px solid #231b3d;box-shadow:2px 2px 0 #231b3d;color:#231b3d;
}
body[data-theme="pop"] .appbar .pill b{color:#5a4cc0}

body[data-theme="pop"] .tabs-bar{
  background:#f9face;border-top:3px solid #231b3d;
}
body[data-theme="pop"] .tab{font-weight:800;color:#5b5380}
body[data-theme="pop"] .tab.active{
  color:#f9face;background:#7266d4;border-radius:12px;
  border:2px solid #231b3d;box-shadow:2px 2px 0 #231b3d;transform:rotate(-1.5deg);
}
body[data-theme="pop"] .tab .count{
  background:#faeb5e;border:2px solid #231b3d;color:#231b3d;
  box-shadow:1px 1px 0 #231b3d;
}
body[data-theme="pop"] .panel,
body[data-theme="pop"] .hero,
body[data-theme="pop"] .order,
body[data-theme="pop"] .ocard{
  border:2px solid #231b3d;
  box-shadow:4px 4px 0 #231b3d;
  background:#fffdf2;
}
body[data-theme="pop"] .order:hover,
body[data-theme="pop"] .ocard:hover{
  box-shadow:6px 6px 0 #231b3d;transform:translate(-1px,-1px);
}
body[data-theme="pop"] .btn{border:2px solid #231b3d;box-shadow:2px 2px 0 #231b3d;font-weight:800}
body[data-theme="pop"] .btn.primary{
  background:linear-gradient(120deg,#8a7ee6,#7266d4);color:#f9face;
}
body[data-theme="pop"] .btn:active{transform:translate(2px,2px);box-shadow:0 0 0 #231b3d}
body[data-theme="pop"] .tag{
  border:1.5px solid #231b3d;font-weight:700;box-shadow:1px 1px 0 #231b3d;
  background:#f9face;color:#5a4cc0;white-space:nowrap;
}
body[data-theme="pop"] .order.fresh::after{
  background:#7266d4;border:1.5px solid #231b3d;font-weight:800;color:#f9face;
}
body[data-theme="pop"] .order-title{font-weight:800;letter-spacing:-.2px}
body[data-theme="pop"] .order-desc{background:#f9face;border:1.5px dashed #7266d4;color:#3a3160}
body[data-theme="pop"] .order .price,
body[data-theme="pop"] .ocard .price{color:#5a4cc0;font-weight:900}
body[data-theme="pop"] .panel-head .panel-title::after{content:" ✦";color:#7266d4}
body[data-theme="pop"] .newbar{
  background:linear-gradient(100deg,#faeb5e,#e7ec98) !important;
  border:2px solid #231b3d !important;color:#231b3d;
  box-shadow:3px 3px 0 #231b3d;
  font-weight:800;
}

/* ==================== 8. 萌宠陪伴 ====================
   参考：奶油底 #FDFFF9 / #F5F6F0 + 陶土棕 #C07850 + 鼠尾草绿 #E9EDDF + 暖米 #EFE6D7
   风格：大圆角、极淡阴影、手绘猫狗插图感                                 */
body[data-theme="pet"]{
  --mint:#c07850; --mint-l:#d99a76; --mint-d:#a3613b;
  --mint-soft:#f3ece2; --mint-line:#e3d6c4;

  --bg:#f5f6f0; --surface:#fdfff9; --elev:#f8f8f2; --elev-2:#efe6d7;
  --line:rgba(120,110,90,.16); --line-soft:rgba(120,110,90,.08);
  --text:#3a3f36; --dim:#6f7468; --mute:#a7ab9d;

  --brand:#c07850; --brand-2:#d99a76; --brand-soft:#f2e7db;

  --ok:#7aa05f; --ok-soft:#edf4e2;
  --warn:#d09b4a; --warn-soft:#fbf2e0;
  --bad:#c96a5f; --bad-soft:#f8e7e4;
  --info:#7d9bb5; --info-soft:#eaf1f6;

  --r:20px; --r-sm:13px; --r-lg:26px;
  --sh-1:0 1px 3px rgba(120,110,90,.10);
  --sh-2:0 6px 20px rgba(120,110,90,.13);

  background-image:
    radial-gradient(circle at 12% 6%,rgba(233,237,223,.9),transparent 42%),
    radial-gradient(circle at 88% 24%,rgba(239,230,215,.85),transparent 44%);
  background-attachment:fixed;
}
body[data-theme="pet"] .appbar{
  position:relative;overflow:visible !important;
  background:linear-gradient(180deg,#fdfff9,#f5f6f0) !important;
  border-bottom:1px solid #e6e2d4;
  color:#3a3f36;
}
body[data-theme="pet"] .appbar .logo{background:#e9eddf;color:#7a8564;border:1px solid #dcdcca}
body[data-theme="pet"] .appbar .pill{background:#ffffff;border:1px solid #e6e2d4;color:#4d5446}
body[data-theme="pet"] .appbar .pill b{color:#a3613b}
body[data-theme="pet"] .appbar::after{
  content:"🐱";position:absolute;right:14px;bottom:-24px;
  font-size:32px;line-height:1;z-index:6;
  filter:drop-shadow(0 3px 4px rgba(120,110,90,.20));
}
/* 注意：.tabs-bar 原为 position:fixed 底部固定，此处不得改为 relative，
   否则导航条会离开底部回到文档流顶部 */
body[data-theme="pet"] .tabs-bar{
  overflow:visible !important;
  background:#fdfff9;border-top:1px solid #e6e2d4;
}
body[data-theme="pet"] .tabs-bar::before{
  content:"🐶";position:absolute;left:10px;top:-30px;
  font-size:28px;line-height:1;z-index:6;
  filter:drop-shadow(0 3px 4px rgba(120,110,90,.20));
}
body[data-theme="pet"] .tab{color:#7b8172;font-weight:700}
body[data-theme="pet"] .tab.active{
  color:#a3613b;background:#efe6d7;border-radius:14px;
}
body[data-theme="pet"] .tab .count{background:#c07850;border-color:#fdfff9}
body[data-theme="pet"] .panel-head .panel-title::after{content:" 🐾";font-size:13px}
body[data-theme="pet"] .panel,
body[data-theme="pet"] .hero,
body[data-theme="pet"] .order,
body[data-theme="pet"] .ocard{
  border-radius:var(--r-lg);
  border:1px solid #e8e4d6;
  box-shadow:0 2px 10px rgba(120,110,90,.07);
  background:#ffffff;
}
body[data-theme="pet"] .btn{border-radius:999px}
body[data-theme="pet"] .btn.primary{
  background:linear-gradient(135deg,#cd8a62,#c07850);
  color:#fffdf9;
  box-shadow:0 3px 0 #a3613b;
}
body[data-theme="pet"] .tag{
  border-radius:999px;background:#f3ece2;color:#a3613b;
  box-shadow:none;white-space:nowrap;
}
body[data-theme="pet"] .order-desc{background:#f8f8f2;border-radius:16px;border-color:#eae6d8;color:#5a6052}
body[data-theme="pet"] .order .price,
body[data-theme="pet"] .ocard .price{color:#c07850;font-weight:900}
body[data-theme="pet"] .order.fresh::after{background:#c07850;color:#fffdf9}
body[data-theme="pet"] .newbar{
  background:linear-gradient(120deg,#efe6d7,#f5f6f0) !important;
  border-color:#e3d6c4 !important;border-radius:999px;
}
body[data-theme="pet"] .newbar::after{content:" 🐾"}

/* ==================== 9. 多巴胺 · 元气手绘 ====================
   参考：天蓝 #96C9F8 + 白卡 + 樱粉 #EEA7CF + 柠檬黄 #FAEB5E + 蓝线 #5194CA
   风格：手绘描边、云朵圆角、配色活泼                                      */
body[data-theme="dopamine"]{
  --mint:#eea7cf; --mint-l:#f6c6de; --mint-d:#d482ad;
  --mint-soft:#fdeef6; --mint-line:#f7cfe3;

  --bg:#96c9f8; --surface:#ffffff; --elev:#f4fbff; --elev-2:#d9edfc;
  --line:rgba(45,95,140,.16); --line-soft:rgba(45,95,140,.09);
  --text:#2b4a66; --dim:#5b7f9c; --mute:#8fabc2;

  --brand:#96c9f8; --brand-2:#faeb5e; --brand-soft:#e8f4ff;

  --ok:#4bbf8c; --ok-soft:#e2f8ee;
  --warn:#f5c542; --warn-soft:#fdf6d9;
  --bad:#f0736f; --bad-soft:#fde8e7;
  --info:#4f92d0; --info-soft:#e6f2fc;

  --r:20px; --r-sm:14px; --r-lg:28px;
  --sh-1:0 2px 6px rgba(45,95,140,.10);
  --sh-2:0 8px 22px rgba(45,95,140,.14);

  background-image:
    radial-gradient(circle at 10% 4%,rgba(255,255,255,.55),transparent 38%),
    radial-gradient(circle at 90% 12%,rgba(250,235,94,.30),transparent 36%),
    radial-gradient(circle at 20% 92%,rgba(238,167,207,.28),transparent 38%),
    radial-gradient(circle at 84% 86%,rgba(255,255,255,.40),transparent 40%);
  background-attachment:fixed;
}
body[data-theme="dopamine"] .appbar{
  background:linear-gradient(160deg,#8fc4f6 0%,#a6d3fa 55%,#c7e6fd 100%) !important;
  border-bottom:3px solid #ffffff;
  color:#1f4060;
  box-shadow:0 3px 0 rgba(81,148,202,.20);
}
body[data-theme="dopamine"] .appbar .brand,
body[data-theme="dopamine"] .appbar .brand .sub,
body[data-theme="dopamine"] .appbar .btn.ghost{color:#1f4060}
body[data-theme="dopamine"] .appbar .logo{
  background:#ffffff;color:#d482ad;border:2px solid #ffffff;
  box-shadow:0 3px 10px rgba(45,95,140,.16);
}
body[data-theme="dopamine"] .appbar .pill{
  background:#ffffff;border:2px solid #ffffff;color:#2b4a66;
  box-shadow:0 2px 8px rgba(45,95,140,.12);
}
body[data-theme="dopamine"] .appbar .pill b{color:#d482ad}
body[data-theme="dopamine"] .tabs-bar{
  background:#ffffff;border-top:2px solid #d9edfc;
}
body[data-theme="dopamine"] .tab{color:#8fabc2;font-weight:700}
body[data-theme="dopamine"] .tab.active{
  color:#d482ad;background:#fdeef6;border-radius:16px 4px 16px 4px;
  font-weight:800;
}
body[data-theme="dopamine"] .tab .count{background:#eea7cf;border-color:#ffffff;color:#7a4262}
body[data-theme="dopamine"] .panel,
body[data-theme="dopamine"] .hero,
body[data-theme="dopamine"] .order,
body[data-theme="dopamine"] .ocard{
  border-radius:26px 10px 26px 10px;
  border:2px dashed #b8dcfa;
  background:#ffffff;
  box-shadow:0 6px 20px rgba(45,95,140,.12);
}
body[data-theme="dopamine"] .order:nth-child(2n),
body[data-theme="dopamine"] .ocard:nth-child(2n){
  border-radius:10px 26px 10px 26px;
  border-color:#f7cfe3;
}
body[data-theme="dopamine"] .btn{border-radius:14px}
body[data-theme="dopamine"] .btn.primary{
  background:linear-gradient(120deg,#f3b8d6,#d482ad);
  color:#ffffff;
  box-shadow:0 4px 14px rgba(212,130,173,.30);
}
body[data-theme="dopamine"] .tag{
  border-radius:10px 4px 10px 4px;font-weight:700;
  background:#fdeef6;color:#c2689a;border:1px solid #f7cfe3;white-space:nowrap;
}
body[data-theme="dopamine"] .order-desc{
  background:#f2faff;border:1.5px dashed #b8dcfa;border-radius:14px;color:#3f6b8c;
}
body[data-theme="dopamine"] .order .price,
body[data-theme="dopamine"] .ocard .price{color:#d482ad;font-weight:900}
body[data-theme="dopamine"] .panel-head .panel-title::after{content:" ✿";color:#eea7cf}
body[data-theme="dopamine"] .newbar{
  background:linear-gradient(100deg,#fdf6d9,#fdeef6 60%,#e8f4ff) !important;
  border:1.5px dashed #b8dcfa !important;border-radius:20px;
}
body[data-theme="dopamine"] .order.fresh::after{background:#eea7cf;color:#7a4262;border-radius:0 0 0 12px}

/* --- 三套新主题：标签行强制单行，避免多标签挤压换行 --- */
body[data-theme="pop"] .order-top > span:first-child,
body[data-theme="pet"] .order-top > span:first-child,
body[data-theme="dopamine"] .order-top > span:first-child{flex-wrap:nowrap;overflow:hidden}
body[data-theme="pop"] .order-top .tag,
body[data-theme="pet"] .order-top .tag,
body[data-theme="dopamine"] .order-top .tag{flex:0 0 auto}

/* --- 三套新主题：细节修正（纯视觉，不改功能） --- */
/* 1) 锁单标签 / 订单号不换行 */
body[data-theme="pet"] .lock-tag,
body[data-theme="pop"] .lock-tag,
body[data-theme="dopamine"] .lock-tag,
body[data-theme="pet"] .order-code,
body[data-theme="pop"] .order-code,
body[data-theme="dopamine"] .order-code{white-space:nowrap}
body[data-theme="pet"] .order-code,
body[data-theme="pop"] .order-code,
body[data-theme="dopamine"] .order-code{flex:0 0 auto}

/* 2) 左侧状态条随卡片大圆角走，避免被裁成月牙 */
body[data-theme="pet"] .order::before,
body[data-theme="pet"] .ocard::before{
  border-radius:var(--r-lg) 0 0 var(--r-lg);
}
body[data-theme="pop"] .order::before,
body[data-theme="pop"] .ocard::before{
  border-radius:16px 0 0 16px;width:5px;
}
body[data-theme="dopamine"] .order::before,
body[data-theme="dopamine"] .ocard::before{
  border-radius:24px 0 0 24px;
}

/* ============================================================
   管理端桥接：admin-theme.css 里写死的浅色/深色值
   作用域限定 html.admin，打手端/商家端完全不受影响
   ============================================================ */
html.admin body[data-theme] .pill{
  background:var(--elev-2) !important;color:var(--dim);
  border-color:var(--line-soft);box-shadow:none;
}
html.admin body[data-theme] .pill b{color:var(--text)}
html.admin body[data-theme] .pill.brand{
  background:var(--mint-soft) !important;color:var(--mint-d);border-color:var(--mint-line);
}
html.admin body[data-theme] .pill.brand b{color:var(--mint-d)}

html.admin body[data-theme] .tabs-bar{
  background:color-mix(in srgb,var(--surface) 96%,transparent) !important;
  box-shadow:0 -3px 18px color-mix(in srgb,var(--text) 8%,transparent);
}
html.admin body[data-theme] .tabs-bar::after{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--surface) 0%,transparent),
    color-mix(in srgb,var(--surface) 97%,transparent)) !important;
}
html.admin body[data-theme] .tab{color:color-mix(in srgb,var(--text) 34%,transparent)}
html.admin body[data-theme] .tab:hover{color:var(--mute)}
html.admin body[data-theme] .tab.active{color:var(--mint-d)}
html.admin body[data-theme] .tab .count{background:var(--bad);color:#fff;border-color:var(--surface)}
html.admin body[data-theme] .tab .count.is-zero{display:none}

html.admin body[data-theme] .panel,
html.admin body[data-theme] .card{box-shadow:var(--sh-1)}
html.admin body[data-theme] .deposit-entry{
  background:linear-gradient(135deg,var(--mint-soft),var(--elev-2)) !important;
  border-color:var(--mint-line) !important;
}
html.admin body[data-theme] .stat{
  background:var(--surface);border-color:var(--line-soft);box-shadow:var(--sh-1);
}
html.admin body[data-theme] .input:focus,
html.admin body[data-theme] select.input:focus,
html.admin body[data-theme] textarea.input:focus,
html.admin body[data-theme] .om-search input:focus{
  background:var(--elev) !important;border-color:var(--mint-line);
  box-shadow:0 0 0 3px var(--mint-soft);
}
html.admin body[data-theme] .om-wrap{
  background:var(--surface);border-color:var(--line-soft);box-shadow:var(--sh-1);
}
html.admin body[data-theme] .om-side{background:var(--elev);border-right-color:var(--line-soft)}
@media (max-width:860px){
  html.admin body[data-theme] .om-side-item{
    background:var(--surface);border-color:var(--line-soft);color:var(--dim);
  }
  html.admin body[data-theme] .om-side-item.active{
    background:var(--mint-soft);color:var(--mint-d);border-color:var(--mint-line);
  }
}
html.admin body[data-theme] .ocard{
  background:var(--surface);border-color:var(--line-soft);box-shadow:var(--sh-1);
}
html.admin body[data-theme] .ocard:hover{box-shadow:var(--sh-2)}
html.admin body[data-theme] .ocard .thumb{
  background:linear-gradient(160deg,var(--elev-2),var(--elev)) !important;
  color:var(--text);box-shadow:inset 0 0 0 1px var(--mint-line);
}
html.admin body[data-theme] .ocard-foot .boss-hl .boss-cp{
  background:var(--surface) !important;color:var(--mint-d) !important;
  border:1px solid var(--mint-line) !important;
}
html.admin body[data-theme] .st-review{color:var(--warn)}
html.admin body[data-theme] .ud-kv,
html.admin body[data-theme] .ud-grid,
html.admin body[data-theme] .ud-fund,
html.admin body[data-theme] .ud-funds,
html.admin body[data-theme] .ud-orders,
html.admin body[data-theme] .ud-tablewrap,
html.admin body[data-theme] .dv-kpi,
html.admin body[data-theme] .wx-panel,
html.admin body[data-theme] .wx-bind-inner{
  background:var(--surface);border-color:var(--line-soft);
}
html.admin body[data-theme] .dv-table tbody tr:hover{background:var(--mint-soft)}
html.admin body[data-theme] .auth-shell{
  background:linear-gradient(180deg,var(--bg),var(--elev-2)) !important;
}
html.admin body[data-theme] .auth-card{background:var(--surface);border-color:var(--line-soft)}
html.admin body[data-theme] .auth-tabs{background:var(--elev-2)}
html.admin body[data-theme] .auth-tabs button{color:var(--dim)}
html.admin body[data-theme] .auth-tabs button.active{
  background:var(--surface);color:var(--mint-d);box-shadow:var(--sh-1);
}
