/* 邻里小卖部 · 商家后台 · 页面样式：外壳、登录、概览、订单、商品、收款流水、店铺设置 */

/* ================= 外壳 ================= */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 100vh; overflow: hidden; }
.side { background: var(--ink); color: #D6D2CA; display: flex; flex-direction: column; min-height: 0; }

/* 招牌：侧边栏顶部的遮阳篷。招牌黄底 + 浅黄竖条纹，底边是一排半圆波浪，和小程序首页、Logo 呼应。
 * 波浪用 radial-gradient 画：每个半圆宽 22px，颜色和它上面那根竖条纹一致，看起来像一整块布垂下来。 */
.awning {
  position: relative; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 22px 16px 20px; margin-bottom: 28px; color: var(--ink);
  background: repeating-linear-gradient(90deg, #FFEB88 0 22px, var(--brand) 22px 44px);
}
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px; pointer-events: none;
  background:
    radial-gradient(circle at 11px 0, #FFEB88 10.5px, transparent 11px) 0 0 / 44px 11px repeat-x,
    radial-gradient(circle at 33px 0, var(--brand) 10.5px, transparent 11px) 0 0 / 44px 11px repeat-x;
}
.aw-logo { width: 46px; height: 46px; flex: none; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: var(--ink); color: var(--brand); box-shadow: 0 0 0 2px var(--ink); }
.aw-logo img { width: 100%; height: 100%; object-fit: cover; }
.aw-text { min-width: 0; }
.aw-text b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; }
.aw-text small { font-size: 12px; font-weight: 600; opacity: 0.7; letter-spacing: 0.08em; }

.side :focus-visible { outline-color: var(--brand); }
.awning:focus-visible { outline-color: var(--ink); outline-offset: -4px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 10px; color: #CFCAC1; font-size: 15px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.nav-i:hover:not(.on) { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-i.on { background: var(--brand); color: var(--ink); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--price-deep); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; animation: badge-pop 0.4s ease-out; }
.nav-i.on .nav-badge { background: var(--ink); color: var(--brand); }
@keyframes badge-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.side-foot { margin-top: auto; padding: 16px 20px 18px; font-size: 12.5px; color: #8F8A82; }
.live { display: inline-flex; align-items: center; gap: 8px; line-height: 1.4; }
.live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.18); animation: live-pulse 2.6s ease-in-out infinite; }
.live.off { color: #FFB9A8; }
.live.off i { background: var(--price); box-shadow: 0 0 0 3px rgba(255, 74, 38, 0.22); animation: none; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(61, 214, 140, 0); } }

.main { min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar { flex: none; display: flex; align-items: center; gap: 18px; height: 76px; padding: 0 28px; }
.tb-title h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.2; }
.tb-title p { font-size: 13px; color: var(--mute); margin-top: 2px; white-space: nowrap; }
.tb-clock { font-size: 14px; color: var(--ink-2); padding-left: 18px; border-left: 2px solid var(--line-2); white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-alert { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: all 0.16s; }
.tb-alert:hover { border-color: var(--ink); color: var(--ink); }
.tb-alert.on { background: var(--ok-soft); border-color: #B6DEC8; color: var(--ok-deep); }
.tb-alert.warn { background: var(--brand-soft); border-color: #F0DB8A; color: var(--brand-text); }
.tb-offline { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--price-soft); color: var(--price-ink); font-weight: 700; font-size: 13.5px; }
.tb-shop { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.tb-shop .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tb-shop-t { font-weight: 700; font-size: 13.5px; min-width: 56px; }
.tb-shop.closed .dot { background: var(--ink-3); box-shadow: 0 0 0 4px var(--bg-deep); }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 6px; border-radius: 10px; border: 0; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; }
.acct-menu { position: absolute; right: 0; top: 48px; z-index: 50; min-width: 168px; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.acct-menu button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; font-weight: 600; text-align: left; }
.acct-menu button:hover { background: var(--bg); }

.content { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 0; }
.page { min-height: 100%; padding-bottom: 40px; max-width: 1480px; margin: 0 auto; }
.page.p-settings { max-width: 1180px; }

/* ================= 登录 ================= */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 46%) 1fr; }
.login-art { position: relative; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.la-awning { position: relative; flex: none; height: 76px; background: repeating-linear-gradient(90deg, #FFF1A8 0 56px, var(--brand) 56px 112px); margin-bottom: 30px; }
.la-awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
  background:
    radial-gradient(circle at 28px 0, #FFF1A8 27.5px, transparent 28px) 0 0 / 112px 28px repeat-x,
    radial-gradient(circle at 84px 0, var(--brand) 27.5px, transparent 28px) 0 0 / 112px 28px repeat-x;
}
.la-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 36px 56px 56px; }
.la-logo { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: var(--ink); margin-bottom: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.la-logo img { width: 100%; height: 100%; object-fit: cover; }
.la-brand h1 { font-size: 44px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.15; }
.la-slogan { margin-top: 8px; font-size: 17px; color: var(--brand); font-weight: 600; }
.la-desc { margin-top: 14px; color: #BDB8AF; font-size: 16px; max-width: 360px; line-height: 1.7; }
.la-ticket { position: relative; align-self: flex-start; width: 320px; padding: 16px 18px 14px; background: #fff; color: var(--ink); border-radius: 12px 12px 0 0; border-top: 5px solid var(--brand); transform: rotate(-2.5deg); filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4)); margin-bottom: 14px; }
.la-ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9' viewBox='0 0 18 9'%3E%3Cpath d='M0 0h18L9 9z' fill='%23fff'/%3E%3C/svg%3E") repeat-x; background-size: 18px 9px; }
.lt-top { display: flex; align-items: center; justify-content: space-between; }
.lt-hr { border-top: 2px dashed var(--line-2); margin: 12px 0; }
.lt-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
.lt-row b { font-size: 17px; }
.lt-remark { margin-top: 10px; padding: 8px 10px; background: var(--brand-soft); border-left: 4px solid var(--brand-deep); border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--brand-text); }
.lt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.lt-foot b { font-size: 22px; }
.login-form-wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 56px; }
.login-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-icp { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: var(--mute); }
.login-icp a { color: inherit; text-decoration: none; }
.login-icp a:hover { color: var(--ink-2); text-decoration: underline; }
.login-card h2 { font-size: 28px; font-weight: 800; }
.login-sub { color: var(--ink-2); margin-top: -8px; }
.login-notice { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.login-hint { font-size: 13px; color: var(--ink-2); line-height: 1.6; padding: 12px 14px; border-radius: 10px; background: var(--bg-deep); }
.login-card .btn-block { margin-top: 4px; }

/* ================= 概览 ================= */
.dash { display: flex; flex-direction: column; gap: 16px; }
.kpi-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi-hero { background: var(--brand); box-shadow: 0 6px 20px rgba(242, 194, 0, 0.3); }
.kpi-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi-hero .kpi-l { color: rgba(28, 27, 25, 0.75); }
.kpi-big { font-size: 56px; line-height: 1.05; display: flex; align-items: baseline; }
.kpi-num { font-size: 40px; line-height: 1.1; display: flex; align-items: baseline; }
.kpi-num small { font-size: 14px; color: var(--ink-2); margin-left: 5px; font-weight: 500; font-family: var(--font); }
.kpi-sub { font-size: 12.5px; color: var(--mute); margin-top: auto; }
.kpi-hero .kpi-sub { color: rgba(28, 27, 25, 0.72); }
.kpi-sub b { color: var(--ink); }

.queue { padding-bottom: 20px; }
.queue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 22px 0; }
.q-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; grid-template-rows: auto auto; grid-template-areas: "n l go" "n h go"; column-gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.q-tile:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.q-n { grid-area: n; font-size: 46px; line-height: 1; min-width: 44px; color: var(--ink-3); }
.q-tile.has .q-n { color: var(--ink); }
.q-l { grid-area: l; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15.5px; align-self: end; }
.q-h { grid-area: h; font-size: 12.5px; color: var(--mute); align-self: start; line-height: 1.4; }
.q-go { grid-area: go; color: var(--ink-3); }
.q-tile.hot { background: var(--brand-soft); border-color: var(--brand-deep); }
.q-tile.hot .q-h { color: var(--brand-text); }
.q-tile.hot .q-go { color: var(--ink); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; }
.chart-card, .top-card, .stock-card { padding-bottom: 18px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-deep); }
.lg-line { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--ink); }
.chart-card { display: flex; flex-direction: column; }
.chart-wrap { position: relative; padding: 8px 14px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid line.base { stroke: var(--line-2); }
.chart .ax { font: 700 12px var(--num); fill: var(--mute); }
.chart .ax-o { fill: var(--ink); }
.chart .ax-x { font-size: 12.5px; }
.chart .ax-x.today { fill: var(--ink); }
.chart .bar { fill: var(--brand); stroke: var(--brand-deep); stroke-width: 1; }
.chart .bar.today { fill: var(--brand-deep); stroke: #D9AC00; }
.chart .hov { fill: rgba(28, 27, 25, 0.045); rx: 8; }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot-o { fill: #fff; stroke: var(--ink); stroke-width: 2.5; transition: r 0.12s; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 4px; z-index: 5; }
.chart-tip b { font-size: 13.5px; }
.chart-tip .lg-bar, .chart-tip .lg-line { margin-right: 6px; vertical-align: middle; }
.chart-tip .lg-line { background: #fff; }
.chart-empty { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: var(--mute); font-weight: 500; pointer-events: none; }

.top-list { list-style: none; margin: 0; padding: 12px 22px 0; display: flex; flex-direction: column; gap: 16px; }
.top-list li { display: flex; gap: 14px; }
.top-rank { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--bg-deep); color: var(--ink-2); display: grid; place-items: center; font-size: 14px; }
.top-list li:nth-child(1) .top-rank { background: var(--brand); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand-deep); }
.top-list li:nth-child(2) .top-rank, .top-list li:nth-child(3) .top-rank { background: var(--brand-soft); color: var(--brand-text); }
.top-main { flex: 1; min-width: 0; }
.top-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.top-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-q { color: var(--ink); }
.top-bar { height: 6px; border-radius: 3px; background: var(--bg); margin: 6px 0 4px; overflow: hidden; }
.top-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-deep); }
.top-amt { font-size: 12.5px; color: var(--mute); }

.card-h .links { display: inline-flex; gap: 18px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; padding: 14px 22px 0; }
.stock-i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.stock-i:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }
.stock-i > .ico { color: var(--ink-3); margin-left: auto; }
.stock-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stock-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-n { font-size: 13px; color: var(--price-deep); font-weight: 600; }
.stock-n b { font-size: 16px; }
.stock-n.zero { color: var(--ink-2); }

/* ================= 订单 ================= */
.orders-page { display: flex; flex-direction: column; gap: 14px; }
.alert-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #F0DB8A; color: var(--brand-text); font-weight: 600; font-size: 13.5px; }
.alert-bar span { flex: 1; min-width: 0; line-height: 1.5; }
.tabs-row { display: flex; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; min-width: 0; }
.tab { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tab:hover:not(.on) { background: var(--surface); color: var(--ink); }
.tab.on { background: var(--brand); color: var(--ink); box-shadow: 0 2px 8px rgba(242, 194, 0, 0.35); }
.tabs-sp { flex: 1; }
.tabs-upd { align-self: center; font-size: 12.5px; color: var(--mute); white-space: nowrap; padding-right: 2px; }
.tabs-row .icon-btn { flex: none; }
.ico.spin { animation: spin 0.8s linear infinite; }
.payfor-tag.wait { border-style: dashed; }
.tab-n { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--price-deep); color: #fff; font-size: 12px; display: grid; place-items: center; }
.tab.on .tab-n { background: var(--ink); color: var(--brand); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 14px 18px; }
.fl-sel { width: 140px; }
.date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-row .input { width: 142px; }
.fl-kw { flex: 1; min-width: 240px; }
.fl-err { flex-basis: 100%; margin-top: -4px; }
.table-card { overflow: hidden; }
.ord-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ord-thumbs { display: flex; flex: none; }
.ord-thumbs .thumb { box-shadow: 0 0 0 2px #fff; }
.ord-thumbs .thumb + .thumb { margin-left: -12px; }
.ord-more { flex: none; align-self: center; margin-left: 4px; font-size: 12px; color: var(--ink-2); }
.ord-txt { min-width: 0; }
.ord-brief { font-weight: 600; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-remark { display: flex; align-items: center; gap: 4px; margin-top: 4px; max-width: 280px; padding: 1px 8px 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 600; }
.ord-remark span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-remark .ico { flex: none; }
.ord-who { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.ord-addr { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pk { font-size: 18px; line-height: 1; }
.ord-amt { font-size: 16px; }
.ord-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wx-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--price-deep); font-size: 12px; font-weight: 600; }
.ord-time { white-space: nowrap; font-size: 13px; }

/* 代付标记：带上好友的头像，一眼看出这单是好友付的 */
.payfor-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 3px; border-radius: 11px; background: var(--brand-soft); border: 1px solid #F0DB8A; color: var(--brand-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.payfor-tag.solo { padding-left: 8px; }

/* 订单详情抽屉 */
.od-wx { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; }
.od-wx.fail { background: var(--price-soft); border: 1px solid #F7B9AA; color: var(--price-ink); }
.od-wx-t { flex: 1; min-width: 0; }
.od-wx-t b { display: block; font-size: 14px; line-height: 1.5; }
.od-wx-t small { display: block; margin-top: 4px; color: #8A3B2B; font-size: 12.5px; line-height: 1.55; }
.od-wx > .ico { margin-top: 2px; }
.od-hero { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); border-top: 5px solid var(--brand); padding: 14px 18px 16px; margin-bottom: 14px; }
.od-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.od-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 12px; }
.od-code-box { display: flex; flex-direction: column; gap: 2px; }
.od-code-l { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.od-code { font-size: 64px; line-height: 1; letter-spacing: 0.03em; }
.od-count { color: var(--ink-2); font-size: 13.5px; padding-bottom: 4px; white-space: nowrap; }
.od-count b { color: var(--ink); font-size: 16px; }
.od-amt { font-size: 32px; line-height: 1; color: var(--price); white-space: nowrap; }
.od-amt-xl { font-size: 56px; }
.od-orderno { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 10px 0 0; color: var(--mute); font-size: 12.5px; }
.od-orderno:hover { color: var(--ink); }
.od-callout { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.od-callout .ico { margin-top: 2px; }
.od-callout.pick { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.od-card { background: var(--surface); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.od-card h3 { font-size: 13px; color: var(--mute); font-weight: 700; margin-bottom: 12px; letter-spacing: 0.04em; }
.od-kv { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 500; }
.od-kv:last-child { margin-bottom: 0; }
.od-kv .ico { margin-top: 2px; color: var(--ink-3); }
.od-kv > span { flex: 1; min-width: 0; word-break: break-all; }
.od-kv .icon-btn { margin: -3px 0 -3px auto; }
.remark-hl { padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); border-left: 5px solid var(--brand-deep); color: var(--brand-text); font-weight: 700; font-size: 15px; line-height: 1.5; word-break: break-all; }
.od-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.od-item-main { flex: 1; min-width: 0; }
.od-item-name { font-weight: 700; }
.od-item-spec { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.od-item-p { color: var(--mute); font-size: 13px; font-weight: 500; }
.od-item-q { font-size: 16px; min-width: 32px; text-align: right; }
.od-item-a { min-width: 62px; text-align: right; }
.od-sum { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.od-sum > div { display: flex; justify-content: space-between; color: var(--ink-2); }
.od-sum .od-total { color: var(--ink); font-weight: 800; font-size: 18px; margin-top: 4px; }
.od-sum .od-total .num { color: var(--price); font-size: 20px; }
.od-payer { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #F0DB8A; }
.od-payer-n { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.od-payer-n b { font-size: 15px; }
.od-payer .mute { color: var(--brand-text); }
.od-wx-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 10px; }
.od-wx-line.ok { color: var(--ok-deep); font-weight: 600; }
.od-wx-line.skip { color: var(--mute); margin: -4px 4px 14px; }
.od-card .od-wx-line:first-child { margin-top: 0; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li { position: relative; padding: 0 0 16px 24px; }
.tl li::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.tl li.last::before { display: none; }
.tl li.last { padding-bottom: 0; }
.tl li i { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 3px var(--surface); }
.tl li.last i { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), inset 0 0 0 2px var(--ink); }
.tl-t { font-weight: 600; word-break: break-all; }
.tl-at { font-size: 12.5px; color: var(--mute); }

/* 发货弹窗 */
.sp-to { display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.55; }
.sp-to .ico { margin-top: 3px; color: var(--ink-2); }
.sp-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sp-type { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.sp-type .ico { grid-row: span 2; color: var(--ink-2); }
.sp-type b { font-size: 15px; }
.sp-type small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.sp-type:hover { border-color: var(--ink-3); }
.sp-type.on { border-color: var(--ink); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(255, 224, 75, 0.6); }
.sp-type.on .ico { color: var(--ink); }

/* 核对取货码弹窗 */
.pk-code { text-align: center; padding: 16px 12px 14px; border-radius: 16px; background: var(--ink); color: var(--brand); }
.pk-code .pk-l { display: block; color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; }
.pk-code b { display: block; font-size: 80px; line-height: 1.05; letter-spacing: 0.05em; }
.pk-tip { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); line-height: 1.6; font-size: 13.5px; }
.pk-tip .ico { margin-top: 3px; flex: none; }
.pk-tip b { color: var(--ink); }
.pk-brief { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; line-height: 1.5; }

/* 退款弹窗 */
.rf-order { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); }
.rf-no { font-size: 30px; font-weight: 800; line-height: 1; min-width: 56px; }
.rf-meta { flex: 1; font-weight: 500; font-size: 13.5px; }
.rf-amt { font-size: 22px; color: var(--price); }
.rf-confirm { text-align: center; padding: 14px 0 6px; }
.rf-big { font-size: 56px; color: var(--price); line-height: 1.1; margin: 4px 0; }
.rf-to { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 2px; text-wrap: balance; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 13.5px; line-height: 1.5; text-align: left; }
.rf-reason { color: var(--ink-2); font-weight: 500; word-break: break-all; margin-top: 10px; }
.rf-warn { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--price-soft); color: var(--price-ink); font-weight: 600; }
.rf-note { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.6; }

/* ================= 商品 ================= */
.products-page { display: flex; flex-direction: column; gap: 14px; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.prod-tools { display: flex; align-items: center; gap: 10px; }
.prod-tools .search-box { width: 240px; }
.prod-body { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 16px; align-items: start; }
.cat-panel { position: sticky; top: 0; padding-bottom: 14px; }
.cat-panel .card-h { padding-bottom: 8px; }
.cat-i { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 2px 10px; padding: 0 8px 0 10px; border-radius: 10px; border: 0; background: transparent; width: calc(100% - 20px); text-align: left; cursor: pointer; transition: background 0.15s; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cat-i:hover { background: var(--surface-2); }
.cat-i.on { background: var(--brand); }
.cat-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-i em { font-style: normal; font-size: 13px; color: var(--mute); min-width: 22px; text-align: right; }
.cat-i.on em { color: var(--ink); }
.cat-all-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg-deep); color: var(--ink-2); }
.cat-i.on .cat-all-ico { background: rgba(255, 255, 255, 0.55); color: var(--ink); }
.cat-tools { display: none; flex: none; }
.cat-i:hover .cat-tools, .cat-i:focus-within .cat-tools { display: flex; }
.cat-i:hover em, .cat-i:focus-within em { display: none; }
.cat-i.on .icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.6); }
.cat-none { margin: 8px 20px; font-size: 13px; color: var(--mute); line-height: 1.6; }
.cat-add { padding: 12px 12px 0; border-top: 1px dashed var(--line-2); margin-top: 10px; }
.prod-h { padding-bottom: 12px; }
.prod-h .sub { margin-left: 10px; }
.prod-tbl td { padding: 10px 14px; }
.prod-tbl th.c, .prod-tbl td.c { text-align: center; }
.prod-tbl tr.off .pr-main .thumb img { filter: grayscale(0.9); opacity: 0.55; }
.prod-tbl tr.off .pr-name { color: var(--ink-2); }
.pr-main { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.pr-txt { min-width: 0; }
.pr-name { font-weight: 700; display: flex; align-items: center; gap: 8px; max-width: 300px; }
.pr-name .pr-off { height: 20px; font-size: 11.5px; padding: 0 6px; }
.pr-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--mute); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-cat { flex: none; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 5px; background: var(--bg-deep); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.pr-orig { font-size: 12px; color: var(--mute); font-weight: 500; }
.stock-ed { display: inline-flex; align-items: center; gap: 4px; }
.stock-ed .input { width: 78px; height: 34px; text-align: center; padding: 0 6px; font-weight: 700; font-family: var(--num); }
.stock-ed.low .input { border-color: var(--brand-deep); background: var(--brand-soft); }
.stock-ed.zero .input { border-color: var(--price); background: var(--price-soft); color: var(--price-ink); }
.stock-ed.dirty .input { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 224, 75, 0.7); }
.stock-flag { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--price-deep); }
.stock-flag.low { color: var(--brand-text); }
.rec-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); transition: all 0.15s; }
.rec-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.rec-btn.on { background: var(--brand); border-color: var(--brand-deep); color: var(--ink); }
.rec-btn.on .ico { fill: var(--ink); }

/* 分类弹窗 */
.cm { display: flex; flex-direction: column; gap: 18px; }
.cm-icon { display: flex; gap: 16px; align-items: center; }
.cm-pick { position: relative; width: 84px; height: 84px; flex: none; border-radius: 20px; border: 2px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; overflow: hidden; padding: 0; transition: border-color 0.15s; }
.cm-pick.has { border-style: solid; border-color: var(--line); }
.cm-pick:hover:not(:disabled) { border-color: var(--ink); }
.cm-pick img { width: 100%; height: 100%; object-fit: cover; }
.cm-icon-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-icon-t small { color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.cm-icon-b { display: flex; gap: 4px; margin-top: 6px; }
.upload-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 13px; color: var(--ink); }

/* 商品编辑抽屉 */
.pe { display: flex; flex-direction: column; gap: 14px; }
.pe-card { background: var(--surface); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.pe-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pe-h h3 { font-size: 14.5px; font-weight: 700; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 2px; border-radius: 12px; transition: background 0.15s, outline-color 0.15s; outline: 2px dashed transparent; outline-offset: 4px; }
.imgs.over { background: var(--brand-soft); outline-color: var(--brand-deep); }
.img-t { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-deep); cursor: grab; border: 1px solid var(--line); transition: opacity 0.15s, transform 0.15s; }
.img-t img { width: 100%; height: 100%; object-fit: cover; }
.img-t.cover { box-shadow: 0 0 0 2px var(--brand-deep); }
.img-t.dragging { opacity: 0.4; }
.img-t.over { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.03); }
.img-badge { position: absolute; left: 6px; top: 6px; background: var(--brand); color: var(--ink); font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; box-shadow: 0 1px 4px rgba(28, 27, 25, 0.25); }
.img-no { position: absolute; left: 6px; top: 6px; background: rgba(28, 27, 25, 0.62); color: #fff; font-size: 11.5px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.img-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 14px 6px 6px; background: linear-gradient(transparent, rgba(28, 27, 25, 0.7)); opacity: 0; transition: opacity 0.15s; }
.img-t:hover .img-tools, .img-t:focus-within .img-tools { opacity: 1; }
.img-tools button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.95); color: var(--ink); display: grid; place-items: center; padding: 0; }
.img-tools button:disabled { opacity: 0.35; }
.img-tools button:hover:not(:disabled) { background: var(--brand); }
.img-tools button.danger:hover:not(:disabled) { background: var(--price); color: #fff; }
.img-add { aspect-ratio: 1; border: 2px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.img-add:hover:not(:disabled) { border-color: var(--ink); background: var(--brand-soft); }
.tag-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px; min-height: 42px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: var(--surface); }
.tag-edit:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 224, 75, 0.7); }
.tag-edit input { flex: 1; min-width: 120px; height: 28px; border: 0; outline: none; background: transparent; padding: 0 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 5px 0 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 13px; }
.tag-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-text); padding: 0; }
.tag-chip button:hover { background: rgba(122, 84, 16, 0.15); }
.spec-ed { gap: 12px; }
.pe-card.bad { box-shadow: 0 0 0 2px var(--price), var(--shadow); }
.spec-g { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.spec-g-h { display: flex; align-items: center; gap: 8px; }
.spec-g-h .input { font-weight: 700; }
.mv { display: flex; flex: none; }
.spec-o { display: flex; align-items: center; gap: 8px; }
.spec-def { flex: none; width: 34px; font-size: 12px; font-weight: 700; color: var(--ok-deep); text-align: center; }
.spec-def.none { visibility: hidden; }
.spec-o > .input { flex: 1; min-width: 0; height: 36px; }
.plus { display: flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; color: var(--ink-2); }
.plus .input { width: 72px; height: 36px; padding: 0 8px; text-align: right; }
.spec-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spec-quick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); }
.pe-switches { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.pe-switches label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pe-switches label:last-child { border-bottom: 0; }
.pe-switches b { display: block; font-size: 14.5px; }
.pe-switches small { color: var(--mute); font-size: 12.5px; }
.pe-foot-err { flex-basis: 100%; color: var(--price-deep); font-size: 13.5px; font-weight: 600; text-align: left; line-height: 1.5; }

/* ================= 收款流水 ================= */
.bills-page { display: flex; flex-direction: column; gap: 16px; }
.bills-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 18px; }
.date-pair { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.date-pair .input { width: 144px; }
.bills-bar .select { width: 150px; }
.date-pair.off { opacity: 0.55; }
.sum-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px; }
/* 查询失败或日期不合法时，汇总数字是上一次的旧结果，变灰提醒不要当真 */
.sum-row.stale { opacity: 0.38; transition: opacity 0.2s; }
.sum { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.sum-hero { background: var(--brand); box-shadow: 0 6px 20px rgba(242, 194, 0, 0.3); }
.sum-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sum-hero .sum-l { color: rgba(28, 27, 25, 0.75); }
.sum-big { font-size: 46px; line-height: 1.1; display: flex; align-items: baseline; }
.sum-num { font-size: 32px; line-height: 1.1; display: flex; align-items: baseline; }
.sum-num.neg { color: var(--price-deep); }
.sum-num small { font-size: 14px; color: var(--ink-2); margin-left: 4px; font-family: var(--font); font-weight: 500; }
.sum-sub { font-size: 12.5px; color: var(--mute); }
.sum-hero .sum-sub { color: rgba(28, 27, 25, 0.72); }
.bill-note { margin-top: 4px; font-size: 12px; color: var(--mute); max-width: 260px; line-height: 1.45; }

/* ================= 店铺设置 ================= */
.settings-page { padding-bottom: 8px; display: flex; flex-direction: column; gap: 16px; }
.set-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 10px; background: var(--bg); }
.set-sec { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 36px; padding: 24px 28px 28px; scroll-margin-top: 60px; }
.set-intro h2 { font-size: 16px; font-weight: 800; }
.set-intro p { margin-top: 6px; font-size: 13px; color: var(--mute); line-height: 1.65; }
.set-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-box { position: relative; width: 80px; height: 80px; flex: none; border-radius: 20px; border: 2px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; overflow: hidden; padding: 0; }
.logo-box.has { border-style: solid; border-color: var(--line); }
.logo-box:hover { border-color: var(--ink); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-tip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.logo-tip small { color: var(--mute); font-size: 12.5px; }
.logo-btns { display: flex; gap: 4px; margin-top: 6px; }
.time-row { display: flex; align-items: center; gap: 10px; }
.time-row .input { flex: 1; min-width: 0; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.sw-row b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.sw-row small { color: var(--mute); font-size: 12.5px; line-height: 1.55; display: block; margin-top: 2px; }
.mode-block { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.mode-block .sw-row { background: transparent; border: 0; padding: 2px 4px; }
.mode-fields { display: flex; flex-direction: column; gap: 12px; padding: 0 4px 4px; transition: opacity 0.2s; }
.mode-block.off .mode-fields { opacity: 0.55; }
.mode-note { padding: 0 4px 4px; }
.bn { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); align-items: start; }
.bn-img { position: relative; width: 168px; height: 94px; border-radius: 10px; border: 2px dashed var(--line-2); background: var(--surface); color: var(--ink-3); overflow: hidden; display: grid; place-items: center; padding: 0; font-size: 13px; }
.bn-img.has { border-style: solid; border-color: var(--line); }
.bn-img:hover { border-color: var(--ink); }
.bn-img img { width: 100%; height: 100%; object-fit: cover; }
.bn-img span:not(.upload-busy) { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bn-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bn-form .input, .bn-form .select { height: 38px; }
.bn-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.bn-link span { flex: none; }
.bn-mv { display: flex; flex-direction: column; }
.banner-tip { font-size: 12.5px; }

.payfor-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
.payfor-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field.off { opacity: 0.55; }
.count.warn { color: var(--price-deep); font-weight: 700; }
.idea-chips { margin-top: 0; }
.idea-chips .chip-btn { height: auto; min-height: 30px; padding: 5px 12px; white-space: normal; text-align: left; line-height: 1.4; }
.payfor-prev { align-self: start; position: sticky; top: 56px; }
.prev-note { margin-top: 8px; text-align: center; }

/* 代付页预览：和 docs/代付页参考 的结构一致（灰底、头像昵称留言、白卡片、黑底倒计时、浅黄须知、招牌黄按钮） */
.pf { width: 100%; border-radius: 22px; background: #EDEDEB; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); font-size: 12px; user-select: none; }
.pf-bar { height: 38px; display: grid; place-items: center; background: #fff; font-weight: 700; font-size: 13px; }
.pf-body { padding: 12px; }
.pf-owner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 2px; }
.pf-owner-t { min-width: 0; }
.pf-owner-t b { font-size: 15px; color: #3A3835; }
.pf-owner-t p { color: #A19E97; margin-top: 2px; line-height: 1.4; word-break: break-all; }
.pf-card { background: #fff; border-radius: 14px; padding: 16px 14px 14px; text-align: center; }
.pf-t { font-weight: 700; font-size: 13px; }
.pf-amt { font-size: 42px; line-height: 1.1; margin: 6px 0 8px; color: var(--ink); }
.pf-amt span { font-size: 20px; margin-right: 2px; }
.pf-timer { display: flex; align-items: center; justify-content: center; gap: 3px; color: #77726B; }
.pf-timer i { font-style: normal; background: var(--ink); color: #fff; border-radius: 4px; padding: 1px 4px; font-size: 12px; }
.pf-timer em { font-style: normal; font-weight: 700; color: var(--ink); }
.pf-notice { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); text-align: left; line-height: 1.55; }
.pf-notice b { display: block; margin-bottom: 4px; font-weight: 600; }
.pf-notice p { font-size: 11.5px; }
.pf-btn { height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: var(--ink); font-weight: 700; font-size: 14px; }
.pf-list { margin-top: 10px; padding: 8px 6px 2px; color: #8C877F; }
.pf-list-t { font-weight: 700; margin-bottom: 4px; }
.pf-row { display: flex; justify-content: space-between; gap: 8px; line-height: 1.8; }

.law-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #F0DB8A; color: var(--brand-text); line-height: 1.65; font-size: 13.5px; font-weight: 500; }
.law-note .ico { margin-top: 3px; flex: none; }
.license-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
.license-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.warn-hint { color: var(--price-deep); font-weight: 600; }
.lic-img { display: flex; gap: 14px; align-items: flex-start; }
.lic-box { position: relative; width: 160px; height: 112px; flex: none; border-radius: 12px; border: 2px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); overflow: hidden; display: grid; place-items: center; padding: 0; font-size: 13px; }
.lic-box.has { border-style: solid; border-color: var(--line); background: #fff; }
.lic-box:hover { border-color: var(--ink); }
.lic-box img { width: 100%; height: 100%; object-fit: contain; }
.lic-box span:not(.upload-busy) { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lic-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lic-btns small { color: var(--mute); font-size: 12.5px; line-height: 1.55; }
.license-prev { align-self: start; border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.lp-h { font-size: 12.5px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.license-prev dl { margin: 0; }
.license-prev dl > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.license-prev dl > div:last-child { border-bottom: 0; }
.license-prev dt { font-size: 12px; color: var(--mute); }
.license-prev dd { margin: 2px 0 0; font-weight: 600; word-break: break-all; line-height: 1.45; }
.lp-img { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.lp-img img { width: 100%; max-height: 140px; object-fit: contain; }

.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px 12px 22px; border-radius: 14px; background: var(--surface); box-shadow: 0 -2px 24px rgba(28, 27, 25, 0.14); }
.savebar.dirty { box-shadow: 0 -2px 24px rgba(242, 194, 0, 0.45); outline: 2px solid var(--brand-deep); }
.sb-msg { margin-right: auto; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.sb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-deep); animation: dot-blink 1.4s ease-in-out infinite; }
.sb-err { color: var(--price-deep); }
@keyframes dot-blink { 50% { opacity: 0.35; } }

/* ================= 窄屏：侧栏收成图标条，内容更紧凑 ================= */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .awning { padding: 18px 0 16px; justify-content: center; }
  .aw-text, .nav-l, .side-foot span { display: none; }
  .side-nav { padding: 0 10px; }
  .nav-i { justify-content: center; padding: 0; }
  .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; min-width: 20px; height: 18px; font-size: 11.5px; padding: 0 5px; }
  .side-foot { padding: 14px 0; display: flex; justify-content: center; }
  .topbar { padding: 0 20px; gap: 12px; }
  .content { padding: 4px 20px 0; }
  .tb-clock { display: none; }
  .tb-alert span { display: none; }
  .tb-alert { padding: 0 12px; }
  .acct-n { display: none; }
  .kpi-big { font-size: 46px; }
  .kpi-num { font-size: 34px; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .queue-grid { grid-template-columns: 1fr; }
  .prod-body { grid-template-columns: 196px minmax(0, 1fr); gap: 14px; }
  .prod-tbl td, .prod-tbl th { padding-left: 8px; padding-right: 8px; }
  .col-sales { display: none; }
  .pr-name, .pr-sub { max-width: 170px; }
  .stock-ed .input { width: 66px; }
  .tbl td, .tbl th { padding-left: 10px; padding-right: 10px; }
  .ord-brief { max-width: 150px; }
  .ord-addr { max-width: 120px; }
  .ord-thumbs .thumb { width: 36px !important; height: 36px !important; }
  .set-sec { grid-template-columns: 1fr; padding: 20px 22px 24px; }
  .set-intro { margin-bottom: 4px; }
  .sum-row { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: minmax(340px, 42%) 1fr; }
  .la-body { padding: 32px 36px 44px; }
  .la-brand h1 { font-size: 36px; }
  .la-ticket { width: 290px; }
  .payfor-body { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .license-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .col-time { display: none; }       /* 平板竖屏：先保证“操作”这一列看得见 */
  .ord-brief { max-width: 116px; }
  .ord-addr { max-width: 96px; }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .payfor-body { grid-template-columns: 1fr; }
  .payfor-prev { position: static; max-width: 300px; }
  .bn { grid-template-columns: 1fr; }
  .bn-mv { flex-direction: row; }
  .prod-body { grid-template-columns: 1fr; }
  .cat-panel { position: static; }
}
@media (max-width: 1180px) and (min-width: 1000px) {
  /* 1024 宽：概览仍然保持 4 个数字一排，更省滚动 */
  .kpi-row { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px 16px; }
  .kpi-big { font-size: 38px; }
  .kpi-num { font-size: 30px; }
  .queue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .q-tile { padding: 12px 12px; column-gap: 10px; }
  .q-n { font-size: 36px; min-width: 32px; }
  .q-h { display: none; }
  .q-tile { grid-template-areas: "n l go" "n l go"; }
  .q-l { align-self: center; }
  .sum-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .sum-big { font-size: 38px; }
  .sum-num { font-size: 28px; }
}
