/* 配色与交互：深蓝品牌色 + 浅蓝点缀 + 灰蓝底 + 白色圆角卡片 + 悬浮胶囊导航；选美投票用玫红色点缀 */
:root {
  --brand: #002fa2; --brand-2: #1846c4; --brand-dark: #00237a;
  --tint: #e7edfb; --tint-2: #eef3fd; --tint-line: #c6d3f2; --icon: #5b8def;
  --ink: #0e1526; --ink2: #46506a; --ink3: #8a93a8;
  --bg: #f3f5f9; --card: #fff; --line: #dde2ec; --line-2: #eef0f5;
  --price: #f04438; --ok: #12b76a; --warn: #b54708; --warn-bg: #fffaeb;
  --shadow: 0 1px 2px rgba(14,21,38,.05), 0 6px 20px rgba(14,21,38,.06);
  --r: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Khmer", "Khmer Sangam MN", "Khmer OS Battambang", "Khmer OS", "Leelawadee UI", system-ui, sans-serif; }
#app { max-width: 600px; margin: 0 auto; min-height: 100vh; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button, .tap { transition: transform .1s var(--ease), opacity .16s; }
button:active, .tap:active { transform: scale(.97); }
input, textarea, select { font: inherit; color: var(--ink); }
img { display: block; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.boot { padding: 40vh 0; text-align: center; color: var(--ink3); }
.pb-tab { padding-bottom: calc(96px + var(--safe-b)); }
.pb-bar { padding-bottom: calc(100px + var(--safe-b)); }

/* ---------- 品牌头部 ---------- */
.hero { background: var(--brand); color: #fff; padding: 14px 16px 54px; }
.hero.flat { padding-bottom: 16px; }
.hero-top { display: flex; align-items: center; gap: 10px; }
.brand-name { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; opacity: .72; margin-top: 2px; }
.glass-pill { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.glass-pill svg.i { font-size: 15px; }
.glass-circle { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.search { margin-top: 14px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 4px 4px 4px 14px; color: var(--ink3); }
.search svg.i { font-size: 19px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 40px; color: var(--ink); }
.search input::placeholder { color: var(--ink3); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; border-radius: 13px; height: 40px; padding: 0 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; }
.chip.on { background: #fff; color: var(--brand); font-weight: 700; }

/* 浅色筛选标签（参考「推荐 / 正在营业 / 新入驻」） */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 600; }
.tabs button.on { background: var(--tint); border-color: var(--tint-line); color: var(--brand); }
.tabs i { font-style: normal; margin-left: 4px; background: var(--price); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 999px; }

/* ---------- 通用 ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.mx { margin-left: 16px; margin-right: 16px; }
.mt { margin-top: 12px; }
.muted { color: var(--ink3); font-size: 13px; }
.empty { text-align: center; color: var(--ink3); padding: 44px 0; grid-column: 1 / -1; }
.empty .ei { width: 64px; height: 64px; border-radius: 20px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 30px; margin: 0 auto 10px; }
.loadmore { text-align: center; color: var(--ink3); font-size: 13px; padding: 16px 0; }
.heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 16px 12px; }
.heading h2 { margin: 0; font-size: 19px; font-weight: 700; }
.heading a, .link { color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }

/* 快捷入口宫格（白卡片压在蓝色头部上） */
.quick { margin: -40px 16px 0; position: relative; border-radius: 26px; padding: 18px 6px 12px; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
.qi { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); font-weight: 600; cursor: pointer; }
.qi .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 23px; }
.qi .ic.solid { background: var(--brand); color: #fff; }

/* 「大家在看」式信息卡 */
.hot { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 6px 16px; }
.hot .tag { grid-column: 1; grid-row: 1 / span 4; align-self: start; justify-self: start; margin-top: 12px; background: var(--tint); color: var(--brand); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.hot-row { grid-column: 2; display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; cursor: pointer; min-width: 0; }
.hot-row:last-child { border: 0; }
.hot-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-row b { color: var(--price); font-size: 13px; flex: none; }
.hot-row svg.i { color: var(--brand); flex: none; }

/* CTA */
.cta { display: flex; align-items: center; gap: 12px; }
.cta > div { flex: 1; min-width: 0; }
.cta h4 { margin: 0; font-size: 16px; } .cta p { margin: 3px 0 0; color: var(--ink2); font-size: 13px; }
.btn-brand { background: var(--brand); color: #fff; font-weight: 700; border-radius: 13px; padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.btn-tint { background: var(--tint); color: var(--brand); font-weight: 700; border-radius: 13px; padding: 10px 16px; font-size: 14px; white-space: nowrap; }

/* 商品网格 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.item { background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.cover { position: relative; aspect-ratio: 1; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 46px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .tag { position: absolute; left: 8px; top: 8px; z-index: 1; background: rgba(0,47,162,.9); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.cover .tag.free { background: var(--ok); }
.item .info { padding: 9px 11px 11px; }
.item .t { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.price { color: var(--price); font-weight: 800; font-size: 17px; margin-top: 4px; }
.price.soft { font-size: 15px; }
.meta { color: var(--ink3); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.meta svg.i { font-size: 12px; }

/* 求购列表 */
.list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.witem { background: #fff; border-radius: 18px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); }
.witem .row1 { display: flex; gap: 8px; align-items: center; }
.wtag { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--brand); }
.wtag.rent { background: #e6f6ee; color: #067647; }
.witem .t { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.witem .budget { color: var(--price); font-weight: 800; flex: none; font-size: 14px; }
.witem p { margin: 6px 0 0; color: var(--ink2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 悬浮胶囊导航 ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); z-index: 20; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.nav-glass { display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 10px 32px rgba(0,35,122,.16); }
.nav-item { position: relative; width: 60px; height: 46px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink2); font-size: 11px; font-weight: 600; }
.nav-item svg.i { font-size: 21px; }
.nav-item.on { background: var(--tint); color: var(--brand); font-weight: 700; }
.nav-item .dot { position: absolute; top: 3px; right: 9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--price); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
.fab { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 24px rgba(0,47,162,.35); }
.fab svg.i { stroke-width: 2.2; }

/* ---------- 子页面头部 ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 58px; }
.topbar h2 { flex: 1; text-align: center; margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .glass-circle { font-size: 20px; }
.topbar .spacer { width: 36px; flex: none; }
.topbar .glass-pill { height: 32px; font-size: 13px; padding: 0 12px; }
.subsearch { background: var(--brand); padding: 0 16px 14px; }
.subsearch .search { margin-top: 0; }

/* ---------- 分类 ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 16px; padding: 18px 6px; }
.cats .qi .ic { width: 50px; height: 50px; font-size: 24px; }
.rentcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rentcard { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.rentcard .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 22px; flex: none; }
.rentcard b { display: block; font-size: 15px; } .rentcard small { color: var(--ink3); font-size: 12px; }

/* ---------- 表单 ---------- */
.form { margin: 14px 16px 0; padding: 18px 16px; }
.field { margin-top: 20px; }
.field:first-child { margin-top: 0; }
.label { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.label em { color: var(--price); font-style: normal; margin-left: 2px; }
.label small { font-weight: 400; color: var(--ink3); font-size: 12px; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: 0; background: #fff; transition: border-color .16s, box-shadow .16s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,47,162,.1); }
.input::placeholder { color: #aab1c2; }
textarea.input { min-height: 116px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2346506a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brand); font-weight: 800; font-size: 18px; }
.money .input { padding-left: 32px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; font-weight: 600; font-size: 14px; background: #fff; color: var(--ink2); }
.opt svg.i { font-size: 16px; }
.opt.on { background: var(--tint); color: var(--brand); border-color: var(--tint-line); }
.opts.eq { display: grid; grid-template-columns: repeat(3, 1fr); }
.opts.eq .opt { justify-content: center; padding: 11px 4px; }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pic { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--line-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(14,21,38,.55); color: #fff; font-size: 13px; display: grid; place-items: center; }
.pic .first { position: absolute; left: 0; bottom: 0; right: 0; background: rgba(0,47,162,.85); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; }
.pic.loading { display: grid; place-items: center; color: var(--ink3); font-size: 12px; }
.addpic { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--tint-line); background: var(--tint-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; }
.addpic svg.i { font-size: 28px; color: var(--icon); }
.warn { margin: 12px 16px 0; background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; gap: 8px; }
.warn svg.i { font-size: 17px; margin-top: 1px; }
.submitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); }
.submitbar > div { max-width: 568px; margin: 0 auto; }
.btn-main { width: 100%; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; border-radius: 16px; height: 50px; box-shadow: 0 6px 16px rgba(0,47,162,.25); }
.btn-main:disabled { opacity: .6; }
.submitbar p { margin: 7px 0 0; text-align: center; font-size: 12px; color: var(--ink3); }

/* ---------- 详情 ---------- */
.gallery { position: relative; background: #0e1526; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(14,21,38,.6); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.d-price { color: var(--price); font-size: 26px; font-weight: 800; }
.d-price small { font-size: 14px; }
.d-title { font-size: 18px; font-weight: 700; margin: 6px 0 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tagrow span { background: var(--tint-2); color: var(--brand); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.desc { white-space: pre-wrap; word-break: break-word; margin: 0; color: var(--ink2); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv:last-child { border: 0; }
.kv span:first-child { color: var(--ink3); flex: none; }
.kv span:last-child { text-align: right; }
.seller { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 18px; font-weight: 700; display: grid; place-items: center; flex: none; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 14px calc(8px + var(--safe-b)); }
.actionbar > div { max-width: 572px; margin: 0 auto; display: flex; gap: 6px; align-items: center; }
.actionbar .mini { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink2); width: 50px; }
.actionbar .mini svg.i { font-size: 21px; }
.actionbar .btn-main { flex: 1; height: 46px; font-size: 16px; }
.status-tip { margin: 12px 16px 0; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.status-tip.pending { background: var(--warn-bg); color: var(--warn); }
.status-tip.rejected { background: #fef3f2; color: #b42318; }
.status-tip.offline { background: var(--line-2); color: var(--ink2); }

/* ---------- 我的 ---------- */
.me-head { background: var(--brand); color: #fff; padding: 20px 16px 62px; }
.me-head .avatar { width: 58px; height: 58px; font-size: 24px; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.5); }
.me-head h3 { margin: 0; font-size: 19px; }
.me-head .sub { opacity: .72; font-size: 13px; }
.stats { margin: -44px 16px 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 16px 4px; }
.stats > div { cursor: pointer; border-radius: 12px; padding: 4px 0; }
.stats > div.on { background: var(--tint-2); }
.stats b { display: block; font-size: 21px; }
.stats > div.on b { color: var(--brand); }
.stats span { font-size: 12px; color: var(--ink3); }
.mrow { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.mrow .thumb { width: 84px; height: 84px; border-radius: 12px; flex: none; overflow: hidden; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 32px; cursor: pointer; }
.mrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.st.approved { background: #e6f6ee; color: #067647; } .st.pending { background: var(--warn-bg); color: var(--warn); }
.st.rejected { background: #fef3f2; color: #b42318; } .st.offline { background: var(--line-2); color: var(--ink3); }
.mrow .ops { margin-top: auto; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; }
.mrow .ops button { border: 1px solid var(--line); border-radius: 10px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.mrow .ops button.hl { background: var(--tint); border-color: var(--tint-line); color: var(--brand); }
.menu { padding: 4px 0; }
.menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 16px; text-align: left; font-weight: 600; }
.menu .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 18px; }
.menu .chev { margin-left: auto; color: var(--ink3); }
.menu i { font-style: normal; background: var(--price); color: #fff; font-size: 11px; padding: 0 7px; border-radius: 999px; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; z-index: 50; background: rgba(14,21,38,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .24s var(--ease); }
.sheet { width: 100%; max-width: 600px; max-height: 80vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 16px calc(16px + var(--safe-b)); animation: up .32s var(--ease); }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 10px; font-size: 18px; }
.sheet .opt-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 8px; border-radius: 14px; text-align: left; }
.sheet .opt-list button:active { background: var(--bg); }
.sheet .opt-list .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--tint-2); color: var(--icon); border-radius: 14px; font-size: 22px; flex: none; }
.sheet .opt-list b { display: block; font-size: 15px; } .sheet .opt-list small { color: var(--ink3); font-size: 12px; }
.sheet .opt-list button.on b { color: var(--brand); }
.sheet .cancel { width: 100%; margin-top: 8px; height: 48px; border-radius: 14px; background: var(--bg); font-weight: 700; color: var(--ink2); }
#toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 99; background: rgba(14,21,38,.9); color: #fff; padding: 10px 18px;
  border-radius: 12px; font-size: 14px; max-width: 80vw; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
#toast.show { opacity: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* ================= v3：交互优化 ================= */
.page[hidden] { display: none !important; }
/* 页面切换：View Transitions（整屏截图过渡）。前进右侧推入、返回向右滑出 */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2,.8,.2,1); mix-blend-mode: normal; }
html[data-nav=fwd]::view-transition-old(root) { animation-name: vt-stay-l; }
html[data-nav=fwd]::view-transition-new(root) { animation-name: vt-in-r; box-shadow: -10px 0 30px rgba(14,21,38,.12); }
html[data-nav=back]::view-transition-old(root) { animation-name: vt-out-r; z-index: 2; box-shadow: -10px 0 30px rgba(14,21,38,.12); }
html[data-nav=back]::view-transition-new(root) { animation-name: vt-back-l; z-index: 1; }
@keyframes vt-in-r { from { transform: translateX(100%); } }
@keyframes vt-stay-l { to { transform: translateX(-28%); filter: brightness(.94); } }
@keyframes vt-out-r { to { transform: translateX(100%); } }
@keyframes vt-back-l { from { transform: translateX(-28%); filter: brightness(.94); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.chip.hist { background: rgba(255,255,255,.24); }
.chip.hist::before { content: '↺ '; opacity: .7; }

/* 骨架屏 */
.sk { pointer-events: none; box-shadow: none; }
.sk-block, .sk-line { background: linear-gradient(90deg, #e9edf5 25%, #f4f6fb 50%, #e9edf5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-line { height: 12px; border-radius: 6px; margin: 8px 0; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w90 { width: 90%; }
.item.sk .cover { background: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cover img { opacity: 0; transition: opacity .3s; }
.cover img.ok { opacity: 1; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--tint-line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -4px; }
.spinner.light { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty .btn-brand { display: inline-block; }

/* 列表筛选条 */
.filterbar { display: flex; gap: 8px; padding: 12px 16px; position: sticky; top: 58px; z-index: 9; background: var(--bg); }
.filterbar button { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 600; }
.filterbar button.on { background: var(--tint); border-color: var(--tint-line); color: var(--brand); }
.filterbar svg.i { font-size: 15px; }

/* 相似推荐横向滚动 */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; width: 42%; scroll-snap-align: start; }
.hscroll > .witem { width: 78%; }

/* 频道入口 */
.channel-cta { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; cursor: pointer; }
.channel-cta .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.channel-cta div { flex: 1; min-width: 0; }
.channel-cta b { display: block; font-size: 15px; } .channel-cta small { color: var(--ink3); font-size: 12px; }
.channel-cta > svg.i { color: var(--ink3); }

/* 全屏看图 */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #000; animation: fade .2s; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-cell { flex: none; width: 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; }
.lb-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; }
.lb-count { font-size: 14px; background: rgba(255,255,255,.14); padding: 3px 12px; border-radius: 999px; }
.gallery img { cursor: zoom-in; }

/* 表单校验 */
.field.bad .input, .field.bad .opts .opt { border-color: #f97066; }
.field.bad .label span { color: #b42318; }
.ferr { color: #b42318; font-size: 12px; margin-top: 6px; min-height: 0; }
.ferr:empty { display: none; }
.pic .first.ghost { background: rgba(14,21,38,.45); opacity: 0; transition: opacity .16s; }
.pic:hover .first.ghost, .pic:active .first.ghost { opacity: 1; }
.pic { cursor: pointer; }
.op-tip { font-size: 12px; color: var(--ink3); align-self: center; margin-right: auto; }

/* 弹层补充 */
.mask.out { opacity: 0; transition: opacity .18s; }
.mask.out .sheet { transform: translateY(30%); transition: transform .18s; }
.sheet .opt-list .tick { margin-left: auto; color: var(--brand); font-size: 20px; }
.sheet .opt-list button.danger b, .menu button.danger { color: #b42318; }
.menu button.danger .ic { background: #fef3f2; color: #d92d20; }

/* 管理后台 */
.chcard .avatar { font-size: 22px; }
.switch-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.switch-row div { flex: 1; } .switch-row b { display: block; } .switch-row small { color: var(--ink3); font-size: 12px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink2); font-size: 14px; line-height: 1.6; }
.steps li { margin-bottom: 8px; }
.bindrow { display: flex; gap: 8px; }
.bindrow .input { flex: 1; min-width: 0; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.stat .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 18px; margin-bottom: 10px; }
.stat b { display: block; font-size: 26px; } .stat small { color: var(--ink3); font-size: 12px; }
.seller .btn-tint { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; }

/* 发布门槛：关注频道 */
.gate { text-align: center; padding: 28px 20px 22px; }
.gate-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: 0 10px 24px rgba(0,47,162,.25); }
.gate h3 { margin: 0 0 8px; font-size: 19px; }
.gate p { margin: 0 0 20px; color: var(--ink2); line-height: 1.6; }
.gate .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ================= 缩放与手势 ================= */
/* 页面本身禁止缩放：去掉双击缩放、禁止双指缩放（iOS 另由 JS 拦截 gesture 事件）；输入框 ≥16px 防止聚焦时 iOS 自动放大 */
/* 注意：不要在 html/body 上设置 touch-action / overscroll-behavior，iOS 版 Telegram 会因此无法上下滚动 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, .tap, .item, .witem, .qi, .chip, .opt, .nav-item, .fab, .mrow .thumb, .pic, .addpic { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cover img, .mrow .thumb img, .pic img, .gallery img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.desc, .d-title, .kv span:last-child, .seller .muted { -webkit-user-select: text; user-select: text; }
input, textarea, select { font-size: 16px !important; }
body.noscroll { overflow: hidden; }

/* 看图器：支持缩放 */
.lightbox { touch-action: none; user-select: none; -webkit-user-select: none; background-color: #000; transition: background-color .2s, opacity .2s; }
.lightbox.out { opacity: 0; }
.lb-track { touch-action: pan-x; overscroll-behavior: contain; }
.lb-track.locked { overflow: hidden; touch-action: none; }
.lb-cell { overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.lb-bar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.lb-bar > * { pointer-events: auto; }
.lb-close { color: #fff; }
.lb-hint { position: absolute; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%); background: rgba(255,255,255,.16); color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 999px; pointer-events: none; transition: opacity .4s; }
.lb-hint.gone { opacity: 0; }

/* 管理后台：可点击的统计卡片、用户列表 */
.stat { position: relative; cursor: pointer; }
.stat em { display: block; font-style: normal; font-size: 12px; color: var(--ok); margin-top: 2px; }
.stat .stat-go { position: absolute; right: 14px; top: 18px; color: var(--ink3); font-size: 18px; }
.urow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.urow .avatar { width: 44px; height: 44px; font-size: 18px; flex: none; }
.urow .body { flex: 1; min-width: 0; }
.urow .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow .chev { color: var(--ink3); font-size: 18px; flex: none; }
.btnrow { display: flex; gap: 10px; margin-top: 14px; }
.btnrow > button { flex: 1; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-danger { background: #fef3f2; color: #d92d20; font-weight: 700; border-radius: 13px; padding: 10px 16px; font-size: 14px; }
.mrow .meta .link { font-size: 12px; }

/* 详情页交易安全提醒 */
.safety { background: var(--warn-bg); border-radius: 18px; padding: 14px 16px 6px; color: #7a2e0e; }
.safety-h { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 16px; margin-bottom: 8px; }
.safety-h svg.i { font-size: 20px; }
.safety ul { margin: 0; padding-left: 18px; }
.safety li { font-size: 13.5px; line-height: 1.6; margin-bottom: 8px; }
.safety li b { color: #93370d; }
.safety .link { color: var(--brand); }

/* ---------- 商家入驻 ---------- */
.joincta .ic { width: 44px; height: 44px; border-radius: 14px; background: #fff4e5; color: #f79009; display: grid; place-items: center; font-size: 22px; flex: none; }
.joincta .btn-brand { flex: none; }
.qi.cur { color: var(--brand); }
.shoprow { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); cursor: pointer; }
.shoprow .cover { aspect-ratio: auto; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 34px; }
.shoprow .cover img, .shopmini .cover img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.shoprow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.shoprow .t { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.vbadge { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ok); background: #ecfdf3; border-radius: 6px; padding: 1px 6px; }
.shoprow .meta, .shoprow .meta2 { color: var(--ink3); font-size: 12px; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shoprow .meta2 { display: block; color: var(--ink2); }
.itag { flex: none; background: var(--tint-2); color: var(--brand); border-radius: 6px; padding: 1px 7px; font-weight: 600; margin-right: 4px; }
.promo { display: flex; align-items: center; gap: 5px; color: #c4320a; background: #fff6ed; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo.big { margin-top: 12px; font-size: 14px; padding: 10px 12px; white-space: normal; }
.shopmini { flex: none; width: 132px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; padding-bottom: 9px; }
.shopmini .cover { aspect-ratio: auto; width: 100%; height: 96px; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 30px; }
.shopmini b { display: block; font-size: 13px; padding: 7px 9px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopmini small { display: block; font-size: 11px; color: var(--ink3); padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-h { display: flex; gap: 12px; align-items: center; }
.shop-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; flex: none; }
.tagrow span.ok { background: #ecfdf3; color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.joinhead b { font-size: 15px; }
.joinhead .flow { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--ink3); font-size: 12px; }
.joinhead .flow span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink2); font-weight: 600; }
.joinhead .flow span svg { font-size: 20px; color: var(--icon); }

/* ---------- 分享海报弹窗 ---------- */
.share-mask { display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-box { width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 28px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .22s var(--ease); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.share-ok { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; }
.share-ok svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #ecfdf3; color: var(--ok); stroke-width: 2.4; }
.share-ok b { font-size: 18px; margin-top: 6px; } .share-ok span { font-size: 13px; color: var(--ink3); }
.poster { border-radius: 18px; overflow: hidden; background: var(--tint-2); min-height: 200px; display: grid; place-items: center; }
.poster img { width: 100%; -webkit-touch-callout: default; user-select: auto; }
.poster-load { display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 14px; padding: 60px 0; }
.share-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 2px; font-size: 14px; color: var(--brand); background: var(--tint-2); border-radius: 12px; padding: 9px 10px; }
.share-tip b { color: var(--price); }
.share-sub { text-align: center; color: var(--ink3); font-size: 12px; margin: 6px 0 12px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-btns button { height: 50px; border-radius: 16px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.share-close { width: 100%; height: 46px; margin-top: 10px; border-radius: 16px; background: var(--tint-2); color: var(--ink2); font-weight: 600; }

/* ---------- 店铺定位 / 导航 ---------- */
.gps-tip { display: flex; gap: 6px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.gps-tip svg { flex: none; margin-top: 2px; }
.gps-ok { display: flex; align-items: center; gap: 10px; background: #ecfdf3; border-radius: 12px; padding: 10px 12px; color: var(--ok); }
.gps-ok > svg { font-size: 22px; flex: none; }
.gps-ok b { display: block; color: var(--ok); } .gps-ok small { display: block; color: var(--ink2); font-size: 12px; word-break: break-all; }
.gps-ok .btn-tint { flex: none; }
.gps-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.gps-btns button { height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; font-size: 14px; }
.navbtn { width: 100%; display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--brand); color: #fff; text-align: left; }
.navbtn > svg:first-child { font-size: 22px; } .navbtn span { flex: 1; } .navbtn b { display: block; font-size: 15px; } .navbtn small { font-size: 12px; opacity: .8; }
.vbadge.nav { color: var(--brand); background: var(--tint-2); cursor: pointer; }

/* ---------- 距离 ---------- */
.dist { flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-weight: 700; margin-right: 6px; }
.dist-s { color: var(--brand); font-weight: 700; }
#sortTabs button { display: inline-flex; align-items: center; gap: 4px; }
#sortTabs button.ghost { background: none; border-color: transparent; color: var(--ink3); }
.locbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; color: var(--brand); font-size: 14px; font-weight: 600; }
.locbar span { flex: 1; } .locbar .btn-brand { flex: none; padding: 6px 14px; }
.shoprow .t .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 用户头像（Telegram 头像，前端直接加载） ---------- */
.avatar { position: relative; overflow: hidden; }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: inherit; }
.me-btn { position: relative; overflow: hidden; }
.me-btn .av-img { border-radius: 50%; }

/* ================= 高棉语排版 ================= */
/* 高棉文字有上下元音符号，行高要比拉丁文大；粗斜体会让字形难认，品牌名不用斜体 */
body.km { line-height: 1.65; }
body.km .brand-name { font-style: normal; letter-spacing: 0; }
body.km h1, body.km h2, body.km h3, body.km h4, body.km b { line-height: 1.55; }
body.km .item .t { min-height: 46px; line-height: 1.6; }
body.km .tabs button, body.km .filterbar button, body.km .chip { line-height: 1.2; }
.ell { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql { text-align: center; line-height: 1.3; padding: 0 2px; word-break: break-word; }
.qi { min-width: 0; }
.ml { flex: 1; min-width: 0; }
.menu .mv { font-style: normal; color: var(--ink3); font-size: 13px; font-weight: 500; }
.lang-pill { padding: 0 10px; gap: 4px; font-size: 13px; }
.me-lang { flex: none; }
.hero-top .glass-pill { flex: none; }
.warn.info { background: var(--tint-2); color: var(--brand); }
.warn-t { color: var(--warn) !important; white-space: normal !important; }

/* 底部导航：5 个入口 */
.nav-item { width: 54px; font-size: 10.5px; }
.nav-item span { max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .dot.live { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 6px; right: 13px; background: #e83e8c; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 370px) { .nav-item { width: 50px; } .fab { width: 50px; height: 50px; } }

/* ================= 选美投票 ================= */
:root { --rose: #d6246e; --rose-2: #e83e8c; --rose-tint: #fdeef5; --gold: #f5b301; }
.phase { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
.phase.active { background: #ecfdf3; color: #067647; }
.phase.active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #12b76a; margin-right: 5px; animation: pulse 1.4s infinite; }
.phase.upcoming { background: var(--warn-bg); color: var(--warn); }
.phase.ended { background: var(--line-2); color: var(--ink3); }
@keyframes pulse { 50% { opacity: .3; } }

/* 首页横幅 */
.cbanner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(120deg, #fff 0%, var(--rose-tint) 100%); border: 1px solid #f9d3e4; cursor: pointer; }
.cb-ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--rose-2), #9c1458); color: #fff; display: grid; place-items: center; font-size: 24px; flex: none; box-shadow: 0 6px 16px rgba(214,36,110,.3); }
.cb-body { flex: 1; min-width: 0; }
.cb-body b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-body small { display: flex; align-items: center; color: var(--ink2); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.btn-vote { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, var(--rose-2), var(--rose)); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 12px rgba(214,36,110,.28); }
.btn-vote.sm { flex: none; padding: 8px 14px; }
.btn-vote svg.i { font-size: 15px; }
.voted { display: inline-flex; align-items: center; gap: 3px; color: #067647; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 活动列表 */
.contest-hero { background: linear-gradient(135deg, #8a1452, var(--brand)); }
.contest-hero .brand-name { display: flex; align-items: center; gap: 8px; }
.hero-sub { margin: 8px 0 0; font-size: 13px; opacity: .85; }
.ccard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.cc-cover { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--rose-2), #3d0b55); display: grid; place-items: center; color: #fff; font-size: 54px; }
.cc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-cover .phase { position: absolute; left: 12px; top: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cc-body { padding: 12px 14px 14px; }
.cc-body b { display: block; font-size: 17px; }
.cc-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.cc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.cc-stats .pend { color: var(--warn); }

/* 活动页 */
.c-hero { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--rose-2), #3d0b55); overflow: hidden; }
.c-hero img { width: 100%; height: 100%; object-fit: cover; }
.c-hero-ph { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 72px; }
.c-head { margin-top: -28px; position: relative; }
.c-phase { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.c-head .d-title { margin-top: 8px; font-size: 20px; }
.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.c-stats b { display: block; font-size: 20px; color: var(--rose); }
.c-stats > div:last-child b { font-size: 15px; line-height: 30px; color: var(--ink); }
.c-stats span { font-size: 12px; color: var(--ink3); }
.vtip { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--rose-tint); color: #9c1458; font-size: 13.5px; font-weight: 600; }
.vtip svg.i { font-size: 18px; flex: none; }
.vtip span { flex: 1; }
.vtip.ok { background: #ecfdf3; color: #067647; cursor: pointer; }
.myentry { display: flex; align-items: center; gap: 12px; }
.myentry .me-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--rose-tint); color: var(--rose); display: grid; place-items: center; font-size: 28px; flex: none; cursor: pointer; }
.myentry .me-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myentry .t { font-weight: 700; }
.myentry .meta { white-space: normal; }
.myentry .btn-tint { flex: none; padding: 10px 12px; font-size: 18px; }
.crown-ic { background: var(--rose-tint) !important; color: var(--rose) !important; }
.rules summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary b { flex: 1; }
.rules summary > svg:last-child { transition: transform .2s; color: var(--ink3); }
.rules[open] summary > svg:last-child { transform: rotate(180deg); }
.rules .desc { margin-top: 10px; }
.rules ul { margin: 10px 0 8px; padding-left: 18px; color: var(--ink2); font-size: 13.5px; }
.rules li { margin-bottom: 6px; }
.heading h2 { display: flex; align-items: center; gap: 6px; }
.search.light { margin-top: 0; border: 1px solid var(--line); }

/* 参赛作品网格 */
.egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.egrid > .empty, .egrid > .item.sk { grid-column: auto; }
.egrid > .empty { grid-column: 1 / -1; }
.ecard { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.ecover { aspect-ratio: 3 / 4; background: var(--rose-tint); color: var(--rose); }
.rank { position: absolute; left: 8px; top: 8px; z-index: 1; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: rgba(14,21,38,.6); }
.rank.r1, .rank.r2, .rank.r3 { background: rgba(255,255,255,.92); font-size: 18px; padding: 0 4px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.rank.big { position: static; height: 46px; min-width: 46px; font-size: 18px; background: var(--brand); }
.rank.big.r1, .rank.big.r2, .rank.big.r3 { font-size: 28px; background: #fff7e0; box-shadow: none; }
.eno { position: absolute; right: 8px; top: 8px; z-index: 1; background: rgba(214,36,110,.92); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.vbadge-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(14,21,38,.5); color: #fff; display: grid; place-items: center; font-size: 20px; pointer-events: none; }
.vbadge-play svg.i { fill: #fff; stroke: none; margin-left: 3px; }
.vbadge-play.sm { width: 30px; height: 30px; font-size: 14px; }
.einfo { padding: 8px 10px 10px; }
.einfo .en { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; min-height: 30px; }
.ev { display: inline-flex; align-items: center; gap: 3px; color: var(--rose); font-size: 13px; }
.ev b { font-size: 16px; }

/* 作品详情 */
.gallery.tall img, .gallery.tall video { flex: none; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; scroll-snap-align: center; background: #0e1526; }
.e-head { display: flex; align-items: center; gap: 12px; }
.e-head .link { font-size: 13px; margin-top: 4px; }
.e-votes { text-align: center; flex: none; }
.e-votes b { display: block; font-size: 28px; color: var(--rose); line-height: 1.1; }
.e-votes span { font-size: 12px; color: var(--ink3); }
.e-ranktext { display: flex; align-items: center; gap: 8px; color: #93370d; background: #fff7e0; box-shadow: none; font-weight: 600; }
.e-ranktext svg.i { font-size: 20px; color: var(--gold); }
.btn-vote-main { background: linear-gradient(135deg, var(--rose-2), var(--rose)); box-shadow: 0 6px 16px rgba(214,36,110,.3); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-main.voted-main { background: #ecfdf3; color: #067647; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; opacity: 1; }
.btn-main[disabled] { opacity: .55; }
.actionbar .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.actionbar .mini span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* 投票成功 / 关注频道弹窗 */
.vote-ok svg { background: var(--rose-tint) !important; color: var(--rose) !important; }
.vote-ok span { text-align: center; }
.share-box .gate { padding: 6px 4px 0; }

/* 参赛上传 */
.pic.loading { flex-direction: column; gap: 4px; }
.pic.loading small { font-size: 12px; color: var(--brand); font-weight: 700; }
.vph { width: 100%; height: 100%; display: grid; place-items: center; background: #0e1526; color: #fff; font-size: 30px; }

/* 管理后台：活动卡片 */
.accard { padding: 14px; }
.accard .t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.accard .t b { font-size: 16px; }
.accard .meta { white-space: normal; margin-top: 6px; }
.accard .ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.accard .ops button { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.accard .ops button.hl { background: var(--tint); border-color: var(--tint-line); color: var(--brand); }
.btn-main svg.i { vertical-align: -2px; }

/* 细节修正 */
.hero-top .ell { max-width: 96px; }
.hero-top .brand-name { min-width: 0; }
.gallery.tall .count { top: 12px; bottom: auto; }
.cb-body small { display: block; text-overflow: ellipsis; }
.cb-body small .phase { vertical-align: 1px; }
.label > span:first-child { flex: none; max-width: 60%; margin-right: 10px; }
.label small { text-align: right; }
.two > * { min-width: 0; }
input[type="datetime-local"].input { min-width: 0; }
.hero-top .brand-name { font-size: 20px; letter-spacing: .2px; }

/* 底部导航恢复 4 个入口 */
.nav-item { width: 60px; font-size: 11px; }
.nav-item span { max-width: 58px; }
@media (max-width: 370px) { .nav-item { width: 56px; } }
/* 选美投票悬浮入口：右下角，「发布」按钮上方 */
.contest-fab { position: fixed; z-index: 21; right: max(16px, calc(50% - 300px + 16px)); bottom: calc(82px + var(--safe-b)); width: 54px; height: 54px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #fff;
  background: linear-gradient(135deg, var(--rose-2), #9c1458); box-shadow: 0 10px 24px rgba(214,36,110,.4); animation: fabIn .3s var(--ease); }
.contest-fab svg.i { font-size: 22px; stroke-width: 2; }
.contest-fab span { font-size: 9.5px; font-weight: 700; line-height: 1.1; max-width: 50px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contest-fab::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(232,62,140,.45); animation: fabRing 2s infinite; }
@keyframes fabIn { from { transform: scale(.6); opacity: 0; } }
@keyframes fabRing { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
/* 与「发布」按钮对齐（底部导航整体居中，宽 324px；窄屏 308px） */
.contest-fab { right: calc((100vw - 324px) / 2); }
@media (max-width: 370px) { .contest-fab { right: calc((100vw - 308px) / 2); } }

/* ================= 选美投票：参考布局（浅蓝底 + 亮蓝主色） ================= */
:root { --rose: #2f6bff; --rose-2: #4d84ff; --rose-tint: #e6f0ff; --vt: #2f6bff; --vt-d: #2357e8; --vt-bg: #cde7fd; --vt-ink: #1f56e0; }
.cb-ic { background: linear-gradient(135deg, #4d84ff, #1f4fd8); box-shadow: 0 6px 16px rgba(47,107,255,.3); }
.cbanner { background: linear-gradient(120deg, #fff 0%, #e6f0ff 100%); border-color: #cfe0ff; }
.btn-vote, .btn-vote-main { box-shadow: 0 4px 12px rgba(47,107,255,.28); }
.contest-hero, .cc-cover { background: linear-gradient(135deg, #4d84ff, #1440b8); }
.contest-fab { background: linear-gradient(135deg, #4d84ff, #1f4fd8); box-shadow: 0 10px 24px rgba(47,107,255,.4); }
.contest-fab::after { border-color: rgba(77,132,255,.45); }

.page.vt { background: var(--vt-bg); min-height: 100vh; color: var(--vt-ink); }
.vt-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; justify-content: space-between; padding: 12px 14px; pointer-events: none; }
.vt-top > * { pointer-events: auto; }
.page.vt { position: relative; }
.vt-circle { width: 38px; height: 38px; border-radius: 50%; background: rgba(14,21,38,.35); color: #fff; display: grid; place-items: center; font-size: 19px; backdrop-filter: blur(6px); }
.vt-hero img { width: 100%; max-height: 72vh; object-fit: cover; display: block; }
.vt-hero-ph { height: 220px; display: grid; place-items: center; color: #fff; font-size: 80px; background: linear-gradient(160deg, #6fa2ff, #2f6bff); }
.vt-title { margin: 18px 16px 6px; text-align: center; font-size: 25px; font-weight: 800; color: var(--vt-ink); line-height: 1.45; }
.vt-info { margin: 0 22px; font-size: 15px; line-height: 1.7; }
.vt-info p { margin: 0 0 2px 10px; }
.vt-info p.vt-h { margin: 6px 0 0; font-weight: 600; }
.vt-desc { white-space: pre-wrap; word-break: break-word; }
.vt-box { margin: 14px 16px 0; background: var(--vt); color: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(47,107,255,.25); }
.vt-cd { display: flex; align-items: stretch; overflow: hidden; }
.vt-cd-ic { width: 30%; max-width: 110px; display: grid; place-items: center; background: var(--vt-d); font-size: 40px; }
.vt-cd-ic svg.i { stroke-width: 1.6; }
.vt-cd-t { flex: 1; padding: 14px 14px 16px; min-width: 0; }
.vt-cd-t small { display: block; font-size: 14px; opacity: .92; }
.vt-cd-t b { display: block; font-size: 20px; margin-top: 4px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 6px 14px; }
.vt-stats small { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; opacity: .95; }
.vt-stats b { display: block; font-size: 28px; line-height: 1.3; margin-top: 2px; }
.vt-tip { margin: 12px 16px 0; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--vt-ink); border: 1px solid #b9d4ff; }
.vt-tip span { flex: 1; }
.vt-tip.ok svg.i:first-child { color: #12b76a; font-size: 18px; }
.vt-mine { margin: 12px 16px 0; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 6px; padding: 10px 12px; border: 1px solid #b9d4ff; cursor: pointer; color: var(--ink); }
.vt-mine .me-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--rose-tint); display: grid; place-items: center; color: var(--vt); font-size: 24px; flex: none; }
.vt-mine .me-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-mine b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-mine small { display: block; color: var(--ink2); font-size: 12px; margin-top: 2px; }
.vt-search { margin: 14px 16px 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--vt); border-radius: 4px; padding: 0 12px; color: #8fb2ff; }
.vt-search svg.i { font-size: 18px; }
.vt-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 44px; font-size: 16px; background: none; color: var(--ink); }
.vt-search input::placeholder { color: #8fb2ff; }
.vt-search input::-webkit-search-cancel-button { display: none; }

/* 作品网格 */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 16px 0; }
.vgrid > .empty { grid-column: 1 / -1; color: var(--vt-ink); }
.vgrid > .item.sk { border-radius: 4px; }
.vcard { background: #fff; border: 1px solid var(--vt); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.vc-img { position: relative; aspect-ratio: 1; background: #eef3fb; color: #9bb8f5; display: grid; place-items: center; font-size: 40px; cursor: pointer; }
.vc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-img .rank { left: 6px; top: 6px; }
.vc-name { display: flex; align-items: center; gap: 4px; padding: 9px 10px; color: var(--vt-ink); font-size: 15px; font-weight: 600; cursor: pointer; min-width: 0; }
.vc-name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-name > svg.i { color: #9aa3b5; font-size: 17px; stroke-width: 1.5; }
.vc-v { margin-left: auto; flex: none; font-size: 12px; color: #8a93a8; font-weight: 500; }
.vt-btn { width: 100%; height: 42px; background: var(--vt); color: #fff; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 0; }
.vt-btn.off { background: #a9c3fb; }
.vt-btn.done { background: #12b76a; opacity: 1; }
.vt-btn:disabled { opacity: 1; }

/* 右侧悬浮：报名 / 排名 */
.vt-fabs { position: fixed; z-index: 21; right: max(12px, calc(50% - 300px + 12px)); bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 22px; }
.vt-fab { width: 54px; height: 54px; border-radius: 50%; background: var(--vt); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.15; padding: 0 4px; box-shadow: 0 6px 16px rgba(47,107,255,.4); word-break: break-word; }

/* 所有排名 */
.rank-sheet { position: relative; max-height: 88vh; min-height: 60vh; border-radius: 22px 22px 0 0; padding-top: 18px; }
.rank-sheet::before { display: none; }
.rs-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.rs-h { display: flex; align-items: center; gap: 16px; margin: 26px 0 14px; color: var(--ink3); font-size: 17px; }
.rs-h::before, .rs-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rs-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; cursor: pointer; }
.rs-th { width: 54px; height: 54px; flex: none; overflow: hidden; background: #eef3fb; color: #9bb8f5; display: grid; place-items: center; font-size: 24px; }
.rs-th img { width: 100%; height: 100%; object-fit: cover; }
.rs-b { flex: 1; min-width: 0; }
.rs-l { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: 15px; }
.rs-no { color: var(--ink3); flex: none; }
.rs-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-v { color: var(--ink3); flex: none; }
.rs-bar { height: 4px; border-radius: 2px; background: #dfe3ea; margin-top: 10px; overflow: hidden; }
.rs-bar i { display: block; height: 100%; background: var(--vt); border-radius: 2px; }

/* 作品详情 */
.vt-card { margin: 12px 12px 0; background: #fff; border-radius: 6px; padding: 16px 18px; color: var(--ink); }
.e-card { margin-top: 14px; }
.ec-h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed #d3d8e2; }
.ec-h h1 { margin: 0; font-size: 21px; font-weight: 800; min-width: 0; word-break: break-word; }
.ec-no { color: var(--vt); font-weight: 700; flex: none; }
.ec-flag { margin-left: auto; color: var(--ink3); font-size: 18px; align-self: center; }
.ec-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 16px 0 6px; }
.ec-stats b { display: block; font-size: 24px; color: var(--vt); line-height: 1.3; }
.ec-stats span { font-size: 13px; color: var(--ink2); }
.ec-intro { margin: 14px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--ink2); }
.ec-media { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ec-media img, .ec-media video { width: 100%; display: block; background: #0e1526; max-height: 80vh; object-fit: contain; }
.ec-media img { cursor: zoom-in; background: #f3f5f9; }
.ec-contest { display: flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--vt); font-weight: 600; font-size: 14px; cursor: pointer; }
.page.vt .status-tip { margin: 14px 12px 0; }
.vt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 14px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--vt-bg) 60%, rgba(205,231,253,0)); }
.vt-bar > div { max-width: 572px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.vt-back { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.vt-pill { flex: 1; height: 46px; border-radius: 999px; background: var(--vt); color: #fff; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(47,107,255,.3); }
.vt-pill + .vt-pill { flex: 0 1 auto; min-width: 110px; }
.vt-pill.alt { background: #fff; color: var(--vt); box-shadow: none; }
.vt-pill.off { background: #a9c3fb; box-shadow: none; }
.vt-pill.done { background: #12b76a; box-shadow: none; }
.vt-pill:disabled { opacity: 1; }
.vt-cd-t b { font-size: 19px; white-space: normal; overflow: visible; line-height: 1.35; }
body.km .vt-cd-t b { font-size: 17px; }
.page.vt { display: flow-root; }

/* 表单对齐：只有表单里的第一个字段去掉上边距；两列布局里的字段上边距一致、顶部对齐 */
.field:first-child { margin-top: 20px; }
.form > .field:first-child { margin-top: 0; }
.two { align-items: start; }
.two .field { margin-top: 20px; }
.label { min-height: 24px; }

/* ================= 商家主页 / 商品 / 店铺管理 ================= */
.shop-home { position: relative; }
.sh-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1846c4, #002fa2); overflow: hidden; cursor: pointer; }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; }
.sh-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 35%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.sh-cover-ph { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 64px; }
.sh-cover .count { position: absolute; right: 12px; bottom: 34px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; background: rgba(14,21,38,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.sh-head { margin-top: -24px; position: relative; z-index: 2; }
.sh-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.sh-act { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 2px 0; min-width: 0; }
.sh-act span { width: 42px; height: 42px; border-radius: 14px; background: var(--tint-2); color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.sh-tabs { margin-top: 16px; }
.sh-tabs button em { font-style: normal; color: var(--ink3); font-weight: 600; margin-left: 2px; }
.sh-tabs button.on em { color: var(--brand); }
.sh-av { background: var(--tint-2); color: var(--brand); }
.itag.pc { background: #ecfdf3; color: #067647; }
.label.sub-h { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* 商品卡片 */
.pcard { background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.pcard .cover .tag { background: rgba(18,183,106,.92); }
.pc-off { position: absolute; right: 8px; top: 8px; z-index: 1; background: var(--price); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.pc-off.inline { position: static; display: inline-block; vertical-align: 4px; margin-left: 8px; font-size: 12px; }
.pc-so { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(14,21,38,.45); color: #fff; font-weight: 800; font-size: 15px; }
.pcard.soldout .pinfo { opacity: .6; }
.pinfo { padding: 9px 11px 11px; }
.pinfo .t { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
body.km .pinfo .t { min-height: 46px; }
.pp { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.pp b { color: var(--price); font-size: 17px; font-weight: 800; }
.pp small { color: var(--ink3); font-size: 12px; }
.pp s { color: var(--ink3); font-size: 12px; }
.pc-low { margin-top: 2px; font-size: 12px; color: var(--warn); font-weight: 600; }
.d-orig { color: var(--ink3); font-size: 16px; font-weight: 500; margin-left: 8px; }
.tagrow span.so { background: #fef3f2; color: #b42318; }

/* 店铺管理 */
.sm-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sm-th { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--tint-2); color: var(--icon); display: grid; place-items: center; font-size: 26px; flex: none; }
.sm-th img { width: 100%; height: 100%; object-fit: cover; }
.sm-head b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-head .link { flex: none; font-size: 13px; }
.sm-stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sm-stats .stat { padding: 12px 6px; text-align: center; }
.sm-stats .stat b { font-size: 22px; }
.sm-stats .stat small { font-size: 11px; display: block; line-height: 1.3; }
.warn-n { color: var(--price); }
.menu .msub { display: block; font-weight: 400; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .ml { min-width: 0; }
.prow .t .st { margin-right: 4px; }
.stockbar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.stockbar .muted { font-size: 12px; margin-right: 2px; }
.sb-btn { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--brand); display: grid; place-items: center; line-height: 1; }
.sb-btn:disabled { color: var(--line); }
.sb-n { min-width: 46px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--tint-2); color: var(--brand); font-weight: 800; font-size: 14px; }
.sb-n.zero { background: #fef3f2; color: #b42318; }
.stock-box h3 { margin: 4px 0 2px; font-size: 18px; }
.stock-box .muted { margin: 0 0 12px; }
.form > .two:first-child .field { margin-top: 0; }
