/* 宝妈创业社交电商平台 · 全站样式（会员端 H5 / 总后台 / 报单中心操作台共用） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { background: #f6f5f7; color: #2f2b2d; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: #c8547a; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: 14.5px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 12px 24px; }
.card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card h2, .card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #373134; }
.card h3 { font-size: 15px; }
.muted { color: #948c90; font-size: 12.5px; }
.strong { font-weight: 600; }
.price { color: #e0426b; font-weight: 600; }
.price small { font-size: 12px; font-weight: 400; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrapflex { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mb8 { margin-bottom: 8px; }
.hide { display: none !important; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* 顶栏 */
.topbar { background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; padding: 12px 14px; }
.topbar-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar a { color: #fff; opacity: .95; }
.topbar .brand { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.topbar .brand small { display: block; font-size: 11.5px; font-weight: 400; opacity: .9; letter-spacing: 0; }
.searchbar { background: #fff; padding: 8px 12px; border-bottom: 1px solid #f0ecee; }
.searchbar form { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #eee; display: flex; z-index: 40; }
.tabbar a { flex: 1; text-align: center; padding: 7px 0 8px; font-size: 11.5px; color: #8b8388; }
.tabbar a.on { color: #d24a72; font-weight: 600; }
.tabbar i { display: block; font-size: 19px; line-height: 1.2; font-style: normal; }
body.has-tabbar { padding-bottom: 62px; }

/* 表单 */
.fr { margin-bottom: 13px; }
.fr > label { display: block; font-size: 13.5px; color: #4a4347; margin-bottom: 5px; }
.fr label em { color: #e0426b; font-style: normal; margin-left: 2px; }
.input, .textarea, .select { width: 100%; border: 1px solid #e6e1e4; border-radius: 9px; padding: 10px 12px; background: #fcfbfc; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: #e2739a; background: #fff; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.btn { display: inline-block; border: 0; border-radius: 9px; padding: 11px 22px; background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; cursor: pointer; letter-spacing: .5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.lg { padding: 13px 26px; font-size: 16px; }
.btn.ghost { background: #fff; color: #c8547a; border: 1px solid #e6b9c9; }
.btn.grey { background: #f1eef0; color: #6a6166; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* 提示 */
.alert { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.6; }
.alert-ok { background: #eefaf1; border: 1px solid #c9ecd6; color: #1f7a42; }
.alert-err { background: #fff3f4; border: 1px solid #f6cdd3; color: #b6303f; }
.alert-warn { background: #fff8e9; border: 1px solid #f2dfb6; color: #8a6516; }
.alert-info { background: #f3f6fd; border: 1px solid #d6e2f7; color: #3a5a8c; }
.help { background: #fbf7f8; border: 1px dashed #e8d2da; border-radius: 9px; padding: 11px 13px; font-size: 12.5px; color: #7d6f75; line-height: 1.8; }

/* 数字卡 */
.nums { display: flex; flex-wrap: wrap; gap: 8px; }
.num-box { flex: 1 1 30%; min-width: 96px; background: linear-gradient(160deg, #fff6f8, #fdeef2); border: 1px solid #f4dbe3; border-radius: 10px; padding: 12px; }
.num-box span { display: block; font-size: 12px; color: #a0758068; color: #a1757f; margin-bottom: 5px; }
.num-box b { font-size: 20px; color: #c8425f; font-weight: 600; }
.num-box b i { font-style: normal; font-size: 11.5px; color: #b98d97; margin-left: 3px; }

/* 列表 */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f3f0f1; font-size: 14px; }
.list > li:last-child { border-bottom: 0; }
.list a.go::after { content: "›"; color: #c9c1c4; margin-left: 6px; font-size: 17px; }
.empty { padding: 26px 10px; text-align: center; color: #a89fa3; font-size: 13.5px; }

/* 商品 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gcard { background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); display: block; color: inherit; }
.gcard .ph { aspect-ratio: 1/1; background: #f4f1f2; display: flex; align-items: center; justify-content: center; color: #cfc6ca; font-size: 13px; overflow: hidden; }
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.gcard .bd { padding: 8px 10px 11px; }
.gcard .t { font-size: 13.5px; line-height: 1.45; height: 2.9em; overflow: hidden; }
.gcard .p { margin-top: 5px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11.5px; background: #fbe9ef; color: #c8547a; }
.badge.grey { background: #f1eef0; color: #7d7377; }
.badge.green { background: #e9f7ee; color: #1f7a42; }
.badge.red { background: #fdecee; color: #b6303f; }
.badge.gold { background: #fdf3df; color: #9a6d13; }

/* 表格（后台/操作台） */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid #f1eef0; text-align: left; }
.tbl th { background: #faf7f8; color: #7d7377; font-weight: 600; white-space: nowrap; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:hover td { background: #fdfafb; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0; font-size: 13.5px; color: #6d646a; }
.pager a { padding: 6px 12px; border: 1px solid #e7e2e5; border-radius: 7px; background: #fff; }
.pager a.dis { color: #cfc8cb; pointer-events: none; }

/* 后台布局 */
.adm { display: flex; min-height: 100vh; background: #f4f2f4; }
.adm-side { width: 208px; flex: 0 0 208px; background: #2f2430; color: #d9ccd2; }
.adm-side .logo { padding: 16px 18px; font-size: 16px; font-weight: 600; color: #fff; border-bottom: 1px solid #40313f; }
.adm-side .logo small { display: block; font-size: 11.5px; color: #b79aa6; font-weight: 400; }
.adm-nav { padding: 8px 0 30px; }
.adm-nav .grp { padding: 12px 18px 5px; font-size: 11.5px; color: #8f7a86; letter-spacing: 1px; }
.adm-nav a { display: block; padding: 8px 18px; font-size: 13.5px; color: #d9ccd2; }
.adm-nav a:hover { background: #3c2e3d; color: #fff; }
.adm-nav a.on { background: #46344a; color: #fff; border-left: 3px solid #e2739a; padding-left: 15px; }
.adm-main { flex: 1 1 auto; min-width: 0; }
.adm-head { background: #fff; padding: 11px 16px; border-bottom: 1px solid #ece7ea; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #6d646a; }
.adm-body { padding: 14px 16px 30px; }
.adm .card { max-width: none; }
@media (max-width: 860px) {
    .adm { flex-direction: column; }
    .adm-side { width: 100%; flex: none; }
    .adm-nav { display: flex; overflow-x: auto; padding: 6px 8px; }
    .adm-nav .grp { display: none; }
    .adm-nav a { white-space: nowrap; padding: 8px 12px; border-left: 0 !important; }
}

/* 操作台（报单中心） */
.ctr-top { background: #fff; border-bottom: 1px solid #eee; padding: 11px 14px; }
.ctr-top-in { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.ctr-nav { background: #fff; border-bottom: 1px solid #eee; }
.ctr-nav-in { max-width: 900px; margin: 0 auto; display: flex; overflow-x: auto; }
.ctr-nav a { padding: 10px 16px; font-size: 14px; color: #6f666b; white-space: nowrap; border-bottom: 2px solid transparent; }
.ctr-nav a.on { color: #c8547a; font-weight: 600; border-bottom-color: #e2739a; }
.ctr-wrap { max-width: 900px; margin: 0 auto; padding: 14px; }

/* 对话窗口 */
.modal { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(35,22,28,.52); }
.modal.on { display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal-panel { width: 100%; max-width: 660px; max-height: 94vh; display: flex; flex-direction: column; background: #f6f5f7; border-radius: 13px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 13px 16px; border-bottom: 1px solid #f0ecee; }
.modal-head b { font-size: 16px; color: #c8547a; }
.modal-head b small { font-size: 12px; color: #b79aa6; font-weight: 400; margin-left: 8px; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; color: #a89fa3; cursor: pointer; }
.modal-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 11px 16px; border-top: 1px solid #f0ecee; }
.steps { display: flex; background: #fff; border-bottom: 1px solid #f0ecee; }
.step { flex: 1; text-align: center; font-size: 13px; color: #a89fa3; padding: 9px 4px; }
.step i { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%; background: #e7e2e5; color: #fff; font-size: 12px; font-style: normal; margin-right: 4px; }
.step.on { color: #c8547a; font-weight: 600; }
.step.on i { background: #e2739a; }
.pane { display: none; }
.pane.on { display: block; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { border: 1px solid #e6e1e4; background: #fff; color: #6f666b; border-radius: 20px; padding: 7px 18px; font-size: 13.5px; cursor: pointer; }
.tab.on { border-color: #e2739a; color: #c8547a; background: #fff5f8; font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.hits { margin-top: 10px; background: #fff; border: 1px solid #eee; border-radius: 9px; max-height: 240px; overflow-y: auto; }
.hit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f5f2f3; font-size: 13.5px; cursor: pointer; }
.hit:last-child { border-bottom: 0; }
.hit:hover { background: #fff6f8; }
.hit.on { background: #fbeef3; cursor: default; }
.hit b { font-weight: 600; }
.hit span { color: #9a9095; font-size: 12.5px; }
.hit em { font-style: normal; color: #c8547a; font-size: 12.5px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fbeef3; border: 1px solid #f2d7e0; color: #a04f6c; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; }
.chip u { text-decoration: none; cursor: pointer; color: #cf4f79; font-size: 14px; line-height: 1; }
.chip.bad { background: #fdecee; border-color: #f6ccd2; color: #b6303f; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.quick button { flex: 1 1 76px; border: 1px solid #e6e1e4; background: #fff; border-radius: 8px; padding: 9px 0; color: #6f666b; cursor: pointer; }
.quick button.on { border-color: #e2739a; background: #fff5f8; color: #c8547a; font-weight: 600; }
.sum { display: flex; flex-wrap: wrap; gap: 8px; }
.sum > div { flex: 1 1 108px; background: #fdf7f9; border: 1px solid #f2dfe5; border-radius: 9px; padding: 10px 12px; text-align: center; }
.sum span { display: block; font-size: 12px; color: #a1757f; margin-bottom: 4px; }
.sum b { font-size: 18px; color: #c8425f; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #55494e; line-height: 1.7; margin: 4px 0 14px; }
.check input { margin-top: 4px; }
.done { display: none; text-align: center; padding: 26px 12px; }
.done.on { display: block; }
.done .ico { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #eefaf1; color: #1f7a42; font-size: 28px; }
@media (max-width: 560px) {
    .modal.on { padding: 0; align-items: flex-end; }
    .modal-panel { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
    .goods-grid { gap: 8px; }
}

/* 打印 */
@media print {
    .topbar, .tabbar, .adm-side, .adm-head, .ctr-top, .ctr-nav, .btn, .pager, .no-print { display: none !important; }
    body, .adm { background: #fff; display: block; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .wrap, .adm-body, .ctr-wrap { max-width: none; padding: 0; }
}
