/* ============================================================
   自助发卡商城 · 全站样式（前台 + 后台）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}
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{background:#eef1f8}
.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)}
.deliver-form{margin:12px 0;max-width:560px}
.deliver-form textarea{margin-bottom:8px}
.detail-actions{margin-top:14px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.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}
.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}
.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)}

/* ---------------- 收银台/充值 ---------------- */
.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:196px minmax(0,1fr) 264px;gap:14px;align-items:start}
.home-layout a{text-decoration:none}
.side-cats{padding:10px;position:sticky;top:14px}
.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:6px 14px 12px;margin-bottom:14px}
.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:46px;height:46px;border-radius:11px;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:8px;flex-wrap:wrap;margin-top:7px}
.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:7px}
.gr-price{color:#ff6a00;font-weight:800;display:flex;align-items:baseline;gap:2px}
.gr-price .rmb{font-size:12px}
.gr-price b{font-size:17px}
.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;position:sticky;top: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{font-size:23px;font-weight:800}
.ub-recharge{background:#fff;color:#5b6ef0;font-weight:700;font-size:13px;padding:5px 14px;border-radius:20px}
.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)}.side-user{grid-column:1/-1;position:static}}
@media(max-width:860px){.home-layout{grid-template-columns:1fr}.side-cats{position:static}.side-cats nav{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:13px 4px 12px}
body:not(.admin-body) .goods-row{padding:15px 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:8px 20px;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:13px 4px}
}

/* 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}
.detail-btn-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
/* ============================================================
   前台科技风主题 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,.16),transparent 60%),
    radial-gradient(820px 400px at -8% -120px,rgba(139,92,246,.13),transparent 55%),
    radial-gradient(720px 520px at 50% 120%,rgba(59,130,246,.10),transparent 60%),
    linear-gradient(180deg,#f5f9ff 0%,#ecf1fb 46%,#eef2fb 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}
body.front .header-inner>.logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
body.front .header-inner>.main-nav{margin-left:auto}
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 .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)}
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}

/* 提示条：浅色语义 */
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 *::-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{height:auto;flex-wrap:wrap;padding:8px 0;gap:4px}
  body.front .header-inner>.logo{position:static;transform:none;width:100%;justify-content:center;font-size:17px}
  body.front .main-nav{order:3;width:100%;min-width:0;max-width:100%;flex:0 0 100%;flex-wrap:wrap;justify-content:center;align-items:center;overflow:visible;
    padding-bottom:2px;margin:4px 0 0;gap:8px}
  body.front .main-nav a{flex:0 0 auto;margin:0;padding:7px 13px;white-space:nowrap;font-size:13px}
  body.front .main-nav a.nav-user-center,body.front .main-nav a.nav-logout{display:none}
  body.front .site-main{padding:16px 12px 34px}
  /* 三栏 -> 单列 */
  body.front .home-layout{gap:12px}
  body.front .side-cats,body.front .side-user{position:static}
  body.front .side-user{order:-1}
  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}
  /* 商品行：名称整行，价格+按钮另起一行并排 */
  body.front .goods-row{flex-wrap:wrap;gap:8px;padding:12px 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}
  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;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}
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}
}
/* 首页会员卡：开通分站 / 我的分站 入口条 */
.site-open-entry{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 14px;border-radius:12px;background:linear-gradient(135deg,#e6faff,#eef4ff);border:1px solid rgba(6,182,212,.35);color:#0e7490;font-weight:700;font-size:13.5px;transition:.15s}
.site-open-entry:hover{border-color:#06b6d4;box-shadow:0 6px 18px rgba(6,182,212,.18);transform:translateY(-1px);color:#0e7490;text-decoration:none}
.site-open-entry .soe-ico{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto;box-shadow:0 2px 8px rgba(6,182,212,.18)}
.site-open-entry .soe-txt{flex:1;min-width:0;line-height:1.3}
.site-open-entry .soe-arrow{font-size:20px;font-weight:400;opacity:.7;flex:0 0 auto}
@media (max-width:860px){ body.front .site-open-entry{margin-top:12px} }