* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f3f5; color: #1d1d1f; font-size: 15px;
}
#hdr {
  position: sticky; top: 0; z-index: 50; height: 50px; display: flex; align-items: center; justify-content: center;
  background: #2b6cff; color: #fff; font-size: 17px; font-weight: 600; padding: 0 12px;
}
#btnBack {
  position: absolute; left: 12px; font-size: 15px; font-weight: 400; cursor: pointer;
}
#view { max-width: 720px; margin: 0 auto; padding: 12px; padding-bottom: 76px; min-height: calc(100vh - 126px); }
#tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 56px; display: flex; background: #fff;
  border-top: 1px solid #e5e5e5; z-index: 50; max-width: 720px; margin: 0 auto;
}
.tab { flex: 1; display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; text-decoration: none; }
.tab.on { color: #2b6cff; font-weight: 600; }

.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card.tight { padding: 11px 14px; }
.card .title { font-weight: 600; margin-bottom: 10px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #f6f8ff; border-radius: 10px; padding: 12px; text-align: center; }
.stat .n { font-size: 20px; font-weight: 700; color: #2b6cff; }
.stat .l { font-size: 12px; color: #888; margin-top: 3px; }
.row { display: flex; gap: 10px; }
.row.mt8 { margin-top: 8px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: #999; } .small { font-size: 12px; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eee; }
.kv:last-child { border-bottom: none; }
.k { color: #666; } .price { color: #e4393c; font-weight: 700; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #eee; color: #555; }
.tag.g { background: #e6f7ec; color: #1a9e4b; }
.tag.o { background: #fff3e0; color: #d97706; }
.tag.r { background: #fdeaea; color: #e4393c; }
.tag.m { background: #eee; color: #999; }
.empty { text-align: center; color: #aaa; padding: 40px 0; }
.seg { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.seg a { padding: 6px 12px; background: #fff; border-radius: 20px; font-size: 13px; color: #555; text-decoration: none; white-space: nowrap; }
.seg a.on { background: #2b6cff; color: #fff; }

.f { width: 100%; padding: 10px 12px; margin: 6px 0; border: 1px solid #ddd; border-radius: 9px; font-size: 15px; display: block; background: #fff; }
textarea.f { min-height: 72px; resize: vertical; }
label.f { border: none; padding: 6px 0 0; margin: 8px 0 0; color: #666; font-size: 13px; }
.btn { background: #2b6cff; color: #fff; border: none; border-radius: 9px; padding: 11px 14px; font-size: 15px; cursor: pointer; }
.btn.full { width: 100%; } .btn.block { display: block; width: 100%; }
.btn.ghost { background: #eef3ff; color: #2b6cff; }
.btn.gray { background: #efeff1; color: #555; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search .f { margin: 0; }
.hr { border: none; border-top: 1px solid #eee; margin: 12px 0; }
a { color: #2b6cff; }
