:root{
  --primary:#2878ff;--primary-dark:#1d6fff;--primary-soft:#edf4ff;
  --success:#18a66a;--success-soft:#eaf8f1;
  --danger:#e64b4b;--danger-soft:#fdf0f0;
  --warning:#e69020;--warning-soft:#fff7e8;
  --text:#1f2937;--muted:#7b8494;--line:#edf0f4;--bg:#f3f5f8;
  --radius:14px;--shadow:0 8px 30px rgba(31,56,92,.07);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;
  padding:12px 12px 40px;
}
body:before{
  content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,#eaf3ff 0%,#f4f8ff 42%,#f3f5f8 78%,#f3f5f8 100%);
}
.page{width:100%;max-width:600px;margin:0 auto}
.brand{display:flex;align-items:center;gap:9px;padding:14px 4px 18px;font-weight:800;color:#263248;letter-spacing:.3px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#1d6fff,#58a0ff);color:#fff;font-size:17px;box-shadow:0 5px 14px rgba(40,120,255,.24)}
.brand-sub{font-size:11px;font-weight:500;color:var(--muted);margin-left:auto;letter-spacing:0}
/* 客户页品牌头（独立于后台 .brand，避免样式互相干扰） */
.site-header{
  display:flex;align-items:center;gap:12px;padding:15px 16px;margin-bottom:15px;
  background:linear-gradient(120deg,#1d6fff 0%,#3d8bff 55%,#5aa6ff 100%);
  border-radius:16px;box-shadow:0 10px 26px rgba(40,120,255,.28);
  position:relative;overflow:hidden;
}
.site-header:after{
  content:"";position:absolute;right:-30px;top:-40px;width:150px;height:150px;
  background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 70%);pointer-events:none
}
.sh-icon{
  width:44px;height:44px;flex-shrink:0;border-radius:13px;display:grid;place-items:center;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4)
}
.sh-icon svg{width:25px;height:25px}
.sh-info{flex:1;min-width:0;position:relative;z-index:1}
.sh-title{font-size:17px;font-weight:800;color:#fff;letter-spacing:.5px;line-height:1.2}
.sh-slogan{font-size:11px;color:rgba(255,255,255,.82);margin-top:3px;letter-spacing:.3px}
.sh-badge{
  position:relative;z-index:1;flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:11px;font-weight:700;color:#eaf2ff;padding:6px 11px;border-radius:999px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3)
}
.card{background:#fff;border-radius:16px;border:1px solid rgba(41,72,120,.075);box-shadow:var(--shadow);margin-bottom:13px;overflow:hidden}
.card-body{padding:18px}
.card-head{padding:18px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.section-title{font-size:16px;color:#202b3c;font-weight:750;display:flex;align-items:center;gap:8px;margin:0 0 14px}
.section-title:before{content:"";width:3px;height:15px;border-radius:3px;background:var(--primary)}
.section-kicker{
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;font-weight:750;letter-spacing:.2px;text-transform:none;
  padding:5px 12px;border-radius:999px;margin-bottom:11px;
  background:var(--primary-soft);color:var(--primary);line-height:1.4;
}
.section-kicker.k-purple{background:#f2ecff;color:#8248e0}
.section-kicker.k-blue{background:var(--primary-soft);color:var(--primary)}
.section-kicker.k-teal{background:#e5f7f1;color:#12866a}
.section-kicker.k-orange{background:var(--warning-soft);color:#d67d12}
.subtitle{font-size:12px;color:var(--muted);margin-top:4px}

/* 表单 */
label.field{display:block;margin-bottom:12px}
label.field .lb{display:block;font-size:12px;color:#667085;font-weight:650;margin-bottom:5px}
input[type=text],input[type=password],textarea{
  width:100%;padding:11px 12px;border:1px solid #dfe5ee;border-radius:10px;
  font-size:14px;font-family:inherit;color:var(--text);background:#fff;outline:none;transition:border-color .15s,box-shadow .15s;
}
input[type=text]:focus,input[type=password]:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(40,120,255,.1)}
textarea{resize:vertical;min-height:64px;line-height:1.5}
.hint{font-size:11px;color:#98a2b3;margin-top:4px}
.row{display:flex;gap:10px}
.row>*{flex:1;min-width:0}

/* 按钮 */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:0;border-radius:11px;padding:12px 16px;font:inherit;font-size:14px;font-weight:700;
  cursor:pointer;transition:filter .15s,transform .1s;white-space:nowrap;
}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-primary{background:linear-gradient(145deg,#1d6fff,#4a94ff);color:#fff;box-shadow:0 6px 16px rgba(40,120,255,.22)}
.btn-primary:hover:not(:disabled){filter:brightness(1.06)}
.btn-ghost{background:#f3f6fb;color:#334155;border:1px solid #e4e9f1}
.btn-ghost:hover{background:#eaf0f8}
.btn-warning{background:linear-gradient(145deg,#e69020,#f2a93d);color:#fff;box-shadow:0 6px 16px rgba(230,144,32,.2)}
.btn-danger{background:var(--danger-soft);color:var(--danger)}
.btn-block{width:100%}
.btn-sm{padding:7px 11px;font-size:12px;border-radius:8px}
.btn-success{background:#16a34a;color:#fff;box-shadow:0 4px 12px rgba(22,163,74,.24)}
.btn-success:hover:not(:disabled){filter:brightness(1.08)}
/* 生成区紧凑布局：数量 + 标签 + 按钮 一行 */
.gen-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.gen-row .field{flex:1;min-width:130px;margin-bottom:0}
.gen-row .field:first-child{flex:0 0 130px}
.gen-row .btn{flex:0 0 auto;padding:11px 20px}
/* 勾选框 */
.row-check{width:17px;height:17px;accent-color:#16a34a;cursor:pointer;flex-shrink:0}
.check-all-label{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#475467;cursor:pointer;white-space:nowrap;font-weight:650}
.check-all-label .row-check{margin:0}
.batch-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:9px 12px;background:#f4fbf7;border:1px solid #d7f0e2;border-radius:10px;flex-wrap:wrap}
.lrow-id>.row-check{align-self:center}
.lrow-top .ops{align-self:center}

/* 商品列表卡片 */
.product-list{display:flex;flex-direction:column;gap:11px}
.product-card{
  border:1px solid #e7edf7;border-radius:15px;padding:16px 17px;
  background:linear-gradient(135deg,#fff,#f8fbff);margin-bottom:12px;
  box-shadow:0 4px 16px rgba(31,56,92,.05);transition:box-shadow .18s,transform .18s,border-color .18s;
  position:relative;overflow:hidden
}
.product-card:hover{box-shadow:0 10px 28px rgba(40,100,220,.11);border-color:#cfdef7;transform:translateY(-2px)}
.product-card:last-child{margin-bottom:0}
.product-card.is-disabled{opacity:.62}
.product-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#4f8dff,#2878ff)}
.product-card.is-disabled:before{background:#b9c2d0}
.pcard-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pcard-title{display:flex;align-items:center;gap:11px;min-width:0}
.pcard-icon{
  width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;
  background:linear-gradient(145deg,#eaf2ff,#dbeaff);color:#2878ff;font-size:19px;font-weight:800;
  box-shadow:inset 0 1px 0 #fff,0 4px 10px rgba(40,120,255,.14)
}
.pcard-name{font-size:17px;font-weight:800;color:#1b2740;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pcard-ops{display:flex;gap:6px;flex-wrap:wrap}
.pcard-info{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.pcard-info .chip{padding:6px 12px;border-radius:10px}
.pcard-more{margin-top:12px;padding-top:11px;border-top:1px dashed #e5ebf5;display:flex;flex-direction:column;gap:6px}
.pcard-meta{display:flex;gap:9px;align-items:baseline;font-size:12px;line-height:1.5}
.pcard-meta .mk{flex-shrink:0;color:#98a4b6;font-weight:650;min-width:64px}
.pcard-meta .mv{color:#5c6b82;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.detail-head{display:flex;align-items:center;gap:10px;margin-bottom:13px;flex-wrap:wrap}
.detail-title{font-size:17px;font-weight:800;color:#1f2937;display:flex;align-items:center;gap:10px;flex:1;min-width:150px}
.detail-target{font-size:12px;font-weight:650;color:#16a34a;background:#eaf8f1;padding:3px 10px;border-radius:20px}
.loading{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px;margin-right:5px}
@keyframes spin{to{transform:rotate(360deg)}}

/* 商品信息卡 */
.product-hero{background:linear-gradient(135deg,#eef5ff,#fff);position:relative}
.product-hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#4f8dff,#2878ff)}
.product-hero .card-body{padding:17px 19px}
/* 标签栏：紫色活动标 + 绿色目标标 同一行 */
.hero-tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.hero-tags .section-kicker{margin-bottom:0}
.product-target{
  display:inline-block;background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;
  font-size:12px;font-weight:750;padding:5px 13px;border-radius:999px;
  box-shadow:0 3px 9px rgba(22,163,74,.22)
}
.product-name{font-size:22px;font-weight:800;color:#16233a;margin:0;line-height:1.4;letter-spacing:.3px}
.product-desc{margin:9px 0 0;font-size:13px;color:#5b6675;line-height:1.65;white-space:pre-wrap}

/* 扫码区 */
.scan-zone{
  border:2px dashed #bcd4ff;border-radius:14px;padding:24px 14px;text-align:center;
  background:linear-gradient(180deg,#f6faff,#fbfdff);cursor:pointer;transition:.18s;
  position:relative;overflow:hidden
}
.scan-zone:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0,rgba(40,120,255,.08),transparent 60%);pointer-events:none}
.scan-zone:hover,.scan-zone:active{border-color:var(--primary);background:var(--primary-soft);transform:translateY(-1px)}
.scan-icon{
  display:grid;place-items:center;width:54px;height:54px;margin:0 auto 9px;
  border-radius:16px;font-size:28px;line-height:1;
  background:linear-gradient(145deg,#e8f1ff,#dbeaff);color:var(--primary);
  box-shadow:inset 0 1px 0 #fff,0 5px 14px rgba(40,120,255,.15)
}
.scan-zone strong{display:block;color:#22304a;font-size:14px;font-weight:750}
.scan-zone span{display:block;margin-top:4px;font-size:11px;color:var(--muted)}

/* 状态卡 */
.status{position:relative;text-align:center;padding:24px 16px 18px;border-radius:13px;margin-bottom:16px;background:#f7f9fc}
.status:before{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 10px;border-radius:50%;background:#fff;box-shadow:0 5px 14px rgba(40,120,255,.15);font-size:23px;content:"⌛";color:var(--primary)}
.status strong{font-size:18px;display:block}
.status p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.status.success{background:var(--success-soft)}
.status.success:before{content:"✓";color:var(--success);font-weight:900}
.status.success strong{color:var(--success)}
.status.danger{background:var(--danger-soft)}
.status.danger:before{content:"!";color:var(--danger);font-weight:900}
.status.danger strong{color:var(--danger)}
.status.processing{background:var(--warning-soft)}
.status.processing:before{content:"↻";color:var(--warning);font-weight:900}
.status.processing strong{color:var(--warning)}

/* 信息网格 */
.grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cell{padding:12px 14px;min-width:0;border-bottom:1px solid var(--line)}
.cell:nth-child(odd){border-right:1px solid var(--line)}
.cell:nth-last-child(-n+2){border-bottom:0}
.cell.full{grid-column:1/-1;border-right:0}
.label{font-size:11px;color:#929aa8;margin-bottom:3px}
.value{font-size:13px;color:#283447;font-weight:650;word-break:break-all}
.value.processing{color:var(--primary)}
.value.success{color:var(--success)}
.value.danger{color:var(--danger)}
.value.warning{color:var(--warning)}
.value-row{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* 链接条 */
.link-bar{margin-top:14px;padding:12px 14px;border-radius:11px;background:#f7f9fc;border:1px solid var(--line)}
.link-bar .label{margin-bottom:4px}
.link-bar .value{color:var(--primary);font-size:13px}

/* 提示消息 */
.msg{padding:10px 13px;border-radius:9px;font-size:13px;margin:12px 0 0;display:none}
.msg-success{background:var(--success-soft);color:var(--success);border:1px solid #c9ecd9}
.msg-error{background:var(--danger-soft);color:var(--danger);border:1px solid #f6d2d2}

/* 折叠区 */
details.fold{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px}
details.fold summary{cursor:pointer;font-size:12px;color:var(--primary);font-weight:650;list-style:none}
details.fold summary::-webkit-details-marker{display:none}
details.fold summary:before{content:"▸ ";display:inline-block;transition:transform .15s}
details.fold[open] summary:before{transform:rotate(90deg)}
details.fold .fold-body{padding-top:12px}

/* 补头记录 */
.topup-item{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}
.topup-item:last-child{border-bottom:0}
.topup-item .t-note{color:var(--muted);flex:1;word-break:break-all}
.topup-item .t-time{color:#aab2c0;white-space:nowrap;font-size:11px}

/* 表格（后台） */
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
th,td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}
th{color:#7b8494;font-weight:650;background:#fafbfd;font-size:11px}
td{color:#344054}
tr:last-child td{border-bottom:0}
.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:700}
.badge.unused{background:#f1f4f8;color:#7b8494}
.badge.submitted{background:var(--primary-soft);color:var(--primary)}
.badge.processing{background:var(--warning-soft);color:var(--warning)}
.badge.completed{background:var(--success-soft);color:var(--success)}
.badge.failed{background:var(--danger-soft);color:var(--danger)}
.link-cell{max-width:230px;overflow:hidden;text-overflow:ellipsis;color:var(--primary);cursor:pointer}
/* 两行卡片式列表（后台）：无需横向滚动，操作按钮常驻第一行右侧 */
.link-list{display:flex;flex-direction:column;gap:10px}
.lrow{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.lrow-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lrow-id{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.lrow-code{background:#16a34a;color:#fff;font-weight:800;font-size:13px;word-break:break-all;padding:3px 10px;letter-spacing:.3px}
.lrow-tag{font-weight:700;color:#344054;font-size:13px}
.lrow-top .ops{flex-shrink:0}
.lrow-bottom{margin-top:12px}
/* 短链：玻璃质感方框，放大醒目、点击即复制 */
.lrow-link{
  position:relative;
  padding:13px 15px 12px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(236,244,255,.92),rgba(226,238,255,.72));
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 3px 12px rgba(40,110,220,.10),inset 0 1px 0 rgba(255,255,255,.85);
}
.lrow-link::before{content:"短链 · 点击复制";display:block;font-size:10px;font-weight:700;letter-spacing:.5px;color:#7b93b8;margin-bottom:5px}
.lrow-link .link-cell{display:block;max-width:none;overflow:visible;text-overflow:clip;font-size:14px;line-height:1.6;font-weight:650;word-break:break-all;color:#1d6fff}
.lrow-link .link-cell b{color:#e0483a;background:rgba(255,255,255,.75);padding:1px 4px;border-radius:4px}
/* 信息字段：每个字段一个彩色 chip，放大增强对比 */
.lrow-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:9px;font-size:12px;font-weight:600;border:1px solid transparent;line-height:1.4}
.chip i{font-style:normal;font-size:11px;font-weight:700;opacity:.75}
.chip b{font-size:12.5px;font-weight:800;word-break:break-all}
.chip[data-copy]{cursor:pointer}
.chip[data-copy]:active{transform:scale(.97)}
.chip-invite{background:#f4efff;border-color:#e6d9ff;color:#7b3fbf}
.chip-invite b{color:#5b2a95}
.chip-order{background:#e9f6ff;border-color:#cfe8fb;color:#15659e}
.chip-order b{color:#0d4f80}
.chip-topup{background:#fff2e8;border-color:#ffdfc7;color:#b85c14}
.chip-topup b{color:#8f440a}
.chip-time{background:#f1f4f8;border-color:#e3e8f0;color:#66748a}
.chip-time b{color:#475569}
/* 二维码识别原文：完整链接，独占一行，点击复制 */
.lrow-qrurl{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 12px;background:#f0fdfa;border:1px solid #cdeee7;border-radius:10px}
.qrurl-label{flex-shrink:0;font-size:11px;font-weight:800;color:#0f766e;background:#ccfbf1;padding:2px 8px;border-radius:6px;white-space:nowrap}
.qrurl-text{flex:1;min-width:0;font-size:12px;font-weight:600;color:#0f766e;word-break:break-all;line-height:1.6;cursor:pointer;user-select:all}
.qrurl-text:active{opacity:.6}
/* 第一行标签方框 */
.lrow-tag{background:#fff7e8;border:1px solid #ffe3b0;color:#a35b06;padding:3px 11px;border-radius:20px;font-size:13px;font-weight:800}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:13px}
.stat{background:#fff;border-radius:13px;border:1px solid rgba(41,72,120,.075);box-shadow:var(--shadow);padding:14px;text-align:center}
.stat .n{font-size:22px;font-weight:800;color:#1d6fff}
.stat .l{font-size:11px;color:var(--muted);margin-top:2px}
.toolbar{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.toolbar .search{flex:1;min-width:150px}
.empty{text-align:center;padding:36px 12px;color:var(--muted);font-size:13px}

/* 遮罩 */
.mask{position:fixed;inset:0;background:rgba(15,23,42,.62);display:none;align-items:center;justify-content:center;padding:18px;z-index:1500;overflow-y:auto}
.mask.show{display:flex}
.modal{background:#fff;border-radius:16px;width:100%;max-width:400px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.2);max-height:calc(100vh - 36px);overflow-y:auto;-webkit-overflow-scrolling:touch}
/* 弹窗底部按钮栏吸底，内容再长也能随时看到保存/取消 */
.modal .row:last-child{position:sticky;bottom:-20px;z-index:2;background:#fff;padding:12px 0 2px;margin-top:6px;box-shadow:0 -10px 14px -12px rgba(15,23,42,.25)}
.modal h3{margin:0 0 6px;font-size:17px}
.modal p{margin:0 0 16px;color:var(--muted);font-size:12px}
.toast{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);background:rgba(23,32,51,.92);color:#fff;padding:10px 18px;border-radius:22px;font-size:13px;z-index:1600;opacity:0;pointer-events:none;transition:opacity .2s;max-width:85vw;text-align:center}
.toast.show{opacity:1}
/* 商品提交配置块 */
.cfg-block{margin-top:14px;padding:13px;border:1px solid #e4eaf3;border-radius:12px;background:#f8fafd}
.cfg-title{font-size:12px;font-weight:800;color:#1d6fff;margin-bottom:10px;letter-spacing:.5px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;cursor:pointer}
.switch-row>span{display:flex;flex-direction:column;gap:3px}
.switch-row b{font-size:13px;color:#1f2a3d}
.switch-row small{font-size:11px;color:#8b94a4;line-height:1.5}
.switch-row input[type=checkbox]{appearance:none;width:44px;height:25px;min-width:44px;border-radius:20px;background:#cbd4e1;position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}
.switch-row input[type=checkbox]:checked{background:#1d6fff}
.switch-row input[type=checkbox]::after{content:'';position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.switch-row input[type=checkbox]:checked::after{transform:translateX(19px)}
.mark-row{display:flex;gap:9px}
.mark-row .field{flex:1;min-width:0}
.extract-preview{margin-top:9px;padding:10px 12px;background:#fff;border:1px dashed #bfdbfe;border-radius:10px;font-size:12px;line-height:1.7}
.ep-sample{color:#64748b;word-break:break-all}
.ep-sample span{color:#334155;font-weight:600}
.ep-result{color:#334155;margin-top:3px}
.ep-result b{color:#16a34a;font-size:14px;font-weight:800;word-break:break-all}
.ep-tip{color:#9aa4b2;font-size:11px;margin-top:5px}
@media(min-width:600px){body{padding-top:28px}.brand{font-size:16px}}

/* ===== 手机适配（通用 / 前台） ===== */
@media(max-width:640px){
  body{padding:8px 8px 28px}
  body:before{inset:0}
  .card{border-radius:14px;margin-bottom:11px}
  .card-body{padding:15px}
  .brand{padding:11px 12px;gap:8px}
  .brand-mark{width:30px;height:30px;font-size:15px;border-radius:9px}
  .site-header{padding:13px 14px;gap:10px;border-radius:14px}
  .sh-icon{width:40px;height:40px;border-radius:11px}
  .sh-icon svg{width:22px;height:22px}
  .sh-title{font-size:15px}
  .sh-slogan{font-size:10px}
  .sh-badge{font-size:10px;padding:5px 9px}
  .section-title{font-size:15px}
  .btn{padding:12px 14px}
  .btn-sm{padding:8px 12px;font-size:12px}
  .grid .cell{padding:11px 12px}
  .value-row{flex-wrap:wrap}
  .value-row .btn{flex-shrink:0}
  .scan-zone{padding:22px 12px}
  .row{flex-wrap:wrap}
  input[type=text],input[type=password],textarea{font-size:16px}
  .modal{max-height:88vh;overflow:auto;padding:20px}
}
/* iPhone 安全区底部留白 */
@supports(padding:env(safe-area-inset-bottom)){
  body{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}

/* ===== 富文本编辑器（移植自卡密录入系统，蓝色主题） ===== */
.rte{border:1px solid #dfe7f5;border-radius:12px;overflow:hidden;background:#fff}
.rte-bar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:7px 8px;background:linear-gradient(180deg,#f7faff,#f1f6ff);border-bottom:1px solid #e6edf8;position:sticky;top:0;z-index:3}
.rte-bar>button,.rte-bar>label{min-width:30px;height:30px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:7px;background:transparent;color:#38506b;font-size:13px;cursor:pointer;transition:.13s;position:relative;user-select:none;font-family:inherit}
.rte-bar>button:hover,.rte-bar>label:hover{background:#fff;border-color:#cddcf2;color:#1d6fff}
.rte-bar>button:active{transform:scale(.94)}
.rte-sep{width:1px;height:18px;background:#dbe4f2;margin:0 3px}
.rte-fsize{height:30px;border:1px solid #dbe4f2;border-radius:7px;background:#fff;color:#38506b;font-size:12px;padding:0 5px;cursor:pointer;font-family:inherit}
.rte-bar label.rte-media{font-size:14px}
.rte-bar label.rte-mark{color:#d4a017;font-weight:800}
.file-cover{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.rte-body{min-height:150px;max-height:44vh;overflow-y:auto;padding:14px 15px;font-size:14px;line-height:1.8;color:#1f2937;outline:0;word-break:break-word}
.rte-body:empty::before{content:attr(data-ph);color:#a9b6c8}
.rte-body img{max-width:100%;height:auto;border-radius:8px;margin:6px 0}
.rte-body video{max-width:100%;border-radius:10px;margin:6px 0;background:#000}
.rte-body a{color:var(--primary)}
.rte-body ul,.rte-body ol{padding-left:22px}
.rte-foot{display:flex;justify-content:space-between;padding:6px 12px;background:#fbfcff;border-top:1px solid #eef2f8;font-size:10.5px;color:#9aa8bb}
.rte-foot .rte-count{color:#7d8ea6;font-weight:600}
.rte-body img{cursor:pointer;position:relative}
.rte-body img.rte-img-active{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
.rte-img-handle{position:fixed;z-index:9998;width:16px;height:16px;display:none;background:var(--primary);border:2px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(40,120,255,.45);cursor:nwse-resize;touch-action:none}
.rte-img-handle::after{content:'';position:absolute;right:3px;bottom:3px;width:6px;height:6px;border-right:2px solid #fff;border-bottom:2px solid #fff}
.rte-img-tip{position:fixed;z-index:9998;display:none;padding:4px 9px;font-size:11px;line-height:1.4;background:rgba(28,80,160,.92);color:#fff;border-radius:6px;pointer-events:none;white-space:nowrap}
.rte-palette{position:fixed;z-index:10000;display:none;width:244px;padding:10px 11px 9px;background:#fff;border:1px solid #dbe4f2;border-radius:12px;box-shadow:0 10px 30px rgba(28,70,150,.22)}
.rte-palette .rp-title{font-size:12px;font-weight:700;color:#1f2937;margin-bottom:8px}
.rte-palette .rp-title span{font-weight:400;color:#9aa8bb;font-size:10.5px;margin-left:4px}
.rte-palette .rp-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}
.rte-palette .rp-dot{width:100%;aspect-ratio:1;border:2px solid #fff;border-radius:7px;box-shadow:0 0 0 1px #e2e8f2;cursor:pointer;padding:0;transition:transform .1s}
.rte-palette .rp-dot:hover{transform:scale(1.18);box-shadow:0 0 0 2px var(--primary)}
.rte-palette .rp-foot{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding-top:8px;border-top:1px solid #eef2f8}
.rte-palette .rp-foot button{font-size:11px;border:0;background:transparent;color:#1d6fff;cursor:pointer;padding:3px 5px;font-family:inherit}
.rte-palette .rp-custom-wrap{position:relative;display:inline-flex;align-items:center;gap:4px}
.rte-palette .rp-custom{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
/* ==================== 前台视觉提质（客户页） ==================== */
/* 品牌头：更细腻的光泽与层次 */
.site-header{
  background:linear-gradient(125deg,#1e5fe8 0%,#3d8bff 48%,#6ab0ff 100%);
  box-shadow:0 12px 30px rgba(37,105,220,.26),inset 0 1px 0 rgba(255,255,255,.25);
}
.site-header:before{
  content:"";position:absolute;left:-40px;bottom:-60px;width:170px;height:170px;
  background:radial-gradient(circle,rgba(255,255,255,.16),rgba(255,255,255,0) 70%);pointer-events:none
}
.sh-badge{background:rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
/* 卡片：更轻的描边 + 更柔的阴影，层次更干净 */
.card{box-shadow:0 6px 24px rgba(31,56,92,.06),0 1px 2px rgba(31,56,92,.03);border-color:rgba(41,72,120,.06)}
/* 分区胶囊：加一点内高光 */
.section-kicker{box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
/* 商品名：字重与色阶更稳 */
.product-name{font-size:23px;letter-spacing:.5px;background:linear-gradient(135deg,#16233a,#334a72);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;width:fit-content}
/* 扫码区：轻微呼吸动效，提示更醒目 */
.scan-zone{animation:scanBreath 3.2s ease-in-out infinite}
@keyframes scanBreath{
  0%,100%{box-shadow:0 0 0 0 rgba(40,120,255,.10)}
  50%{box-shadow:0 0 0 7px rgba(40,120,255,.06)}
}
.scan-icon{background:linear-gradient(145deg,#eef5ff,#dceaff);animation:scanIconFloat 3.2s ease-in-out infinite}
@keyframes scanIconFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
/* 主提交按钮：更饱满的渐变与光泽 */
.btn-primary{
  background:linear-gradient(135deg,#1f6bf0 0%,#3d8bff 55%,#2f7bf5 100%);
  box-shadow:0 8px 20px rgba(37,110,235,.28),inset 0 1px 0 rgba(255,255,255,.25);
  position:relative;overflow:hidden
}
.btn-primary:after{
  content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:skewX(-20deg);transition:left .55s
}
.btn-primary:hover:not(:disabled):after{left:120%}
/* 状态卡：图标圆盘加柔光，成功态更鲜亮 */
.status{box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.status:before{box-shadow:0 6px 18px rgba(40,120,255,.18),inset 0 1px 0 #fff}
.status.success{background:linear-gradient(135deg,#eafaf1,#f2fdf7)}
.status.success:before{box-shadow:0 6px 18px rgba(22,163,74,.24),inset 0 1px 0 #fff}
.status.success strong{color:#128a58}
/* 信息网格：隔行更柔和 */
.cell:nth-child(odd){background:rgba(247,249,252,.5)}
/* 折叠区箭头更顺滑 */
details.fold summary:before{transition:transform .2s ease}
/* 底部说明更轻 */
.page>div:last-child{letter-spacing:.2px}

/* 前台商品说明渲染 */
.rich-body{font-size:14px;line-height:1.85;color:#334155;word-break:break-word}
.rich-body> :first-child{margin-top:0}
.rich-body> :last-child{margin-bottom:0}
.rich-body p{margin:6px 0}
.rich-body h2,.rich-body h3,.rich-body h4{margin:14px 0 6px;color:#1f2937}
.rich-body h2{font-size:18px}.rich-body h3{font-size:16px}.rich-body h4{font-size:14.5px}
.rich-body img{max-width:100%;height:auto;border-radius:10px;display:block;margin:10px auto}
.rich-body video{max-width:100%;border-radius:10px;display:block;margin:10px auto;background:#000}
.rich-body ul,.rich-body ol{padding-left:22px;margin:8px 0}
.rich-body a{color:var(--primary);text-decoration:underline}
.rich-body blockquote{margin:10px 0;padding:8px 12px;border-left:3px solid var(--primary);background:#f1f6ff;border-radius:0 8px 8px 0}
.pt-body p.pt-line{margin:0 0 7px}
.rte-empty{color:#9aa8bb;font-size:13px}
