/* 商户返现管家 H5 样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; background: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333; max-width: 750px; margin: 0 auto;
}
#app { min-height: 100vh; padding-bottom: 70px; }

/* 顶部渐变头 */
.hero {
  background: linear-gradient(160deg, #ff7e5f 0%, #f9484a 55%, #e0303a 100%);
  color: #fff; padding: 18px 16px 22px; border-radius: 0 0 26px 26px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
}
.hero-title { display: flex; align-items: center; font-size: 15px; font-weight: 600; opacity: .95; }
.hero-title .logo { width: 30px; height: 30px; margin-right: 8px; }
/* 子页面返回按钮 */
.page-back { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; color: #fff; opacity: .9; cursor: pointer; margin-bottom: 10px; padding: 4px 0; }
.page-back:active { opacity: 1; }

/* 余额卡 */
.balance-card {
  margin: 14px 16px 0; background: #fff; border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 6px 20px rgba(214, 48, 49, .10); position: relative; overflow: hidden;
}
.balance-card .bc-label { font-size: 13px; color: #98a0ad; }
.balance-card .bc-value { font-size: 32px; font-weight: 700; color: #222; margin-top: 4px; font-family: "DIN Alternate", "Microsoft YaHei", sans-serif; }
.balance-card .bc-value small { font-size: 14px; font-weight: 400; color: #98a0ad; margin-right: 4px; }
.balance-row { display: flex; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #eef0f4; }
.balance-row .col { flex: 1; text-align: center; }
.balance-row .col .n { font-size: 18px; font-weight: 700; }
.balance-row .col .l { font-size: 12px; color: #98a0ad; margin-top: 2px; }

/* 统计卡组 */
.stat-grid { display: flex; gap: 10px; margin: 14px 16px 0; }
.stat-grid .sg { flex: 1; background: #fff; border-radius: 12px; padding: 14px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.stat-grid .sg .n { font-size: 19px; font-weight: 700; color: #222; }
.stat-grid .sg .n.red { color: #f9484a; }
.stat-grid .sg .l { font-size: 12px; color: #98a0ad; margin-top: 3px; }

/* 权益宫格 */
.section { margin: 16px 16px 0; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.section-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; margin-bottom: 12px; }
.section-title::before { content: ''; width: 4px; height: 14px; background: linear-gradient(#ff7e5f, #f9484a); border-radius: 2px; margin-right: 8px; }
.rights-grid { display: flex; }
.rights-grid .r { flex: 1; text-align: center; }
.rights-grid .r .ic { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.rights-grid .r .t { font-size: 13px; color: #444; margin-top: 6px; }
.rights-grid .r .d { font-size: 11px; color: #a5abb7; margin-top: 2px; }

/* 规则 */
.rule-list { margin: 0; padding-left: 18px; font-size: 13px; color: #666; line-height: 2; }

/* 公告列表 */
.notice-item { padding: 12px 0; border-bottom: 1px dashed #eef0f4; }
.notice-item:last-child { border-bottom: none; }
.notice-item .nt { font-size: 14px; font-weight: 600; color: #333; }
.notice-item .nc { font-size: 12px; color: #8a919e; margin-top: 4px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-item .nd { font-size: 11px; color: #b3b9c4; margin-top: 4px; }

/* 列表条目 */
.cell-item { display: flex; align-items: center; background: #fff; padding: 14px 16px; margin: 10px 16px 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.cell-item .info { flex: 1; min-width: 0; }
.cell-item .t1 { font-size: 14px; font-weight: 600; }
.cell-item .t2 { font-size: 12px; color: #98a0ad; margin-top: 3px; }
.cell-item .val { text-align: right; }
.cell-item .v1 { font-size: 16px; font-weight: 700; }
.cell-item .v2 { font-size: 11px; color: #98a0ad; margin-top: 2px; }
.in { color: #16a34a; } .out { color: #f9484a; } .gray { color: #98a0ad; }

/* 标签 */
.tag { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 8px; margin-right: 6px; vertical-align: 1px; }
.tag-type { background: #eef4ff; color: #3b6ff5; }
.tag-ok { background: #e8f8ee; color: #16a34a; }
.tag-warn { background: #fff5e6; color: #f08c00; }
.tag-err { background: #feecec; color: #f9484a; }

/* 筛选chips */
.chip-bar { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; }
.chip { flex-shrink: 0; font-size: 12px; color: #666; background: #fff; padding: 5px 13px; border-radius: 14px; border: 1px solid #e8eaf0; }
.chip.active { color: #fff; background: linear-gradient(135deg, #ff7e5f, #f9484a); border-color: transparent; }
/* 两行换行版（全部+6类型 → 4+3） */
.chips-wrap { flex-wrap: wrap; overflow: visible; padding: 12px 16px 2px; }
.chips-wrap .chip { flex: 0 0 calc(25% - 6px); text-align: center; }

/* 营业数据-时段选择 */
.period-bar { display: flex; background: #f2f3f7; border-radius: 10px; padding: 4px; margin: 12px 0 2px; }
.period-bar .p-item { flex: 1; text-align: center; font-size: 13px; color: #666; padding: 7px 0; border-radius: 8px; transition: all .15s; }
.period-bar .p-item.on { background: #fff; color: #f9484a; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.06); }

/* 营业数据-类型统计网格（2行×3列） */
.type-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.type-grid .tg { width: calc((100% - 16px) / 3); background: #f8f9fc; border-radius: 10px; padding: 10px 4px 8px; text-align: center; }
.type-grid .tg .name { font-size: 12px; color: #8a919e; }
.type-grid .tg .cnt { font-size: 19px; font-weight: 700; color: #222; margin-top: 2px; line-height: 1.2; }
.type-grid .tg .cnt small { font-size: 10px; color: #98a0ad; font-weight: 400; margin-left: 1px; }
.type-grid .tg .amt { font-size: 11px; color: #f9484a; font-weight: 600; margin-top: 1px; }

/* 营业数据-近30天曲线 */
.chart-box { margin-top: 4px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-caption { display: flex; justify-content: space-between; font-size: 11px; color: #98a0ad; margin-top: 6px; padding: 0 2px; }

/* 授权页 */
.auth-wrap { min-height: 100vh; background: linear-gradient(170deg, #ff9a76 0%, #f9484a 60%, #d63031 100%); display: flex; flex-direction: column; align-items: center; padding-top: 96px; }
.auth-logo { width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.auth-name { color: #fff; font-size: 21px; font-weight: 700; margin-top: 18px; }
.auth-sub { color: rgba(255,255,255,.85); font-size: 12px; margin-top: 6px; letter-spacing: 1px; }
.auth-card { width: 84%; margin-top: 46px; background: #fff; border-radius: 16px; padding: 22px 20px; }
.auth-btn { display: block; width: 100%; border: none; padding: 13px 0; border-radius: 24px; font-size: 16px; color: #fff; background: linear-gradient(135deg, #07c160, #06ad56); font-weight: 600; }
.auth-btn.orange { background: linear-gradient(135deg, #ff7e5f, #f9484a); }
.auth-tip { margin-top: 12px; font-size: 11px; color: #a5abb7; text-align: center; line-height: 1.7; }

/* tabbar */
.mcbm-tabbar .van-tabbar-item--active { color: #f9484a; }

/* 我的中心 */
.profile-head { display: flex; align-items: center; padding: 4px 0 2px; }
.profile-head .avatar { width: 58px; height: 58px; border-radius: 50%; background: #ffd7d3; display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; }
.profile-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .pname { font-size: 17px; font-weight: 700; color: #fff; }
.profile-head .pno { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }

/* 弹窗标题 */
.pop-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* 空状态 */
.empty { text-align: center; color: #b3b9c4; font-size: 13px; padding: 42px 0; }
.empty .e-ic { font-size: 44px; margin-bottom: 8px; }

/* 订单列表分页条 */
.pager-bar { background: #fff; margin: 10px 16px 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.pager-bar .van-pagination__item { color: #f9484a; }
.pager-bar .van-pagination__page-desc { color: #666; }

/* 列表分页栏 */
.page-bar { padding: 10px 16px 2px; }
.page-bar .van-pagination { --van-pagination-height: 36px; }
.page-bar .van-pagination__item { color: #f9484a; }
.page-bar .van-pagination__page-desc { color: #98a0ad; font-size: 12px; }

/* 我的账户/经营账户/协议 页 */
.acct-item { text-align: center; padding: 10px 0; }
.acct-item .ai-label { font-size: 13px; color: #8a919e; }
.acct-item .ai-value { font-size: 30px; font-weight: 700; color: #f9484a; margin-top: 6px; }
.acct-item .ai-sub { font-size: 11px; color: #b3b9c4; margin-top: 4px; }
.acct-divider { border-top: 1px dashed #eef0f4; margin: 14px 0; }
.agmt-meta { font-size: 12px; color: #98a0ad; margin-bottom: 10px; }
.agmt-content { font-size: 14px; color: #444; line-height: 2; word-break: break-all; }
.agmt-content h3 { margin: 6px 0; }
