/* ============================================================
   自助发卡商城 · 全站样式（前台 + 后台）v4 视觉升级版
   纯本地样式，无任何外部字体/CDN 依赖
   ============================================================ */
:root{
  --primary:#4f6ef7; --primary-d:#3d5ae0; --primary-l:#6d86fa;
  --violet:#7c3aed; --grad:linear-gradient(135deg,#4f6ef7 0%,#7c3aed 100%);
  --grad-soft:linear-gradient(135deg,#eef2ff,#f5f0ff);
  --bg:#eef1f8; --card:#fff;
  --text:#1f2733; --muted:#8a93a6; --line:#e8ecf3;
  --ok:#16a34a; --warn:#f59e0b; --danger:#ef4444; --info:#2563eb;
  --radius:14px; --radius-sm:10px;
  --shadow:0 6px 24px rgba(31,45,71,.07);
  --shadow-md:0 12px 32px rgba(31,45,71,.12);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(1100px 420px at 100% -120px,rgba(124,58,237,.07),transparent 60%),
    radial-gradient(900px 380px at -10% -140px,rgba(79,110,247,.08),transparent 55%),
    var(--bg);
  color:var(--text);font-size:14px;line-height:1.6;min-height:100vh;
}
a{color:var(--primary);text-decoration:none;transition:.15s}
a:hover{color:var(--primary-d)}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
.mono{font-family:ui-monospace,Consolas,Menlo,monospace}

/* ---------------- 按钮 ---------------- */
.btn-primary,.btn-ghost,.btn-danger{
  display:inline-block;border:0;cursor:pointer;border-radius:10px;padding:10px 20px;
  font-size:14px;line-height:1.2;font-weight:600;letter-spacing:.2px;
  background:var(--grad);color:#fff;transition:.18s;box-shadow:0 6px 16px rgba(79,110,247,.25);
}
.btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 10px 22px rgba(79,110,247,.32);color:#fff}
.btn-primary:active{transform:translateY(0)}
.btn-primary:disabled{background:#b9c3da;box-shadow:none;cursor:not-allowed;transform:none;filter:none}
.btn-sm{padding:6px 13px;font-size:13px;border-radius:8px;box-shadow:none;font-weight:500}
.btn-block{display:block;width:100%;padding:13px;font-size:15px;margin-top:14px}
.btn-ghost{background:#eef1f8;color:#3a4356;box-shadow:none;border:1px solid var(--line)}
.btn-ghost:hover{background:#e3e8f3;color:#1f2733;transform:translateY(-1px)}
.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 6px 16px rgba(239,68,68,.25)}
.btn-danger:hover{filter:brightness(1.05);color:#fff}
.btn-link{background:none;border:0;color:var(--primary);cursor:pointer;padding:0 4px;font-size:13px;font-weight:500}
.btn-link:hover{text-decoration:underline}
.text-danger{color:var(--danger)!important}
.text-warn{color:var(--warn)}
.text-ok{color:var(--ok)}
.text-muted{color:var(--muted)}
.text-center{text-align:center}
.nowarp{white-space:nowrap}
.float-right{float:right;font-weight:400;font-size:13px}

/* ---------------- 头部 / 导航 ---------------- */
.site-header{background:rgba(255,255,255,.86);backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--line);position:sticky;top:0;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-size:19px;font-weight:800;color:var(--text);display:flex;align-items:center;gap:9px;letter-spacing:.3px}
.logo:hover{text-decoration:none;color:var(--text)}
.logo-mark,.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;
  background:var(--grad);color:#fff;font-size:12px;font-weight:800;letter-spacing:.5px;box-shadow:0 4px 10px rgba(99,80,230,.35)}
.main-nav{display:flex;align-items:center}
.main-nav a{margin-left:6px;color:#55607a;font-size:14px;font-weight:500;padding:7px 13px;border-radius:9px}
.main-nav a.active{background:var(--grad-soft);color:var(--primary);font-weight:700}
.main-nav a:hover{background:#f1f4fb;color:var(--primary);text-decoration:none}
.notice-bar{background:linear-gradient(90deg,#fff7e6,#fff3d6);border-bottom:1px solid #ffe2a8;color:#92610a;padding:9px 0;font-size:13px}
.site-main{padding:24px 16px 46px;min-height:60vh}
.site-footer{border-top:1px solid var(--line);background:rgba(255,255,255,.7);color:var(--muted);text-align:center;padding:22px 0;font-size:12px;margin-top:20px}
.site-footer p{margin:3px 0}

/* ---------------- 提示条 ---------------- */
.alert{padding:11px 15px;border-radius:11px;margin:12px 0;font-size:13px;font-weight:500}
.alert-ok{background:#e9f9ef;color:#15803d;border:1px solid #bfe9cd}
.alert-err{background:#fef0f0;color:#b91c1c;border:1px solid #f6c9ca}
.alert-info{background:#ebf1fe;color:#1d4ed8;border:1px solid #c8dafb}
.alert-warn{background:#fff7e8;color:#b45309;border:1px solid #f5d9a8;line-height:1.7}

/* ---------------- 首页商品 ---------------- */
.cat-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}
.cat-tab{background:#fff;padding:8px 17px;border-radius:22px;border:1px solid var(--line);color:#445;font-weight:500;box-shadow:0 2px 8px rgba(31,45,71,.04);transition:.15s}
.cat-tab:hover{border-color:var(--primary-l);color:var(--primary);text-decoration:none;transform:translateY(-1px)}
.cat-section{margin-bottom:30px}
.cat-title{font-size:17px;font-weight:700;margin:0 0 15px;padding-left:11px;border-left:4px solid transparent;border-image:var(--grad) 1;}
.goods-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:17px}
.goods-card{position:relative;background:var(--card);border-radius:var(--radius);padding:19px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;transition:.2s;border:1px solid rgba(232,236,243,.8);overflow:hidden}
.goods-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--grad);opacity:0;transition:.2s}
.goods-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:#dbe3f5}
.goods-card:hover::before{opacity:1}
.goods-name{font-size:15px;font-weight:700;margin-bottom:8px}
.goods-desc{color:#677084;font-size:13px;min-height:40px;flex:1}
.goods-meta{display:flex;align-items:center;gap:7px;margin:10px 0;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.tag{padding:2px 9px;border-radius:7px;font-size:12px;font-weight:500}
.tag-1{background:#eaf1fe;color:#2b5bb5}
.tag-2{background:#f3eafe;color:#7a3fb8}
.tag-3{background:#e8f8ee;color:#1a7f43}
.tag-4{background:#fff1db;color:#a86a00}
.tag-lv{background:#e3f7ea;color:#1a7f43}
.goods-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed var(--line);padding-top:13px}
.goods-price{flex:1 1 auto;min-width:0;color:var(--danger);font-weight:800;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;line-height:1.15}
.goods-bottom .btn-primary,.goods-bottom .btn-sm{flex:0 0 auto;white-space:nowrap}
.goods-price .rmb{font-size:13px}
.goods-price .num{font-size:21px;white-space:nowrap;background:linear-gradient(135deg,#ff5f6d,#ff8a3d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.goods-price .origin{color:var(--muted);font-weight:400;font-size:12px;margin-left:6px;-webkit-text-fill-color:var(--muted)}

/* ---------------- 面板/表单 ---------------- */
.panel{background:var(--card);border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow);margin-bottom:18px;border:1px solid rgba(232,236,243,.7)}
.panel-title{font-size:16px;font-weight:700;margin:0 0 16px}
.block-title{font-size:15px;font-weight:700;margin:0 0 15px}
/* ---- 统一控件：白底微浮起风格，等高 / 细边 / 聚焦蓝光，覆盖全部输入类型 ---- */
/* input:not([type]) 兜底：未显式写 type 的输入框（浏览器默认按 text）也必须套样式，避免退回系统默认凹陷框 */
input:not([type]),input[type=text],input[type=number],input[type=password],input[type=email],input[type=search],input[type=tel],input[type=url],
input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week],select,textarea{
  width:100%;height:40px;padding:0 13px;border:1px solid #e2e6ef;border-radius:9px;
  font-size:14px;font-family:inherit;background-color:#fff;color:var(--text);
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  transition:border-color .15s,box-shadow .15s;
}
textarea{height:auto;padding:10px 13px;line-height:1.6;resize:vertical;min-height:74px}
select{
  appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:36px;background-color:#fff;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px;
}
input::placeholder,textarea::placeholder{color:#aab2c4}
/* HTML 源码编辑框：公告/通知/商品简介统一用原生文本框直接写 HTML（无富文本工具栏，避免二次保存乱码） */
.htmlsrc{width:100%;min-height:170px;padding:12px 14px;border:1px solid #dfe4f2;border-radius:10px;background:#fbfcff;color:#1f2750;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;font-size:13px;line-height:1.7;resize:vertical;box-shadow:0 1px 2px rgba(16,24,40,.04);white-space:pre-wrap;word-break:break-word;tab-size:2}
.htmlsrc:focus{outline:none;border-color:#4f6ef7;background:#fff;box-shadow:0 0 0 3px rgba(79,110,247,.14)}
.htmlsrc::placeholder{color:#a3abc2}
html.theme-dark body.front .htmlsrc{background:#1b1e2e;border-color:#353a55;color:#dfe4f7;box-shadow:none}
html.theme-dark body.front .htmlsrc:focus{background:#1e2236;border-color:#5b6bdf}
html.theme-dark body.front .htmlsrc::placeholder{color:#7a819c}
input:not([type]):hover,input[type=text]:hover,input[type=number]:hover,input[type=password]:hover,input[type=email]:hover,input[type=search]:hover,input[type=tel]:hover,input[type=url]:hover,input[type=date]:hover,input[type=time]:hover,input[type=datetime-local]:hover,input[type=month]:hover,input[type=week]:hover,select:hover,textarea:hover{border-color:#c3ccde}
input:not([type]):focus,input[type=text]:focus,input[type=number]:focus,input[type=password]:focus,input[type=email]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=url]:focus,input[type=date]:focus,input[type=time]:focus,input[type=datetime-local]:focus,input[type=month]:focus,input[type=week]:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary-l);box-shadow:0 0 0 3px rgba(79,110,247,.13)}
input[type=number]{font-variant-numeric:tabular-nums}
input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week]{cursor:pointer}
input[readonly],textarea[readonly]{background-color:#f6f8fa!important;border-color:#e7ebf2;box-shadow:none;color:#5a6478;cursor:default}
input[readonly]:hover,input[readonly]:focus,textarea[readonly]:hover,textarea[readonly]:focus{border-color:#e7ebf2;box-shadow:none;background-color:#f6f8fa!important}
input:disabled,select:disabled{background-color:#f4f6fa;color:#9aa3b5;box-shadow:none;cursor:not-allowed}
/* 只读链接 + 复制按钮 整行（定时任务 URL 等），等宽、自适应不挤压 */
.copy-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.copy-row>input{flex:1 1 240px;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}
.copy-row>.btn-sm{flex-shrink:0}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}
.req{color:var(--danger);font-weight:700;margin-left:2px}
.opt-tag{font-size:11px;color:var(--muted);font-weight:400;background:#f1f4fa;border-radius:6px;padding:1px 7px;margin-left:6px}
.form-hint{display:block;color:var(--muted);font-size:12px;margin-top:6px;line-height:1.5}

/* ---- 字段容器 + 栅格：label 与控件纵向排列，多列底部自动对齐 ---- */
.field{display:flex;flex-direction:column;min-width:0}
.field>label,.field-label{font-size:13px;color:#46506a;font-weight:600;margin-bottom:7px;line-height:1.3;display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.field>label.switch,.field>label.chk{display:inline-flex;flex-wrap:nowrap;margin-bottom:0;font-weight:400}
.field-hint{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}
.form-row{margin-bottom:16px}
.form-row>label{display:block;font-size:13px;color:#46506a;margin-bottom:7px;font-weight:600}
.form-grid{display:grid;gap:16px;margin-bottom:16px;align-items:end}
.form-grid.g2{grid-template-columns:1fr 1fr}
.form-grid.g3{grid-template-columns:repeat(3,1fr)}
.form-grid.g4{grid-template-columns:repeat(4,1fr)}
.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;align-items:end}
.form-row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px;align-items:end}
.form-row-2>div,.form-row-3>div,.form-grid>div{display:flex;flex-direction:column;min-width:0}
.form-row-2>div>label:not(.switch):not(.chk),.form-row-3>div>label:not(.switch):not(.chk),.form-grid>div>label:not(.switch):not(.chk){display:block;font-size:13px;color:#46506a;font-weight:600;margin-bottom:7px;line-height:1.3}
.form-grid label.switch,.form-row-2 label.switch,.form-row-3 label.switch,.form-grid label.chk,.form-row-2 label.chk,.form-row-3 label.chk{display:inline-flex;margin-bottom:0;font-weight:400}
/* 占满整行的栅格单元 */
.col-full{grid-column:1/-1}

/* ---- 表单操作行 ---- */
.form-actions{display:flex;align-items:center;gap:11px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line);flex-wrap:wrap}
.form-actions.spread{justify-content:space-between}
/* ---- 面板工具条：标题左、动作右 ---- */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.toolbar .block-title,.toolbar .panel-title{margin:0}
.toolbar-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

/* ---- 复选 / 开关 ---- */
.inline-form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.inline-form .field{min-width:180px}
.chk{display:inline-flex;align-items:center;gap:8px;font-weight:400!important;cursor:pointer;user-select:none;margin-bottom:0!important;color:var(--text)!important;font-size:13.5px!important}
.chk input[type=checkbox]{width:16px!important;height:16px!important;accent-color:var(--primary);cursor:pointer;margin:0}
.radio-group{display:flex;flex-direction:column;gap:9px}
.radio{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-weight:400;cursor:pointer}
.radio input{width:auto!important;margin:0;accent-color:var(--primary)}
.opt-line{display:flex;gap:24px;flex-wrap:wrap;align-items:center;padding:6px 0 2px}
.switch{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none;height:40px}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch .track{width:42px;height:23px;background:#cbd2e0;border-radius:20px;position:relative;transition:.2s;flex:none}
.switch .track::after{content:'';position:absolute;top:2px;left:2px;width:19px;height:19px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.switch input:checked+.track{background:var(--primary)}
.switch input:checked+.track::after{transform:translateX(19px)}
.switch .switch-text{font-size:13.5px;color:#46506a;font-weight:500}

/* ---------------- 下单页 ---------------- */
.order-wrap,.query-wrap,.order-view{max-width:780px;margin:0 auto}
.back-link{display:inline-block;margin-bottom:12px;font-weight:500}
.confirm-goods{background:var(--grad-soft);border:1px solid #e3e8fd;border-radius:12px;padding:15px 17px;margin-bottom:18px}
.cg-name{font-weight:700;font-size:15px}
.cg-desc{color:#5d6780;font-size:13px;margin:6px 0}
.cg-tags{display:flex;gap:7px;flex-wrap:wrap}
.qty-control{display:inline-flex;align-items:center;gap:0}
.qty-control button{width:38px;height:38px;border:1px solid #d6dce8;background:#f2f4f9;cursor:pointer;font-size:18px;border-radius:9px;transition:.15s}
.qty-control button:hover{background:var(--grad-soft);color:var(--primary)}
.qty-control input{width:82px;text-align:center;border-radius:0;border-left:0;border-right:0;height:38px}
.qty-control button:first-child{border-radius:9px 0 0 9px}
.qty-control button:last-child{border-radius:0 9px 9px 0}
.qty-hint{display:block;margin-top:7px;font-size:12px;color:var(--muted)}
.total-bar{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:15px;margin:15px 0}
.total-price{color:var(--danger);font-weight:800;font-size:25px}
.query-form{display:flex;gap:10px}
.query-form input{flex:1}

/* ---------------- 订单详情 ---------------- */
.status-banner{border-radius:var(--radius);padding:15px 19px;margin-bottom:16px;font-size:15px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;gap:9px}
.status-dot{width:10px;height:10px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 4px rgba(0,0,0,.04)}
.status-0 .status-dot{background:var(--warn)} .status-0{border-left:4px solid var(--warn)}
.status-1 .status-dot{background:var(--primary);box-shadow:0 0 0 4px rgba(79,110,247,.15)} .status-1{border-left:4px solid var(--primary)}
.status-2 .status-dot{background:var(--ok);box-shadow:0 0 0 4px rgba(22,163,74,.15)} .status-2{border-left:4px solid var(--ok)}
.status-3 .status-dot{background:var(--muted)} .status-3{border-left:4px solid var(--muted)}
.status-4 .status-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.15)} .status-4{border-left:4px solid #ef4444}
.kv-table{width:100%;border-collapse:collapse}
.kv-table th{width:110px;text-align:left;color:var(--muted);font-weight:500;padding:9px 10px;vertical-align:top}
.kv-table td{padding:9px 10px}
.kv-table tr{border-bottom:1px solid #f1f4f9}
.kv-table tr:last-child{border-bottom:0}
.pm-tip{color:var(--muted);font-size:13px}
.cancel-form{margin-top:12px}
.deliver-content{background:#0f172a;color:#d6e2ff;padding:15px 17px;border-radius:11px;white-space:pre-wrap;word-break:break-all;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.7}
.deliver-content.small{font-size:12px;margin:0}
.qr-panel{max-width:480px;margin:0 auto;text-align:center}
.qr-text{word-break:break-all;background:#f6f8fc;padding:12px;border-radius:9px;font-size:12px}
.empty-box,.empty-state{background:#fff;border-radius:var(--radius);padding:48px;text-align:center;color:var(--muted);box-shadow:var(--shadow)}
.empty-state{padding:34px}

/* ---------------- 登录 / 安装 ---------------- */
.login-body,.install-body{background:var(--grad);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;position:relative;overflow:hidden}
.login-body::before,.install-body::before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%);top:-180px;left:-120px}
.login-body::after,.install-body::after{content:"";position:absolute;width:460px;height:460px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%);bottom:-160px;right:-100px}
.login-card{position:relative;background:#fff;border-radius:18px;padding:36px;width:100%;max-width:390px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.login-card h1{text-align:center;margin:0 0 24px;font-size:20px}
.login-card label{display:block;font-size:13px;color:#4a5468;margin-bottom:14px}
.login-card input{margin-top:5px}
.login-back{text-align:center;margin:14px 0 0;font-size:13px}
.install-wrap{position:relative;width:100%;max-width:740px}
.install-card{background:#fff;border-radius:18px;padding:32px 36px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.install-card h1{font-size:21px;margin:0 0 20px;text-align:center}
.install-card h3{font-size:15px;margin:20px 0 12px;border-left:3px solid var(--primary);padding-left:9px}
.env-box{background:#f7f9fc;border-radius:11px;padding:12px 16px;margin-bottom:8px}
.env-row{padding:3px 0;font-size:13px}
.env-row.ok{color:var(--ok)} .env-row.bad{color:var(--danger)}
.install-card .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.install-card .form-grid label{font-size:13px;color:#4a5468}
.install-card .form-grid input{margin-top:4px}
.install-card .form-grid .col2{grid-column:1/3;font-weight:400}
.install-tip{color:var(--muted);font-size:12px;text-align:center;margin-top:10px}
/* 安装向导内容高于视口时：允许整页向下滚动，避免“立即安装”按钮被裁切、拉不到底 */
.install-body{align-items:flex-start;overflow:visible}
.install-wrap{margin-top:auto;margin-bottom:auto}
/* 装饰圆在可滚动页面里会引出多余滚动条，安装页隐藏（渐变背景保留），登录页不受影响 */
.install-body::before,.install-body::after{display:none}
@media(max-width:640px){
  .install-body{padding:14px}
  .install-card{padding:22px 18px;border-radius:14px}
  .install-card .form-grid{grid-template-columns:1fr}
  .install-card .form-grid .col2{grid-column:1}
}

/* ---------------- 后台 ---------------- */
.admin-body{
  /* 后台淡紫主题：页面底偏淡紫（不再死白/冷灰），卡片用极淡紫白，仅作用于后台 */
  --card:#fdfcff;
  background:
    radial-gradient(1000px 430px at 100% -120px,rgba(124,58,237,.10),transparent 60%),
    radial-gradient(820px 380px at -8% -150px,rgba(79,110,247,.10),transparent 55%),
    #efeaf8;
}
.admin-body .panel,
.admin-body .stat-card,
.admin-body .ov-card,
.admin-body .card-soft,
.admin-body .empty-box,
.admin-body .empty-state,
.admin-body .modal-box,
.admin-body .goods-edit-grid .gcard{background:#fdfcff}
.admin-body .panel,
.admin-body .stat-card,
.admin-body .ov-card,
.admin-body .card-soft{border-color:rgba(139,92,246,.13)}
.admin-body .admin-topbar{background:rgba(253,252,255,.92)}
.admin-body .modal-head{background:#fdfcff}
.admin-body .modal-foot{background:#f8f5fe}
.admin-body .admin-table th{background:#f5f1fc}
.admin-body .admin-table tbody tr:nth-child(even) td{background:#faf8fe}
.admin-body .admin-table tr:hover td{background:#f1ebfd}
.admin-body .batch-bar{background:#f7f3fe;border-color:#e2d8f6}
.admin-body .perm-grid,
.admin-body .input-cfg{background:#f9f6ff;border-color:#e7dff7}
.admin-layout{display:flex;min-height:100vh}
.admin-sidebar{width:222px;background:linear-gradient(180deg,#1b2340 0%,#232c4d 100%);color:#aeb8d4;flex-shrink:0;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;box-shadow:4px 0 24px rgba(20,28,56,.18)}
.admin-brand{padding:20px 18px;font-size:15px;font-weight:700;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px;letter-spacing:.3px}
.brand-mark{width:30px;height:30px;font-size:11px}
.admin-sidebar nav{display:flex;flex-direction:column;padding:12px 10px}
.admin-sidebar a{color:#aeb8d4;padding:11px 14px;border-radius:10px;margin:2px 0;font-size:14px;font-weight:500;display:flex;align-items:center;gap:11px;position:relative;transition:.15s}
.admin-sidebar a .mi{width:18px;text-align:center;font-size:14px;opacity:.85}
.admin-sidebar a:hover{background:rgba(255,255,255,.07);color:#fff;text-decoration:none}
.admin-sidebar a.on{background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(79,110,247,.4)}
.admin-sidebar a.on .mi{opacity:1}
/* 商品管理折叠大菜单 */
.menu-group{margin:2px 0}
.menu-group>summary{list-style:none;cursor:pointer;color:#aeb8d4;padding:11px 14px;border-radius:10px;font-size:14px;font-weight:500;display:flex;align-items:center;gap:11px;transition:.15s;user-select:none}
.menu-group>summary::-webkit-details-marker{display:none}
.menu-group>summary:hover{background:rgba(255,255,255,.07);color:#fff}
.menu-group>summary.grp-on{color:#fff}
.menu-group .caret{margin-left:auto;font-size:10px;opacity:.65;transition:transform .2s}
.menu-group[open] .caret{transform:rotate(180deg)}
.menu-group .submenu{display:flex;flex-direction:column;padding:2px 0 4px 6px;margin-left:10px;border-left:1px solid rgba(255,255,255,.08)}
.admin-sidebar .submenu a{padding:9px 12px;font-size:13px;margin:1px 0}
.admin-sidebar .submenu a::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.4;margin-right:2px;flex-shrink:0}
.admin-sidebar .submenu a .mi{display:none}
.admin-sidebar .submenu a.on{background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(79,110,247,.4)}
.admin-sidebar .submenu a.on::before{opacity:1}
.admin-main{flex:1;margin-left:222px;min-width:0}
.admin-topbar{background:rgba(255,255,255,.9);backdrop-filter:blur(8px);height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;box-shadow:0 1px 0 var(--line);position:sticky;top:0;z-index:5}
.topbar-title{font-weight:700;font-size:16px}
.topbar-user{color:var(--muted);font-size:13px}
.admin-content{padding:24px 26px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px;margin-bottom:20px}
.stat-card{position:relative;background:#fff;border-radius:var(--radius);padding:19px;box-shadow:var(--shadow);overflow:hidden;border:1px solid rgba(232,236,243,.7)}
.stat-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--grad)}
.stat-card.warn::before{background:linear-gradient(180deg,#f59e0b,#f97316)}
.stat-num{font-size:25px;font-weight:800;color:var(--primary)}
.stat-card.warn .stat-num{color:#d97706}
.stat-label{color:var(--muted);font-size:13px;margin-top:4px}
.stat-sub{font-size:11px;color:#9aa3bd;margin-top:5px;line-height:1.4;white-space:nowrap}
.stat-card.hl{background:var(--grad);border-color:transparent}
.stat-card.hl::before{display:none}
.stat-card.hl .stat-num{color:#fff}
.stat-card.hl .stat-label,.stat-card.hl .stat-sub{color:rgba(255,255,255,.88)}
.stat-card.alipay::before{background:linear-gradient(180deg,#1677ff,#36cfc9)}
.stat-card.alipay .stat-num{color:#1677ff}
.stat-card.recharge::before{background:linear-gradient(180deg,#22c55e,#10b981)}
.stat-card.recharge .stat-num{color:#16a34a}
.stat-card.todo::before{background:linear-gradient(180deg,#ef4444,#f97316)}
.stat-card.todo .stat-num{color:#dc2626}
a.stat-card{display:block;text-decoration:none;color:inherit;transition:.15s;cursor:pointer}
a.stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,28,56,.12)}
.muted-user{color:#aab2c5 !important;text-decoration:line-through}
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.ck-col{width:36px;text-align:center;white-space:nowrap}
.admin-table .ck-col input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);cursor:pointer}
.batch-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:12px 0;background:#f6f8fe;border:1px dashed #d7def0;border-radius:11px}
.batch-bar select{width:auto;min-width:130px}
.batch-bar .btn-sm{white-space:nowrap}
.scope-bar{background:#eef3ff;border:1px solid #d6e1ff;color:#2b5bb5;border-radius:10px;padding:9px 13px;margin-bottom:12px;font-size:13.5px;display:flex;gap:12px;align-items:center}
.admin-table th{background:#f6f8fd;text-align:left;padding:11px 13px;color:#525d76;font-weight:700;white-space:nowrap;border-bottom:1px solid var(--line)}
.admin-table td{padding:11px 13px;border-bottom:1px solid #f0f3f9;vertical-align:middle}
.admin-table tbody tr:nth-child(even) td{background:#fafbfe}
.admin-table tr:hover td{background:#f2f6ff}
.admin-form{max-width:820px}
.badge{display:inline-block;padding:3px 11px;border-radius:20px;font-size:12px;white-space:nowrap;font-weight:500;background:#eef1f8;color:#5a6478}
.badge-ok{background:#e3f7ea;color:#15803d}
.badge-info{background:#e8effe;color:#1d4ed8}
.badge-warn{background:#fff1db;color:#b45309}
.st-0{background:#fff1db;color:#a86a00}
.st-1{background:#e6efff;color:#2b5bb5}
.st-2{background:#e3f7ea;color:#1a7f43}
.st-3{background:#ececec;color:#888}
.st-4{background:#ffe4e6;color:#c81e3a}
.pager{display:flex;gap:6px;margin-top:14px;flex-wrap:wrap}
.pager a{padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}
.pager a.cur{background:var(--grad);color:#fff;border-color:transparent}
.row-form{display:contents}
.stock-pill{background:#eef4ff;border-radius:20px;padding:4px 12px;font-size:13px}
.stock-pill.sold{background:#f1f1f1}
.detail-panel{border-left:4px solid var(--primary)}
/* 订单详情操作区：工具按钮条 + 发货/备注卡片，统一撑满对齐 */
.detail-actions{margin-top:14px;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.da-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;background:#f6f5fb;border:1px solid #e7e3f5;border-radius:10px}
.da-tools form{margin:0}
.da-tools .btn{padding:7px 15px;font-size:13px;border-radius:8px;font-weight:500;box-shadow:none;white-space:nowrap}
.da-panel{margin:0;padding:14px 16px;border:1px solid #e7e3f5;border-radius:10px;background:#fbfaff}
.remark-panel{border-style:dashed;border-color:#d9d2f0;background:#fcfbff}
.da-section-title{font-size:13px;font-weight:600;color:#5b4b8a;margin-bottom:8px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.da-section-title .sub{font-weight:400;font-size:12px;color:#9aa0b4}
.deliver-form{margin:0;width:100%;max-width:none}
.da-panel .deliver-form{background:none;border:0;padding:0}
.deliver-form textarea,.remark-panel textarea{width:100%;margin-bottom:10px;min-height:74px}
.detail-btn-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:0}
.detail-btn-row .btn{padding:9px 20px;font-size:14px;border-radius:9px}
.goods-cell{font-weight:600;max-width:240px}

/* 一键排序按钮 */
.sort-btns{display:inline-flex;gap:3px}
.sort-btn{min-width:26px;height:26px;padding:0 6px;border:1px solid var(--line);background:#fff;border-radius:7px;cursor:pointer;font-size:13px;color:#5a6478;line-height:1;transition:.13s}
.sort-btn:hover{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 3px 8px rgba(79,110,247,.3)}

/* 弹层 */
.modal-mask{display:none;position:fixed;inset:0;background:rgba(20,28,56,.45);z-index:1000;align-items:center;justify-content:center;padding:20px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal-mask.show{display:flex}
.modal-box{background:#fff;border-radius:16px;width:100%;max-width:760px;max-height:82vh;max-height:min(82vh,calc(100dvh - 40px));display:flex;flex-direction:column;box-shadow:0 30px 70px rgba(0,0,0,.3);overflow:hidden;margin:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);font-size:15px;flex:0 0 auto;background:#fff;position:relative;z-index:2}
.modal-x{border:0;background:#f1f4fa;width:30px;height:30px;border-radius:8px;font-size:18px;cursor:pointer;color:#5a6478;line-height:1}
.modal-x:hover{background:#e6ebf5}
.modal-body{padding:16px 20px;overflow-y:auto;flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch}
.modal-body .admin-table{font-size:13px}
/* 弹层内独立字段（不在 .form-grid 内时）保持统一行距，避免上下贴死 */
.modal-body>.field{margin-bottom:15px}
.modal-body>.field:last-child{margin-bottom:0}
/* 弹层常用 <form> 包住 body+foot：让 form 成为可收缩的 flex 列，超长时仅 body 内部滚动、head/foot 固定 */
.modal-box>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;margin:0}
.modal-box>form>.modal-body{flex:1 1 auto;min-height:0}
.modal-box>form>.modal-foot{flex:0 0 auto}
/* 客服权限勾选区 */
.perm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:2px;border:1px solid #e6eaf4;background:#f8faff;border-radius:11px;padding:12px}
.perm-item{border:1px solid #e3e8f4;background:#fff;border-radius:9px;padding:9px 10px!important;margin:0!important;font-size:13px!important;justify-content:flex-start;transition:.15s}
.perm-item:hover{border-color:var(--primary-l);background:#f4f7ff}
.perm-item:has(input:checked){border-color:var(--primary);background:#eef3ff;color:var(--primary);font-weight:600}
.perm-tools{display:flex;gap:14px;margin-top:8px}
@media(max-width:560px){.perm-grid{grid-template-columns:repeat(2,1fr)}}
.sup-actions{display:flex;gap:8px;align-items:flex-end}
.sup-actions .btn-sm{white-space:nowrap}

/* 下单输入框配置 */
.input-cfg{background:#f8faff;border:1px solid #e4eafc;border-radius:12px;padding:15px 16px 6px;margin-bottom:14px}
.fields-tip{color:#16a34a;font-size:12.5px;margin:2px 0 10px;font-weight:500}
.field-preview{margin-top:7px;display:flex;flex-wrap:wrap;gap:6px;padding-bottom:8px}
.fp-chip{background:#eaf1fe;color:#2b5bb5;border-radius:7px;padding:3px 10px;font-size:12px}
.block-input{width:100%;margin-bottom:10px}
.fp-chip b{color:var(--danger);margin-right:4px}

/* ---------------- 会员/登录注册 ---------------- */
.auth-wrap{max-width:440px;margin:30px auto}
.auth-panel{padding:30px}
.auth-switch{text-align:center;margin:14px 0 0;font-size:13px;color:var(--muted)}
.nav-balance{background:var(--grad);color:#fff;border-radius:20px;padding:2px 10px;font-size:12px;margin-left:4px;font-weight:600}
.uc-wrap{max-width:920px;margin:0 auto}
.uc-card{background:var(--grad);color:#fff;border-radius:var(--radius);padding:24px 26px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;box-shadow:0 14px 34px rgba(99,80,230,.3);position:relative;overflow:hidden}
.uc-card::after{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.1);pointer-events:none}
.uc-info{display:flex;align-items:center;gap:14px;position:relative;z-index:1}
.uc-avatar{width:54px;height:54px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800}
.uc-name{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.uc-balance{font-size:13px;opacity:.92;margin-top:4px}
.uc-balance b{font-size:19px}
.uc-card .btn-primary{background:#fff;color:var(--primary);font-weight:700;box-shadow:none;position:relative;z-index:1}
.uc-card .btn-primary:hover{background:#f0f4ff}
.uc-card-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;position:relative;z-index:1}
.uc-card-actions>a{min-width:148px;text-align:center}
.uc-card-actions .btn-qq{box-shadow:none}
.uc-qq{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12.5px;color:rgba(255,255,255,.92)}
.uc-card .qq-avatar{width:26px;height:26px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.uc-qq b{font-weight:700}
.uc-qq-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:10px;background:rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:600;border:1px solid rgba(255,255,255,.22)}
.uc-qq-link:hover{background:rgba(255,255,255,.26);color:#fff}
@media(max-width:860px){.uc-card-actions{width:100%}.uc-card-actions>a{width:100%}}
.level-badge{font-size:12px;font-weight:600;border-radius:20px;padding:2px 11px;background:rgba(255,255,255,.22)}
.level-badge.lv-2{background:#f3eafe;color:#7a3fb8}
.level-badge.lv-3{background:#fff1db;color:#a86a00}
.level-tag{font-size:11px;color:#fff;background:var(--primary);border-radius:6px;padding:1px 6px;margin-left:2px;font-weight:500;white-space:nowrap;align-self:center;line-height:1.5}
.sur-tag{font-size:10px;color:#b06a00;background:#fff3e0;border:1px solid #ffd9a8;border-radius:6px;padding:0 5px;font-weight:600;white-space:nowrap;align-self:center;line-height:1.6}
.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ftab{display:inline-flex;align-items:center;padding:6px 14px;border-radius:20px;background:#f1f4fb;color:#55607a;font-size:13px;font-weight:500;border:1px solid transparent;transition:.15s;cursor:pointer}
.ftab:hover{border-color:#c6d2f5;color:var(--primary)}
.ftab.on{background:var(--grad);color:#fff;box-shadow:0 4px 12px rgba(90,108,245,.25)}
.ftab-n{display:inline-block;min-width:18px;text-align:center;background:rgba(0,0,0,.08);border-radius:10px;padding:0 6px;font-size:11px;margin-left:6px;line-height:16px}
.ftab.on .ftab-n{background:rgba(255,255,255,.25)}
.rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 8px;border-radius:999px;background:#eef1f8;color:#6b7494;font-weight:700;font-size:12.5px}
.rank-badge.r1{background:linear-gradient(135deg,#f7d774,#f0b429);color:#5b3d05}
.rank-badge.r2{background:linear-gradient(135deg,#e3e8f2,#c3cbdb);color:#434c63}
.rank-badge.r3{background:linear-gradient(135deg,#ecc79f,#cf8f56);color:#5a3413}
.rank-amt{font-weight:700;color:#6d4df2;white-space:nowrap}

/* ---------------- 收银台/充值 ---------------- */
.pay-method{border:1px solid var(--line);border-radius:12px;padding:15px 17px;margin-bottom:12px;background:#fff;transition:.15s}
.pay-method:hover{border-color:var(--primary-l);box-shadow:0 6px 18px rgba(79,110,247,.08)}
.pm-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pm-head{font-weight:700;margin-bottom:8px}
.alipay-btn{background:linear-gradient(135deg,#1677ff,#0958d9);box-shadow:0 6px 16px rgba(22,119,255,.28)}
.alipay-btn:hover{filter:brightness(1.05)}
.recharge-confirm p{margin:10px 0}
/* 充值页：余额充值记录（与充值卡同宽的卡片列表） */
.rc-panel{margin-top:16px;padding:20px}
.rc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
.rc-head a{font-size:13px;font-weight:400;white-space:nowrap}
.rc-item{border:1px solid #e6ebf5;border-radius:12px;padding:10px 13px;margin-bottom:9px;background:#fbfcfe}
.rc-item:last-child{margin-bottom:0}
.rc-line{display:flex;justify-content:space-between;align-items:center;gap:10px}
.rc-no{font-size:13px;color:#33405f;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc-amt{white-space:nowrap;font-size:15px}
.rc-sub{margin-top:5px;font-size:12px}
.rc-sub .text-muted{white-space:nowrap}
.quick-amounts{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.qa-btn{border:1px solid #d6dce8;background:#f6f8fc;border-radius:9px;padding:7px 17px;cursor:pointer;transition:.13s}
.qa-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--grad-soft)}

/* ---------------- 商品编辑扩展 ---------------- */
.form-section{font-size:13.5px;font-weight:700;color:#3a4358;margin:22px 0 14px;padding:8px 12px;border-left:3px solid var(--primary);background:linear-gradient(90deg,#f6f8ff,transparent);border-radius:0 8px 8px 0}
.price-hint{font-size:12px;color:var(--muted);align-self:end;padding-bottom:10px}
#supplierRow{display:none}

/* ---------------- 弹层表单 ---------------- */
.modal-box.modal-sm{max-width:520px}
.modal-box.modal-md{max-width:620px}
.modal-box.modal-wide{max-width:920px}
.modal-head b{font-size:15px;font-weight:700}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:#fafbfe;flex:0 0 auto}
.modal-body .form-grid:last-child,.modal-body .form-row:last-child{margin-bottom:4px}
.live-preview{background:var(--grad-soft);border:1px solid #e3e8fd;border-radius:10px;padding:10px 14px;font-size:13px;color:#3a4358;margin-top:4px}
.live-preview b{color:var(--primary)}

/* ---------------- 响应式 ---------------- */
@media (max-width:760px){
  .form-row-2,.form-grid,.form-row-3,.form-grid.g2,.form-grid.g3,.form-grid.g4{grid-template-columns:1fr}
  .form-grid .col2,.col-full{grid-column:1}
  .admin-sidebar{position:static;width:100%}
  .admin-layout{flex-direction:column}
  .admin-main{margin-left:0}
  .main-nav a{margin-left:4px;padding:6px 9px}
  .goods-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:11px}
  .uc-card{flex-direction:column;gap:14px;align-items:flex-start}
  .pm-line{flex-direction:column;align-items:flex-start}
  .header-inner{height:auto;padding:10px 0;flex-wrap:wrap}
}

/* ==================== 前台三栏首页 ==================== */
.card-soft{background:#fff;border-radius:14px;box-shadow:0 4px 18px rgba(31,45,90,.06);border:1px solid rgba(232,236,243,.7)}
.home-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start;
  grid-template-areas:"left center"}
.home-layout .side-left{grid-area:left;display:flex;flex-direction:column;gap:14px;position:sticky;top:14px;align-self:start;max-height:calc(100vh - 28px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.home-layout .side-left::-webkit-scrollbar{width:6px}
.home-layout .side-left::-webkit-scrollbar-thumb{background:rgba(120,130,160,.32);border-radius:6px}
.home-layout .home-center{grid-area:center}
.home-layout .side-user .uc-stats{grid-template-columns:repeat(2,1fr)}
.home-layout .side-user .uc-links{grid-template-columns:repeat(3,1fr)}
.home-layout a{text-decoration:none}
.side-cats{padding:10px}
.side-title{font-size:13px;font-weight:700;color:#8a93a6;padding:6px 10px 10px;letter-spacing:.5px}
.side-cats nav{display:flex;flex-direction:column}
.scat{display:flex;align-items:center;gap:8px;padding:10px 11px;border-radius:9px;color:#46506a;font-size:13.5px;font-weight:500;transition:.15s}
.scat:hover{background:#f4f6fc;color:var(--primary)}
.scat.on{background:var(--grad);color:#fff;box-shadow:0 5px 14px rgba(79,110,247,.32)}
.scat-dot{font-size:9px;opacity:.55}
.scat-arrow{margin-left:auto;color:#b6bdcf}
.notice-panel{padding:13px 15px;margin-bottom:14px}
.np-row{display:flex;align-items:center;gap:10px;font-size:13px}
.np-tag{flex-shrink:0;background:var(--grad);color:#fff;font-size:12px;font-weight:600;padding:3px 11px;border-radius:7px}
.np-text{color:#5a6478;line-height:1.5;flex:1;min-width:0}
.np-badge{color:#16a34a;font-size:12px;flex-shrink:0}
.np-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.np-quick a{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;border-radius:10px;background:#f6f8fe;color:#46506a;font-size:13px;font-weight:600;border:1px solid #eceffa;transition:.15s}
.np-quick a:hover{border-color:var(--primary-l);color:var(--primary);background:#fff}
.goods-group{padding:4px 12px 10px;margin-bottom:10px}
.gg-head{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:700;padding:11px 2px;border-bottom:1px solid #f0f2f8;margin-bottom:4px}
.gg-bar{width:4px;height:15px;border-radius:3px;background:var(--grad)}
.gg-count{font-size:12px;color:#9aa3b5;font-weight:400;margin-left:2px}
.gg-list{display:flex;flex-direction:column}
.goods-row{display:flex;align-items:center;gap:13px;padding:13px 4px;border-bottom:1px dashed #eef1f7;transition:.15s}
.goods-row:last-child{border-bottom:0}
.goods-row:hover{background:#fafbff}
.gr-thumb{flex-shrink:0;width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#eef2ff,#e0e7ff);color:var(--primary);font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:center}
.gr-main{flex:1;min-width:0}
.gr-name{font-size:14px;font-weight:600;color:#2b3350;display:block;line-height:1.4}
.gr-name:hover{color:var(--primary)}
.gr-desc{font-size:12px;color:#9aa3b5;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-expire{display:inline-block;margin-top:6px;padding:2px 10px;font-size:12px;line-height:1.5;font-weight:600;color:#e8590c;background:#fff0e6;border:1px solid #ffd9bb;border-radius:999px}
.gr-expire.is-exp{color:#9aa1ac;background:#f2f3f5;border-color:#e5e7eb;font-weight:500}
.gr-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px;font-size:12px;color:var(--muted)}
.gr-meta b{color:var(--primary);font-weight:700;font-style:normal}
.gr-meta .gr-expire{margin-top:0}
.gr-stock{display:inline-flex;align-items:center;padding:2px 10px;font-size:12px;line-height:1.5;font-weight:600;color:#3b5bdb;background:#eef2ff;border:1px solid #dbe3ff;border-radius:999px}
.gr-stock.is-zero{color:#9aa1ac;background:#f2f3f5;border-color:#e5e7eb;font-weight:500}
.gr-tags{display:flex;align-items:center;gap:7px;margin-top:6px;flex-wrap:wrap}
.gr-stock,.gr-sales,.gr-lv{font-size:11.5px;color:#9aa3b5;background:#f4f6fa;border-radius:6px;padding:1px 8px}
.gr-lv{color:var(--primary);background:#eef3ff}
.gr-right{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.gr-price{color:#ff6a00;font-weight:800;display:flex;align-items:baseline;gap:2px;flex-wrap:wrap;justify-content:flex-end}
.gr-price .rmb{font-size:12px}
.gr-price b{font-size:17px}
.gr-sur{flex:0 0 100%;font-size:10px;font-weight:600;color:#b06a00;line-height:1.3;text-align:right;white-space:nowrap}
.gr-unit{color:#b6bdcf;font-weight:400;font-size:12px}
.goods-row.is-off{opacity:.6}
.goods-row.is-off .gr-price{color:#9aa3b5}
.side-user{display:flex;flex-direction:column;gap:14px}
.user-card{padding:15px}
.uc-top{display:flex;align-items:center;gap:10px}
.uc-avatar{width:42px;height:42px;border-radius:50%;background:var(--grad);color:#fff;font-weight:700;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.uc-meta{flex:1;min-width:0}
.uc-name{font-size:14.5px;font-weight:700;color:#2b3350;display:flex;align-items:center;gap:6px}
.uc-uid{font-size:12px;color:#9aa3b5;margin-top:2px}
.uc-logout{font-size:12px;color:#ff6a6a;background:#fff0f0;padding:4px 11px;border-radius:20px;flex-shrink:0}
.uc-logout:hover{background:#ffe1e1}
.lv-badge{font-size:11px;font-weight:600;padding:1px 8px;border-radius:20px;background:#eef3ff;color:var(--primary)}
.lv-badge.lv-3{background:#fff1e6;color:#ea7816}
.lv-badge.lv-2{background:#e8f7ee;color:#16a34a}
.uc-balance{margin-top:13px;border-radius:13px;padding:13px 15px;background:linear-gradient(135deg,#5b6ef0,#7a5cff);color:#fff}
.ub-label{font-size:12px;opacity:.85}
.ub-row{display:flex;align-items:center;justify-content:space-between;margin-top:5px}
.ub-num{flex:1 1 auto;min-width:0;font-size:23px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;padding-right:10px}
.ub-recharge{flex:0 0 auto;background:#fff;color:#5b6ef0;font-weight:700;font-size:13px;padding:5px 14px;border-radius:20px;white-space:nowrap}
.uc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:13px;text-align:center}
.uc-stats div{background:#f7f9fd;border-radius:9px;padding:8px 2px}
.uc-stats b{display:block;font-size:13px;color:#2b3350}
.uc-stats span{font-size:11px;color:#9aa3b5;margin-top:2px;display:block}
.uc-links{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:11px}
.uc-links a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11.5px;color:#5a6478;padding:8px 2px;border-radius:9px}
.uc-links a span{width:32px;height:32px;border-radius:50%;background:#f1f4fb;color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:15px}
.uc-links a:hover{background:#f4f6fc}
.guest-card .guest-title{font-size:15px;font-weight:700;margin-bottom:8px}
.guest-tip{font-size:12.5px;color:#8a93a6;line-height:1.6;margin:0 0 13px}
.guest-card .btn-block{margin-bottom:9px;text-align:center}
.side-tip{padding:13px 15px}
.side-tip ul{margin:8px 0 0;padding-left:2px;list-style:none;display:flex;flex-direction:column;gap:7px}
.side-tip li{font-size:12.5px;color:#8a93a6;line-height:1.5}
@media(max-width:1180px){.home-layout{grid-template-columns:184px minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"user user" "cats center";align-items:start}
.home-layout .side-left{display:contents}
.home-layout .side-user{grid-area:user;position:static;max-height:none;overflow:visible}
.home-layout .side-cats{grid-area:cats;position:sticky;top:14px}
.home-layout .home-center{grid-area:center;min-width:0}
.side-user .uc-stats{grid-template-columns:repeat(4,1fr)}
.side-user .uc-links{grid-template-columns:repeat(4,1fr)}}
@media(max-width:860px){.home-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"cats" "center"}.home-layout .side-left{display:contents}.home-layout .side-cats,.home-layout .home-center{min-width:0;max-width:100%}.side-cats{position:static;min-width:0;max-width:100%}.side-cats nav{max-width:100%;flex-direction:row;flex-wrap:wrap}.scat-arrow{display:none}.np-quick{grid-template-columns:repeat(2,1fr)}.gr-thumb{width:40px;height:40px;font-size:17px}.uc-stats,.uc-links{max-width:560px}}

/* 商品显示范围（公开/隐藏/指定会员）选择器 */
.vis-group{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.vis-opt{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbff;cursor:pointer;font-weight:400;margin:0}
.vis-opt:hover{border-color:#8b5cf6;background:#f6f2ff}
.vis-opt input[type=radio]{margin:0;width:16px;height:16px;accent-color:#6d5efc;flex:0 0 auto}
.vis-opt span{font-size:13px;color:#2f3542;line-height:1.4}
.vis-pick{margin-top:12px;padding:12px;border:1px dashed #d6d2f5;border-radius:10px;background:#fbfaff}
.vis-search{position:relative;margin-bottom:10px}
.vis-search input{width:100%;box-sizing:border-box}
.vis-suggest{display:none;position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 10px 28px rgba(40,40,80,.14)}
.vis-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;cursor:pointer;font-size:13px}
.vis-item:hover{background:#f3f0ff}
.vis-item b{color:#2f3542;font-weight:600}
.vis-item span{color:#9aa1b3;font-size:12px}
.vis-none{cursor:default;color:#9aa1b3;justify-content:center}
.vis-none:hover{background:transparent}
.vis-chips{display:flex;flex-wrap:wrap;gap:8px;min-height:6px}
.vis-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px 4px 11px;background:#eef0ff;color:#4338ca;border:1px solid #d4d8ff;border-radius:999px;font-size:12px;font-weight:600}
.vis-chip em{font-style:normal;background:#fff;border-radius:999px;padding:0 7px;font-size:11px;color:#6d5efc;font-weight:600}
.vis-x{border:0;background:transparent;color:#8b8fd6;cursor:pointer;font-size:15px;line-height:1;padding:0 2px}
.vis-x:hover{color:#e11d48}

/* 前台订单记录：每页条数 + 分页条 */
.page-size-select{width:auto;min-width:124px;flex:0 0 auto;height:40px;padding:0 36px 0 13px;border:1px solid #e2e6ef;border-radius:9px;background-color:#fff;font-size:13px;color:#46506a;cursor:pointer;box-sizing:border-box;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.page-size-select:focus{outline:none;border-color:var(--primary)}
.pager-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
.pager-info{font-size:12.5px;color:#8a93a6}
.pager-bar .pager{margin-top:0}
.pager .pager-disabled{padding:6px 12px;border:1px solid var(--line,#e3e7f0);border-radius:8px;background:#f5f6fa;color:#b3bac8;font-size:13px;cursor:not-allowed}
.pager .pager-dots{padding:6px 6px;color:#9aa1b3;font-size:13px;align-self:flex-end}
@media(max-width:640px){.pager-bar{flex-direction:column;align-items:stretch}.pager-bar .pager{justify-content:center}.orders-filter{flex-wrap:wrap!important}.orders-filter input[name=kw]{flex:1 1 150px!important;width:auto!important}}

/* 商品简介富文本（KindEditor 产出）前台排版 */
.rich-text{font-size:13.5px;line-height:1.75;color:#46506a;word-break:break-word;overflow-wrap:anywhere}
.rich-text p{margin:0 0 8px}.rich-text p:last-child{margin-bottom:0}
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4{margin:12px 0 8px;line-height:1.4;color:#2f3542}
.rich-text h1{font-size:18px}.rich-text h2{font-size:16px}.rich-text h3{font-size:15px}.rich-text h4{font-size:14px}
.rich-text ul,.rich-text ol{margin:6px 0 10px;padding-left:22px}
.rich-text ul{list-style:disc}.rich-text ol{list-style:decimal}
.rich-text li{margin:3px 0}
.rich-text a{color:var(--primary);text-decoration:underline;word-break:break-all}
.rich-text img,.rich-text video{max-width:100%;height:auto;border-radius:8px;margin:6px 0;display:block}
.rich-text hr{border:0;border-top:1px solid #e8ebf3;margin:12px 0}
.rich-text blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid var(--primary-l);background:#f6f8ff;color:#5d6780;border-radius:0 8px 8px 0}
.rich-text code{background:#f1f3f9;border-radius:5px;padding:1px 6px;font-size:12.5px;font-family:Consolas,Menlo,monospace}
.rich-text pre{background:#1f2533;color:#e6e9f2;border-radius:10px;padding:12px 14px;overflow:auto;margin:8px 0}
.rich-text pre code{background:transparent;color:inherit;padding:0}
.rich-text table{border-collapse:collapse;width:100%;margin:8px 0;font-size:13px;display:block;overflow-x:auto}
.rich-text th,.rich-text td{border:1px solid #e2e6ef;padding:6px 10px;text-align:left}
.rich-text th{background:#f6f8ff;font-weight:600}
.cg-desc.rich-text{margin:8px 0 10px}
.modal-richtext{max-height:200px;overflow:auto;background:#fafbff;border:1px solid #eceef6;border-radius:10px;padding:10px 12px;margin-bottom:14px}
.modal-richtext.rich-text{font-size:13px}

/* ============================================================
   前台视觉精修 v5（作用域限定前台，不影响后台 .admin-body）
   ============================================================ */
body:not(.admin-body){ --shadow:0 8px 28px rgba(31,45,90,.07); --shadow-md:0 16px 40px rgba(31,45,90,.13); }

/* 弹层统一毛玻璃遮罩 + 入场（前后台通用，更精致） */
.modal-mask{backdrop-filter:blur(4px);background:rgba(20,28,56,.42)}
.modal-box{border-radius:18px}
@keyframes modalPop{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.modal-mask.show .modal-box{animation:modalPop .24s cubic-bezier(.22,.9,.32,1)}
.modal-loading{padding:40px 12px;text-align:center;color:#9aa1b3;font-size:13px}
.modal-loading::before{content:"";display:block;width:26px;height:26px;margin:0 auto 12px;border:3px solid #e3e8f5;border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 顶部导航：更干净、品牌与余额更精致 */
body:not(.admin-body) .site-header{background:rgba(255,255,255,.82);box-shadow:0 4px 20px rgba(31,45,90,.05)}
body:not(.admin-body) .main-nav a{border-radius:10px;font-weight:500}
body:not(.admin-body) .main-nav a.active{box-shadow:0 4px 12px rgba(79,110,247,.18)}
body:not(.admin-body) .nav-balance{box-shadow:0 3px 9px rgba(124,58,237,.3)}

/* 前台面板统一质感 */
body:not(.admin-body) .panel{border-radius:16px;box-shadow:0 8px 28px rgba(31,45,90,.06);border:1px solid rgba(232,236,243,.85)}
body:not(.admin-body) .empty-box{border-radius:16px;box-shadow:0 8px 28px rgba(31,45,90,.06)}

/* 首页三栏卡片 */
body:not(.admin-body) .card-soft{border-radius:16px;box-shadow:0 6px 22px rgba(31,45,90,.06);border:1px solid rgba(232,236,243,.85);transition:box-shadow .2s,transform .2s}
body:not(.admin-body) .side-cats .side-title{font-size:12px;letter-spacing:1px;color:#a6aec2}
body:not(.admin-body) .scat{border-radius:11px;margin:1px 0}
body:not(.admin-body) .scat.on{box-shadow:0 6px 16px rgba(79,110,247,.32)}
body:not(.admin-body) .goods-group{border-radius:16px;transition:box-shadow .2s}
body:not(.admin-body) .goods-group:hover{box-shadow:0 10px 30px rgba(31,45,90,.08)}
body:not(.admin-body) .gg-head{padding:9px 4px 8px}
body:not(.admin-body) .goods-row{padding:9px 8px;border-radius:12px;margin:0 2px;border-bottom:1px solid #f1f3f9}
body:not(.admin-body) .goods-row:hover{background:linear-gradient(90deg,#f7f9ff,#fbfaff);transform:translateX(2px)}
body:not(.admin-body) .gr-name{font-size:14.5px;color:#232b45}
body:not(.admin-body) .gr-price b{font-size:19px;background:linear-gradient(135deg,#ff7a18,#ff3d71);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body:not(.admin-body) .gr-right .btn-primary{border-radius:20px;padding:7px 18px;box-shadow:0 6px 15px rgba(79,110,247,.28)}
body:not(.admin-body) .gr-right .btn-primary:hover{box-shadow:0 9px 20px rgba(79,110,247,.38)}
body:not(.admin-body) .gr-expire{border-radius:8px}
body:not(.admin-body) .gr-stock{border-radius:8px}

/* 右侧用户卡（已去头像） */
body:not(.admin-body) .user-card{border-radius:16px;padding:18px}
body:not(.admin-body) .uc-top{padding-bottom:14px;border-bottom:1px solid #f1f3f9}
body:not(.admin-body) .uc-top .uc-name{font-size:15px}
body:not(.admin-body) .uc-balance{border-radius:14px;box-shadow:0 10px 22px rgba(91,110,240,.32)}
body:not(.admin-body) .ub-recharge{border-radius:20px}
body:not(.admin-body) .uc-stats div{border-radius:11px;padding:10px 2px;transition:.15s}
body:not(.admin-body) .uc-stats div:hover{background:#eef3ff}
body:not(.admin-body) .uc-links{grid-template-columns:repeat(3,1fr);gap:4px;margin-top:13px}
body:not(.admin-body) .uc-links a{border-radius:11px;padding:10px 2px;transition:.15s}
body:not(.admin-body) .uc-links a:hover{background:#eef3ff;transform:translateY(-1px)}
body:not(.admin-body) .uc-links a span{width:34px;height:34px;font-size:15px;background:var(--grad-soft)}
body:not(.admin-body) .guest-card{text-align:left}
body:not(.admin-body) .guest-card .btn-block{border-radius:11px}

/* 会员中心：余额卡去头像后更舒展 */
body:not(.admin-body) .uc-card{border-radius:18px;padding:26px 28px}
.uc-info-flat{align-items:center}
body:not(.admin-body) .uc-wrap .panel{border-radius:16px}
body:not(.admin-body) .uc-wrap .admin-table th{background:#f8faff}

/* 下单页 / 下单弹层表单 */
body:not(.admin-body) .confirm-goods{border-radius:14px;padding:17px 19px}
body:not(.admin-body) .form-row>label{font-size:13px;color:#46506a}
body:not(.admin-body) .total-bar{background:#f8faff;border:1px solid #e9edfa;border-radius:12px;padding:13px 16px;margin:18px 0}
body:not(.admin-body) .total-price{font-size:26px;background:linear-gradient(135deg,#ff7a18,#ff3d71);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body:not(.admin-body) form .btn-block[type=submit],body:not(.admin-body) #orderForm .btn-block{border-radius:12px;padding:14px;font-size:15px;letter-spacing:1px}
body:not(.admin-body) .qty-control button,.qty-control input{height:42px}
body:not(.admin-body) .qty-control input{width:88px}

/* 订单记录：tabs、表格、详情按钮 */
body:not(.admin-body) .order-tabs .cat-tab{border-radius:11px;padding:8px 16px}
body:not(.admin-body) .order-tabs .cat-tab.active{box-shadow:0 5px 14px rgba(79,110,247,.28)}
body:not(.admin-body) .uc-wrap .admin-table{border-radius:12px;overflow:hidden}
body:not(.admin-body) .uc-wrap .admin-table th{font-weight:600;color:#5a6480}
.btn-link{font-size:13px;font-weight:600}
.btn-link:hover{text-decoration:none;color:var(--primary-d)}

/* 订单详情弹框 */
.od-detail{font-size:13.5px}
.od-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #eef1f7}
.od-no{font-size:13px;color:#56607a;font-weight:600}
.od-detail .kv-table th{width:92px;color:#9aa2b6;font-weight:500;padding:10px 12px}
.od-detail .kv-table td{padding:10px 12px;color:#2f3542}
.od-section{margin-top:16px}
.od-label{font-size:12px;font-weight:700;color:#9aa2b6;letter-spacing:.6px;margin-bottom:9px}
.od-kv{display:flex;gap:12px;padding:9px 0;border-bottom:1px dashed #eef1f7;font-size:13px}
.od-kv:last-child{border-bottom:0}
.od-kv>span{flex:0 0 96px;color:#9aa2b6;word-break:break-all}
.od-kv>b{flex:1;min-width:0;font-weight:600;color:#2f3542;word-break:break-all;text-align:left}
.od-content{background:#f7f9fd;border:1px solid #edf0f7;border-radius:12px;padding:13px 15px;color:#3a4358;font-size:13px;line-height:1.75;white-space:pre-wrap;word-break:break-word;min-height:44px}

/* 登录 / 注册 / 充值等居中页 */
body:not(.admin-body) .auth-panel{border-radius:18px}
body:not(.admin-body) .pay-method{border-radius:14px}
body:not(.admin-body) .pay-method:hover{transform:translateY(-1px)}

/* 响应式微调 */
@media(max-width:860px){
  body:not(.admin-body) .uc-links{grid-template-columns:repeat(3,1fr)}
  body:not(.admin-body) .goods-row{padding:9px 4px}
  /* 后台详情表（订单详情/代领进度）手机端：固定布局，超长登录态 cookie、订单号、时间强制换行，不撑破容器 */
  body.admin-body .kv-table{width:100%;table-layout:fixed}
  body.admin-body .kv-table th{width:88px;max-width:30%;white-space:normal;word-break:break-all;vertical-align:top}
  body.admin-body .kv-table td{word-break:break-all;overflow-wrap:anywhere;min-width:0}
}

/* Home rich-text notice */
body:not(.admin-body) .home-notice{background:#fff;border:1px solid #eceef5;border-left:4px solid #6366f1;border-radius:16px;padding:16px 20px 15px;margin:0 0 18px;box-shadow:0 8px 24px rgba(20,28,56,.05)}
body:not(.admin-body) .home-notice .hn-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#4f46e5;margin:0 0 8px;letter-spacing:.3px}
body:not(.admin-body) .home-notice .hn-dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#8b5cf6);box-shadow:0 0 0 4px rgba(99,102,241,.12)}
body:not(.admin-body) .home-notice .hn-body{color:#3a4156;font-size:14px;line-height:1.8;word-break:break-word}
body:not(.admin-body) .home-notice .hn-body>:first-child{margin-top:0}
body:not(.admin-body) .home-notice .hn-body>:last-child{margin-bottom:0}
body:not(.admin-body) .home-notice .hn-body p{margin:6px 0}
body:not(.admin-body) .home-notice .hn-body a{color:#4f46e5;text-decoration:underline;text-underline-offset:2px}
body:not(.admin-body) .home-notice .hn-body img{max-width:100%;height:auto;border-radius:10px;margin:6px 0}
body:not(.admin-body) .home-notice .hn-body h1,body:not(.admin-body) .home-notice .hn-body h2,body:not(.admin-body) .home-notice .hn-body h3{margin:12px 0 6px;color:#262c3d}
body:not(.admin-body) .home-notice .hn-body ul,body:not(.admin-body) .home-notice .hn-body ol{padding-left:22px;margin:6px 0}
body:not(.admin-body) .home-notice .hn-body table{max-width:100%;border-collapse:collapse;margin:6px 0}
body:not(.admin-body) .home-notice .hn-body table td,body:not(.admin-body) .home-notice .hn-body table th{border:1px solid #e8eaf2;padding:6px 10px}
@media(max-width:860px){
  body:not(.admin-body) .home-notice{padding:14px 15px;border-radius:14px}
}

/* ===== 仪表盘总览（可视化） ===== */
.ov-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}
.ov-card{position:relative;display:flex;align-items:center;gap:14px;background:#fff;border-radius:16px;padding:18px 20px;box-shadow:var(--shadow);overflow:hidden;border:1px solid rgba(232,236,243,.65);min-height:92px}
.ov-card::after{content:"";position:absolute;right:-36px;top:-36px;width:108px;height:108px;border-radius:50%;background:var(--tint,#eaf0ff);opacity:.6}
.ov-ic{position:relative;z-index:1;flex:0 0 48px;width:48px;height:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--tint,#eaf0ff);color:var(--tc,#4f6ef7)}
.ov-ic svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ov-body{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.ov-num{display:block;font-size:26px;font-weight:800;line-height:1.15;color:#1f2733;white-space:nowrap}
.ov-num .u{font-size:13px;font-weight:600;color:var(--muted);margin-left:3px}
.ov-label{display:block;font-size:13px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
a.ov-card{text-decoration:none;color:inherit;transition:.15s}
a.ov-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.ov-t-blue{--tint:#eaf0ff;--tc:#4f6ef7}
.ov-t-orange{--tint:#fff1e3;--tc:#f59e0b}
.ov-t-cyan{--tint:#e3f7f4;--tc:#14b8a6}
.ov-t-green{--tint:#e7f8ee;--tc:#16a34a}
.ov-t-violet{--tint:#f1ebff;--tc:#7c3aed}
.ov-t-gold{--tint:#fdf5e0;--tc:#d9a206}
.ov-t-red{--tint:#ffecec;--tc:#ef4444}
.ov-t-gray{--tint:#eef1f6;--tc:#64748b}
.ov-layout{display:grid;grid-template-columns:1.9fr 1fr;gap:16px;margin-bottom:20px}
.chart-legend{display:flex;gap:18px;font-size:12.5px;color:var(--muted);justify-content:flex-end;margin:0 0 4px}
.chart-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.chart-legend .lg-line{width:16px;height:3px;border-radius:2px}
.chart-svg{width:100%;height:auto;display:block}
.ov-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.ov-mini{background:#f7f9fd;border:1px solid var(--line);border-radius:12px;padding:13px 14px}
.ov-mini .m-num{font-size:20px;font-weight:800;color:var(--text);line-height:1.2}
.ov-mini .m-num .u{font-size:12px;color:var(--muted);font-weight:600;margin-left:2px}
.ov-mini .m-label{font-size:12px;color:var(--muted);margin-top:3px}
.env-list{font-size:12.5px;line-height:1.95;color:var(--text)}
.env-list b{color:var(--muted);font-weight:600;display:inline-block;min-width:70px}
.safe-ok{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ok);background:#e7f8ee;border-radius:10px;padding:10px 12px}
@media(max-width:1180px){.ov-grid{grid-template-columns:repeat(2,1fr)}.ov-layout{grid-template-columns:1fr}}

/* 商品管理：可视化分类筛选 + 库存快捷修改按钮 */
.cat-bar{display:flex;flex-wrap:wrap;gap:9px}
.cat-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border-radius:999px;background:#f3f5fb;border:1px solid var(--line);color:#5a6478;font-size:13px;font-weight:600;text-decoration:none;transition:.14s;cursor:pointer}
.cat-chip .n{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 6px;border-radius:999px;background:#e6eaf5;color:#8a93a6;font-size:11px;font-weight:700}
.cat-chip:hover{border-color:var(--primary-l);color:var(--primary);transform:translateY(-1px)}
.cat-chip.on{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 6px 16px rgba(79,110,247,.28)}
.cat-chip.on .n{background:rgba(255,255,255,.25);color:#fff}
.stock-btn{display:inline-flex;align-items:center;gap:4px;border:1px dashed #c6cde0;background:#fafbff;color:#2f3542;border-radius:8px;padding:4px 9px;font-size:12.5px;cursor:pointer;text-decoration:none;transition:.13s;white-space:nowrap}
.stock-btn:hover{border-style:solid;border-color:var(--primary);color:var(--primary);background:#f1f4ff}
.stock-btn.muted{color:var(--muted)}
.stock-btn.zero{border-color:#fca5a5;background:#fef2f2;color:#dc2626}
.stock-btn .stock-edit{font-size:11px;opacity:.55}
/* ============================================================
   前台科技风主题 v6（浅色 · 仅作用于 body.front，不影响后台）
   明亮浅蓝白 + 青蓝紫霓虹点缀 + 浅色玻璃拟态 + 网格光晕；完整移动端适配
   ============================================================ */
body.front{
  --t-cyan:#06b6d4; --t-blue:#3b82f6; --t-violet:#7c3aed;
  --t-grad:linear-gradient(135deg,#06b6d4 0%,#3b82f6 50%,#7c3aed 100%);
  --t-price:linear-gradient(135deg,#0891b2 0%,#2563eb 55%,#7c3aed 100%);
  --t-glass:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.68));
  --t-line:rgba(116,146,222,.22);
  background:
    radial-gradient(900px 420px at 100% -120px,rgba(34,211,238,.10),transparent 60%),
    radial-gradient(820px 400px at -8% -120px,rgba(139,92,246,.10),transparent 55%),
    radial-gradient(720px 520px at 50% 120%,rgba(99,102,241,.08),transparent 60%),
    linear-gradient(180deg,#f1f0f7 0%,#eae8f3 48%,#e7e5f1 100%);
  background-attachment:fixed;
  color:#1d2942;
}
/* 固定背景层：浅色网格 + 极淡光晕 */
.tech-bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.tech-bg .tg-grid{position:absolute;inset:-2px;
  background-image:linear-gradient(rgba(90,124,200,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(90,124,200,.06) 1px,transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(ellipse 96% 70% at 50% -6%,#000 18%,transparent 72%);
  mask-image:radial-gradient(ellipse 96% 70% at 50% -6%,#000 18%,transparent 72%)}
.tech-bg .tg-glow{position:absolute;border-radius:50%;filter:blur(100px);pointer-events:none;opacity:.8}
.tech-bg .tg-glow-a{width:520px;height:520px;left:-150px;top:-190px;background:radial-gradient(circle,rgba(34,211,238,.20),transparent 70%)}
.tech-bg .tg-glow-b{width:600px;height:600px;right:-200px;top:-80px;background:radial-gradient(circle,rgba(124,92,255,.16),transparent 70%)}
.tech-bg .tg-glow-c{width:560px;height:560px;left:30%;bottom:-340px;background:radial-gradient(circle,rgba(59,130,246,.12),transparent 70%);opacity:.7}
body.front .site-header{position:sticky;z-index:30}
body.front .site-main{position:relative;z-index:1}
body.front>.container{position:relative;z-index:6}

/* 文字 / 链接 / 标题 */
body.front a{color:#2563eb}
body.front a:hover{color:#0891b2}
body.front .panel-title,body.front .block-title{color:#101e3c}
body.front .text-muted{color:#75819e!important}
body.front .text-danger{color:#e11d48!important}
body.front .text-ok{color:#15803d!important}
body.front .text-warn{color:#b45309!important}

/* 顶部导航：浅色玻璃 */
body.front .site-header{background:rgba(255,255,255,.8);backdrop-filter:blur(16px) saturate(1.3);
  border-bottom:1px solid rgba(116,146,222,.18);box-shadow:0 8px 26px rgba(40,70,150,.06)}
body.front .logo{color:#101e3c}
body.front .header-inner{position:relative;display:grid;grid-template-columns:1fr minmax(0,auto) 1fr;column-gap:14px;align-items:center}
body.front .header-inner>.logo{position:static;transform:none;grid-column:2;justify-self:center;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.front .header-inner>.main-nav{margin-left:0;grid-column:3;justify-self:end;min-width:0;white-space:nowrap}
body.front.is-user .header-inner{grid-template-columns:minmax(0,1fr) auto}
body.front.is-user .header-inner>.logo{grid-column:1;justify-self:flex-end}
body.front.is-user .header-inner>.main-nav{grid-column:2;justify-self:flex-end}
body.front .logo-mark{background:var(--t-grad);color:#fff;box-shadow:0 4px 14px rgba(59,130,246,.4)}
body.front .main-nav a{color:#46507a}
body.front .main-nav a:hover{background:rgba(6,182,212,.1);color:#0e7490}
body.front .main-nav a.active{background:var(--t-grad);color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(59,130,246,.32)}
body.front .nav-balance{background:var(--t-grad);color:#fff;box-shadow:0 4px 12px rgba(59,130,246,.3)}

body.front .main-nav a.uc-m{display:none}

/* 玻璃卡片 / 面板 / 空状态 */
body.front .panel,body.front .card-soft,body.front .empty-box,body.front .empty-state{
  background:var(--t-glass);border:1px solid var(--t-line);backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:0 12px 34px rgba(40,70,150,.09),inset 0 1px 0 rgba(255,255,255,.9);color:#1d2942}
body.front .empty-box,body.front .empty-state{color:#75819e}

/* 按钮 */
body.front .btn-primary{background:var(--t-grad);color:#fff;font-weight:700;border:0;
  box-shadow:0 8px 20px rgba(59,130,246,.28),0 2px 6px rgba(59,130,246,.18)}
body.front .btn-primary:hover{color:#fff;box-shadow:0 12px 28px rgba(59,130,246,.4);transform:translateY(-1px)}
body.front .btn-primary:disabled{background:#c3cde4;box-shadow:none;color:#fff}
body.front .btn-ghost{background:rgba(255,255,255,.7);color:#33405f;border:1px solid var(--t-line)}
body.front .btn-ghost:hover{background:#fff;color:#0891b2;border-color:rgba(6,182,212,.45)}
body.front .btn-danger{background:linear-gradient(135deg,#f43f5e,#e11d48);color:#fff;box-shadow:0 8px 18px rgba(225,29,72,.26)}
body.front .btn-link{color:#2563eb}
body.front .btn-link:hover{color:#0891b2}

/* 输入控件：白底 + 青色聚焦光晕（沿用统一等高） */
body.front input:not([type]),body.front input[type=text],body.front input[type=number],body.front input[type=password],
body.front input[type=email],body.front input[type=search],body.front input[type=tel],body.front input[type=url],
body.front input[type=date],body.front input[type=time],body.front input[type=datetime-local],body.front input[type=month],
body.front input[type=week],body.front select,body.front textarea{
  background:#fff;border:1px solid #d7e0f2;color:#16233f;box-shadow:0 1px 2px rgba(30,50,100,.05)}
body.front input:not([type]):hover,body.front input[type=text]:hover,body.front input[type=number]:hover,body.front input[type=password]:hover,
body.front input[type=email]:hover,body.front input[type=search]:hover,body.front input[type=tel]:hover,body.front input[type=url]:hover,
body.front input[type=date]:hover,body.front input[type=time]:hover,body.front input[type=datetime-local]:hover,body.front input[type=month]:hover,
body.front input[type=week]:hover,body.front select:hover,body.front textarea:hover{border-color:#b9c8ea}
body.front input:not([type]):focus,body.front input[type=text]:focus,body.front input[type=number]:focus,body.front input[type=password]:focus,
body.front input[type=email]:focus,body.front input[type=search]:focus,body.front input[type=tel]:focus,body.front input[type=url]:focus,
body.front input[type=date]:focus,body.front input[type=time]:focus,body.front input[type=datetime-local]:focus,body.front input[type=month]:focus,
body.front input[type=week]:focus,body.front select:focus,body.front textarea:focus{
  outline:none;border-color:rgba(6,182,212,.65);background:#fff;box-shadow:0 0 0 3px rgba(34,211,238,.18)}
body.front input::placeholder,body.front textarea::placeholder{color:#9aa6c4}
body.front input[readonly],body.front textarea[readonly]{background:#f4f7fd!important;border-color:#e3e9f7;color:#5a6484}
body.front input:disabled,body.front select:disabled{background:#f1f4fa;color:#9aa6c4}
body.front select{background-color:#fff;background-repeat:no-repeat;background-position:right 12px center;background-size:14px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
body.front input:-webkit-autofill{-webkit-text-fill-color:#16233f;-webkit-box-shadow:0 0 0 1000px #fff inset;caret-color:#16233f;transition:background-color 9999s ease-out}
body.front .form-row>label,body.front .field>label,body.front .field-label{color:#41507a}
body.front .req{color:#e11d48}
body.front .opt-tag{background:#eef1f8;color:#75819e}
body.front .form-hint,body.front .field-hint,body.front .qty-hint,body.front .pm-tip{color:#75819e}

/* 数量控件 / 合计条 */
body.front .qty-control button{background:linear-gradient(180deg,#fff,#eef3fd);border:1px solid #d7e0f2;color:#2563eb}
body.front .qty-control button:hover{background:#e6faff;border-color:rgba(6,182,212,.5);color:#0e7490}
body.front .qty-control input{background:#fff;border-color:#d7e0f2}
body.front .total-bar{background:rgba(255,255,255,.72);border:1px solid var(--t-line);border-radius:12px;box-shadow:inset 0 1px 0 #fff}
body.front .total-price{background:var(--t-price);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
body.front .confirm-goods{background:rgba(255,255,255,.7);border:1px solid var(--t-line)}

/* 首页：左侧分类 */
body.front .side-title{color:#75819e;letter-spacing:1.4px}
body.front .scat{color:#3f4c6e}
body.front .scat:hover{background:rgba(6,182,212,.09);color:#0e7490}
body.front .scat.on{background:var(--t-grad);color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(59,130,246,.32)}
body.front .scat-arrow{color:#aab6d4}

/* 首页：商品组与商品行 */
body.front .gg-head{border-bottom:1px solid #e6ecf9;color:#101e3c}
body.front .gg-bar{background:var(--t-grad);box-shadow:0 0 10px rgba(59,130,246,.5)}
body.front .gg-count{color:#8a96b5}
body.front .goods-row{border-bottom:1px dashed #e8edf9}
body.front .goods-row:hover{background:linear-gradient(90deg,rgba(34,211,238,.09),rgba(139,92,246,.05));box-shadow:inset 2px 0 0 #06b6d4}
body.front .gr-name{color:#1b2742}
body.front .gr-name:hover{color:#0891b2;text-shadow:0 0 12px rgba(6,182,212,.3)}
body.front .gr-desc{color:#8a96b5}
body.front .gr-price b{background:var(--t-price);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body.front .gr-unit{color:#aab4d0}
body.front .gr-expire{background:#fff4e5;color:#c2610c;border:1px solid #ffd9a8}
body.front .gr-expire.is-exp,body.front .gr-stock.is-zero{background:#eef1f7;color:#8a96b5;border-color:#e2e7f2}
body.front .gr-stock{background:#e6faff;color:#0e7490;border:1px solid #b8f0fb}
body.front .goods-row.is-off{opacity:.6}
body.front .goods-row.is-off .gr-name{color:#9aa6c4}
body.front .goods-row.is-off .gr-price b{-webkit-text-fill-color:#9aa6c4;color:#9aa6c4}

/* 首页：右侧用户卡 */
body.front .uc-top{border-bottom:1px solid #e8edf9}
body.front .uc-name{color:#101e3c}
body.front .uc-uid{color:#8a96b5}
body.front .uc-logout{background:#fef0f1;color:#e11d48}
body.front .uc-logout:hover{background:#ffe1e4}
body.front .lv-badge{background:#e6faff;color:#0e7490}
body.front .lv-badge.lv-2{background:#f1ebff;color:#7c3aed}
body.front .lv-badge.lv-3{background:#fff3e2;color:#c2610c}
/* 余额块 / 会员中心余额卡：小面积深色渐变焦点，白字，在浅色页面里提亮 */
body.front .uc-balance{background:linear-gradient(135deg,#0e7490,#2563eb 55%,#7c3aed);color:#fff;
  box-shadow:0 14px 28px rgba(37,99,235,.32),inset 0 1px 0 rgba(255,255,255,.18)}
body.front .uc-stats div{background:rgba(255,255,255,.72);border:1px solid #e8edf9}
body.front .uc-stats b{color:#1b2742}
body.front .uc-stats span{color:#8a96b5}
body.front .uc-links a{color:#3f4c6e}
body.front .uc-links a span{background:#e6faff;color:#0891b2}
body.front .uc-links a:hover{background:rgba(6,182,212,.08)}
body.front .guest-title{color:#101e3c}
body.front .guest-tip{color:#75819e}

/* 公告（富文本） */
body.front .home-notice{background:var(--t-glass);border:1px solid var(--t-line);border-left:3px solid #06b6d4;
  backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(40,70,150,.08)}
body.front .home-notice .hn-title{color:#0e7490}
body.front .home-notice .hn-dot{background:#06b6d4;box-shadow:0 0 10px rgba(6,182,212,.6)}
/* 自带完整视觉的富文本公告（豆包卡片等）：去掉站点外层卡片框，直接呈现其自身卡片；仅PC，手机仍用手机公告 */
body.front .home-notice.is-card{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important;padding:0!important;overflow:visible!important}
body.front .home-notice.is-card .hn-title{display:none!important}
body.front .home-notice.is-card .hn-body{padding:0!important;background:none!important;border-radius:0!important}
body.front .home-notice .hn-body,body.front .rich-text{color:#41507a}
body.front .rich-text h1,body.front .rich-text h2,body.front .rich-text h3,body.front .rich-text h4{color:#1b2742}
body.front .rich-text a{color:#2563eb}
body.front .rich-text code{background:#e6faff;color:#0e7490}
body.front .rich-text blockquote{background:rgba(6,182,212,.07);border-left-color:#06b6d4;color:#41507a}
body.front .rich-text th{background:#f1f5ff}
body.front .rich-text th,body.front .rich-text td{border-color:#e3e9f7}
body.front .rich-text hr{border-top-color:#e8edf9}

/* 弹层：浅色玻璃 */
body.front .modal-mask{background:rgba(40,60,120,.30);backdrop-filter:blur(4px)}
body.front .modal-box{background:linear-gradient(180deg,#ffffff,#f7faff);border:1px solid #e3e9f7;
  box-shadow:0 30px 80px rgba(30,50,110,.30),inset 0 1px 0 #fff}
body.front .modal-head{border-bottom:1px solid #e8edf9;color:#101e3c}
body.front .modal-foot{background:#f7f9fe;border-top:1px solid #e8edf9}
body.front .modal-x{background:#f1f4fa;color:#5a6484}
body.front .modal-x:hover{background:#ffe1e4;color:#e11d48}
body.front .modal-loading{color:#8a96b5}
body.front .modal-loading::before{border-color:#bfeaf3;border-top-color:#06b6d4}

/* 表格（订单记录 / 资金明细 / 会员资料） */
body.front .admin-table{color:#2a3757}
body.front .admin-table th{background:linear-gradient(180deg,#f2f7ff,#eaf1fe);color:#2b47a8;border-bottom:1px solid #e3e9f7}
body.front .admin-table td{border-bottom:1px solid #eef1f8;color:#2a3757}
body.front .admin-table tbody tr:nth-child(even) td{background:rgba(80,120,220,.035)}
body.front .admin-table tr:hover td{background:rgba(6,182,212,.07)}
body.front .page-size-select{background:#fff;border:1px solid #d7e0f2;color:#41507a}
body.front .pager a,body.front .pager .pager-disabled,body.front .pager .pager-dots{background:#fff;border:1px solid #dde5f5;color:#46507a}
body.front .pager a.cur{background:var(--t-grad);color:#fff;font-weight:700;border-color:transparent}
body.front .pager-info{color:#8a96b5}

/* 胶囊选项卡 */
body.front .cat-tab,body.front .ftab{background:rgba(255,255,255,.75);border:1px solid #dde5f5;color:#46507a}
body.front .cat-tab:hover,body.front .ftab:hover{border-color:rgba(6,182,212,.55);color:#0e7490}
body.front .cat-tab.active,body.front .ftab.on{background:var(--t-grad);color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(59,130,246,.30)}
body.front .ftab-n{background:rgba(30,50,100,.08);color:inherit}

/* 徽章 / 状态（浅色语义） */
body.front .badge{background:#eef1f8;color:#4a5678}
body.front .badge-ok,body.front .st-2{background:#e3f7ea;color:#15803d}
body.front .badge-info,body.front .st-1{background:#e6efff;color:#1d4ed8}
body.front .badge-warn,body.front .st-0{background:#fff3df;color:#b45309}
body.front .st-3{background:#eceef4;color:#8a93a6}
body.front .st-4{background:#ffe7eb;color:#c81e3a}

/* 订单状态条 / 键值表 / 发货内容 */
body.front .status-banner{background:var(--t-glass);border:1px solid var(--t-line);color:#1d2942}
body.front .kv-table tr{border-bottom:1px solid #eef1f8}
body.front .kv-table th{color:#8a96b5}
body.front .kv-table td{color:#2a3757}
body.front .deliver-content{background:#0d1730;color:#cfe0ff;border:1px solid rgba(125,211,252,.22);box-shadow:inset 0 0 28px rgba(34,211,238,.06)}
body.front .qr-text{background:#f4f7fd;border:1px solid #e3e9f7;color:#41507a}

/* 收银台 / 充值 */
body.front .pay-method{background:rgba(255,255,255,.72);border:1px solid #dde5f5}
body.front .pay-method:hover{border-color:rgba(6,182,212,.55);box-shadow:0 8px 22px rgba(6,182,212,.10)}
body.front .pm-head{color:#101e3c}
body.front .quick-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
body.front .qa-btn{background:#fff;border:1px solid #d7e0f2;color:#33405f;border-radius:10px;padding:9px 0}
body.front .qa-btn:hover{border-color:#06b6d4;color:#0e7490;background:#e6faff}
body.front .alipay-btn{background:linear-gradient(135deg,#1677ff,#06b6d4);color:#fff;box-shadow:0 8px 20px rgba(22,119,255,.30)}

/* 会员中心：余额渐变卡（深色焦点）+ 明细统计玻璃卡 */
body.front .uc-card{background:linear-gradient(135deg,#0b2a52 0%,#1e3a8a 46%,#4c1d95 100%);color:#fff;
  border:1px solid rgba(125,211,252,.25);box-shadow:0 18px 44px rgba(30,58,138,.38),inset 0 1px 0 rgba(255,255,255,.12)}
body.front .uc-card .uc-name{color:#fff}
body.front .uc-card .uc-uid{color:rgba(255,255,255,.72)}
body.front .uc-card .uc-logout{background:rgba(255,255,255,.14);color:#fff}
body.front .uc-card .uc-logout:hover{background:rgba(255,255,255,.24)}
body.front .uc-card .btn-primary{background:#fff;color:#1d4ed8;box-shadow:none;border-color:transparent}
body.front .uc-card .btn-primary:hover{background:#eef4ff;color:#1d4ed8}
body.front .stat-card{background:var(--t-glass);border:1px solid var(--t-line);backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(40,70,150,.08)}
body.front .stat-card::before{background:var(--t-grad)}
body.front .stat-num{color:#0891b2}
body.front .stat-label{color:#75819e}
body.front .stat-card.warn .stat-num{color:#d97706}

/* 订单详情弹框内容 */
body.front .od-head{border-bottom:1px solid #e8edf9}
body.front .od-no{color:#5a6484}
body.front .od-label,body.front .od-kv>span{color:#8a96b5}
body.front .od-detail .kv-table th{color:#8a96b5}
body.front .od-detail .kv-table td,body.front .od-kv>b{color:#2a3757}
body.front .od-kv{border-bottom:1px dashed #e8edf9}
body.front .od-content{background:#f5f8fe;border:1px solid #e3e9f7;color:#33405f}
/* 手机端订单详情卡片（仅 is_mobile 片段输出 odm-card，电脑端仍用 kv-table） */
body.front .odm-card{background:#f6f8fe;border:1px solid #e6ebf7;border-radius:14px;padding:2px 14px;margin-bottom:4px}
body.front .odm-card .od-kv{padding:11px 0;align-items:flex-start}
body.front .odm-card .od-kv>span{flex:0 0 72px;white-space:nowrap}
body.front .odm-card .od-kv>b{text-align:left}
body.front .odm-amount{color:var(--primary);font-size:15px;font-weight:800}

/* 提示条：浅色语义 */
body.front .alert,body.front .alert-ok{background:#e9f9ef;border:1px solid #bfe9cd;color:#15803d}
body.front .alert-err{background:#fef0f0;border-color:#f6c9ca;color:#b91c1c}
body.front .alert-info{background:#ebf1fe;border-color:#c8dafb;color:#1d4ed8}
body.front .alert-warn{background:#fff7e8;border-color:#f5d9a8;color:#b45309}

/* 页脚 / 数字 */
body.front .site-footer{background:transparent;border-top:1px solid #dde5f5;color:#8a96b5}
body.front .ub-num,body.front .gr-price b,body.front .total-price,body.front .stat-num{font-variant-numeric:tabular-nums}
body.front .ub-num.sm{font-size:19px}
body.front .ub-num.xs{font-size:15px}
body.front .ub-num.xxs{font-size:13px}

/* 滚动条 */
body.front *::-webkit-scrollbar{width:10px;height:8px}
body.front *::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#67e8f9,#3b82f6);border-radius:8px;border:2px solid transparent;background-clip:content-box}
body.front *::-webkit-scrollbar-track{background:transparent}

/* ============================================================
   移动端适配（手机 / 平板）
   ============================================================ */
@media(max-width:860px){
  .tech-bg .tg-glow{filter:blur(70px)}
  /* 顶部：logo 一行，导航第二行横向滑动 */
  body.front .header-inner{display:flex;height:auto;flex-wrap:wrap;padding:8px 0;gap:4px}
  body.front .header-inner>.logo{position:static;transform:none;width:100%;display:block;text-align:center;font-size:17px;line-height:1.3;white-space:normal;word-break:break-word;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
  body.front .main-nav{order:3;width:100%;min-width:0;max-width:100%;flex:0 0 100%;flex-wrap:nowrap;justify-content:center;justify-content:safe center;align-items:center;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:scrolling;scrollbar-width:none;
    padding:0 4px 2px;margin:4px 0 0;gap:5px}
  body.front .main-nav::-webkit-scrollbar{display:none}
  body.front .main-nav a{flex:0 0 auto;margin:0;padding:7px 10px;white-space:nowrap;font-size:13px}
  body.front .main-nav a.nav-bell{padding:0 8px}
  body.front .main-nav a.uc-pc,body.front .main-nav a.nav-logout{display:none}
  body.front .main-nav a.uc-m{display:inline-flex;align-items:center}
  body.front .main-nav a.uc-m .nav-balance{padding:2px 8px;font-size:11px;margin-left:2px}
  body.front .site-main{padding:16px 12px 34px}
  /* 三栏 -> 单列 */
  body.front .home-layout{display:block}
  body.front .side-left{display:block}
  body.front .side-cats,body.front .side-user{position:static}
  body.front .home-layout .side-user{display:none}
  body.front .home-center{display:block;min-width:0}
  body.front .side-cats{margin-bottom:10px}
  body.front .side-cats nav{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:scroll}
  body.front .side-cats nav::-webkit-scrollbar{display:none}
  body.front .scat{flex:0 0 auto;white-space:nowrap}
  body.front .scat-arrow{display:none}
  /* 修复 iOS Safari 横向溢出：grid/flex 子项显式可收缩、分类横滚不撑宽整列、长商品名可断行 */
  body.front .home-layout{grid-template-columns:minmax(0,1fr)}
  body.front .side-cats,body.front .home-center,body.front .goods-group{min-width:0;max-width:100%}
  body.front .gg-list,body.front .goods-row{min-width:0;max-width:100%}
  body.front .side-cats nav,body.front .main-nav{max-width:100%}
  body.front .gr-name{overflow-wrap:anywhere}
  body.front .header-inner>.logo{min-width:0;overflow-wrap:anywhere}
  /* 商品行：名称整行，价格+按钮另起一行并排 */
  body.front .goods-row{flex-wrap:wrap;gap:8px;padding:9px 2px}
  body.front .gr-main{flex:1 1 100%;min-width:0}
  body.front .gr-right{flex:1 1 100%;width:100%;flex-direction:row;justify-content:space-between;align-items:center}
  body.front .gr-name{font-size:14px}
  body.front .gr-price b{font-size:17px}
  body.front .gr-right .btn-primary{padding:8px 20px}
  body.front .gg-head{font-size:14px;padding:10px 2px}
  body.front .goods-group{padding:4px 12px 10px}
  /* 老安卓 WebView / 百度T7 内核：商品列表整体提升为独立合成层，避免重排后旧层残留导致同一张分类卡片被绘制两次；卡片/行不再做位移过渡与悬停位移，杜绝子合成层重复 */
  body.front .home-center{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden}
  body.front .goods-group,body.front .gg-list{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}
  body.front .card-soft,body.front .goods-group,body.front .goods-row{transition:none}
  body.front .goods-row:hover{transform:none}
  body.front .panel,body.front .card-soft,body.front .user-card{padding:15px}
  /* 数据表格横向滑动，不挤破布局 */
  body.front .uc-wrap .panel{overflow-x:auto;-webkit-overflow-scrolling:scroll}
  body.front .uc-wrap .admin-table{min-width:560px;font-size:12.5px}
  /* 订单详情键值表：标签横排不逐字断行，长链接/账号强制换行不撑宽 */
  body.front .kv-table{width:100%;table-layout:fixed}
  body.front .kv-table th{width:84px;white-space:nowrap;vertical-align:top}
  body.front .kv-table td{word-break:break-all;overflow-wrap:anywhere;min-width:0}
  body.front .od-kv>span{white-space:nowrap}
  body.front .od-content{word-break:break-all;overflow-wrap:anywhere}
  /* 弹层近全宽 */
  body.front .modal-mask{padding:10px;align-items:center}
  body.front .modal-box{max-width:100%;max-height:88vh;max-height:calc(100dvh - 20px);border-radius:16px}
  body.front .modal-head{flex:0 0 auto}
  /* 长商品简介（富文本/长图）手机端限高、弹层内部滚动，绝不把头部关闭按钮顶出可视区 */
  body.front .modal-richtext{max-height:30vh}
  /* 统计 / 余额卡（billing 三卡为内联3列，手机端收紧字号内边距而非改列数） */
  body.front .stat-grid{gap:8px}
  body.front .stat-card{padding:14px 8px}
  body.front .stat-num{font-size:15px;word-break:normal;line-height:1.35}
  body.front .stat-label{font-size:11px}
  body.front .uc-card{flex-direction:column;align-items:flex-start;gap:14px;padding:20px}
  body.front .uc-links{grid-template-columns:repeat(3,1fr);max-width:none}
  body.front .qa-btn{padding:11px 0}
  body.front .pm-line{flex-direction:column;align-items:flex-start}
  body.front .ub-num{font-size:21px}
  body.front .total-price{font-size:22px}
}
@media(max-width:420px){
  body.front .gr-right .btn-primary{padding:8px 15px}
  body.front .uc-stats{grid-template-columns:repeat(4,1fr)}
  body.front .nav-balance{display:none} /* 极窄屏隐藏导航上的余额，余额在会员卡/会员中心可见 */
}

/* ============================================================
   订单记录 / 资金明细：统计卡、搜索栏、手机卡片化（v9）
   ============================================================ */
body.front .text-primary{color:var(--primary)}
/* 桌面表格“下单内容 / 详情”列 */
body.front .cell-input{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#465064}
body.front .bill-detail-cell{max-width:260px;white-space:normal;line-height:1.45;color:#465064}

/* 订单概览统计 */
body.front .order-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 4px}
body.front .oo-item{background:linear-gradient(135deg,#f6f9ff,#eef3ff);border:1px solid #e6edfd;border-radius:14px;padding:14px 10px;text-align:center;display:flex;flex-direction:column;gap:4px}
body.front .oo-num{font-size:22px;font-weight:800;color:var(--text);line-height:1.1}
body.front .oo-label{font-size:12px;color:var(--muted)}

/* 明细 今日/昨日 收益消费四卡 */
body.front .bill-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}
body.front .bill-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 16px;box-shadow:0 4px 14px rgba(31,45,71,.05)}
body.front .bs-ic{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 42px}
body.front .bs-ic svg{width:22px;height:22px}
body.front .bill-stat.is-in .bs-ic{background:#e7f7ee;color:var(--ok)}
body.front .bill-stat.is-out .bs-ic{background:#fef0e2;color:var(--warn)}
body.front .bs-label{font-size:12px;color:var(--muted);margin-bottom:2px}
body.front .bs-num{font-size:19px;font-weight:800;line-height:1.1}
body.front .bill-stat.is-in .bs-num{color:var(--ok)}
body.front .bill-stat.is-out .bs-num{color:#d97706}

/* 明细搜索栏 */
body.front .bill-search{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 16px}
body.front .bill-search select{flex:0 0 120px;height:42px;border-radius:12px}
body.front .bill-search input{flex:1 1 auto;height:42px;border-radius:12px;min-width:130px}
body.front .bill-search input[type=date]{flex:0 0 auto;min-width:148px;max-width:170px}
body.front .bill-search input[name=kw]{flex:1 1 160px}
body.front .bill-search .btn-primary{flex:0 0 auto;height:42px;border-radius:12px;display:inline-flex;align-items:center;gap:6px;padding:0 20px}

/* 手机卡片容器：桌面隐藏 */
body.front .order-cards-mobile,body.front .bill-cards-mobile{display:none}

/* 订单卡片 */
body.front .order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 6px 18px rgba(31,45,71,.06);margin-bottom:12px}
body.front .oc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px dashed var(--line);margin-bottom:10px}
body.front .oc-no{font-weight:800;color:var(--text);font-size:15px}
body.front .oc-goods{font-weight:700;color:var(--text);font-size:14.5px;line-height:1.45;margin-bottom:8px}
body.front .oc-kv{display:flex;gap:12px;font-size:13px;padding:4px 0;align-items:flex-start}
body.front .oc-k{flex:0 0 64px;color:var(--muted)}
body.front .oc-v{flex:1 1 auto;min-width:0;color:#3a4356;text-align:right;word-break:break-all;overflow-wrap:anywhere}

/* 明细卡片 */
body.front .bill-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 6px 18px rgba(31,45,71,.06);margin-bottom:12px}
body.front .bc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
body.front .bc-amt{font-weight:800;font-size:16px;padding:3px 12px;border-radius:20px;white-space:nowrap}
body.front .bc-amt.is-in{color:var(--ok);background:#e7f7ee}
body.front .bc-amt.is-out{color:#d97706;background:#fef0e2}
body.front .badge.badge-pay{background:#fef0e2;color:#d97706}
body.front .bc-detail{font-size:13.5px;color:#3a4356;line-height:1.5;margin-bottom:8px;word-break:break-all;overflow-wrap:anywhere}
body.front .bc-orderno{font-size:12px;color:var(--muted);margin-bottom:8px}
body.front .bc-orderno .mono{color:#465064;font-weight:600}
.lk-no{color:var(--primary);font-weight:600;text-decoration:none}
.lk-no:hover{text-decoration:underline}
body.front .bc-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);border-top:1px dashed var(--line);padding-top:8px}

/* ===== 手机端：表格转卡片 ===== */
@media(max-width:860px){
  body.front .order-table-desktop,body.front .bill-table-desktop{display:none}
  body.front .order-cards-mobile,body.front .bill-cards-mobile{display:block}
  body.front .order-overview{grid-template-columns:repeat(2,1fr)}
  body.front .bill-stats{grid-template-columns:repeat(2,1fr);gap:10px}
  body.front .bill-stat{padding:13px 14px}
  body.front .bs-num{font-size:17px}
  body.front .bill-search select{flex-basis:104px}
  body.front .bill-search .btn-primary{padding:0 14px}
  /* 订单记录顶部筛选：搜索框整行，状态 tab 横向滑动 */
  body.front .orders-filter{flex-wrap:wrap!important}
  body.front .orders-filter input[name=kw]{flex:1 1 100%!important;width:100%!important}
  body.front .order-tabs{overflow-x:auto;flex-wrap:nowrap!important;-webkit-overflow-scrolling:scroll;padding-bottom:4px}
  body.front .order-tabs .cat-tab{flex:0 0 auto}
}
@media(max-width:420px){
  body.front .bill-search select{flex-basis:96px}
  body.front .oo-num{font-size:20px}
}

/* ===== 活动配置（后台）：步骤整条地址框、宽弹层 ===== */
.act-step{border:1px solid #e6eaf3;border-radius:12px;padding:12px 14px;margin:0 0 12px;background:#fafbff}
.act-step-title{font-size:13.5px;font-weight:700;color:#33405c;margin-bottom:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.act-step textarea.act-api{width:100%;min-height:120px;line-height:1.7;font-size:13px;word-break:break-all;resize:vertical;padding:12px 14px;background:#edf0f8;border-color:#d2d9ec;box-shadow:inset 0 1px 2px rgba(16,24,40,.05)}
.act-step textarea.act-api::placeholder{color:#8a93ab}
.act-step textarea.act-api:focus{background:#fff;border-color:var(--primary-l);box-shadow:0 0 0 3px rgba(79,110,247,.13)}
@media(max-width:640px){
  .modal-box.modal-wide{max-width:100%}
}

/* 分站开通：套餐版本选择（桌面两列，手机单列，避免窄屏溢出） */
.plan-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:860px){ .plan-list{grid-template-columns:1fr} }
/* 输入框 + 固定后缀（如域名前缀 .主域）：后缀绝对定位贴右，绝不参与宽度竞争、窄屏不溢出 */
.input-affix{position:relative;display:block;min-width:0;max-width:100%}
.input-affix>input{width:100%;min-width:0;padding-right:118px}
.input-affix>span{position:absolute;top:0;right:0;bottom:0;display:inline-flex;align-items:center;justify-content:center}
/* 移动端收敛科技背景光晕，杜绝横向溢出（前台） */
@media (max-width:860px){
  .tech-bg .tg-glow-b,.tech-bg .tg-glow-c{display:none}
  .tech-bg .tg-glow-a{width:300px;height:300px;left:-110px;top:-130px}
}
body.front{overflow-x:hidden}
/* 手机端直接关闭科技背景装饰层（光晕+网格），彻底避免横向溢出；桌面保留 */
@media (max-width:860px){ body.front .tech-bg{display:none} }
/* 窄屏防溢出：补齐栅格/弹性链路 min-width:0，面板不被内容撑出视口 */
.uc-wrap{width:100%;min-width:0}
.uc-wrap>.panel{min-width:0;max-width:100%}
.form-grid,.form-grid>div,.field,.input-affix{min-width:0}
.mono{overflow-wrap:anywhere;word-break:break-word}
@media (max-width:860px){
  .site-main{width:100%;max-width:100%}
  .uc-wrap>.panel{overflow:visible}
}
/* 手机端前台：强制主内容/表单不超过视口，杜绝任何横向溢出（760 与主断点一致） */
@media (max-width:760px){
  html,body.front{max-width:100%;overflow-x:hidden}
  body.front .container{width:100%;max-width:100%}
  body.front .site-main{width:100%;max-width:100%;padding-left:12px;padding-right:12px}
  body.front .uc-wrap,body.front .uc-wrap>.panel,body.front form,
  body.front .form-grid,body.front .form-grid>div,
  body.front .field,body.front .input-affix{min-width:0;max-width:100%}
  body.front input,body.front select,body.front textarea{min-width:0;max-width:100%}
  body.front .input-affix>input{padding-right:104px}
  body.front .mono,body.front .pm-tip,body.front .text-muted{overflow-wrap:anywhere;word-break:break-word}
}
/* ---- 后台图片上传 / 缩略图（分类图标、商品图片） ---- */
.thumb-32,.thumb-40,.thumb-56{object-fit:cover;border-radius:9px;border:1px solid var(--line);background:#fff;display:inline-block;flex:none}
.thumb-32{width:32px;height:32px}
.thumb-40{width:40px;height:40px}
.thumb-56{width:56px;height:56px;border-radius:10px}
.thumb-empty{display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);background:#f6f7fb}
.img-file{font-size:12.5px}
.img-file::file-selector-button{margin-right:10px;padding:6px 12px;border:0;border-radius:8px;background:var(--primary);color:#fff;cursor:pointer;font-size:12.5px}
.img-file::file-selector-button:hover{filter:brightness(1.05)}
/* ===== 分类图标 / 商品缩略图（有图才渲染，无图保持纯文字版式不变） ===== */
.scat-icon{width:26px;height:26px;border-radius:7px;object-fit:cover;flex:none;background:#fff;border:1px solid rgba(15,23,42,.08)}
.gg-icon{width:24px;height:24px;border-radius:7px;object-fit:cover;flex:none;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 2px 6px rgba(31,45,90,.08)}
.scat.on .scat-icon{border-color:transparent;box-shadow:0 2px 6px rgba(0,0,0,.14)}
.gr-main{display:flex;align-items:center;gap:10px}
.gr-text{flex:1;min-width:0}
.gr-pic{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none;background:#fff;border:1px solid #eef1f7;box-shadow:0 3px 10px rgba(31,45,90,.06)}
@media(max-width:860px){
  .scat-icon{width:22px;height:22px;border-radius:6px}
  .gg-icon{width:20px;height:20px;border-radius:6px}
  .gr-pic{width:40px;height:40px;border-radius:9px}
  .gr-main{gap:10px}
}

/* ===== 商品新增/编辑：两列卡片布局（桌面双栏，手机单栏） ===== */
#goodsForm.admin-form{max-width:none}
.goods-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;align-items:start}
.goods-edit-grid .ge-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.goods-edit-grid .gcard{background:#fff;border:1px solid #eef0f6;border-radius:14px;padding:14px 16px 16px;min-width:0;box-shadow:0 1px 3px rgba(31,45,80,.04)}
.goods-edit-grid .gcard-accent{border-color:#d9e2ff;background:linear-gradient(180deg,#fafbff,#ffffff)}
.goods-edit-grid .gcard > .form-section{margin:0 0 12px}
.goods-edit-grid .gcard .form-grid{margin-bottom:0}
.goods-edit-grid .gcard .form-grid + .form-grid{margin-top:12px}
.goods-edit-grid .gcard .form-hint{margin:10px 0 0}
.goods-edit-grid .gcard .field-preview{margin:10px 0 0}
.goods-edit-grid .gcard input[type="datetime-local"]{width:100%}
.goods-edit-grid .col-span{grid-column:1/-1}
@media (max-width:960px){
  .goods-edit-grid{grid-template-columns:1fr}
  .goods-edit-grid .gcard .form-grid.g3{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .goods-edit-grid .gcard .form-grid.g2,
  .goods-edit-grid .gcard .form-grid.g3{grid-template-columns:1fr}
}
/* ===================== 弹窗内支付（支付方式选择 / 支付结果） ===================== */
.ps-loading{padding:34px 12px;text-align:center;color:#9aa1b3;font-size:13.5px;line-height:1.9}
.ps-loading small{color:#aab2c4}
.ps-fail{padding:16px;margin:4px 0 14px;border-radius:12px;background:#fef2f2;color:#dc2626;font-size:13.5px;text-align:center;line-height:1.7}
.ps-fail a{color:#dc2626;text-decoration:underline}

.pay-sheet{padding:4px 2px 2px}
.ps-goods{text-align:center;color:#5a6478;font-size:13px;font-weight:600;padding:2px 8px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-goods span{color:#9aa1b3;font-weight:500;margin-left:4px}
.ps-amount{display:flex;align-items:baseline;justify-content:center;gap:2px;margin:10px 0 2px;font-weight:800;color:#1f2733}
.ps-amount .ps-cny{font-size:20px;font-weight:700;margin-right:2px}
.ps-amount b{font-size:42px;line-height:1.1;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.ps-sub{text-align:center;color:#9aa1b3;font-size:13px;margin:6px 0 14px}

.ps-list{display:flex;flex-direction:column;gap:12px}
.ps-item{display:flex;align-items:center;gap:13px;width:100%;border:1px solid #e8ecf3;background:#fff;border-radius:14px;padding:13px 15px;cursor:pointer;text-align:left;transition:.16s;box-shadow:0 2px 10px rgba(31,45,71,.04)}
.ps-item:hover{border-color:#c6d2f7;box-shadow:0 8px 22px rgba(79,110,247,.12);transform:translateY(-1px)}
.ps-item:active{transform:translateY(0)}
.ps-item.is-disabled,.ps-item:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none;background:#f6f8fc}
.ps-item.is-disabled:hover{border-color:#e8ecf3}
.ps-ic{flex:0 0 auto;width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:19px;font-weight:700;font-style:normal}
.ps-ic-alipay{background:linear-gradient(135deg,#1677ff,#0958d9);box-shadow:0 6px 14px rgba(22,119,255,.3)}
.ps-ic-balance{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 6px 14px rgba(34,197,94,.28)}
.ps-meta{flex:1 1 auto;display:flex;flex-direction:column;min-width:0}
.ps-meta b{font-size:15px;color:#1f2733;font-weight:700}
.ps-meta em{font-style:normal;font-size:12.5px;color:#9aa1b3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-arrow{flex:0 0 auto;color:#c2cad9;font-size:24px;font-weight:400;line-height:1}
.ps-item.is-loading{pointer-events:none;opacity:.7}
.ps-item.is-loading .ps-arrow{color:var(--primary)}
.ps-item.is-loading .ps-arrow::before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #c6d2f7;border-top-color:var(--primary);border-radius:50%;animation:psspin .7s linear infinite}
.ps-item.is-loading .ps-arrow{font-size:0}
@keyframes psspin{to{transform:rotate(360deg)}}

.ps-login{text-align:center;font-size:12.5px;color:#8a93a6;padding:6px 2px}
.ps-login a{font-weight:600}
.ps-cancel{display:block;width:100%;margin-top:16px;padding:8px;background:transparent;border:0;color:#9aa1b3;font-size:14px;cursor:pointer;border-radius:10px}

.ps-cancel:hover{color:#6b7488;background:#f4f6fb}
.ps-msg{display:none;margin-top:12px;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#dc2626;font-size:13px;text-align:center;line-height:1.6}
.ps-msg.show{display:block}

.ps-btn-primary{display:block;width:100%;margin-top:14px;border:0;cursor:pointer;border-radius:12px;padding:13px;font-size:15px;font-weight:700;color:#fff;background:var(--grad);box-shadow:0 8px 20px rgba(79,110,247,.28);transition:.16s}
.ps-btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.ps-btn-primary:disabled{background:#b9c3da;box-shadow:none;cursor:not-allowed;transform:none}
.ps-btn-ghost{display:block;width:100%;margin-top:10px;border:1px solid var(--line);background:#fff;cursor:pointer;border-radius:12px;padding:11px;font-size:14px;font-weight:600;color:#3a4356}
.ps-btn-ghost:hover{background:#f4f6fb}
.modal-form-err{margin:0 0 12px;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.6}

/* 支付结果 */
.pay-result{padding:6px 2px 2px;text-align:center}
.pr-icon{width:64px;height:64px;border-radius:50%;margin:6px auto 14px;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;font-weight:700}
.pr-icon.is-success{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 10px 24px rgba(34,197,94,.32)}
.pr-icon.is-closed{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 10px 24px rgba(100,116,139,.28)}
.pr-icon.is-pending{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 10px 24px rgba(59,130,246,.3)}
.pr-icon.is-pending::before{content:"";width:26px;height:26px;border:3px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:psspin .8s linear infinite}
.pr-icon.is-pending{font-size:0}
.pr-head{font-size:19px;font-weight:800;color:#1f2733;margin-bottom:8px}
.pr-head.is-success{color:#16a34a}
.pr-head.is-closed{color:#64748b}
.pr-head.is-pending{color:#2563eb}
.pr-note{color:#5a6478;font-size:13.5px;line-height:1.7;margin:6px 4px 12px}
.pr-waiting{color:#9aa1b3;font-size:12.5px;margin-bottom:10px}
.pr-block{text-align:left;margin:8px 0 12px}
.pr-label{font-size:12.5px;color:#8a93a6;margin-bottom:6px;font-weight:600}
.pr-deliver{margin:0 0 10px;padding:13px 14px;background:#f6f8fc;border:1px solid #e8ecf3;border-radius:12px;font-family:ui-monospace,Consolas,Menlo,monospace;font-size:13px;line-height:1.7;white-space:pre-wrap;word-break:break-all;max-height:260px;overflow:auto;color:#1f2733}
.pr-meta{margin:14px 0 4px;border-top:1px dashed #e8ecf3;padding-top:12px;text-align:left}
.pr-meta>div{display:flex;justify-content:space-between;gap:14px;padding:5px 2px;font-size:13px}
.pr-meta span{color:#9aa1b3;flex:0 0 auto}
.pr-meta b{color:#3a4356;font-weight:600;text-align:right;word-break:break-all}
.pr-meta .pr-amount{color:#ef4444;font-weight:800}
.text-danger{color:#ef4444;font-weight:700}

@media (max-width:560px){
  .ps-amount b{font-size:38px}
  .ps-item{padding:12px 13px}
  .ps-ic{width:40px;height:40px;font-size:18px}
  .pr-icon{width:58px;height:58px}
  .modal-body{padding:16px 15px}
}
/* ===== 支付成功回到订单记录：成功横幅 + 新订单行高亮 ===== */
.paid-banner{font-size:14px;line-height:1.7;margin:14px 0 0}
@keyframes paidRow{0%{background:#ffe9a8}25%{background:#fff6d6}50%{background:#ffe9a8}75%{background:#fff6d6}100%{background:#fef9e7}}
.order-table-desktop tr.paid-flash>td{animation:paidRow 2.2s ease-out 1;background:#fef9e7 !important}
.order-card.paid-flash{animation:paidRow 2.2s ease-out 1;background:#fef9e7;border-color:#f0d488}
@media(max-width:560px){.paid-banner{font-size:13px}}
/* ===== 后台表格「操作列」紧凑按钮组（会员管理等） ===== */
.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.row-actions form{display:inline;margin:0}
.row-actions a,.row-actions button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:5px 11px;margin:0;font-size:12.5px;font-weight:500;line-height:1.45;
  border-radius:8px;background:#eef1f8;color:#3a4356;border:1px solid var(--line);
  cursor:pointer;text-decoration:none;white-space:nowrap;
  font-family:inherit;box-shadow:none;transition:background .15s,color .15s,transform .1s,border-color .15s;
}
.row-actions a:hover,.row-actions button:hover{background:#e3e8f3;color:#1f2733;border-color:#d3dbea;transform:translateY(-1px);text-decoration:none}
.row-actions .ra-danger{background:#fef2f2;color:#dc2626;border-color:#fecaca}
.row-actions .ra-danger:hover{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.row-actions .ra-ok{background:#ecfdf5;color:#059669;border-color:#a7f3d0}
.row-actions .ra-ok:hover{background:#d1fae5;color:#047857;border-color:#6ee7b7}
/* 表格行内展开区（调整余额/对接通知/联系QQ/重置密码），桌面按表格行展开 */
.admin-table tbody tr.row-extra{display:none;background:#fafcff}
.admin-table tbody tr.row-extra.open{display:table-row}
/* 行操作“更多”下拉 */
.ra-more{position:relative;display:inline-block}
.ra-more-toggle .ra-caret{font-size:10px;margin-left:2px}
.ra-menu{
  display:none;position:absolute;right:0;top:calc(100% + 5px);z-index:70;
  min-width:132px;padding:6px;background:#fff;border:1px solid var(--line);
  border-radius:10px;box-shadow:0 10px 28px rgba(60,50,120,.16);
}
.ra-more.open .ra-menu{display:block}
.ra-menu button,.ra-menu a{
  display:flex;align-items:center;width:100%;box-sizing:border-box;
  padding:8px 10px;margin:0;border:0;background:none;border-radius:7px;
  font-size:12.5px;font-weight:500;color:#3a4356;text-align:left;line-height:1.4;
  cursor:pointer;white-space:nowrap;text-decoration:none;font-family:inherit;
  box-shadow:none;transform:none;
}
.ra-menu button:hover,.ra-menu a:hover{background:#f3f0ff;color:#6d28d9;border:0;transform:none}
/* ===== 资金明细筛选区：横排 + 今天/昨天/上月快捷范围（前后台共用） ===== */
.bill-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}
.bill-filter .bf-tabs{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
.bf-form{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.bf-form input[type=date]{width:auto;min-width:142px;flex:0 0 auto;height:34px;border-radius:20px;padding:0 12px;border:1px solid var(--line);background:#fff;font-size:13px;color:var(--text)}
.bf-form select{width:auto;flex:0 0 auto;height:34px;border-radius:20px;padding:0 12px;border:1px solid var(--line);background:#fff;font-size:13px;color:var(--text)}
.bf-sep{color:var(--muted);font-size:13px}
.bf-quicks{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}
.bf-quick{height:30px;padding:0 14px;border-radius:16px;border:1px solid var(--line);background:#eef1f8;color:#4a5568;font-size:12.5px;font-weight:500;cursor:pointer;line-height:1;font-family:inherit;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.bf-quick:hover{background:#e3e8f3}
.bf-quick.on{background:var(--primary);border-color:var(--primary);color:#fff}
body.front .bf-form input[type=date]{height:40px;border-radius:12px;min-width:138px}
body.front .bf-quick{height:34px;border-radius:17px}
@media (max-width:640px){
  .bill-filter{flex-direction:column;align-items:stretch}
  .bill-filter .bf-tabs{justify-content:flex-start}
  .bf-form{justify-content:flex-start}
}
/* ===== 会员中心·会员公告（电脑/手机共用，紧凑、对齐、富文本不溢出） ===== */
.member-notice-panel{padding:14px 18px}
.member-notice-panel .block-title{margin:0 0 8px;font-size:15px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.m-notice h3{margin:0 0 8px}
.mn-body{font-size:13.5px;line-height:1.7;color:#475569;word-break:break-word;overflow-wrap:anywhere}
.mn-body p{margin:4px 0}
.mn-body img{max-width:100%;height:auto;border-radius:10px}
.mn-body a{color:#2563eb}
.mn-body ul,.mn-body ol{padding-left:20px;margin:6px 0}
.mn-body table{max-width:100%;border-collapse:collapse}
.mn-body table td,.mn-body table th{border:1px solid #e5e7eb;padding:4px 8px}
@media(max-width:640px){.mn-body{font-size:13px}}
/* ===== 下单页库存提示（整页 order.php 与快捷下单弹窗共用） ===== */
.stock-line{display:flex;align-items:center;gap:8px;margin:-2px 0 14px;padding:9px 12px;border-radius:10px;background:#f6f7fb;border:1px solid #eceef5}
.stock-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:#94a3b8}
.stock-text{font-size:13px;font-weight:600;color:#475569}
.stock-text b{font-weight:800}
.stock-line.st-ok .stock-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.15)}
.stock-line.st-ok .stock-text{color:#16a34a}
.stock-line.st-low .stock-dot{background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.15)}
.stock-line.st-low .stock-text{color:#ea580c}
.stock-line.st-out .stock-dot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.15)}
.stock-line.st-out .stock-text{color:#dc2626}
@media(max-width:640px){.stock-line{padding:8px 10px}.stock-text{font-size:12.5px}}
/* 分站中心：付费更换域名 */
.domain-current{margin:4px 0 2px;font-size:14px;background:#f1f5ff;border:1px solid #dbe4ff;border-radius:10px;padding:10px 14px;line-height:1.5}
.domain-current b{color:#4f6ef7}
.domain-input-row{display:flex;align-items:stretch;flex-wrap:wrap}
.domain-input-row input{flex:1;min-width:180px;margin:0;border-top-right-radius:0;border-bottom-right-radius:0}
.domain-input-row .domain-suffix{display:inline-flex;align-items:center;padding:0 14px;background:#eef2ff;border:1px solid #dfe5f5;border-left:0;border-radius:0 10px 10px 0;color:#64748b;font-size:14px;white-space:nowrap}
@media (max-width:600px){
  .domain-input-row input{min-width:0;width:100%;border-radius:10px}
  .domain-input-row .domain-suffix{width:100%;justify-content:flex-start;border-left:1px solid #dfe5f5;border-radius:10px;margin-top:8px;padding:9px 12px;background:transparent}
}
/* ===================== 下单页 分类/商品 切换选择器（分类、商品各占一行，整行清晰可读） ===================== */
body.front .picker-select{
  width:100%;height:46px;padding:0 44px 0 15px;border:1.5px solid #d8def5;border-radius:12px;
  background-color:#fff;color:#1f2750;font-size:14px;font-weight:600;letter-spacing:.2px;line-height:1.2;outline:none;cursor:pointer;
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  text-overflow:ellipsis;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'><circle cx='17' cy='12' r='6.6' fill='%234f6ef7' fill-opacity='0.18'/><polyline points='14.6,10.4 17,12.9 19.4,10.4' fill='none' stroke='%234f6ef7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:right 10px center;background-size:26px;
  box-shadow:0 2px 8px rgba(79,110,247,.08);
  transition:border-color .15s,box-shadow .15s,background-color .15s;
}
body.front .picker-select:hover{border-color:#aab6f5;background-color:#fff;box-shadow:0 4px 14px rgba(79,110,247,.14)}
body.front .picker-select:focus{border-color:#4f6ef7;background-color:#fff;box-shadow:0 0 0 4px rgba(79,110,247,.14)}
body.front .picker-select:disabled{opacity:.6;cursor:not-allowed;background:#f3f5fc}
body.front .picker-select option{color:#1f2750;font-weight:500;background:#fff}
body.front .picker-select option:disabled{color:#aab0c6}
html.theme-dark body.front .picker-select{
  background-color:#24283d;border-color:#353b58;color:#e6e9fb;box-shadow:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'><circle cx='17' cy='12' r='6.6' fill='%23ffffff' fill-opacity='0.14'/><polyline points='14.6,10.4 17,12.9 19.4,10.4' fill='none' stroke='%23cdd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
html.theme-dark body.front .picker-select:hover{border-color:#4a5590;background-color:#292e46}
html.theme-dark body.front .picker-select option{background:#24283d;color:#e6e9fb}
@media(max-width:600px){
  body.front .picker-select{height:48px;padding:0 42px 0 14px;font-size:16px;border-radius:12px}
  /* iOS：输入框字号<16px 聚焦会自动放大且失焦不回退，手机端统一16px根治 */
  body.front input:not([type]),body.front input[type=text],body.front input[type=number],body.front input[type=password],body.front input[type=email],body.front input[type=search],body.front input[type=tel],body.front input[type=url],body.front input[type=date],body.front input[type=time],body.front select,body.front textarea{font-size:16px}
}

/* ===================== 分站子页面 醒目返回按钮 ===================== */
.btn-back-home {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  background:linear-gradient(135deg,#8b5cf6,#7c3aed); color:#fff !important; border:none;
  border-radius:10px; padding:10px 18px; font-size:13.5px; font-weight:600; line-height:1;
  box-shadow:0 4px 12px rgba(124,58,237,.28); cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.btn-back-home:hover { background:linear-gradient(135deg,#7c3aed,#6d28d9); color:#fff !important; transform:translateY(-1px); box-shadow:0 6px 18px rgba(124,58,237,.38); }
.btn-back-home:active { transform:translateY(0); box-shadow:0 3px 10px rgba(124,58,237,.28); }
/* ================= 站内消息通知 ================ */
.main-nav a.nav-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;line-height:1}
.main-nav a.nav-bell .bell-ico{font-size:16px;line-height:1}
.bell-badge{position:absolute;top:-5px;right:-1px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#ff4d5e;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;box-shadow:0 1px 3px rgba(255,77,94,.45)}
.msg-unread-num{display:inline-block;min-width:20px;height:20px;padding:0 6px;margin-left:8px;border-radius:10px;background:var(--grad-soft);color:var(--primary);font-size:12px;font-weight:700;line-height:20px;text-align:center;vertical-align:middle}
.msg-list{margin:0 -2px}
.msg-item{display:flex;align-items:center;gap:12px;padding:15px 14px;border-radius:12px;border:1px solid transparent;cursor:pointer;transition:.15s}
.msg-item:hover{background:#f6f8ff;border-color:#e6ebfb;text-decoration:none}
.msg-dot{width:9px;height:9px;border-radius:50%;background:transparent;flex:0 0 auto}
.msg-item.is-unread .msg-dot{background:var(--primary);box-shadow:0 0 0 3px rgba(79,110,247,.15)}
.msg-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.msg-title{font-size:14.5px;color:#545d72;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-item.is-unread .msg-title{color:var(--text);font-weight:700}
.msg-sub{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.msg-badge{display:inline-block;padding:1px 8px;border-radius:8px;background:var(--grad-soft);color:var(--primary);font-size:11px;font-weight:600}
.msg-time{font-size:12px}
.msg-arrow{color:#c2c9d8;font-size:20px;font-weight:300;flex:0 0 auto}
.msg-back{display:inline-block;margin-bottom:14px}
.msg-d-title{margin:4px 0 10px;font-size:20px;color:var(--text);line-height:1.4}
.msg-d-meta{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px;flex-wrap:wrap}
.msg-body{font-size:14.5px;line-height:1.8;color:#3a4356;word-break:break-word}
.empty-box{padding:54px 20px;text-align:center;color:var(--muted);font-size:14px}
@media(max-width:640px){
  .main-nav a.nav-bell{padding:0 8px}
  .main-nav a.nav-bell .bell-ico{font-size:15px}
  .msg-item{padding:13px 10px;gap:10px}
  .msg-title{font-size:14px}
  .msg-d-title{font-size:17px}
  .msg-body{font-size:14px;line-height:1.75}
}
/* ================= 分站中心快捷按钮组（会员中心 / 分站概览）================ */
.site-quick-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.sqn-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;border-radius:10px;
  font-size:13.5px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;text-decoration:none;
  background:linear-gradient(135deg,#f4f5ff,#eef0ff);color:#4f46d6;border:1px solid #c3c8f5;
  box-shadow:0 2px 8px rgba(79,110,247,.10);transition:transform .15s,box-shadow .15s,background .15s,color .15s}
.sqn-btn:hover{background:linear-gradient(135deg,#e9ecff,#e2e6ff);border-color:#8b93f0;color:#3a42c6;
  transform:translateY(-1px);box-shadow:0 7px 18px rgba(79,110,247,.22);text-decoration:none}
.sqn-btn.primary{background:var(--grad);color:#fff;border-color:transparent;
  box-shadow:0 7px 18px rgba(99,91,246,.3)}
.sqn-btn.primary:hover{filter:brightness(1.07);color:#fff;box-shadow:0 9px 22px rgba(99,91,246,.4)}
@media(max-width:768px){
  .site-quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .sqn-btn{padding:12px 8px;font-size:13px;white-space:normal;min-width:0;width:100%;line-height:1.25}
  .sqn-btn.primary{grid-column:1 / -1;white-space:nowrap}
}
/* ============================================================
   前台个性化设置（主题皮肤 / 暗色 / 图片 / 公告）+ 设置浮窗
   ============================================================ */
/* ---- 自定义主题色相（JS 设置 --h 与 data-hue；未设置时保持站点原生配色）---- */
:root[data-hue]{
  --primary:hsl(calc(var(--h)*1deg),72%,57%);
  --primary-d:hsl(calc(var(--h)*1deg),72%,47%);
  --primary-l:hsl(calc(var(--h)*1deg),84%,70%);
  --violet:hsl(calc((var(--h) + 34)*1deg),68%,58%);
  --grad:linear-gradient(135deg,hsl(calc(var(--h)*1deg),75%,57%) 0%,hsl(calc((var(--h) + 34)*1deg),70%,57%) 100%);
  --grad-soft:linear-gradient(135deg,hsl(calc(var(--h)*1deg),82%,96%),hsl(calc((var(--h) + 30)*1deg),78%,97%));
}
:root[data-hue] body.front{
  --t-cyan:hsl(calc(var(--h)*1deg),78%,52%);
  --t-blue:hsl(calc((var(--h) + 14)*1deg),74%,58%);
  --t-violet:hsl(calc((var(--h) + 34)*1deg),68%,60%);
  --t-grad:linear-gradient(135deg,hsl(calc(var(--h)*1deg),78%,52%) 0%,hsl(calc((var(--h) + 14)*1deg),74%,58%) 50%,hsl(calc((var(--h) + 34)*1deg),68%,60%) 100%);
  --t-price:linear-gradient(135deg,hsl(calc(var(--h)*1deg),70%,46%) 0%,hsl(calc((var(--h) + 14)*1deg),72%,51%) 55%,hsl(calc((var(--h) + 34)*1deg),68%,55%) 100%);
}

/* ---- 开关：隐藏商品图片 / 公告 ---- */
html.hide-goods-img body.front .gr-pic,
html.hide-goods-img body.front .scat-icon,
html.hide-goods-img body.front .gg-icon{display:none!important}
html.hide-notice body.front .home-notice{display:none!important}

/* ---- 暗色模式（暗紫灰，不刺眼；仅前台）---- */
html.theme-dark body.front{
  --bg:#15161f; --card:#1e2030; --text:#e8eaf6; --muted:#9aa2bd; --line:#2e3147;
  --shadow:0 6px 24px rgba(0,0,0,.42); --shadow-md:0 14px 34px rgba(0,0,0,.52);
  --grad-soft:linear-gradient(135deg,#23263c,#26233c);
  color:#e8eaf6;
  background:
    radial-gradient(1100px 420px at 100% -120px,rgba(124,58,237,.20),transparent 60%),
    radial-gradient(900px 380px at -10% -140px,rgba(79,110,247,.20),transparent 55%),
    #15161f;
}
html.theme-dark body.front .tech-bg .tg-glow{opacity:.26}
html.theme-dark body.front .site-header{background:rgba(22,24,36,.84);border-color:transparent;box-shadow:0 1px 0 rgba(255,255,255,.05)}
html.theme-dark body.front .logo{color:#f2f4ff}
html.theme-dark body.front .main-nav a{color:#c7cce8}
html.theme-dark body.front .main-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
html.theme-dark body.front .card-soft,
html.theme-dark body.front .panel,
html.theme-dark body.front .m-card,
html.theme-dark body.front .modal-box,
html.theme-dark body.front .prefs-panel{background:#1e2030;border-color:#2e3147;color:#e8eaf6}
html.theme-dark body.front .block-title,
html.theme-dark body.front h3,html.theme-dark body.front h4{color:#f1f3ff}
html.theme-dark body.front .text-muted,html.theme-dark body.front .muted{color:#9aa2bd}
html.theme-dark body.front input:not([type=checkbox]):not([type=radio]):not([type=range]),
html.theme-dark body.front select,html.theme-dark body.front textarea{background:#181a28;border-color:#383c5a;color:#e8eaf6}
html.theme-dark body.front input::placeholder,html.theme-dark body.front textarea::placeholder{color:#6c7394}
html.theme-dark body.front input:focus,html.theme-dark body.front select:focus,html.theme-dark body.front textarea:focus{border-color:var(--primary);background:#1c1f30}
html.theme-dark body.front .btn-ghost{background:#262a40;color:#d6dbf2;border-color:#3a3f5e}
html.theme-dark body.front .btn-ghost:hover{background:#303553;color:#fff}
html.theme-dark body.front .admin-table th{background:#25283e}
html.theme-dark body.front .admin-table td,html.theme-dark body.front .admin-table th{border-color:#2e3147;color:#dfe3f5}
html.theme-dark body.front .admin-table tbody tr:nth-child(even) td{background:rgba(255,255,255,.02)}
html.theme-dark body.front .home-notice{background:#20233a;border-color:#33375a}
html.theme-dark body.front .hn-title{color:#f0f1ff}
html.theme-dark body.front .rich-text{color:#d6daf0}
html.theme-dark body.front .rich-text a{color:var(--primary-l)}
html.theme-dark body.front .scat{color:#c7cce8}
html.theme-dark body.front .scat:hover{background:rgba(255,255,255,.06)}
html.theme-dark body.front .gg-head{border-color:#2e3147;color:#f1f3ff}
html.theme-dark body.front .gg-count{color:#969db8;background:rgba(255,255,255,.06)}
html.theme-dark body.front .goods-row{border-color:#2a2d44}
html.theme-dark body.front .gr-name{color:#eef0fc}
html.theme-dark body.front .gr-desc{color:#9aa2bd}
html.theme-dark body.front .gr-unit{color:#8b93b2}
html.theme-dark body.front .gr-thumb{background:linear-gradient(135deg,#2a2f4a,#232740);color:var(--primary-l)}
html.theme-dark body.front .gr-stock,html.theme-dark body.front .gr-sales,html.theme-dark body.front .gr-lv{background:rgba(255,255,255,.07);color:#aab2d2}
html.theme-dark body.front .gr-lv{color:var(--primary-l);background:rgba(99,102,241,.18)}
html.theme-dark body.front .gr-expire{background:rgba(232,89,12,.16);color:#fb923c;border-color:rgba(251,146,60,.3)}
html.theme-dark body.front .gr-stock{background:rgba(14,165,233,.14);color:#67e8f9;border-color:rgba(103,232,249,.25)}
html.theme-dark body.front .goods-row.is-off .gr-name{color:#7e87a6}
html.theme-dark body.front .scat-icon,html.theme-dark body.front .gg-icon{background:#2a2d44;border-color:#3a3f5e}
html.theme-dark body.front .pager-bar a,html.theme-dark body.front .pager-bar span{background:#262a40;border-color:#3a3f5e;color:#d6dbf2}
html.theme-dark body.front .site-footer,html.theme-dark body.front .site-footer a{color:#7d84a3}
html.theme-dark body.front .alert{background:#20233a;border-color:#383c5a;color:#dfe3f5}
html.theme-dark body.front .opt-tag{background:rgba(255,255,255,.08);color:#aab0d0}
html.theme-dark body.front .level-badge{background:rgba(255,255,255,.12);color:#dfe3ff}
html.theme-dark body.front .modal-mask{background:rgba(8,9,16,.68)}
html.theme-dark body.front hr{border-color:#2e3147}
html.theme-dark body.front .m-item,html.theme-dark body.front .m-stat,html.theme-dark body.front .msg-item{background:#22253a;border-color:#323652}
html.theme-dark body.front .m-item *{color:#dfe3f5}

/* ---- 右下角齿轮 ---- */
.prefs-fab{position:fixed;right:20px;bottom:22px;z-index:1400;width:48px;height:48px;border-radius:50%;border:none;cursor:pointer;
  background:var(--grad);color:#fff;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(79,110,247,.42);transition:transform .22s,box-shadow .22s}
.prefs-fab:hover{transform:rotate(45deg) scale(1.06);box-shadow:0 14px 34px rgba(79,110,247,.52)}
.prefs-overlay{position:fixed;inset:0;z-index:1500;background:rgba(20,22,34,.5);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .18s}
.prefs-overlay[hidden]{display:none!important}
.prefs-overlay.show{opacity:1}
.prefs-panel{width:100%;max-width:440px;min-width:0;max-height:88vh;overflow-y:auto;background:#fff;border-radius:22px 22px 0 0;
  box-shadow:0 -14px 44px rgba(20,22,40,.28);transform:translateY(26px);transition:transform .22s}
.prefs-overlay.show .prefs-panel{transform:translateY(0)}
@media(min-width:641px){
  .prefs-overlay{align-items:center}
  .prefs-panel{flex:0 0 440px;width:440px;max-width:440px;border-radius:20px;transform:translateY(18px) scale(.98)}
  .prefs-overlay.show .prefs-panel{transform:translateY(0) scale(1)}
}
.prefs-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:inherit;z-index:2}
.prefs-head b{font-size:16px;display:flex;align-items:center;gap:8px;color:#1f2733}
.prefs-x{width:32px;height:32px;border-radius:50%;border:none;background:#f1f3f9;color:#6b7280;font-size:20px;line-height:1;cursor:pointer}
.prefs-x:hover{background:#e6e9f4;color:#333}
.prefs-body{padding:14px 18px 22px}
.prefs-sec{border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin-bottom:12px;background:#fafbff}
.prefs-sec-t{font-weight:700;font-size:14px;margin-bottom:12px;display:flex;align-items:center;gap:7px;color:#374151}
.skin-dots{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin-bottom:14px}
.skin-dot{width:34px;height:34px;border-radius:50%;background:var(--dot);border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer;position:relative;justify-self:center;transition:transform .12s;padding:0}
.skin-dot:hover{transform:scale(1.14)}
.skin-dot.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--dot)}
.skin-dot.on::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:800;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.hue-row{display:flex;align-items:center;gap:12px}
.hue-dot{width:30px;height:30px;border-radius:50%;background:#4f6ef7;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2);flex:none}
.hue-range{flex:1;min-width:0;-webkit-appearance:none;appearance:none;height:12px;border-radius:8px;outline:none;cursor:pointer;
  background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.hue-range::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #4f6ef7;box-shadow:0 2px 6px rgba(0,0,0,.3);cursor:pointer}
.hue-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid #4f6ef7;cursor:pointer}
.pref-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#374151;cursor:pointer;margin:0}
.prefs-panel .switch{position:relative;display:inline-block;width:46px;height:26px;flex:none}
.prefs-panel .switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.prefs-panel .switch i{position:absolute;inset:0;background:#cbd2e4;border-radius:999px;transition:.2s;pointer-events:none}
.prefs-panel .switch i::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.25);transition:.2s}
.prefs-panel .switch input:checked + i{background:linear-gradient(135deg,#4f6ef7,#7c3aed)}
.prefs-panel .switch input:checked + i::before{transform:translateX(20px)}
/* 暗色下面板自身 */
html.theme-dark body.front .prefs-head b{color:#f1f3ff}
html.theme-dark body.front .prefs-head{border-color:#2e3147}
html.theme-dark body.front .prefs-sec{background:#22253a;border-color:#343852}
html.theme-dark body.front .prefs-sec-t,html.theme-dark body.front .pref-row{color:#dfe3f5}
html.theme-dark body.front .prefs-x{background:#2c3047;color:#aab0d0}
html.theme-dark body.front .prefs-x:hover{background:#363b58;color:#fff}
@media(max-width:640px){
  .prefs-fab{right:16px;bottom:18px;width:44px;height:44px;font-size:20px}
  .prefs-panel{flex:0 0 100%;width:100%;max-width:100%;min-width:0}
  .skin-dots{width:100%;gap:6px}
  .skin-dot{width:30px;height:30px}
}
/* ---- 暗色补丁：价格数字 / 首页用户卡 ---- */
html.theme-dark body.front .gr-price{color:#ff8a4c}
html.theme-dark body.front .gr-price b{background:none;-webkit-background-clip:border;background-clip:border-box;-webkit-text-fill-color:#ff8a4c;color:#ff8a4c}
html.theme-dark body.front .gr-price .rmb{color:#ff8a4c}
html.theme-dark body.front .guest-title{color:#f1f3ff}
html.theme-dark body.front .guest-tip{color:#9aa2bd}
html.theme-dark body.front .uc-name{color:#eef0fc}
html.theme-dark body.front .uc-uid{color:#9aa2bd}
html.theme-dark body.front .uc-logout{background:rgba(239,68,68,.16);color:#fca5a5}
html.theme-dark body.front .uc-logout:hover{background:rgba(239,68,68,.28)}
html.theme-dark body.front .uc-stats span{color:#9aa2bd}
html.theme-dark body.front .uc-stats b{color:#f1f3ff}
html.theme-dark body.front .uc-stats div{background:#22253a;border:1px solid #323652}
html.theme-dark body.front .oo-item{background:linear-gradient(135deg,#242840,#1d2034);border:1px solid #33384f}
html.theme-dark body.front .oo-num{color:#f1f3ff}
html.theme-dark body.front .oo-num.text-primary{color:#8aa2ff!important}
html.theme-dark body.front .oo-num.text-ok{color:#4ade80!important}
html.theme-dark body.front .oo-num.text-warn{color:#fbbf24!important}
html.theme-dark body.front .oo-label{color:#9aa2bd}
html.theme-dark body.front .m-stat{background:#22253a;border-color:#323652}
html.theme-dark body.front .m-stat b{color:#f1f3ff}
html.theme-dark body.front .m-stat span{color:#9aa2bd}
html.theme-dark body.front .uc-links a{color:#c7cce8;background:rgba(255,255,255,.05)}
html.theme-dark body.front .uc-links a:hover{background:rgba(255,255,255,.1);color:#fff}
html.theme-dark body.front .scat.on{color:#fff}
html.theme-dark body.front .gg-bar{background:rgba(255,255,255,.18)}
/* ---- 暗色补丁：内联浅色分站面板 / 空状态 / 分站按钮 ---- */
html.theme-dark body.front .site-dist-panel{background:#1e2030!important;background-image:none!important;border-color:#2e3147!important}
html.theme-dark body.front .empty-box{background:#22253a;border:1px solid #343852;color:#c7cce8}
html.theme-dark body.front .empty-box a{color:var(--primary-l)}
html.theme-dark body.front .sqn-btn{background:#262a40;color:#d6dbf2;border-color:#3a3f5e;box-shadow:none}
html.theme-dark body.front .sqn-btn:hover{background:#303553;color:#fff;border-color:#4a5078}
html.theme-dark body.front .sqn-btn.primary{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 7px 18px rgba(0,0,0,.35)}
/* ---- 暗色补丁：下单独立页 ---- */
html.theme-dark body.front .panel-title{color:#f1f3ff}
html.theme-dark body.front label{color:#c7cce8}
html.theme-dark body.front .req{color:#f87171}
html.theme-dark body.front .confirm-goods{background:rgba(255,255,255,.05);border-color:#343852}
html.theme-dark body.front .cg-name{color:#f1f3ff}
html.theme-dark body.front .cg-desc{color:#aab2cf}
html.theme-dark body.front .cg-desc[style]{border-top-color:#2e3147!important}
html.theme-dark body.front .total-bar{background:rgba(255,255,255,.05);border-color:#343852;box-shadow:none;color:#e8eaf6}
html.theme-dark body.front .total-bar .total-price{color:#ff8a4c}
html.theme-dark body.front .qty-control button{background:#262a40;border-color:#3a3f5e;color:#c7cce8}
html.theme-dark body.front .qty-control button:hover{background:#303553;color:#fff;border-color:#4a5078}
html.theme-dark body.front .qty-control input{background:#181a28;border-color:#3a3f5e;color:#fff}
html.theme-dark body.front .stock-line{background:#1c2130;border-color:#343852;color:#cdd3ea}
html.theme-dark body.front .stock-line.st-ok{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.28)}
html.theme-dark body.front .stock-line.st-ok .stock-text{color:#86efac}
html.theme-dark body.front .stock-line.st-low{background:rgba(249,115,22,.12);border-color:rgba(249,115,22,.28)}
html.theme-dark body.front .stock-line.st-low .stock-text{color:#fdba74}
html.theme-dark body.front .stock-line.st-out{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.28)}
html.theme-dark body.front .stock-line.st-out .stock-text{color:#fca5a5}
html.theme-dark body.front .stock-text b{color:inherit}
html.theme-dark body.front .pm-tip,html.theme-dark body.front .pm-tip a{color:#9aa2bd}
/* ================= 批量下单悬浮工作台 ================= */
.batch-fab{position:fixed;right:20px;bottom:80px;z-index:1390;display:flex;align-items:center;gap:7px;
  background:var(--grad);color:#fff;border:none;border-radius:24px;padding:11px 17px;font-size:14px;font-weight:700;
  box-shadow:0 12px 26px rgba(79,110,247,.42);cursor:pointer;transition:transform .15s,box-shadow .15s}
.batch-fab:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(79,110,247,.5)}
.batch-fab .bf-bolt{font-size:15px}
.batch-panel{position:fixed;right:20px;bottom:20px;z-index:1450;width:430px;height:650px;max-height:88vh;
  background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(20,30,70,.28)}
.batch-panel[hidden]{display:none!important}
.bp-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:11px 12px;background:var(--grad);color:#fff}
.batch-panel .bp-head{cursor:move;touch-action:none;user-select:none;-webkit-user-select:none}
.batch-panel .bp-head .bp-win,.batch-panel .bp-head .bp-soft{cursor:pointer}
.batch-panel.dragging{opacity:.97}
.batch-panel.dragging .bp-head{cursor:grabbing}
.bp-title{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:700}
.bp-title .bp-bolt{font-size:16px}
.bp-head-actions{display:flex;align-items:center;gap:6px}
.bp-soft{border:none;border-radius:7px;background:#ff9f1c;color:#fff;font-size:12px;font-weight:700;padding:6px 10px;cursor:pointer;white-space:nowrap}
.bp-soft:hover{filter:brightness(1.05)}
.bp-win{width:26px;height:26px;border-radius:50%;border:none;background:rgba(255,255,255,.22);color:#fff;font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.bp-win:hover{background:rgba(255,255,255,.38)}
.bp-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.bp-controls{flex:0 0 auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line);background:var(--card)}
.bp-line{display:flex;align-items:center;gap:8px}
.bp-sel{flex:1;min-width:0;height:38px;border:1px solid var(--line);border-radius:9px;padding:0 10px;font-size:13px;background:#f7f9fc;color:var(--text)}
.bp-sel:focus{outline:none;border-color:var(--primary)}
.bp-ico{flex:0 0 auto;height:38px;border:1px solid var(--line);background:#f2f4f9;color:var(--text);border-radius:9px;padding:0 11px;font-size:13px;cursor:pointer;white-space:nowrap}
.bp-ico:hover{border-color:var(--primary);color:var(--primary)}
.bp-mode{flex:0 0 auto;height:38px;border:none;border-radius:9px;padding:0 14px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;
  background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 6px 14px rgba(34,197,94,.3);white-space:nowrap}
.bp-mode:hover{filter:brightness(1.05)}
.bp-clabel{flex:0 0 58px;font-size:12.5px;color:var(--muted)}
.bp-content{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px 11px;font-size:13px;font-family:inherit;
  background:#f7f9fc;color:var(--text);resize:none;line-height:1.5}
.bp-content:focus{outline:none;border-color:var(--primary)}
.bp-work{flex:1 1 auto;min-height:0;display:flex;gap:8px;padding:10px 12px}
.bp-table-wrap{flex:1 1 auto;min-width:0;position:relative;overflow:auto;border:1px solid var(--line);border-radius:10px}
.bp-table{width:100%;border-collapse:collapse;font-size:12.5px}
.bp-table thead th{position:sticky;top:0;z-index:1;background:#f2f4f9;color:#5d6780;font-weight:600;font-size:12px;
  padding:7px 6px;text-align:left;border-bottom:1px solid var(--line)}
.bp-table td{padding:7px 6px;border-bottom:1px solid #eef1f6;vertical-align:middle}
.bp-table .c-idx{width:28px;color:var(--muted)}
.bp-table .c-qty{width:34px;text-align:center}
.bp-table .c-amt{width:62px;text-align:right;white-space:nowrap}
.bp-table .c-goods{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.bp-table .c-content{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;pointer-events:none}
.st-tag{display:inline-block;font-size:11.5px;padding:2px 7px;border-radius:6px;background:#eef1f6;color:#6b7488;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bp-row.st-doing .st-tag{background:#e6f0ff;color:#2563eb}
.bp-row.st-success .st-tag{background:#e6f8ee;color:#16a34a}
.bp-row.st-fail .st-tag{background:#fdecec;color:#dc2626}
.amt-v{font-weight:700;color:var(--text)}
.amt-v.ok{color:#16a34a}
.amt-v.no{color:#c2c8d6;font-weight:500}
.bp-side{flex:0 0 116px;width:116px;display:flex;flex-direction:column;gap:5px;overflow:auto}
.qty-btns{display:flex;flex-direction:column;gap:5px;flex:1 1 auto;min-height:0;overflow-y:auto}
.bp-qbtn{border:1px solid var(--primary);background:#fff;color:var(--primary);border-radius:8px;padding:7px 4px;font-size:12.5px;font-weight:600;cursor:pointer}
.bp-qbtn:hover{background:var(--grad-soft)}
.qty-step{display:flex;margin-top:2px}
.qs-btn{width:34px;height:34px;border:1px solid var(--line);background:#f2f4f9;cursor:pointer;font-size:15px;border-radius:8px}
.qs-btn:first-child{border-radius:8px 0 0 8px}
.qs-btn:last-child{border-radius:0 8px 8px 0}
#bpQty{width:100%;min-width:0;height:34px;border:1px solid var(--line);border-left:0;border-right:0;text-align:center;font-size:13px;background:#fff}
.qs-tip{font-size:11px;color:var(--muted);text-align:center;line-height:1.35;margin:2px 0 0}
.bp-pdata{border:1px solid var(--primary);color:var(--primary);background:#fff;border-radius:8px;padding:8px 6px;font-size:12.5px;font-weight:600;cursor:pointer}
.bp-pdata:hover{background:var(--grad-soft)}
.bp-format{flex:1 1 auto;min-height:72px;background:#f6f7fb;border:1px solid var(--line);border-radius:8px;padding:7px 8px;font-size:11px;line-height:1.5;color:var(--muted);overflow:auto}
.bp-go{border:none;border-radius:8px;padding:9px 6px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6,#2563eb)}
.bp-stop{border:none;border-radius:8px;padding:9px 6px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;background:linear-gradient(135deg,#f87171,#dc2626)}
.bp-go:disabled,.bp-stop:disabled{opacity:.5;cursor:not-allowed}
.bp-summary{flex:0 0 auto;padding:7px 12px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);background:#fafbfe}
.bp-summary b{color:var(--text)}
.bp-summary .ok{color:#16a34a}
.bp-summary .no{color:#dc2626}
.bp-search{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:9px 12px;border-top:1px solid var(--line)}
.bp-search .bs-ic{color:var(--muted)}
.bp-search input{flex:1;min-width:0;height:34px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:12.5px;background:#f7f9fc}
.bp-search input:focus{outline:none;border-color:var(--primary)}
.bp-search button{flex:0 0 auto;height:34px;border:1px solid var(--line);background:#f2f4f9;border-radius:8px;padding:0 14px;font-size:12.5px;cursor:pointer;color:var(--text)}
.bp-search button:hover{border-color:var(--primary);color:var(--primary)}
.bp-foot{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 12px;background:#f2f4f9;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.bp-foot a{color:var(--primary)}
.bp-balance b{color:#f97316}
.bp-clock{font-variant-numeric:tabular-nums}
.bp-toast{position:absolute;left:50%;bottom:56px;transform:translateX(-50%) translateY(8px);background:rgba(20,24,40,.92);color:#fff;
  font-size:12.5px;padding:8px 14px;border-radius:9px;opacity:0;pointer-events:none;transition:.2s;z-index:5;max-width:90%;text-align:center}
.bp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* 最小化：只剩标题条 */
.batch-panel.mini{height:auto;max-height:none}
.batch-panel.mini .bp-body,.batch-panel.mini .bp-foot{display:none}
/* 手机端：近全屏，表格在上、操作按钮横排在下 */
@media(max-width:640px){
  .batch-fab{right:14px;bottom:72px;padding:10px 14px;font-size:13px}
  .batch-panel{left:8px;right:8px;bottom:8px;top:auto;width:auto;height:88vh;max-height:88vh}
  .bp-head{padding:10px}
  .bp-soft{padding:6px 8px;font-size:11.5px}
  .bp-ico{padding:0 10px}
  .bp-ico .bi-tx{display:none}
  .bp-mode{flex:0 0 auto;padding:0 11px;font-size:12.5px}
  .bp-clabel{flex-basis:48px}
  .bp-work{flex-direction:column;gap:8px;padding:9px 10px}
  .bp-table-wrap{flex:1 1 auto}
  .bp-side{flex:0 0 auto;width:auto;flex-direction:row;align-items:center;gap:7px;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}
  .qty-btns{flex:0 1 auto;flex-direction:row;gap:6px;overflow-x:auto;overflow-y:hidden}
  .bp-qbtn{flex:0 0 auto;padding:8px 12px}
  .qty-step{margin-top:0;flex:0 0 auto}
  .bp-pdata,.bp-go,.bp-stop{flex:0 0 auto;padding:9px 14px}
  .bp-format{display:none}
  .bp-table{font-size:12px}
  .bp-table .c-goods{max-width:70px}
  .bp-table .c-content{max-width:130px}
  .bp-foot{flex-wrap:wrap;gap:2px 8px;font-size:11px;justify-content:flex-start}
  .bp-clock{margin-left:auto}
}
/* 暗色模式 */
html.theme-dark body.front .batch-panel{background:#1e2030;border-color:#2e3147;color:#e8eaf6}
html.theme-dark body.front .bp-controls,
html.theme-dark body.front .bp-summary{background:#1e2030;border-color:#2e3147}
html.theme-dark body.front .bp-sel,
html.theme-dark body.front .bp-content,
html.theme-dark body.front .bp-search input{background:#181a28;border-color:#383c5a;color:#eef1ff}
html.theme-dark body.front .bp-ico,
html.theme-dark body.front .qs-btn,
html.theme-dark body.front .bp-search button{background:#262a40;border-color:#3a3f5e;color:#d6dbf2}
html.theme-dark body.front .bp-table thead th{background:#262a40;color:#aab2cf;border-color:#2e3147}
html.theme-dark body.front .bp-table td{border-color:#2a2e45}
html.theme-dark body.front .bp-table-wrap{border-color:#343852}
html.theme-dark body.front .bp-qbtn,
html.theme-dark body.front .bp-pdata{background:transparent;color:var(--primary-l);border-color:var(--primary-l)}
html.theme-dark body.front #bpQty{background:#181a28;border-color:#3a3f5e;color:#fff}
html.theme-dark body.front .bp-format{background:#181a28;border-color:#343852;color:#aab2cf}
html.theme-dark body.front .bp-foot{background:#181a28;border-color:#2e3147;color:#9aa2bd}
html.theme-dark body.front .st-tag{background:#2a2e45;color:#c7cce8}
html.theme-dark body.front .bp-empty{color:#8a92ac}
html.theme-dark body.front .bp-row.st-doing .st-tag{background:rgba(59,130,246,.18);color:#93c5fd}
html.theme-dark body.front .bp-row.st-success .st-tag{background:rgba(34,197,94,.18);color:#86efac}
html.theme-dark body.front .bp-row.st-fail .st-tag{background:rgba(239,68,68,.18);color:#fca5a5}
html.theme-dark body.front .amt-v{color:#e8eaf6}

/* 下单页商品行右侧“批量下单”入口 */
.confirm-goods{display:flex;align-items:center;justify-content:space-between;gap:12px}
.batch-open-btn{flex:0 0 auto;border:1px solid #f56c6c;background:#fff5f5;color:#f56c6c;border-radius:9px;
  padding:8px 14px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.batch-open-btn:hover{background:#fdecec}
html.theme-dark body.front .batch-open-btn{background:rgba(239,68,68,.12);border-color:#ef4444;color:#fca5a5}
@media(max-width:640px){.batch-open-btn{padding:7px 11px;font-size:12.5px}}
/* ==================================================================
   公告运营组件（首页公告 / 会员公告 / 分站公告通用，KindEditor 源码插入）
   飘动按钮 + 信息行；动画与配色集中在此，公告 HTML 只引用 class
   ================================================================== */
@keyframes ntfFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.ntf-card{box-sizing:border-box;width:100%;max-width:100%;overflow:hidden;border-radius:18px;padding:16px 16px 14px;
  background:linear-gradient(160deg,#fbfcff,#f3f6ff);border:1px solid #e6ebfb;
  box-shadow:0 10px 30px rgba(79,110,247,.10)}
.ntf-card *{box-sizing:border-box}
.ntf-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ntf-btn{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;
  border-radius:14px;padding:15px 10px;font-size:16px;font-weight:700;color:#fff;letter-spacing:1px;
  box-shadow:0 10px 22px rgba(79,110,247,.22);animation:ntfFloat 2.8s ease-in-out infinite;
  transition:transform .18s,box-shadow .18s,filter .18s;white-space:nowrap}
.ntf-btn:hover{animation-play-state:paused;transform:translateY(-2px) scale(1.03);filter:brightness(1.05);color:#fff;text-decoration:none}
.ntf-btn.d1{animation-delay:0s}.ntf-btn.d2{animation-delay:.28s}.ntf-btn.d3{animation-delay:.56s}.ntf-btn.d4{animation-delay:.84s}
.ntf-btn.n-pink{background:linear-gradient(135deg,#ff4d8d,#ff7aa8);box-shadow:0 10px 22px rgba(255,77,141,.32)}
.ntf-btn.n-blue{background:linear-gradient(135deg,#2f9bff,#4f6ef7);box-shadow:0 10px 22px rgba(47,155,255,.32)}
.ntf-btn.n-purple{background:linear-gradient(135deg,#7c5cff,#9a6bff)}
.ntf-btn.n-cyan{background:linear-gradient(135deg,#16c2d5,#2f9bff)}
.ntf-btn.n-orange{background:linear-gradient(135deg,#ff9a3d,#ff6a5e)}
.ntf-btn.n-green{background:linear-gradient(135deg,#22c39a,#12b3a4)}
.ntf-btn.n-red{background:linear-gradient(135deg,#ff6a6a,#f0466b)}
.ntf-btn.n-white{background:#fff;color:#3f4b7a;border:1px solid #e3e8fb;box-shadow:0 8px 18px rgba(79,110,247,.14)}
.ntf-btn.n-white:hover{color:#3f4b7a}
.ntf-tiprow{display:flex;align-items:center;gap:10px;margin-top:14px;border-radius:12px;padding:10px 12px;
  background:linear-gradient(135deg,#f6f3ff,#eef4ff)}
.ntf-tip-tx{font-size:14px;font-weight:700;color:#f0466b;line-height:1.4}
.ntf-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:46px;
  padding:5px 12px;border-radius:999px;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}
.ntf-badge.b-purple{background:linear-gradient(135deg,#7c5cff,#9a6bff)}
.ntf-badge.b-blue{background:linear-gradient(135deg,#2f9bff,#4f86ff)}
.ntf-badge.b-pink{background:linear-gradient(135deg,#ff4d8d,#ff7aa8)}
.ntf-badge.b-green{background:linear-gradient(135deg,#22c39a,#12b3a4)}
.ntf-badge.b-red{background:linear-gradient(135deg,#ff6a6a,#f0466b)}
.ntf-lines{display:flex;flex-direction:column;gap:9px}
.ntf-line{display:flex;align-items:center;gap:10px;border-radius:12px;padding:10px 12px;min-width:0;max-width:100%;
  background:rgba(255,255,255,.75);border:1px solid #edf1ff}
.ntf-line-tx{flex:1 1 0;min-width:0;max-width:100%;font-size:14px;color:#3a4260;line-height:1.4;overflow-wrap:anywhere;word-break:break-all}.ntf-line-tx b{overflow-wrap:anywhere}
.ntf-line-tx b{font-weight:800}
.ntf-line-tx .c-blue{color:#2f6bff}.ntf-line-tx .c-orange{color:#ff7a1a}
.ntf-line-tx .c-green{color:#0ea884}.ntf-line-tx .c-red{color:#ef4466}
.ntf-line-rt{flex:0 0 auto;font-size:12.5px;color:#9aa3bd;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.ntf-line-rt.dot-green{color:#16b58a;font-weight:700}
.ntf-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.ntf-actions .ntf-btn{padding:13px 6px;font-size:14.5px}
html.theme-dark body.front .ntf-card{background:linear-gradient(160deg,#23263a,#1e2130);border-color:#33384f;box-shadow:0 10px 30px rgba(0,0,0,.35)}
html.theme-dark body.front .ntf-line{background:rgba(255,255,255,.04);border-color:#33384f}
html.theme-dark body.front .ntf-tiprow{background:rgba(255,255,255,.05)}
html.theme-dark body.front .ntf-line-tx{color:#dfe3f5}
html.theme-dark body.front .ntf-btn.n-white{background:#2a2e44;color:#dfe3f5;border-color:#3a3f5c;box-shadow:none}
html.theme-dark body.front .ntf-btn.n-white:hover{color:#fff}
html.theme-dark body.front .ntf-line-rt{color:#8b91ad}
@media(max-width:640px){
  .ntf-card{padding:13px 12px 12px;border-radius:16px}
  .ntf-grid2{gap:10px}
  .ntf-btn{padding:14px 8px;font-size:15px;border-radius:12px}
  .ntf-actions{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
  .ntf-actions .ntf-btn{padding:12px 6px;font-size:14px}
  .ntf-line{padding:9px 10px;gap:8px}
  .ntf-line-tx{font-size:13px}
  .ntf-line-rt{display:none}
  .ntf-badge{min-width:40px;padding:4px 9px;font-size:12px}
  .ntf-tip-tx{font-size:13px}
}
/* 修正：公告按钮位于 .rich-text 内时，链接颜色/下画线被富文本样式覆盖（提高特异性） */
body.front .rich-text a.ntf-btn,.rich-text a.ntf-btn{color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important}
body.front .rich-text a.ntf-btn.n-white,.rich-text a.ntf-btn.n-white{color:#3f4b7a!important;-webkit-text-fill-color:#3f4b7a!important}
html.theme-dark body.front .rich-text a.ntf-btn.n-white{color:#dfe3f5!important;-webkit-text-fill-color:#dfe3f5!important}
.ntf-line-tx{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:640px){.ntf-line-tx{word-break:break-all}}
/* 强制公告信息行长句（含 b 标签）换行，杜绝横向溢出 */
.ntf-card .ntf-line-tx,.ntf-card .ntf-line-tx *{white-space:normal!important;overflow-wrap:anywhere;word-break:break-all}
/* 手机端不提供批量下单：隐藏悬浮按钮、下单页入口与面板 */
@media(max-width:640px){
  .batch-fab,.batch-open-btn{display:none!important}
  #batchPanel{display:none!important}
}
/* ===== 站内通知弹窗（PC 右上角 / 手机顶部；只弹一次、仅标题，点击进消息详情） ===== */
.sn-pop{
  position:fixed;top:82px;right:20px;z-index:990;display:flex;align-items:center;gap:11px;
  width:342px;max-width:calc(100vw - 32px);padding:13px 10px 13px 14px;
  background:#fff;color:#1f2540;border:1px solid #e6e9fb;border-radius:15px;
  box-shadow:0 18px 46px rgba(49,67,150,.22),0 2px 8px rgba(49,67,150,.08);
  cursor:pointer;opacity:0;transform:translateX(calc(100% + 44px));
  transition:transform .42s cubic-bezier(.21,1.02,.4,1),opacity .32s ease,box-shadow .2s ease;
}
.sn-pop.show{opacity:1;transform:translateX(0)}
.sn-pop.show:hover{transform:translateY(-2px);box-shadow:0 22px 52px rgba(49,67,150,.28)}
.sn-pop.sn-leave{opacity:0;transform:translateX(calc(100% + 44px));
  transition:transform .28s ease-in,opacity .25s ease-in}
.sn-ic{flex:0 0 auto;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;
  justify-content:center;font-size:20px;color:#fff;
  background:var(--grad,linear-gradient(135deg,#4f6ef7,#7b6cf6));
  box-shadow:0 6px 14px rgba(79,110,247,.30)}
.sn-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.sn-label{font-size:11px;font-weight:700;color:var(--primary,#4f6ef7);letter-spacing:.5px}
.sn-title{font-size:14px;font-weight:600;color:#232a4d;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sn-go{flex:0 0 auto;font-size:21px;color:var(--primary,#4f6ef7);font-weight:700;line-height:1;padding-right:2px}
.sn-x{flex:0 0 auto;width:26px;height:26px;border-radius:50%;border:none;background:transparent;
  color:#9aa3c4;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sn-x:hover{background:#f0f2fb;color:#5b6484}
@media(max-width:640px){
  .sn-pop{top:0;left:0;right:0;width:100%;max-width:100%;border-radius:0 0 16px 16px;
    padding:calc(env(safe-area-inset-top,0px) + 11px) 10px 12px 14px;transform:translateY(-118%)}
  .sn-pop.show{transform:translateY(0)}
  .sn-pop.show:hover{transform:none}
  .sn-pop.sn-leave{transform:translateY(-118%)}
}
html.theme-dark body.front .sn-pop{background:#1e2030;border-color:#2e3147;color:#e8eaf6;
  box-shadow:0 18px 46px rgba(0,0,0,.52)}
html.theme-dark body.front .sn-title{color:#eef0ff}
html.theme-dark body.front .sn-x:hover{background:#2a2d44;color:#cfd4ee}
/* ============================================================
   手机版专属公告：仅 <=860px 显示在首页最顶部（导航下方、商品分类上方）
   ============================================================ */
.mobile-notice{display:none}
@media(max-width:860px){
  body.front .mobile-notice{display:block;margin:2px 0 12px}
  body.front .mobile-notice .mn-body{
    background:var(--card);border:1px solid var(--line);border-radius:14px;
    padding:12px 14px;box-shadow:var(--shadow);
  }
  body.front .mobile-notice .mn-body.ntf-card,
  body.front .mobile-notice .mn-body .ntf-card{box-shadow:none}
  html.theme-dark body.front .mobile-notice .mn-body{background:#1e2030;border-color:#2e3147}
}
/* 商城公告（首页公告 site_notice）仅电脑端显示；手机端(<=860px)改用顶部“手机版公告”，二者分开不重复 */
@media(max-width:860px){
  body.front .home-notice{display:none!important}
}
/* ============================================================
   分站中心（我的客户 / 商品定价 / 分站订单 / 分红·提现明细）：
   手机端(<=860px)把宽表格整体转成卡片，无需横向拖动；含输入框行自动上下排
   ============================================================ */
@media(max-width:860px){
  body.front .uc-wrap .admin-table.site-cards{min-width:0!important;font-size:13px;background:transparent;border:0;border-radius:0;overflow:visible}
  body.front table.site-cards,
  body.front table.site-cards tbody{display:block;width:100%}
  body.front table.site-cards thead{display:none}
  body.front table.site-cards tr{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
    border-radius:15px;box-shadow:0 6px 18px rgba(31,45,71,.06);margin:0 0 12px;padding:2px 14px}
  body.front table.site-cards tr.sc-empty{background:transparent;border:0;box-shadow:none;padding:20px 0;margin:0}
  body.front table.site-cards tr.sc-empty td{justify-content:center;text-align:center;color:var(--muted);border:0;padding:0}
  body.front table.site-cards td{display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:right;
    border:0;border-bottom:1px dashed var(--line);padding:10px 0;background:transparent!important;font-size:13px;line-height:1.5;
    white-space:normal;word-break:break-word;overflow-wrap:anywhere}
  body.front table.site-cards td:last-child{border-bottom:0}
  body.front table.site-cards td::before{content:attr(data-label);flex:0 0 auto;margin-right:14px;text-align:left;
    color:var(--muted);font-size:12.5px;font-weight:600}
  body.front table.site-cards td:not([data-label])::before,
  body.front table.site-cards td.sc-title::before{content:none}
  /* 卡片标题：商品名 / 单号 / 用户名 / 时间，置顶加大 */
  body.front table.site-cards td.sc-title{order:-1;justify-content:flex-start;text-align:left;font-weight:800;
    font-size:14.5px;color:var(--text);border-bottom:1px solid var(--line)!important;padding:12px 0 10px;margin-bottom:2px}
  /* 含输入框的单元格：标签在上、控件整宽、大触点 */
  body.front table.site-cards td.sc-field{flex-direction:column;align-items:stretch;gap:7px;text-align:left}
  body.front table.site-cards td.sc-field::before{margin-right:0;text-align:left}
  body.front table.site-cards td.sc-field input[type=text],
  body.front table.site-cards td.sc-field input[type=number],
  body.front table.site-cards td.sc-field input:not([type]),
  body.front table.site-cards td.sc-field select{width:100%!important;max-width:100%;min-width:0;height:42px}
  body.front table.site-cards td input[type=checkbox]{width:20px;height:20px;accent-color:var(--primary);cursor:pointer;flex:0 0 auto}
  /* 列表顶部搜索条：搜索框整行，按钮均分一行 */
  body.front .uc-wrap form.site-search{flex-wrap:wrap}
  body.front .uc-wrap form.site-search input[name=kw]{flex:1 1 100%;min-width:0;width:100%}
  body.front .uc-wrap form.site-search > .btn-sm,
  body.front .uc-wrap form.site-search > .btn-back-home{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;text-align:center}
  /* 暗色 */
  html.theme-dark body.front table.site-cards tr{background:#22253a;border-color:#323652}
  html.theme-dark body.front table.site-cards td{border-color:#323652;color:#dfe3f5}
  html.theme-dark body.front table.site-cards td.sc-title{color:#fff;border-color:#323652!important}
}
/* ============================================================
   首页商城公告紧凑化（仅电脑端首页；手机端该公告隐藏、改用手机版公告）：
   缩小信息行/按钮的内边距、字号与间距，避免把商品列表挤到首屏以下
   ============================================================ */
@media(min-width:861px){
  body.front .home-notice{padding:10px 16px 9px;margin-bottom:14px}
  body.front .home-notice .hn-title{margin-bottom:7px;font-size:13px}
  body.front .home-notice .ntf-card{padding:10px 12px 9px;border-radius:14px;box-shadow:0 8px 22px rgba(79,110,247,.08)}
  body.front .home-notice .ntf-lines{gap:6px}
  body.front .home-notice .ntf-line{padding:6px 11px;gap:9px;border-radius:10px}
  body.front .home-notice .ntf-badge{min-width:40px;padding:3px 10px;font-size:12px}
  body.front .home-notice .ntf-line-tx{font-size:13px;line-height:1.35}
  body.front .home-notice .ntf-line-rt{font-size:11.5px}
  body.front .home-notice .ntf-actions{margin-top:9px;gap:10px}
  body.front .home-notice .ntf-actions .ntf-btn{padding:9px 6px;font-size:13.5px;border-radius:11px;box-shadow:0 6px 14px rgba(79,110,247,.18)}
}
/* ============================================================
   批量下单工作台：扁下单框 / 自定义份数按钮 / 订单查询结果
   ============================================================ */
/* 单个模式：下单内容框扁、单行（与选择框同高）；批量模式才多行为粘贴区 */
.batch-panel .bp-content{height:38px;min-height:0;padding:0 11px;line-height:36px;white-space:pre;word-break:normal;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden}
.batch-panel.is-batch .bp-content{height:auto;min-height:66px;resize:vertical;padding:9px 11px;line-height:1.5;white-space:pre;word-break:normal;overflow-wrap:normal;overflow-x:auto;overflow-y:auto}
.batch-panel .bp-side .qty-btns{flex:0 0 auto;min-height:0;overflow:visible}
.batch-panel .bp-side .bp-qbtn{padding:6px 4px}
.batch-panel .bp-side .qs-btn{height:32px}
.batch-panel .bp-side #bpQty{height:32px}
.batch-panel .bp-side .bp-qbtn-custom{padding:8px 4px}
/* 第 7 个份数按钮（自定义，随步进器联动）：实心高亮 */
.bp-side .bp-qbtn-custom{width:100%;border-color:transparent;color:#fff!important;
  background:linear-gradient(135deg,#3b82f6,#2563eb)!important;box-shadow:0 6px 14px rgba(37,99,235,.28)}
.bp-side .bp-qbtn-custom:hover{filter:brightness(1.06)}
/* 订单查询结果区 */
.bp-order-result[hidden]{display:none}
.bp-order-result{flex:1 1 auto;min-height:0;overflow:auto;padding:10px 12px;background:#fff}
.bo-bar{display:flex;align-items:center;gap:9px;margin-bottom:9px;position:sticky;top:-10px;z-index:2;
  background:#fff;padding:2px 0 8px}
.bo-back{flex:0 0 auto;height:30px;border:1px solid var(--line);background:#f2f4f9;color:var(--text);
  border-radius:8px;padding:0 12px;font-size:12.5px;cursor:pointer}
.bo-back:hover{border-color:var(--primary);color:var(--primary)}
.bo-title{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bo-list{display:flex;flex-direction:column;gap:8px}
.bo-card{border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:#fafbfe}
.bo-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.bo-no{font-size:12px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.bo-st{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600;white-space:nowrap}
.bo-st.st-4{background:#fff4e5;color:#d97706}
.bo-st.st-1{background:#e6f0ff;color:#2563eb}
.bo-st.st-2{background:#e6f8ee;color:#16a34a}
.bo-st.st-3{background:#eef1f6;color:#6b7488}
.bo-goods{font-size:13px;font-weight:700;color:var(--text);margin-bottom:4px}
.bo-kv{display:flex;gap:8px;font-size:12px;line-height:1.55;color:var(--muted)}
.bo-kv span{flex:0 0 56px}
.bo-kv b{font-weight:600;color:var(--text);word-break:break-all}
.bo-refunded{font-style:normal;color:#dc2626;font-weight:600}
.bo-refund{margin-top:8px;width:100%;height:32px;border:none;border-radius:8px;
  background:linear-gradient(135deg,#f87171,#dc2626);color:#fff;font-size:12.5px;font-weight:700;cursor:pointer}
.bo-refund:hover{filter:brightness(1.05)}
.bo-empty{padding:34px 10px;text-align:center;color:var(--muted);font-size:13px}
/* 暗色 */
html.theme-dark body.front .bp-order-result{background:#1e2030}
html.theme-dark body.front .bo-bar{background:#1e2030}
html.theme-dark body.front .bo-card{background:#242739;border-color:#343852}
html.theme-dark body.front .bo-back{background:#262a40;border-color:#3a3f5e;color:#d6dbf2}
html.theme-dark body.front .bo-st.st-3{background:#2a2e45;color:#c7cce8}
/* ============================================================
   佣金分红 / 提现记录卡片（PC 多列网格 + 手机单列，全站统一）
   ============================================================ */
.cm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;margin-top:4px}
.cm-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px;
  box-shadow:0 6px 18px rgba(31,45,71,.05);display:flex;flex-direction:column;gap:7px;min-width:0}
.cm-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cm-badge{font-size:12px;font-weight:700;padding:3px 11px;border-radius:999px;white-space:nowrap}
.cm-in .cm-badge{background:#f1ebff;color:#7c3aed}
.cm-out .cm-badge{background:#eef1f6;color:#64748b}
.cm-amt{font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.1}
.cm-in .cm-amt{color:#059669}
.cm-out .cm-amt{color:#dc2626}
.cm-goods{font-size:14px;font-weight:700;color:var(--text);line-height:1.4;word-break:break-word}
.cm-sub{display:flex;gap:10px;font-size:12.5px;line-height:1.5;align-items:baseline;min-width:0}
.cm-label{flex:0 0 34px;color:var(--muted);font-weight:600}
.cm-sub a{color:var(--primary)}
.cm-link{word-break:break-all}
.cm-remark{color:var(--muted)}
.cm-remark span:last-child{word-break:break-word;min-width:0}
.cm-foot{display:flex;justify-content:flex-end;margin-top:auto;padding-top:3px}
.cm-time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cm-empty{padding:34px 10px;text-align:center;color:var(--muted);font-size:13.5px}
@media(max-width:640px){ .cm-list{grid-template-columns:1fr;gap:10px} }
html.theme-dark body.front .cm-card{background:#22253a;border-color:#323652;box-shadow:none}
/* ===== QQ 快捷登录 / 账号绑定 ===== */
.btn-qq{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(135deg,#12B7F5,#0d9fe0);color:#fff !important;font-weight:700;
  border:none;border-radius:12px;padding:11px 16px;font-size:15px;text-decoration:none;
  box-shadow:0 8px 20px rgba(18,183,245,.28);cursor:pointer;
  transition:transform .15s,box-shadow .15s,filter .15s}
.btn-qq:hover{color:#fff;filter:brightness(1.05);transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(18,183,245,.36)}
.auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0 12px;color:#9aa6c4;font-size:13px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;
  background:linear-gradient(90deg,transparent,rgba(120,130,170,.35),transparent)}
.qq-bind{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.qq-bind-info{display:flex;align-items:center;gap:12px}
.qq-bind-txt{font-size:14px;color:#46507a;line-height:1.6}
.qq-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:none;
  border:1px solid var(--t-line,#e6e9f5);background:#f2f5ff}
@media(max-width:680px){
  .qq-bind{flex-direction:column;align-items:stretch}
  .m-card .btn-qq{width:100%}
}
.qq-ico{flex:none;display:inline-block;vertical-align:-.18em;color:#fff}