/* =========================================================
   易喜鹊易货 · 基础样式（设计变量 / 重置 / 通用组件）
   ========================================================= */
:root{
  --brand:#FF5A1F;
  --brand-2:#FF8A3D;
  --brand-deep:#E8480F;
  --brand-soft:#FFF3ED;
  --brand-line:#FFE1D2;
  --ink:#15181D;
  --ink-2:#3D424B;
  --sub:#8B919B;
  --sub-2:#B0B5BE;
  --bg:#F4F5F7;
  --card:#FFFFFF;
  --line:#EFF0F3;
  --line-2:#F6F7F9;
  --ok:#0E9D55;
  --ok-soft:#E9F7F0;
  --info:#2A6BE0;
  --info-soft:#EEF4FF;
  --warn:#E8A200;
  --warn-soft:#FFF7E6;
  --red:#E5484D;
  --red-soft:#FEF0F0;
  --egg:#FFB020;
  --r-s:10px;
  --r:14px;
  --r-l:18px;
  --r-xl:22px;
  --sh:0 2px 10px rgba(19,24,32,.045);
  --sh-2:0 8px 26px rgba(19,24,32,.075);
  --sh-up:0 -4px 18px rgba(19,24,32,.07);
  --tab-h:54px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Helvetica Neue","Microsoft YaHei",Arial,sans-serif;
  background:#E9EBEF;color:var(--ink);-webkit-font-smoothing:antialiased;
  font-size:14px;line-height:1.5;overflow:hidden;
}
img{display:block;border:0}
input,button,textarea,select{font-family:inherit;font-size:inherit;color:inherit}
textarea{resize:none;-webkit-appearance:none;appearance:none}
button{background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
s{text-decoration:none}

/* 应用容器（桌面端居中呈现手机形态） */
#app{
  position:relative;height:100vh;height:100dvh;max-width:560px;margin:0 auto;
  background:var(--bg);overflow:hidden;
  box-shadow:0 0 60px rgba(20,26,36,.12);
}
#pages{position:absolute;inset:0;overflow:hidden}

/* ---------------- 页面容器与转场 ---------------- */
.screen{
  position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;
  background:var(--bg);-webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding-bottom:calc(var(--tab-h) + var(--safe-b) + 8px);
  z-index:1;
}
.screen::-webkit-scrollbar{display:none}
.screen.no-tabbar{padding-bottom:calc(var(--safe-b) + 8px)}
.screen.has-actionbar{padding-bottom:calc(78px + var(--safe-b))}
.anim-forward{animation:inRight .3s cubic-bezier(.32,.72,0,1);z-index:20}
.anim-backward{animation:inLeft .3s cubic-bezier(.32,.72,0,1);z-index:20}
.anim-fade{animation:fadeIn .18s ease;z-index:20}
.anim-none{z-index:21}
.out-forward{animation:outLeft .3s cubic-bezier(.32,.72,0,1) forwards}
.out-backward{animation:outRight .3s cubic-bezier(.32,.72,0,1) forwards}
.out-fade{animation:fadeOut .16s ease forwards}
@keyframes inRight{from{transform:translateX(100%);opacity:.6}to{transform:translateX(0);opacity:1}}
@keyframes inLeft{from{transform:translateX(-22%);opacity:.5}to{transform:translateX(0);opacity:1}}
@keyframes outLeft{from{transform:translateX(0)}to{transform:translateX(-22%)}}
@keyframes outRight{from{transform:translateX(0)}to{transform:translateX(100%)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes fadeOut{from{opacity:1}to{opacity:0}}

/* ---------------- 图标 ---------------- */
.ic{width:20px;height:20px;font-size:20px;line-height:1;flex:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;font-style:normal}
.ic-c-d{color:var(--ink)}.ic-c-g{color:var(--sub)}.ic-c-p{color:var(--brand)}.ic-c-w{color:#fff}
.ic-xs{width:14px;height:14px;font-size:14px}.ic-sm{width:16px;height:16px;font-size:16px}.ic-lg{width:24px;height:24px;font-size:24px}.ic-xl{width:30px;height:30px;font-size:30px}
.ic-egg{transform:scaleY(1.16)}
.ic-xs{width:14px;height:14px}
.ic-sm{width:16px;height:16px}
.ic-lg{width:24px;height:24px}
.ic-xl{width:30px;height:30px}

/* ---------------- 排版与布局 ---------------- */
.pad{padding:12px}
.pad-x{padding-left:14px;padding-right:14px}
.mt6{margin-top:6px}.mt8{margin-top:8px}.mt10{margin-top:10px}.mt12{margin-top:12px}
.mt14{margin-top:14px}.mt16{margin-top:16px}.mt20{margin-top:20px}
.mb8{margin-bottom:8px}.mb10{margin-bottom:10px}.mb12{margin-bottom:12px}
.flex{display:flex}.flex-center{display:flex;align-items:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-1{flex:1;min-width:0}
.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}
.grow{flex:1}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ell2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.strong{font-weight:700}
.muted{color:var(--sub)}
.tiny{font-size:12px;color:var(--sub)}
.center{text-align:center}
.hr{height:1px;background:var(--line);margin:12px 0}

/* ---------------- 顶部导航（统一） ---------------- */
.topbar{
  position:sticky;top:0;z-index:60;height:52px;
  display:flex;align-items:center;gap:6px;
  padding:0 6px 0 4px;background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar.plain{background:#fff}
.topbar.transparent{
  position:absolute;left:0;right:0;background:transparent;border-bottom:0;
  backdrop-filter:none;
}
.topbar.transparent .tb-back{background:rgba(0,0,0,.32);color:#fff}
.topbar.transparent .tb-title{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.28)}
.topbar.transparent .tb-btn{background:rgba(0,0,0,.32);color:#fff}
.tb-back{
  width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  transition:background .15s;flex:none;
}
.tb-back:active{background:#F1F2F5}
.tb-title{flex:1;min-width:0;text-align:center;font-size:16px;font-weight:600;letter-spacing:.2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-sub{font-size:12px;color:var(--sub);font-weight:400;margin-top:1px}
.tb-btn{
  min-width:38px;height:38px;padding:0 10px;border-radius:19px;display:flex;align-items:center;justify-content:center;
  font-size:13px;color:var(--ink-2);gap:4px;
}
.tb-btn:active{background:#F1F2F5}
.tb-spacer{width:38px;flex:none}
.topbar .tb-right{display:flex;align-items:center;gap:2px;flex:none}

/* ---------------- 底部导航 ---------------- */
.tabbar{
  position:absolute;left:0;right:0;bottom:0;z-index:80;
  height:calc(var(--tab-h) + var(--safe-b));padding-bottom:var(--safe-b);
  background:rgba(255,255,255,.97);backdrop-filter:blur(16px);
  border-top:1px solid var(--line);display:flex;
}
.tabbar .tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:#9AA0AA;font-size:11.5px;letter-spacing:.3px;transition:color .15s;
}
.tabbar .tab .ic{font-size:23px;width:23px;height:23px;transition:transform .18s}
.tabbar .tab.on{color:var(--brand);font-weight:600}
.tabbar .tab.on .ic{transform:translateY(-1px) scale(1.06)}
.tabbar .tab:active .ic{transform:scale(.94)}

/* ---------------- 卡片 / 面板 ---------------- */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh)}
.card+.card{margin-top:12px}
.panel{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.panel-pad{padding:12px}
.panel-hd{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 0}
.panel-hd h3{font-size:16px;font-weight:700;letter-spacing:.2px}
.panel-hd .more{font-size:12px;color:var(--sub);display:flex;align-items:center;gap:2px}
.body{padding:12px 14px}
.section{margin:16px 14px 0}
.section-hd{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}
.section-hd h3{font-size:16px;font-weight:700}
.section-hd .more{font-size:12px;color:var(--sub);display:flex;align-items:center;gap:2px}

/* ---------------- 按钮 ---------------- */
.btn{
  height:46px;border-radius:23px;border:0;font-size:15px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  width:100%;transition:transform .12s,opacity .12s;padding:0 18px;
  line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.btn:active{transform:scale(.975)}
.btn-p{background:var(--brand);color:#fff;box-shadow:0 6px 16px rgba(255,90,31,.22)}
.btn-p:active{box-shadow:0 3px 10px rgba(255,90,31,.24)}
.btn-g{background:#F3F4F6;color:var(--ink-2)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--ink-2)}
.btn-soft{background:var(--brand-soft);color:var(--brand)}
.btn-danger{background:var(--red-soft);color:var(--red)}
.btn-line{border:1px solid var(--brand);color:var(--brand);background:#fff}
.btn-sm{height:34px;border-radius:17px;font-size:13px;padding:0 12px;width:auto}
.btn-xs{height:28px;border-radius:14px;font-size:12px;padding:0 11px;width:auto}
.btn[disabled]{opacity:.55;pointer-events:none}
.btn .ic{width:17px;height:17px;font-size:17px}
.btn-p .ic{color:#fff}
.btn-soft .ic,.btn-line .ic{color:var(--brand)}
.btn-row{display:flex;align-items:center;gap:10px}
.btn-row>.btn{width:auto;flex:1;min-width:0}
.btn-row>.btn.primary{flex:1}
.btn.loading{pointer-events:none;opacity:.82}
.btn.loading::before{content:"";width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}

/* ---------------- 标签 / 徽标 ---------------- */
.tag{display:inline-flex;align-items:center;gap:3px;font-size:12px;line-height:1;
  padding:4px 7px;border-radius:6px;background:var(--brand-soft);color:var(--brand);white-space:nowrap}
.tag.g{background:var(--ok-soft);color:var(--ok)}
.tag.b{background:var(--info-soft);color:var(--info)}
.tag.n{background:#F2F3F5;color:#7C828C}
.tag.y{background:var(--warn-soft);color:#B57B00}
.tag.r{background:var(--red-soft);color:var(--red)}
.tag.line{background:#fff;border:1px solid var(--line);color:var(--sub)}
.badge{display:inline-flex;align-items:center;justify-content:center;height:17px;min-width:17px;
  padding:0 5px;border-radius:9px;background:var(--brand);color:#fff;font-size:11px;font-weight:600}
.dot{width:6px;height:6px;border-radius:50%;background:var(--brand);display:inline-block}
.egg{color:var(--brand);font-weight:800}
.egg small{font-size:12px;font-weight:600;margin-left:1px}

/* ---------------- 单元格 ---------------- */
.cell-group{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:var(--sh)}
.cell{display:flex;align-items:center;gap:12px;padding:15px 15px;position:relative;background:#fff}
.cell:active{background:#FAFBFC}
.cell+.cell::before{content:'';position:absolute;left:15px;right:15px;top:0;height:1px;background:var(--line)}
.cell-ic{width:32px;height:32px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center;background:var(--brand-soft)}
.cell-ic .ic{width:18px;height:18px;font-size:18px}
.cell-main{flex:1;min-width:0;font-size:14.5px;font-weight:500;color:var(--ink)}
.cell-main .desc{display:block;font-size:12px;line-height:1.45;color:var(--sub);margin-top:3px;font-weight:400}
.cell-extra{font-size:12.5px;color:var(--sub);display:flex;align-items:center;gap:4px}
.cell-arrow{display:flex;align-items:center}
.cell-arrow .ic{width:15px;height:15px;font-size:15px}

/* ---------------- 表单 ---------------- */
.field{margin-bottom:16px}
.field>label{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:8px}
.field>label .req{color:var(--brand)}
.field>label .opt{font-weight:400;color:var(--sub-2);font-size:12px}
.input,.textarea,.select{
  width:100%;border:1px solid #E9EBEF;background:#FAFBFC;border-radius:11px;
  padding:12px 13px;font-size:14px;outline:none;transition:.18s;appearance:none;
  color:var(--ink);
}
.input::placeholder,.textarea::placeholder{color:#B6BBC4}
.input:focus,.textarea:focus,.select:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(255,90,31,.07)}
.textarea{min-height:96px;resize:none;line-height:1.65}
.select{background-image:none;padding-right:34px}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input-tip{font-size:12px;color:var(--sub);margin-top:6px;line-height:1.6}
.input-tip.warn{color:var(--red)}
.char-count{text-align:right;font-size:12px;color:var(--sub-2);margin-top:5px}
.check{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--sub);line-height:1.6}
.check input{display:none}
.check .box{width:17px;height:17px;border-radius:4px;border:1.5px solid #D9DCE1;flex:none;margin-top:1px;position:relative;transition:.15s}
.check.on .box{background:var(--brand);border-color:var(--brand)}
.check.on .box::after{content:'';position:absolute;left:5px;top:2px;width:6px;height:9px;
  border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(40deg)}
.check a{color:var(--brand)}

/* 开关 */
.switch{width:46px;height:26px;border-radius:13px;background:#E1E3E8;position:relative;transition:.2s;flex:none;cursor:pointer}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;
  transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.16)}
.switch.on{background:var(--brand)}
.switch.on::after{left:23px}

/* 步进器 */
.stepper{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;height:38px}
.stepper button{width:36px;height:100%;display:flex;align-items:center;justify-content:center;background:#FAFBFC;color:var(--ink-2);font-size:18px}
.stepper button:active{background:#F0F1F4}
.stepper input{width:64px;height:100%;text-align:center;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);
  font-size:14px;font-weight:700;outline:none;background:#fff}

/* 上传 */
.uploader{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.up-item,.up-add{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden;background:#F7F8FA}
.up-item img{width:100%;height:100%;object-fit:cover}
.up-item .del{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.55);
  color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center}
.up-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:1.5px dashed #DCE0E5;color:#AEB4BD;font-size:12px;background:#FCFCFD}
.up-add .ic{width:22px;height:22px;font-size:22px}
.up-add .cnt{font-size:11px}

/* ---------------- 筛选：胶囊 / 标签页 ---------------- */
.chip-row{display:flex;gap:8px;overflow-x:auto;padding:2px 14px 4px;scrollbar-width:none}
.chip-row::-webkit-scrollbar{display:none}
.chip-row.flush{padding-left:0;padding-right:0}
.chip{flex:none;padding:7px 14px;border-radius:16px;background:#fff;font-size:12.5px;color:#5A5F68;
  border:1px solid var(--line);transition:.16s;white-space:nowrap}
.chip.on{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-line);font-weight:600}
.chip:active{transform:scale(.97)}

.tabs-line{display:flex;align-items:center;gap:18px;padding:0 12px;border-bottom:1px solid var(--line);background:#fff}
.tabs-line .tl-item{position:relative;padding:13px 0 11px;font-size:14.5px;color:#5A5F68;white-space:nowrap}
.tabs-line .tl-item.on{color:var(--ink);font-weight:700;font-size:15px}
.tabs-line .tl-item.on::after{content:'';position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:20px;height:3px;border-radius:2px;background:var(--brand)}
.tabs-line .tl-more{margin-left:auto;font-size:12px;color:var(--sub);display:flex;align-items:center}

.seg{display:flex;gap:4px;background:#F3F4F6;border-radius:12px;padding:4px}
.seg .seg-item{flex:1;text-align:center;padding:9px 6px;border-radius:9px;font-size:13px;color:#5A5F68;transition:.15s}
.seg .seg-item.on{background:#fff;color:var(--brand);font-weight:700;box-shadow:0 2px 8px rgba(20,26,36,.06)}

/* ---------------- 面包屑 ---------------- */
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:2px;font-size:12px;color:var(--sub);padding:10px 14px 2px}
.crumbs .c{cursor:pointer;padding:3px 6px;border-radius:6px}
.crumbs .c:active{background:#F0F1F4}
.crumbs .c.on{color:var(--brand);font-weight:600;background:var(--brand-soft)}
.crumbs .sep{color:#CBD0D7;font-size:11px;padding:0 1px}
.crumbs .c.plain{color:var(--sub)}
.crumbs .c.plain.on{color:var(--brand)}

/* ---------------- 空状态 / 加载 ---------------- */
.empty{text-align:center;padding:46px 20px 40px;color:#AEB4BD;font-size:13px}
.empty img{width:120px;height:120px;object-fit:contain;margin:0 auto 12px;opacity:.96}
.empty .empty-t{font-size:14px;color:#7C828C;font-weight:600}
.empty .empty-d{font-size:12px;color:#B0B5BE;margin-top:5px}
.empty .btn{margin-top:16px}

.skeleton{background:linear-gradient(100deg,#F1F2F5 20%,#F8F9FA 40%,#F1F2F5 60%);
  background-size:200% 100%;animation:shimmer 1.2s infinite linear;border-radius:8px}
@keyframes shimmer{from{background-position:120% 0}to{background-position:-20% 0}}
.sk-card{height:230px;border-radius:var(--r)}
.loadmore{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px 0 8px;font-size:12px;color:var(--sub)}
.spinner{width:15px;height:15px;border-radius:50%;border:2px solid #E4E6EA;border-top-color:var(--brand);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 下拉刷新 */
.ptr{height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:6px;
  font-size:12px;color:var(--sub);transition:height .18s}
.ptr.show{height:52px}
.ptr .ic{font-size:18px;transition:transform .2s}
.ptr.loading .ic{animation:spin .8s linear infinite}

/* ---------------- Toast ---------------- */
.toast-root{position:fixed;left:0;right:0;bottom:118px;z-index:1000;display:flex;
  flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{
  display:flex;align-items:center;gap:8px;max-width:min(82%,420px);
  background:rgba(23,27,33,.9);color:#fff;font-size:13px;line-height:1.5;
  padding:10px 16px;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);
  animation:toastIn .22s ease;backdrop-filter:blur(6px);
}
.toast .ic{width:16px;height:16px;font-size:16px}
.toast.out{animation:toastOut .18s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(-6px)}}

/* ---------------- 弹层（Dialog / ActionSheet / Loading） ---------------- */
.mask{position:fixed;inset:0;background:rgba(17,21,27,.46);z-index:900;
  display:flex;align-items:center;justify-content:center;padding:24px;
  animation:maskIn .18s ease}
@keyframes maskIn{from{opacity:0}to{opacity:1}}
.mask.bottom{align-items:flex-end;padding:0}
.mask.img-viewer-mask{padding:0;background:rgba(7,9,13,.94)}
.img-viewer{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.img-viewer-img{display:block;max-width:100%;max-height:84vh;object-fit:contain;border-radius:6px;cursor:zoom-out}
.img-viewer-close{position:absolute;top:calc(16px + var(--safe-t));right:18px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#fff;z-index:2}
.img-viewer-close .ic{width:18px;height:18px;font-size:18px}
.img-viewer-tip{position:absolute;left:0;right:0;bottom:calc(22px + var(--safe-b));text-align:center;font-size:11px;color:rgba(255,255,255,.55)}
.mask.out{animation:maskOut .16s ease forwards}
@keyframes maskOut{to{opacity:0}}

.dialog{
  width:100%;max-width:560px;background:#fff;border-radius:22px 22px 0 0;overflow:hidden;
  animation:sheetIn .26s cubic-bezier(.2,.8,.3,1);max-height:82vh;display:flex;flex-direction:column;
}
/* v2.7 提示框统一悬浮居中，不再使用底部半屏样式 */
.mask.center{padding:24px;align-items:center}
.dialog.modal-card{
  width:calc(100% - 4px);max-width:360px;max-height:78vh;border-radius:20px;
  animation:popIn .18s ease-out;box-shadow:0 18px 48px rgba(15,20,28,.2);
}
.dialog.modal-card .half-hd{
  display:block;position:relative;padding:20px 44px 0;text-align:center;border-bottom:0;
}
.dialog.modal-card .half-tt h3{font-size:17px;font-weight:800;line-height:1.35;margin:0}
.dialog.modal-card .half-close{position:absolute;right:12px;top:12px;width:28px;height:28px;background:#F5F6F8}
.dialog.modal-card .dialog-bd{
  padding:12px 20px 18px;font-size:13.5px;line-height:1.7;text-align:center;
}
.dialog.modal-card .dialog-bd.left{text-align:left}
.dialog.modal-card .dialog-bd .tiny,.dialog.modal-card .dialog-bd p{line-height:1.65}
.dialog.modal-card .dialog-ft{
  padding:12px 18px 18px;border-top:1px solid #F3F4F6;
}
.dialog.modal-card .dialog-ft .btn{height:42px;border-radius:11px}
.dialog.modal-card .dialog-ft .btn-g{background:#F7F8FA}
@keyframes popIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
.dialog-hd{padding:22px 22px 0;text-align:center}
.dialog-hd h3{font-size:17px;font-weight:700}
.dialog-bd{padding:12px 22px 20px;font-size:13.5px;color:#5A5F68;line-height:1.65;text-align:center;overflow-y:auto;-webkit-overflow-scrolling:touch}
.dialog-bd.left{text-align:left}
.dialog-bd .big{font-size:22px;font-weight:800;color:var(--brand);display:block;margin:6px 0}
.dialog-ft{display:flex;gap:10px;padding:12px 18px calc(16px + var(--safe-b));border-top:1px solid var(--line-2);flex:none}
.dialog-ft .btn{height:44px;font-size:14.5px;width:auto;flex:1;min-width:0}

/* 底部半屏弹窗通用头部 */
.half-hd{display:flex;align-items:flex-start;gap:10px;padding:16px 18px 12px;border-bottom:1px solid #F3F4F6;flex:none}
.half-tt{flex:1;min-width:0}
.half-tt h3{font-size:17px;line-height:1.3;font-weight:800;color:var(--ink);margin-top:3px}
.half-close{width:32px;height:32px;border-radius:50%;background:#F5F6F8;display:flex;align-items:center;justify-content:center;flex:none;color:#8B919B}
.half-close:active{background:#ECEEF2}
.half-bd{overflow-y:auto;-webkit-overflow-scrolling:touch;min-height:0}
.half-ft{flex:none}
.dialog-sheet .dialog-bd{padding:14px 18px 16px;text-align:left}
.dialog-sheet .dialog-bd .tiny,.dialog-sheet .dialog-bd p{line-height:1.7}

.sheet{width:100%;max-width:560px;background:#fff;border-radius:22px 22px 0 0;
  animation:sheetIn .26s cubic-bezier(.2,.8,.3,1);max-height:86vh;display:flex;flex-direction:column}
@keyframes sheetIn{from{transform:translateY(100%)}to{transform:none}}
.sheet-list{padding:8px 12px calc(10px + var(--safe-b))}
.sheet-title{text-align:center;font-size:13px;color:var(--sub);padding:10px 0}
.sheet-item{display:flex;align-items:center;justify-content:center;gap:8px;padding:15px;border-radius:12px;font-size:15px}
.sheet-item:active{background:#F7F8FA}
.sheet-item.danger{color:var(--red)}
.sheet-item .ic{width:20px;height:20px;font-size:20px}
.sheet-cancel{margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 12px 12px}

/* 模拟组合框 */
.sim-select{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:44px;
  padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;color:var(--ink);text-align:left}
.sim-select:active{background:#FAFBFC}
.sim-select .ss-val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sim-select.is-empty .ss-val{color:#A8ADB6}
.sim-select .ic-xs{opacity:.55;flex:none}
.sim-select.sim-sm{width:62px;height:30px;padding:0 6px;border-radius:7px;font-size:11.5px;background:#fff}
.sim-select.sim-sm .ic-xs{width:11px;height:11px}
.pick-sheet .half-bd{padding:6px 14px calc(12px + var(--safe-b))}
.pick-list{max-height:58vh;overflow-y:auto}
.pick-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 10px;border-bottom:1px solid #F6F7F9;font-size:13.5px;color:var(--ink-2)}
.pick-row:last-child{border-bottom:0}
.pick-row.on{color:var(--brand);font-weight:700;background:var(--brand-soft);border-radius:8px}
.pick-row:active{background:#F8F9FB}

.goods-grid .empty{grid-column:1/-1}
.guest-hero img{display:block;width:76px;height:76px;border-radius:50%;object-fit:cover;margin:0 auto 12px;background:#fff;box-shadow:0 4px 14px rgba(20,26,36,.12)}

.loading-box{background:rgba(23,27,33,.88);color:#fff;border-radius:14px;padding:20px 24px;
  display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13px;min-width:120px}
.loading-box .spinner{border-color:rgba(255,255,255,.28);border-top-color:#fff;width:24px;height:24px}

/* ---------------- 通用列表项 ---------------- */
.list-item{display:flex;gap:12px;padding:13px;background:#fff;border-radius:var(--r);
  box-shadow:var(--sh);margin-bottom:10px;cursor:pointer}
.list-item:active{transform:scale(.99)}
.thumb{width:78px;height:78px;border-radius:12px;object-fit:cover;flex:none;background:#EEEFF2}
.li-main{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between}
.li-title{font-size:14px;font-weight:600;line-height:1.45}
.li-desc{font-size:12px;color:var(--sub);margin-top:5px;line-height:1.55}
.li-foot{display:flex;align-items:flex-end;justify-content:space-between;margin-top:8px}
.price{color:var(--brand);font-weight:800;font-size:18px;line-height:1;display:inline-flex;align-items:baseline;gap:2px}
.price small{font-size:12px;font-weight:600}
.price-old{font-size:12px;color:var(--sub-2);text-decoration:line-through;margin-left:6px}
.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#F2F3F5}

/* ---------------- 行动条 ---------------- */
.actionbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;max-width:560px;margin:0 auto;
  display:flex;gap:10px;align-items:center;padding:10px 14px calc(10px + var(--safe-b));
  background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:var(--sh-up);
}
.actionbar .btn{flex:1;width:auto;height:46px}
.actionbar .btn.w16{flex:1.7}
.actionbar .ab-mini{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;color:var(--sub);width:46px;flex:none}
.actionbar .ab-mini .ic{width:20px;height:20px;font-size:20px}

/* 数字/文本工具 */
.num{font-variant-numeric:tabular-nums}
.w-full{width:100%}
.pointer{cursor:pointer}
.hide{display:none !important}

/* 横向滚动 */
.hscroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}

/* 隐藏 type=search 浏览器原生清除按钮，统一使用自定义清除 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}

/* 单字段模拟选择器（地区等） */
.sim-field{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:44px;padding:0 12px;
  border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;color:var(--ink);text-align:left}
.sim-field:active{background:#FAFBFC}
.sim-field>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sim-field.is-empty>span{color:#A8ADB6}
.sim-field .ic-xs{opacity:.5;flex:none}
