/* ===== 包有单 Web 版：与小程序版同一套视觉 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #e9eaee;
  font-size: 16px; color: #1C1F24;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; background: #F5F6F8; position: relative; }
.boot { text-align: center; padding: 100px 0; color: #9AA0A8; }

/* 顶栏 */
.header {
  background: #2B5CE6; color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; font-size: 17px; font-weight: 600;
}
.header .spacer { flex: 1; }
.header a, .header .hlink { color: #C7D3F7; font-size: 13px; font-weight: 400; text-decoration: none; }

/* 底部 tab */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; background: #fff; border-top: 1px solid #EEF0F3;
  padding-bottom: env(safe-area-inset-bottom); z-index: 50;
}
.tabbar .tab { flex: 1; text-align: center; padding: 10px 0 8px; color: #9AA0A8; font-size: 13px; cursor: pointer; }
.tabbar .tab .ic { font-size: 22px; display: block; }
.tabbar .tab.on { color: #2B5CE6; font-weight: 600; }
.page { padding-bottom: 80px; min-height: 100%; }

/* 按钮 */
.btn-primary, .btn-ghost, .btn-danger {
  display: block; width: 100%; border: none; cursor: pointer;
  border-radius: 12px; height: 52px; font-size: 18px; font-weight: 600;
}
.btn-primary { background: #2B5CE6; color: #fff; }
.btn-primary[disabled] { background: #B9C6F2; }
.btn-ghost { background: #fff; color: #2B5CE6; border: 1.5px solid #2B5CE6; }
.btn-danger { background: #E5484D; color: #fff; }
.half { flex: 1; }

/* 卡片 */
.card {
  background: #fff; border-radius: 12px; padding: 16px;
  margin: 12px; box-shadow: 0 1px 4px rgba(28,31,36,.04);
}

/* 表单 */
.form-label { font-size: 14px; color: #6B7280; margin: 14px 0 6px; display: block; }
.form-input, .form-textarea {
  background: #F5F6F8; border: none; border-radius: 10px;
  padding: 13px 14px; font-size: 17px; width: 100%; outline: none;
  font-family: inherit;
}
.form-textarea { min-height: 84px; resize: vertical; }

/* 徽章 */
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 500; vertical-align: middle; }
.badge-pending    { background: #FFF3E0; color: #B25E00; }
.badge-working    { background: #E3ECFF; color: #2B5CE6; }
.badge-waitcheck  { background: #F0E6FF; color: #7A3CE8; }
.badge-waitpickup { background: #E1F5EA; color: #1B7A46; }
.badge-completed  { background: #EEF0F3; color: #4B5563; }
.badge-settled    { background: #D9F2E5; color: #0E7A3C; font-weight: 600; }
.badge-canceled   { background: #FBE9E9; color: #B3261E; }

/* 通用 */
.h1 { font-size: 20px; font-weight: 700; }
.h2 { font-size: 17px; font-weight: 600; }
.muted { color: #6B7280; font-size: 14px; }
.strong { font-weight: 600; }
.money { font-weight: 700; color: #E5484D; }
.big { font-size: 22px; }
.row { display: flex; align-items: center; }
.spacer { flex: 1; }
.divider { height: 1px; background: #EEF0F3; margin: 14px 0; }
.link { color: #2B5CE6; cursor: pointer; margin-left: 14px; font-weight: 600; }
.link.gray { color: #9AA0A8; }
.empty { text-align: center; color: #9AA0A8; padding: 60px 20px; font-size: 15px; }
.empty .big { font-size: 44px; display: block; margin-bottom: 10px; }

/* 步骤条 */
.steps { display: flex; padding: 14px 20px; }
.step { flex: 1; text-align: center; color: #9AA0A8; font-size: 13px; }
.step .dot { width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #E5E7EB; color: #6B7280; margin: 0 auto 4px; font-size: 13px; }
.step.active { color: #2B5CE6; font-weight: 600; }
.step.active .dot { background: #2B5CE6; color: #fff; }

/* 首页 */
.home-head { padding: 18px 18px 4px; }
.hello { font-size: 22px; font-weight: 700; }
.quota-link { margin-top: 4px; cursor: pointer; }
.create-wrap { padding: 0 12px; }
.create-tip { text-align: center; margin: 8px 0; }
.sec-title { font-size: 16px; font-weight: 600; padding: 16px 18px 2px; }
.todo { padding: 15px 16px; cursor: pointer; }
.todo.hot { border-left: 4px solid #2B5CE6; }
.todo-label { font-size: 16px; }
.todo-count { font-size: 20px; font-weight: 700; color: #2B5CE6; margin-right: 4px; }
.quick { display: flex; padding: 0 8px; }
.quick-item { flex: 1; margin: 0 4px; text-align: center; padding: 16px 0; font-size: 14px; cursor: pointer; }
.quick-item .ic { font-size: 26px; display: block; margin-bottom: 4px; }

/* 订单列表 */
.seg { display: flex; background: #2B5CE6; padding: 8px 12px 0; }
.seg-item { flex: 1; text-align: center; color: #C7D3F7; font-size: 16px; padding: 9px 0; border-radius: 8px 8px 0 0; cursor: pointer; }
.seg-item.on { background: #F5F6F8; color: #2B5CE6; font-weight: 700; }
.chips { white-space: nowrap; overflow-x: auto; background: #F5F6F8; padding: 8px 12px; }
.chip { display: inline-block; padding: 5px 14px; background: #fff; border-radius: 99px; font-size: 14px; color: #4B5563; margin-right: 8px; border: 1px solid #EEF0F3; cursor: pointer; }
.chip.on { background: #2B5CE6; color: #fff; border-color: #2B5CE6; font-weight: 600; }
.ocard { display: flex; align-items: stretch; padding: 14px; cursor: pointer; }
.ocard .main { flex: 1; min-width: 0; }
.partner { font-size: 17px; font-weight: 600; margin-right: 8px; }
.line2 { color: #4B5563; font-size: 15px; margin: 5px 0; }
.standalone { font-size: 11px; color: #B25E00; background: #FFF3E0; padding: 1px 7px; border-radius: 99px; }
.thumb { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; margin-left: 10px; flex-shrink: 0; }
.fab {
  position: fixed; right: 20px; bottom: 90px; z-index: 40;
  width: 60px; height: 60px; line-height: 56px; border-radius: 50%;
  background: #2B5CE6; color: #fff; font-size: 32px; text-align: center;
  box-shadow: 0 4px 12px rgba(43,92,230,.4); cursor: pointer;
}

/* 发单 */
.tpl-row { display: flex; overflow-x: auto; margin-bottom: 12px; }
.tpl { min-width: 76px; text-align: center; padding: 10px 0; border-radius: 10px; border: 1.5px solid #EEF0F3; margin-right: 8px; background: #FAFBFC; cursor: pointer; }
.tpl.on { border-color: #2B5CE6; background: #E3ECFF; }
.tpl-ic { font-size: 24px; }
.tpl-name { font-size: 12px; margin-top: 2px; }
.cats { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.cat { padding: 7px 16px; background: #F5F6F8; border-radius: 99px; margin: 0 8px 8px 0; font-size: 15px; cursor: pointer; }
.cat.on { background: #2B5CE6; color: #fff; font-weight: 600; }
.row.gap { align-items: flex-end; }
.col { flex: 1; margin-right: 10px; }
.col:last-child { margin-right: 0; }
select.form-input { appearance: none; }
.calc { padding: 10px 0 2px; font-size: 16px; }
.photos { display: flex; flex-wrap: wrap; }
.pitem { position: relative; width: 78px; height: 78px; margin: 0 8px 8px 0; border-radius: 8px; overflow: hidden; background: #F5F6F8; }
.pitem img { width: 100%; height: 100%; object-fit: cover; }
.pitem.add { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #9AA0A8; border: 1.5px dashed #C4C9D0; cursor: pointer; }
.del { position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: rgba(0,0,0,.5); color: #fff; text-align: center; line-height: 22px; font-size: 16px; border-radius: 0 0 0 8px; cursor: pointer; }
.cgrid { display: flex; flex-wrap: wrap; margin-top: 12px; }
.citem-g { width: 78px; text-align: center; margin: 0 8px 10px 0; padding: 10px 0; border-radius: 10px; border: 1.5px solid #EEF0F3; background: #FAFBFC; cursor: pointer; }
.citem-g.on { border-color: #2B5CE6; background: #E3ECFF; }
.avatar { width: 38px; height: 38px; line-height: 38px; margin: 0 auto 4px; border-radius: 50%; background: #2B5CE6; color: #fff; font-size: 16px; }
.avatar.big-a { width: 54px; height: 54px; line-height: 54px; font-size: 24px; margin: 0 14px 0 0; }
.cname { font-size: 13px; }
.cuid { font-size: 10px; color: #9AA0A8; }
.picked { margin-top: 6px; font-size: 14px; }
.sum-row { display: flex; margin-bottom: 8px; font-size: 16px; }
.sum-row .muted { width: 64px; flex-shrink: 0; }
.warn { margin-top: 10px; color: #B25E00; }

/* 详情 */
.grid3 { display: flex; margin-top: 12px; }
.grid3 .g { flex: 1; font-size: 15px; }
.claim-box { margin-top: 10px; padding: 12px; background: #FFF8E8; border-radius: 10px; font-size: 14px; color: #6B5B1E; }
.claim-code { font-size: 18px; font-weight: 700; margin: 6px 0; letter-spacing: 2px; }
.claim-link { display: inline-block; background: #2B5CE6; color: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; margin-top: 4px; }
.kv { margin-bottom: 8px; font-size: 15px; }
.sec-label { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.imgs { display: flex; flex-wrap: wrap; }
.imgs img { width: 78px; height: 78px; border-radius: 8px; margin: 0 8px 8px 0; object-fit: cover; cursor: zoom-in; }
.change { padding: 8px 0; border-bottom: 1px solid #F2F4F6; font-size: 15px; }
.change:last-child { border-bottom: none; }
.tl { display: flex; margin-bottom: 16px; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: #2B5CE6; margin: 7px 12px 0 0; flex-shrink: 0; }
.tl-body { flex: 1; }
.tl-stage { font-weight: 600; font-size: 15px; }
.manual { font-size: 10px; color: #B25E00; background: #FFF3E0; padding: 1px 7px; border-radius: 99px; margin-left: 8px; }
.tl-time { font-size: 12px; }
.tl-text { margin-top: 3px; font-size: 15px; }
.footer {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; display: flex;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.05); z-index: 45;
}
.act { flex: 1; margin: 0 4px; border-radius: 10px; height: 48px; line-height: 48px; text-align: center; font-size: 16px; font-weight: 600; cursor: pointer; border: none; }
.act.primary { background: #2B5CE6; color: #fff; }
.act.ghost { background: #F5F6F8; color: #2B5CE6; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; z-index: 99; }
.mask .sheet-wrap { width: 100%; max-width: 480px; margin: 0 auto; }
.sheet { background: #fff; border-radius: 16px 16px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
.sheet-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.chip2 { display: inline-block; padding: 7px 16px; border-radius: 99px; background: #F5F6F8; margin-right: 8px; font-size: 14px; cursor: pointer; }
.chip2.on { background: #2B5CE6; color: #fff; }

/* 登录 */
.login { display: flex; flex-direction: column; justify-content: center; min-height: 90vh; padding: 0 32px; }
.login .logo { font-size: 40px; text-align: center; margin-bottom: 8px; }
.login .slogan { text-align: center; color: #6B7280; margin-bottom: 40px; }

/* 迭代新增 */
.overdue-text { color: #E5484D !important; font-weight: 700; }
.guide { border-left: 4px solid #F5A623; }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; cursor: zoom-out;
}
.lightbox img { max-width: 96%; max-height: 92%; border-radius: 8px; }

/* 留言与搜索 */
.searchbar { padding: 10px 12px 0; display: flex; align-items: center; }
.searchbar .form-input { background: #fff; flex: 1; }
.searchbar .s-btn { margin-left: 10px; color: #2B5CE6; font-weight: 600; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.searchbar .s-btn.clear { color: #9AA0A8; font-weight: 400; }
.msg { padding: 8px 0; border-bottom: 1px solid #F2F4F6; font-size: 15px; }
.msg:last-of-type { border-bottom: none; }
.msg .imgs { margin-top: 4px; }
.recording { color: #E5484D !important; animation: rec-blink 1s infinite; }
@keyframes rec-blink { 50% { opacity: .25; } }
