/* 丫丫网购 · 门店产品预定系统（/yuyue）样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #F7F4EE; color: #3A352B; font-size: 15px; padding-bottom: 30px; }
.hide { display: none !important; }
.view { max-width: 520px; margin: 0 auto; padding: 0 12px; }

/* 顶栏 */
.hd { display: flex; align-items: center; gap: 10px; padding: 14px 2px; }
.brand { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #C8503C, #E0764F); color: #fff; font-size: 22px; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-green { background: linear-gradient(135deg, #2A8C7E, #3DAF95); }
.tt { font-size: 17px; font-weight: bold; }
.sub { font-size: 12px; color: #948C7C; margin-top: 2px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 2px; font-weight: bold; font-size: 16px; }
.topbar a { text-decoration: none; color: #C8503C; font-size: 15px; font-weight: normal; }

/* 卡片/表单 */
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 10px 0; box-shadow: 0 1px 4px rgba(90,80,60,.07); }
.card h3 { font-size: 15px; margin: 8px 0; }
.fld { margin: 8px 0; }
.fld label { display: block; font-size: 13px; color: #6B6558; margin-bottom: 4px; }
.fld label i { color: #C8503C; font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid #DCD5C6; border-radius: 8px; padding: 10px 10px; font-size: 15px; background: #FDFCF9; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: #C8503C; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; }
.grid3 .fld input { padding: 9px 6px; }
.hint { font-size: 13px; color: #8A8375; line-height: 1.7; margin: 6px 0; }
.hint.small { font-size: 12px; }
.hint b { color: #C8503C; }
.center { text-align: center; }

/* 按钮 */
.btn { display: inline-block; background: linear-gradient(135deg, #C8503C, #D96A4E); color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font-size: 15px; font-weight: bold; cursor: pointer; text-align: center; }
.btn.big { width: 100%; padding: 13px; font-size: 16px; }
/* 弹层里按钮上下留间距，别挤在一起 */
.paycard .btn.big { margin-top: 12px; }
.paycard .btn.big:first-child { margin-top: 0; }
.btn.ghost { background: #fff; color: #6B6558; border: 1px solid #DCD5C6; font-weight: normal; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn.dis { background: #D8D2C4; color: #fff; }
.lnk { font-size: 13px; color: #4A7CB8; text-decoration: none; margin-right: 12px; }
.lnk.c-red { color: #C8503C; }
.lnk.c-green { color: #2A8C7E; }

/* 商城产品卡 */
.plist { margin-top: 4px; }
.pcard { display: flex; background: #fff; border-radius: 12px; margin: 10px 0; overflow: hidden; box-shadow: 0 1px 4px rgba(90,80,60,.07); cursor: pointer; }
.pcard.soldout { opacity: .62; }
.pimg { width: 110px; height: 110px; object-fit: cover; flex-shrink: 0; }
.pbody { padding: 10px 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 横向列表卡：标题+介绍+价格在上，三图横排在下（点图进详情） */
.hcard { display: block; padding: 12px 12px 10px; }
.ptop .pname.big { font-size: 17px; }
.pdesc2 { font-size: 13px; color: #948C7C; margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pline { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.pline .pprice { font-size: 18px; }
.pimgs { display: flex; gap: 6px; min-width: 0; margin-top: 10px; }
.pmini { flex: 1; min-width: 0; height: 86px; object-fit: cover; border-radius: 8px; background: #F2EDE4; }
.pmini.noimg { display: flex; align-items: center; justify-content: center; color: #B8AF9E; font-size: 12px; flex: 1; }
.pname { font-weight: bold; font-size: 15px; }
.pname.big { font-size: 18px; }
.pdesc { font-size: 12px; color: #948C7C; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.pdesc.full { font-size: 14px; color: #6B6558; line-height: 1.7; margin-top: 8px; white-space: normal; }
.pfoot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.pprice { color: #C8503C; font-weight: bold; font-size: 17px; }
.pprice.big { font-size: 22px; }
.pleft { font-size: 12px; color: #948C7C; }
.pfoot .btn { margin-left: auto; }
.pstock { font-size: 13px; color: #8A8375; margin-top: 6px; }
.dimg { width: 100%; border-radius: 8px; margin-bottom: 6px; display: block; }
/* 详情页：快团团式全宽图流 */
.gallery { margin: 2px -12px 0; background: #fff; }
.gallery .dimg { border-radius: 0; margin: 0; border-bottom: 1px solid #F2EDE4; }
.dprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.dstock { font-size: 13px; color: #8A8375; }
.dstock b { color: #C8503C; }
/* 顶部产品条（快团团式）：左图角标 + 右侧信息 + 数量步进 */
.pbar { display: flex; gap: 12px; }
.pbar-img { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.pbar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.pbar-tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(200,80,60,.88); color: #fff; font-size: 12px; text-align: center; border-radius: 0 0 8px 8px; padding: 2px 0; }
.pbar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pbar-body .pname { font-size: 17px; }
.pbar-body .dstock { margin-top: 4px; }
.pbar-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.qstep { display: inline-flex; align-items: center; gap: 12px; }
.qbtn { width: 30px; height: 30px; line-height: 28px; text-align: center; border: 1px solid #DCD5C6; border-radius: 50%; color: #C8503C; font-size: 17px; text-decoration: none; background: #fff; user-select: none; }
.qbtn:active { background: #FDF3F0; }
.qstep b { min-width: 26px; text-align: center; font-size: 17px; }
.qtotal b { color: #C8503C; font-size: 17px; }
/* 列表加载中 */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 46px 0; color: #948C7C; font-size: 14px; }
.loading .spin { width: 20px; height: 20px; border: 3px solid #EDE4D4; border-top-color: #C8503C; border-radius: 50%; animation: yyspin .8s linear infinite; }
@keyframes yyspin { to { transform: rotate(360deg); } }
/* 重要提示红卡 */
.noticewrap { border: 1px solid #F0D9D2; background: #FDF6F4; }
.notice-h { color: #C8503C; font-weight: bold; font-size: 15px; margin-bottom: 6px; }
.notice-list { margin: 0 0 0 18px; color: #8A4A3C; font-size: 13.5px; line-height: 1.9; }
.amtline { text-align: right; margin: 10px 0; font-size: 15px; }
.amtline b { color: #C8503C; font-size: 20px; }
.foot { text-align: center; font-size: 12px; color: #A79E8D; padding: 16px 0; }

/* 下单成功 */
.bigok { color: #2A8C7E; font-size: 22px; font-weight: bold; margin: 6px 0; }
.codebig { font-size: 44px; font-weight: bold; color: #C8503C; letter-spacing: 8px; margin: 10px 0; font-family: 'Courier New', monospace; }
.qrbox { display: flex; justify-content: center; padding: 6px 0 10px; }
.qrbox-sm { display: flex; justify-content: center; padding: 4px 0; }
.kv { font-size: 14px; line-height: 2; text-align: left; margin: 8px 0; }
.kv span { display: inline-block; width: 76px; color: #948C7C; font-size: 13px; }
/* 完成页：只显示订购的商品 */
.donebox { background: #FBF7F0; border: 1px solid #EFE4D2; border-radius: 10px; padding: 14px 14px 10px; margin: 14px 0 12px; text-align: left; }
.dprod { font-size: 17px; font-weight: bold; color: #3D372E; line-height: 1.45; }
.dqty { font-size: 14px; color: #7A7264; margin: 6px 0 10px; }
.dqty b { color: #C8503C; font-size: 19px; }
.drow { font-size: 14px; line-height: 1.9; color: #3D372E; display: flex; align-items: baseline; }
.drow > span { width: 68px; flex: 0 0 68px; color: #948C7C; font-size: 13px; }
.drow > b { font-weight: normal; word-break: break-all; }

/* 核销页 */
.tabs2 { display: flex; background: #fff; border-radius: 10px; margin: 8px 0; overflow: hidden; }
.tab2 { flex: 1; text-align: center; padding: 11px 0; font-size: 14px; color: #6B6558; cursor: pointer; }
.tab2.on { color: #C8503C; font-weight: bold; background: #FDF3F0; border-bottom: 2px solid #C8503C; }
.pane { padding: 4px 0 10px; }
.camwrap { margin: 10px 0; border-radius: 12px; overflow: hidden; background: #000; }
.camwrap video { width: 100%; display: block; }
.ocard { background: #fff; border-radius: 12px; padding: 12px 14px; margin: 10px 0; box-shadow: 0 1px 4px rgba(90,80,60,.07); position: relative; overflow: hidden; }
.ocard.slim { margin: 8px 0; }
/* 已核销订单的「已完成」虚印：图章样式大字斜盖在卡片背景上，不挡点击、不碍阅读 */
.ocard .stamp {
  position: absolute; top: 46%; right: 8px; transform: translateY(-50%) rotate(-12deg);
  font-size: 34px; font-weight: 800; letter-spacing: 6px; line-height: 1.2;
  color: rgba(42,143,90,.14); border: 3px solid rgba(42,143,90,.14); border-radius: 12px;
  padding: 4px 10px 4px 16px; white-space: nowrap; pointer-events: none; user-select: none;
}
.ocode { font-size: 14px; color: #6B6558; margin-bottom: 4px; }
.cancelbtn { margin-top: 8px; }
/* 售卖状态徽标 */
.salebadge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; font-weight: normal; vertical-align: middle; }
.salebadge.on { background: #E8F5F1; color: #2A8C7E; }
.salebadge.waiting { background: #FDF3E3; color: #B26B1B; }
.salebadge.ended { background: #F0EDE6; color: #948C7C; }
.ocode b { font-size: 26px; color: #C8503C; letter-spacing: 4px; font-family: 'Courier New', monospace; }
.lr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-red { color: #C8503C !important; }
.c-green { color: #2A8C7E !important; }
.c-orange { color: #D2820B !important; }
.c-gray { color: #948C7C; font-size: 13px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.tag.reserved { background: #FDF3E7; color: #B26B1B; }
.tag.done { background: #E9F5F0; color: #2A8C7E; }
.tag.cancelled { background: #F5E8E6; color: #A94438; }
.lnks { margin-top: 6px; }
.sub2 { font-size: 12.5px; color: #8A8375; margin-top: 3px; line-height: 1.6; }

/* 后台 */
.admintop { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 4px; font-size: 13px; color: #6B6558; }
.admacts { display: flex; gap: 12px; white-space: nowrap; }
.admacts a { color: #C8503C; text-decoration: none; }
.who { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.who b { font-size: 15px; color: #2F2B22; }
.who .wtag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.who .wtag.mgr { background: #FDF3F0; color: #C8503C; }
.who .wtag.store { background: #EEF6F0; color: #3E7A50; }
.tabs { display: flex; flex-wrap: wrap; background: #fff; border-radius: 10px; margin: 6px 0 10px; overflow: hidden; }
.tab { flex: 1 1 32%; text-align: center; padding: 10px 0; font-size: 14px; color: #6B6558; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.on { color: #C8503C; font-weight: bold; background: #FDF3F0; border-bottom-color: #C8503C; }
.statline { font-size: 14px; color: #6B6558; margin-bottom: 6px; }
.statline b { color: #C8503C; font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 10px; }
.tbl th, .tbl td { border-bottom: 1px solid #F0EBDF; padding: 7px 4px; text-align: left; }
.tbl th { color: #948C7C; font-weight: normal; }
.tbl td b { color: #C8503C; }
.tbl-sm { font-size: 12.5px; }
.pstat { margin: 10px 0; padding-bottom: 9px; border-bottom: 1px dashed #EFE8DA; }
.pstat:last-child { border-bottom: 0; padding-bottom: 0; }
.pstat-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-size: 13.5px; color: #4A4436; margin-bottom: 3px; cursor: pointer; }
.pstat-name { font-weight: bold; }
.pstat-nums { color: #8A8272; }
.pstat-nums .pn-or { color: #C8503C; font-size: 15px; }
.pstat-nums .pn-gr { color: #3E8E5A; font-size: 15px; }
.pstat-h .pstoggle { display: inline-block; margin-left: 8px; color: #C8503C; font-size: 12px; white-space: nowrap; }
.pstat-flv i { display: inline-block; font-style: normal; font-size: 11px; color: #A89A7E; background: #F5EFE3; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
/* 口味分布小行（预定统计每个产品下面） */
.pstat-flv { font-size: 12.5px; color: #8A8272; margin: 1px 0 4px; }
.filters { display: flex; gap: 8px; margin: 8px 0; }
.filters select, .filters input { flex: 1; border: 1px solid #DCD5C6; border-radius: 8px; padding: 9px; font-size: 14px; background: #fff; }
.filters .btn { flex-shrink: 0; }
.imgrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.imgitem { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.imgitem img { width: 100%; height: 100%; object-fit: cover; }
.imgdel { position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: rgba(0,0,0,.55); color: #fff; text-align: center; line-height: 20px; font-size: 14px; text-decoration: none; }

/* 弹提示 */
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: rgba(40,35,28,.92); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 20px; z-index: 500; max-width: 86%; }

/* 产品下方购买记录（接龙） */
.pbuy { margin-top: 8px; background: #FAF6EC; border-radius: 8px; padding: 7px 9px; }
.pbuy-h { font-size: 12px; color: #B26B1B; margin-bottom: 4px; font-weight: bold; }
.pbuy-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6B6558; padding: 2px 0; line-height: 1.5; }
.pbuy-dot { flex-shrink: 0; width: 14px; text-align: center; font-size: 10px; color: #2A8C7E; }
.pbuy-name { font-weight: bold; color: #4A4436; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbuy-qty { flex: 1; }
.pbuy-time { color: #A89F8C; font-size: 11.5px; flex-shrink: 0; }
.pbuycard { padding: 0; background: transparent; box-shadow: none; margin-top: -4px; }

/* 口味选择（客人端） */
.flavors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.flavor { padding: 7px 14px; border: 1px solid #DCD5C6; border-radius: 18px; font-size: 14px; color: #4A4436; background: #fff; cursor: pointer; }
.flavor.on { border-color: #C8503C; background: #FDF3F0; color: #C8503C; font-weight: bold; }
.pbuy-flavor, .ftagmini { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 8px; background: #FDF3F0; color: #C8503C; font-size: 11.5px; font-weight: normal; }

/* 口味编辑（后台） */
.flavoradd { display: flex; gap: 8px; margin-bottom: 6px; }
.flavoradd input { flex: 1; border: 1px solid #DCD5C6; border-radius: 8px; padding: 9px; font-size: 14px; }
.flavortags { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 14px; background: #FDF3F0; color: #C8503C; font-size: 13px; }
.ftagdel { color: #C8503C; text-decoration: none; font-size: 14px; padding: 0 3px; }

/* 多口味选择：每口味一行（胶囊 + 件数步进） */
.pbuy-row { flex-wrap: wrap; }
.frows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.frow { display: flex; align-items: center; justify-content: space-between; }
.frow .flavor { flex: 0 0 auto; }
.fstep { display: flex; align-items: center; gap: 10px; }
.fbtn { width: 28px; height: 28px; line-height: 26px; text-align: center; border: 1px solid #DCD5C6; border-radius: 8px; background: #fff; color: #C8503C; font-size: 16px; text-decoration: none; user-select: none; }
.fbtn:active { background: #FDF3F0; }
.fnum { min-width: 22px; text-align: center; font-size: 15px; color: #4A4436; }
input.ro { background: #F5F1E6; color: #8A8375; }
.pminq { font-size: 13px; color: #B26B1B; background: #FAF6EC; display: inline-block; padding: 3px 10px; border-radius: 12px; margin-top: 6px; }
.pminq b { color: #C8503C; }

/* 商品池选品 */
.poollist { margin-top: 6px; max-height: 260px; overflow-y: auto; border: 1px solid #DCD5C6; border-radius: 8px; background: #fff; }
.poollist:empty { display: none; }
.poolitem { padding: 8px 10px; border-bottom: 1px solid #F0EBDF; cursor: pointer; }
.poolitem:last-child { border-bottom: none; }
.poolitem:active { background: #FDF3F0; }
.pi-name { font-size: 14px; color: #4A4436; font-weight: bold; }
.pi-sub { font-size: 12px; color: #8A8375; margin-top: 2px; }
.scopetag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #FDF3F0; color: #C8503C; font-size: 12px; font-weight: normal; }

/* 订单管理（快团团式） */
.odstats { display: flex; text-align: center; padding: 6px 0 10px; }
.ods { flex: 1; }
.ods b { display: block; font-size: 21px; color: #2A6E5F; }
.ods span { font-size: 12px; color: #8A8375; }
.odgoodshd { border-top: 1px solid #F0EBDF; padding: 8px 2px 2px; font-size: 14px; color: #4A4436; display: flex; justify-content: space-between; align-items: center; }
.odacts { margin-top: 10px; text-align: right; }
.odgoods { margin-top: 4px; }
.odrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.odrow:active { background: #FDF3F0; }
.odrow.on { background: #FDF3F0; }
.odname { color: #4A4436; font-weight: bold; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odflv { font-style: normal; color: #C8503C; font-weight: normal; font-size: 12px; margin-left: 4px; }
.odnum { flex-shrink: 0; color: #8A8375; font-size: 12.5px; }
.odsearch input { width: 100%; border: 1px solid #DCD5C6; border-radius: 20px; padding: 10px 14px; font-size: 14px; background: #FDFCF9; box-sizing: border-box; }
.odtabs { display: flex; align-items: center; gap: 4px; margin-top: 10px; border-bottom: 1px solid #F0EBDF; }
.otab { padding: 8px 12px; font-size: 14px; color: #6B6558; cursor: pointer; border-bottom: 2px solid transparent; }
.otab.on { color: #C8503C; font-weight: bold; border-bottom-color: #C8503C; }
.odtabs .btn { margin-left: auto; }
/* 分店数量签（订单管理，总经理） */
.odstores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.odstores-tip { font-size: 12px; color: #6B6558; }
/* 核销日报 */
.vrhd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.vrhd input[type=date] { flex: 1; min-width: 130px; padding: 8px 10px; border: 1px solid #E5DFD2; border-radius: 9px; font-size: 14px; background: #fff; color: #3A3428; }
.vrtbl-row { cursor: pointer; }
.vrtbl-row.on td { background: #FDF3F0; font-weight: bold; }
.vrow { border-bottom: 1px dashed #EAE4D8; padding: 9px 2px; }
.vrow:last-child { border-bottom: 0; }
.vamt { font-size: 16px; font-weight: bold; color: #C8503C; }
.odstores-tip b { color: #C8503C; }
.odstore { padding: 5px 11px; border-radius: 14px; background: #F3EFE7; color: #6B6558; font-size: 12px; cursor: pointer; }
.odstore i { font-style: normal; color: #C8503C; font-weight: bold; }
.odstore.on { background: #C8503C; color: #fff; font-weight: bold; }
.odstore.on i { color: #fff; }
/* 子商品（团购内多个商品，购物车式） */
.pricefrom { font-style: normal; font-size: 11px; color: #8A8375; margin-left: 2px; }
.itemsbox h3 { margin-bottom: 8px; }
.itrow { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F0EBDF; }
.itrow:last-child { border-bottom: 0; }
.itrow.on { background: #FDF9F3; }
.itrow.off { opacity: .55; }
.itinfo { flex: 1; min-width: 0; }
.itname { font-size: 14px; font-weight: bold; color: #3D3830; }
.itmeta { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.itleft { font-size: 12px; color: #8A8375; }
.itoff { font-size: 12px; color: #8A8375; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.10); }
.cartinfo { flex: 1; font-size: 14px; color: #3D3830; }
.cartinfo b { color: #C8503C; }
.cartbar .btn { padding: 10px 22px; }
/* 后台产品表单：子商品行 */
.pitem-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #EFEAE0; }
.pi-img { width: 52px; height: 52px; border-radius: 8px; background: #F1ECE2; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #948C7C; flex-shrink: 0; overflow: hidden; cursor: pointer; }
.pi-img.has { background: #fff; border: 1px solid #EFEAE0; }
.pi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-fields { flex: 1; min-width: 0; }
.pi-fields .pi-name { width: 100%; }
.pi-line { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.pi-line .pi-price, .pi-line .pi-stock { flex: 1 1 0; min-width: 0; }
/* 子商品行（快团团式：图上红标「仅剩N件」，已订在名称下，价格+开关同排） */
.itimgwrap { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; flex-shrink: 0; margin-right: 10px; background: #F1ECE2; }
.itimgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itimgtag { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(200,80,60,.92), rgba(178,58,40,.96)); color: #fff; font-size: 12px; text-align: center; padding: 4px 0; }
.itimg.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; color: #B5AC9A; }
.itordered { font-size: 12px; color: #8A8375; margin-top: 3px; }
.itordered b { color: #C8503C; font-weight: bold; }
.itordered .itshare { margin-left: 8px; }
.itbuy { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.itprice { font-size: 19px; font-weight: bold; }
.itrow .qstep { gap: 7px; }
.itrow .qbtn { width: 24px; height: 24px; line-height: 22px; font-size: 14px; }
.itrow .qstep b { min-width: 20px; font-size: 14px; }
.itrow.hl { background: #FBEFEA; border-radius: 8px; }
.itshare { font-size: 12px; white-space: nowrap; }
/* 后台产品列表：子商品链接行 */
.ilkline { margin-top: 4px; }
.ilkbox { margin-top: 6px; padding: 8px 10px; background: #FAF7F1; border-radius: 8px; }
.itlk { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6B6558; padding: 4px 0; }
.itlk span { flex: 1; min-width: 0; }
/* 订单卡：改派门店 */
.rebox { margin-top: 6px; padding: 8px 10px; background: #FAF7F1; border-radius: 8px; }
.reshow { display: flex; gap: 8px; align-items: center; }
.reshow select { flex: 1; min-width: 0; }

/* 预定号 */
.dailyno { color: #C8503C; font-size: 20px; }
.dailytag { margin-left: 8px; font-size: 12.5px; color: #C8503C; background: #FDF3F0; padding: 1px 8px; border-radius: 10px; font-weight: normal; }
.ocno { display: inline-block; margin-right: 6px; font-size: 12px; color: #C8503C; background: #FDF3F0; padding: 1px 7px; border-radius: 9px; }

/* 核销页：本店待核销订单列表 */
.vdrow { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 2px; }
.tab2 b { font-size: 12px; color: #C8503C; }
/* 店员入口横条：客人扫店码进来时显示（输核销口令才解锁店员功能） */
.vfgate { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; margin: 0 12px 8px; background: #FDF3F0; border-radius: 10px; font-size: 13px; color: #8a6a5a; }
.vditem { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 8px 0; box-shadow: 0 1px 4px rgba(90,80,60,.07); }
.vdcode { font-size: 22px; font-family: 'Courier New', monospace; letter-spacing: 2px; color: #C8503C; font-weight: bold; }
.vdmain { flex: 1; min-width: 0; }
.vdprod { font-size: 14px; color: #2F2B22; }
.vdwho { font-size: 12.5px; color: #8A8375; margin-top: 3px; line-height: 1.6; }
.vdbtn { flex-shrink: 0; }
.vdbtn button { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.vddone { font-size: 12.5px; color: #2A8C7E; flex-shrink: 0; }

/* 核销收款弹层 */
.paymask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(40,34,24,.5); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.paycard { background: #fff; border-radius: 14px; padding: 16px; width: 100%; max-width: 360px; max-height: 92vh; overflow-y: auto; }
.payamount { font-size: 15px; color: #6B6558; margin: 10px 0; }
.payamount b { color: #C8503C; font-size: 30px; }
#vfPayQrWrap img { display: block; width: 200px; height: 200px; object-fit: contain; margin: 6px auto; border: 1px solid #EAE4D8; border-radius: 10px; padding: 6px; background: #fff; }
.paykv { font-size: 13px; color: #6B6558; line-height: 1.8; }
.paykv b { color: #2F2B22; }

/* 后台门店收款码预览 */
.payqrdemo { margin: 4px 0 6px; }
.payqrdemo img { width: 110px; height: 110px; object-fit: contain; border: 1px solid #EAE4D8; border-radius: 8px; padding: 4px; background: #fff; }

/* 付款界面强化 */
.paystep { font-size: 13px; color: #6B6558; line-height: 1.9; }
.paystep i { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; background: #FDF3F0; color: #C8503C; border-radius: 50%; font-style: normal; font-size: 12px; margin-right: 5px; }
.paystep b { color: #C8503C; }
.paynoqr { background: #FDF3F0; color: #A94438; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.8; margin-bottom: 10px; }

/* 商城首页「我的订单」入口 */
.hd .mylink { margin-left: auto; color: #C8503C; font-size: 13px; text-decoration: none; white-space: nowrap; background: #FDF3F0; border: 1px solid #F0D9D2; padding: 6px 12px; border-radius: 16px; }

/* 产品详情页操作行（生成海报 / 复制链接） */
.pacts { display: flex; gap: 8px; padding: 0 2px 6px; }
.pacts .lnk { margin-right: 0; background: #fff; border: 1px solid #EDE7DB; border-radius: 16px; padding: 6px 14px; font-size: 13px; }
.pacts .lnk.c-red { border-color: #F0D9D2; background: #FDF3F0; }

/* 产品海报弹层 */
.posterwrap { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 12px; }
.postermask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30,26,20,.75); }
.posterbox { position: relative; width: 100%; max-width: 380px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 12px; -webkit-overflow-scrolling: touch; }
.postertip { font-size: 12px; color: #948C7C; text-align: center; line-height: 1.7; margin-bottom: 8px; }
.posterimg { min-height: 80px; }
.posterimg img { width: 100%; display: block; border-radius: 8px; }
.posterbtns { display: flex; gap: 10px; margin-top: 10px; }
.posterbtns .btn { flex: 1; }
.postertip.warn { color: #C0392B; }
.postertip.ok { color: #2E7D32; }

/* 数据中心（后台顶部实时三数，快团团式） */
.dashcard { background: #fff; border-radius: 14px; margin: 10px 12px 0; padding: 12px 14px 10px; border: 1px solid #F0EAE0; }
.dash-h { display: flex; align-items: center; gap: 8px; }
.dash-h b { font-size: 16px; }
.dash-time { font-size: 12px; color: #948C7C; flex: 1; }
.dash-refresh { font-size: 16px; color: #948C7C; text-decoration: none; padding: 0 4px; }
.dash-refresh.spin { display: inline-block; animation: dashspin .7s linear infinite; }
@keyframes dashspin { to { transform: rotate(360deg); } }
.dash-more { font-size: 13px; color: #948C7C; text-decoration: none; }
.dash-nums { display: flex; margin-top: 8px; }
.dash-nums .dn { flex: 1; text-align: center; }
.dash-nums .dn b { display: block; font-size: 22px; font-weight: 700; color: #2A241C; }
.dash-nums .dn span { font-size: 12px; color: #948C7C; }
.dash-sub { font-size: 12px; color: #948C7C; text-align: right; min-height: 14px; margin-top: 2px; }
.dash-sub a { color: #C8503C; text-decoration: none; }

/* 详情页产品信息行：发布时间 / 看过 / 已订 */
.pmeta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: #948C7C; margin-top: 8px; }
.pmeta span + span::before { content: '·'; margin-right: 6px; }
.pmeta i { font-style: normal; color: #C8503C; font-weight: bold; }

/* 部分核销：付款层子商品勾选（缺货的取消勾选，剩下的以后再核销） */
.payitems { margin: 8px 0 4px; border: 1px solid #EAD9C9; border-radius: 8px; padding: 6px 10px; background: #FFFBF5; }
.payitems-h { font-size: 12px; color: #8A6A4F; margin-bottom: 4px; }
.payitem { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #EAD9C9; font-size: 14px; }
.payitem:last-child { border-bottom: 0; }
.payitem input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.payitem-nm { flex: 1; color: #4A3B2C; }
.payitem-amt { color: #C8503C; font-weight: bold; }

/* 提货门店必须自己选：没选时红框+浅红底提醒 */
.fld select.need { border-color: #C8503C; background: #FFF6F4; color: #C8503C; }

/* 批量核销：查单结果勾选条（勾几张 → 合并收款一次核销） */
.vfselbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #FFF6E8; border: 1px solid #EAD9C9; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.vfselsum { flex: 1; text-align: right; color: #8A6A4F; font-weight: bold; }
.vfitem { position: relative; margin-bottom: 10px; }
.vfpick { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8A6A4F; padding: 2px 0 6px; cursor: pointer; }
.vfpick input[type="checkbox"] { width: 17px; height: 17px; }
.vfpick.dis { color: #C0B49F; cursor: default; }

/* 勾选的单：自己那颗「收款并核销」变灰，只能走上方的「一并核销」 */
.btn[disabled], .btn.dis { opacity: .45; filter: grayscale(1); cursor: default; }

/* 查单三页签：待提货 / 部分提货 / 已提货（参考快团团核销页样式） */
.vttabs { display: flex; background: #fff; border-radius: 10px 10px 0 0; border-bottom: 1px solid #EAD9C9; margin-bottom: 10px; }
.vttab { flex: 1; text-align: center; padding: 11px 0; font-size: 15px; color: #6B5B45; border-bottom: 2px solid transparent; cursor: pointer; }
.vttab b { font-size: 13px; color: #B0A289; }
.vttab.on { color: #3E8E5A; font-weight: bold; border-bottom-color: #3E8E5A; }
.vttab.on b { color: #3E8E5A; }

/* 单品/口味单部分核销：本次核销份数步进（快团团式） */
.qtyrow { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 16px; }
.qtyrow .qbtn { width: 32px; height: 32px; line-height: 30px; text-align: center; border: 1px solid #DCD5C6; border-radius: 8px; background: #FDFCF9; font-size: 18px; color: #4A3B2C; }
.qtyrow b { min-width: 28px; text-align: center; font-size: 18px; color: #4A3B2C; }
.qtyrow .payitem-amt { margin-left: auto; }

/* 各店数量表：子商品明细小字（店名下面） */
.pssub { font-size: 11px; color: #A89A7E; margin-top: 2px; line-height: 1.6; }
.pssub b { color: #C8503C; }

/* 预定统计：日期筛选（只统计这一批） */
.stfilter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #6B5B45; padding: 8px 0 10px; border-bottom: 1px dashed #EFE8DA; margin-bottom: 10px; }
.stfilter input[type="date"] { border: 1px solid #DCD5C6; border-radius: 8px; padding: 5px 8px; font-size: 13px; background: #FDFCF9; color: #4A3B2C; }
.stfilter .stf-hint { font-size: 11px; color: #B0A289; }

/* 待确认收款红条（核销页顶部）：给了收款码但没点「客人已付款」的单 */
.pendbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 11px 12px; margin-bottom: 10px; background: #FFF1EE; border: 1px solid #F3C3BA; border-radius: 10px; color: #B8412C; font-size: 14px; cursor: pointer; }
.pendbar b { font-size: 17px; }
.pendbar-go { margin-left: auto; color: #C8503C; font-weight: bold; white-space: nowrap; }
.pendbox { margin-bottom: 10px; padding: 10px 12px; background: #FFFBF5; border: 1px solid #EAD9C9; border-radius: 10px; }
.pendhd { font-size: 12.5px; color: #8A6A4F; margin-bottom: 8px; }
.penditem { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #EAD9C9; }
.penditem:last-of-type { border-bottom: 0; }
.pend-l { flex: 1; font-size: 14px; color: #4A3B2C; }
.pend-sub { font-size: 12px; color: #8A8272; margin-top: 3px; line-height: 1.55; }
.pend-r { text-align: right; flex: none; }
.pend-r b { display: block; font-size: 16px; margin-bottom: 4px; }

/* 后台核销日报：待确认收款卡片 */
.pendadmin { margin: 10px 0; padding: 10px 12px; background: #FFF1EE; border: 1px solid #F3C3BA; border-radius: 10px; }
.pendadmin-h { color: #B8412C; font-size: 14px; }
.pendadmin-h b { font-size: 17px; }
.pendadmin-sub { font-size: 11.5px; color: #A8695C; margin: 3px 0 8px; line-height: 1.6; }
.pendadmin-row { font-size: 13px; color: #4A3B2C; padding: 5px 0; border-top: 1px dashed #F3C3BA; }
.pendadmin-t { float: right; color: #A8695C; font-size: 11.5px; }
