/* ==========================================================================
   app.css —— 移动端骨架专用
   --------------------------------------------------------------------------
   本文件只解决 layui 2.13.9 没有提供的一件事：移动端骨架的「固定定位」
   （layui 的 .layui-footer / .layui-header 只在 .layui-layout-admin 桌面布局下
   才是 fixed，且写死 left:200px，移动端不可用）。

   三层分工（v2）：
   1. 本文件：定位、flex 布局、尺寸、间距、安全区、媒体查询；
   2. 颜色、字号、圆角、阴影、动效一律在 theme.css，本文件只引用变量；
   3. 组件外观用 layui class + theme.css 皮肤，禁止把本文件当业务样式表用。
    ========================================================================== */

/* 旧变量兼容别名：真源在 theme.css，本文件不再定义任何色值 */
:root {
  --h5-bg: var(--bg-page);
  --h5-brand: var(--brand);
  --h5-brand-soft: var(--brand-soft);
}

/* 内容区：16px 留白 + 底部为贴底胶囊（60px 高）与安全区预留距离 */
.h5-body {
  padding: 16px 16px calc(76px + env(safe-area-inset-bottom));
}

/* 二级页不显示底栏，同步收回底部预留高度 */
.h5-app.is-subpage .h5-body {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* 底部导航：贴底胶囊（左右留 16px），只保留 iOS 安全区；底色/圆角/阴影在 theme.css */
.h5-tabbar {
  position: fixed;
  right: 16px;
  bottom: env(safe-area-inset-bottom);
  left: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 6px;
}

/* 选中滑块：宽度 = 轨道内宽 / 项数，位置由 app.js 写的 CSS 变量决定 */
.h5-tabbar .h5-tabbar-glider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc((100% - 12px) / var(--h5-tabbar-count, 4));
  height: 48px;
  transform: translateX(calc(var(--h5-tabbar-index, 0) * 100%));
  pointer-events: none;
}

/* 分栏：图标在上、文字在下，整格居中对齐 */
.h5-tabbar a {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.h5-tabbar a .layui-icon {
  font-size: 20px;
  line-height: 1;
}

/* 图标容器：只有中间的「邀请」放大成 34px 的方块，其余保持 28px
   尺寸差异集中在这一处，颜色与阴影在 theme.css */
.h5-tabbar a .h5-tab-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.h5-tabbar a.is-center .h5-tab-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

/* 待领返佣 / 今日新增下级红点：几何在本层，颜色与描边在 theme.css */
.h5-tabbar a .h5-tab-ico::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-press) var(--ease);
}

.h5-tabbar a.has-dot .h5-tab-ico::after {
  opacity: 1;
}

/* 中心入口常驻加粗，未选中时也保持可辨识 */
.h5-tabbar a.is-center span:last-child {
  font-weight: 600;
}

@media (min-width: 480px) {
  /* 桌面预览时与手机画布同宽居中，左右同样留 16px */
  .h5-tabbar {
    right: auto;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 448px;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   布局工具类：layui 2.13.9 未提供的最小补充
   只做对齐 / 间距，不定义颜色、圆角、阴影等视觉，视觉一律用 layui class
   ========================================================================== */
.h5-tc { text-align: center !important; }
.h5-tr { text-align: right !important; }

.h5-mt-0  { margin-top: 0 !important; }
.h5-mt-5  { margin-top: 5px; }
.h5-mt-10 { margin-top: 10px; }

.h5-pad { padding: 24px 0; }

/* 卡片头：标题 + 说明 + 右侧操作，三者垂直居中对齐（替代 float:right） */
.h5-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-card-head > :last-child {
  margin-left: auto;
}

/* 卡片头里的平台标识与标签排成一行，图标和文字基线一致 */
.h5-task-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h5-task-head > .h5-push {
  margin-left: auto;
}

/* 平台标识：图标 + 名称，整体作为行内 flex，保证图标垂直居中 */
.h5-pf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 大厅平台筛选：48px 图标 + 名称，单行横向滚动，间距收紧 */
.h5-pf-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.h5-pf-bar::-webkit-scrollbar {
  display: none;
}

.h5-pf-item {
  flex: 0 0 auto;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 图标外壳：48px；底色、圆角、选中描边在 theme.css */
.h5-pf-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.h5-pf-logo {
  display: block;
  width: 30px;
  height: 30px;
  transition: transform var(--dur-press) var(--ease);
}

/* 选中时图标轻微放大，强化点击反馈 */
.h5-pf-item.is-active .h5-pf-logo {
  transform: scale(1.05);
}

/* 「全部」用内联 SVG，颜色跟随瓦片状态（未选灰、选中主色） */
.h5-pf-all {
  color: var(--text-3);
  transition: color var(--dur-press) var(--ease);
}

.h5-pf-item.is-active .h5-pf-all {
  color: var(--brand);
}

/* 没有品牌图标的新平台兜底：首字方块（底色与圆角在 theme.css） */
.h5-pf-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.h5-pf-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color var(--dur-press) var(--ease);
}

.h5-pf-item.is-active .h5-pf-name {
  color: var(--brand);
  font-weight: 600;
}

/* 横向滚动行 + 左右箭头：箭头占独立一列，不压在内容上
   布局顺序：‹ 行内容 ›（用 order 控制，DOM 里按钮仍在行两侧） */
.h5-scroller {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 注意：不要在这里写 scroll-behavior: smooth —— 箭头的滚动是 rAF 逐帧设置
   scrollLeft 实现的，浏览器再插一层平滑会让每帧都被重新缓动，表现为「先顿一下再滚」 */
.h5-scroller-row {
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
}

.h5-scroller-btn {
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.h5-scroller-btn.is-prev {
  order: 1;
}

.h5-scroller-btn.is-next {
  order: 3;
}

/* 不可滚动时整列收起，不浪费横向空间 */
.h5-scroller:not(.is-scrollable) .h5-scroller-btn {
  display: none;
}

/* 内容一屏放得下时整体居中（排序那四个按钮），放不下仍从左侧开始 */
.h5-scroller:not(.is-scrollable) .h5-scroller-row {
  justify-content: center;
}

/* 滚到端点：箭头始终显示，只做淡化，避免两侧一隐一现显得缺一块 */
.h5-scroller-btn.is-disabled {
  opacity: .45;
}

/* 大厅筛选按钮组：单行不换行，超出宽度横向滚动；滚动条隐藏，靠内容自然露出 */
.h5-chip-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.h5-chip-bar::-webkit-scrollbar {
  display: none;
}

/* 按钮不参与压缩，手指横向拖动时才滚动；高度统一 30px、字号 13px */
.h5-chip-bar > .layui-btn {
  flex: 0 0 auto;
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

/* 名额行：进度条占满剩余宽度，右侧数字不换行 */
.h5-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-bar > .layui-progress {
  flex: 1;
  margin-bottom: 0;
}

.h5-bar > .h5-bar-text {
  flex: none;
  font-size: 12px;
  color: var(--text-3);
}

/* 任务详情头部：平台标识与单价两端对齐 */
.h5-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 凭证截图：缩略图横向排列，右上角小圆点删除 */
.h5-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-thumb {
  position: relative;
}

.h5-thumb img {
  display: block;
  border-radius: var(--r-xs);
}

.h5-thumb-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, .55);
  border-radius: 50%;
}

/* 评论话术行：整行可点复制，行间细线分隔 */
.h5-kw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.h5-kw:last-child {
  border-bottom: 0;
}

/* 我的页菜单行：图标 + 标题 + 右侧值 + 箭头 */
.h5-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.h5-menu:last-child {
  border-bottom: 0;
}

.h5-menu-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* 资金流水行：左标题/时间，右金额 */
.h5-log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.h5-log:last-child {
  border-bottom: 0;
}

.h5-log-main {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-log-amt {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 分页：左边每页条数、右边翻页，同一行排布 */
.h5-pager {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.h5-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h5-pager-sizes {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 每页条数：下拉框压到 30px，与两侧说明文字同一基线 */
.h5-pager-size {
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* 翻页：两个 28px 方形图标按钮夹住页码 */
.h5-pager-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-pager-nav > .layui-btn {
  width: 28px;
  padding: 0;
  margin: 0;
}

/* 验证码行：输入框自适应剩余宽度，获取按钮固定不压缩 */
.h5-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-code-row > .layui-input {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-code-row > .layui-btn {
  flex: none;
  margin: 0;
}

/* 邀请海报：全屏弹层内的三段式（关闭 / 海报 / 操作） */
.h5-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.h5-poster-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.h5-poster-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h5-poster-body > img {
  max-width: 100%;
  max-height: 100%;
}

.h5-poster-foot {
  flex: none;
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.h5-poster-foot > * {
  flex: 1 1 0;
  margin: 0;
}

/* 邀请码条：左侧码值、右侧复制按钮，背景用 layui-bg-gray */
.h5-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-md);
}

/* 紧凑列表行：左图标 / 中标题 / 右价格与按钮 */
.h5-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-list-main {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-list-right {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ==========================================================================
   任务卡（精简版）：价格与报名按钮一行
   ========================================================================== */
.h5-task-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

/* ==========================================================================
   任务详情：英雄区 / 四项数据 / 底部悬浮操作条
   ========================================================================== */
/* 顶部栏标题居中：返回按钮绝对定位到左侧 */
.h5-topbar.is-center {
  position: relative;
  justify-content: center;
}

.h5-topbar.is-center > .h5-topbar-back {
  position: absolute;
  left: 0;
}

/* 英雄区：平台名与标题处在同一条行内文本流里，标题超长时自然折到行首（平台下方）；
   单价右浮动固定在右上角，文字绕开它，不会压住金额 */
.h5-hero-top {
  display: block;
  width: 100%;
}

/* 清除浮动，避免下面的数据网格被贴上来 */
.h5-hero-top::after {
  content: '';
  display: block;
  clear: both;
}

/* 行内平台标识：用纯行内排版与标题共享同一条基线，图标靠 vertical-align 微调 */
.h5-hero-plat {
  white-space: nowrap;
}

/* 覆盖全局的 inline-flex：改成行内，图标与文字才会和标题基线一致 */
.h5-hero-plat .h5-pf {
  display: inline;
}

.h5-hero-plat .h5-pf > img {
  margin-right: 4px;
  vertical-align: -0.18em;
}

/* 平台名与标题之间的短线分割：1px 竖线，跟随文字基线 */
.h5-hero-plat::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 8px;
  vertical-align: -2px;
}

/* 单价固定在右上，标题文字绕开它，不会压住金额 */
.h5-hero-price {
  float: right;
  margin-left: 8px;
}

/* 标题保持行内，才能和平台名连成一段、共用行首 */
.h5-hero-title {
  display: inline;
  word-break: break-word;
}

.h5-task-grid {
  display: flex;
  margin-top: 16px;
  padding-top: 14px;
}

.h5-task-grid > div {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.h5-task-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

/* 「换个」：图标 + 文字，按内容收窄，不抢主按钮宽度 */
.h5-task-bar > .layui-btn-primary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
}

.h5-task-bar > .layui-btn:last-child {
  flex: 1 1 auto;
}

.h5-task-bar-space {
  height: 76px;
}

/* 选择截图：浅灰胶囊按钮 */
.h5-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
}

/* 图片上传器：3 列网格 + 加号块 */
.h5-uploader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.h5-uploader-item,
.h5-uploader-add {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
}

.h5-uploader-item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h5-uploader-add {
  display: flex;
  align-items: center;
  justify-content: center;
}

.h5-uploader-del {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* 需要提交：一行一项 */
.h5-require {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
}

.h5-require-ico {
  flex: none;
  font-size: 16px;
}

.h5-require-label {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 480px) {
  /* 桌面预览时悬浮条与卡片同宽居中 */
  .h5-task-bar {
    right: auto;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   派单列表：顶部栏 / 文本入口 / 卡片底栏
   ========================================================================== */
.h5-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-topbar-back {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
}

/* 顶部栏右侧动作（举报）：绝对定位贴右，不推挤居中的标题；28px 小按钮、内边距收紧 */
.h5-topbar.is-center > .h5-topbar-action {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
}

/* 弹窗内容区内边距（layer type:1 默认无）
   举报弹窗的「被举报对象」一行独立着色 */
.h5-dialog,
.h5-imgview {
  padding: 16px;
}

/* 未接单时的演示图占位：复用空态样式，高度压一点 */
.h5-step-lock {
  padding: 16px 12px;
}

/* 大图预览：图片铺满弹窗宽度，允许保存时下方跟一个下载按钮 */
.h5-imgview img {
  display: block;
  width: 100%;
}

/* 禁止保存的演示图：图片层直接不吃指针事件（长按/右键/拖拽都落空） */
.h5-no-save > img,
.h5-shot-wrap > img {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.h5-dialog-sub {
  margin-bottom: 8px;
}

.h5-topbar-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  line-height: 40px;
}

/* 大厅搜索：输入框 + 内嵌右侧搜索图标按钮 */
.h5-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.h5-search-input {
  width: 100%;
  height: 40px;
  padding-right: 40px;
}

.h5-search-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 17px;
}

/* 顶部栏右侧图标按钮（公告）：圆形，和搜索框同高 */
.h5-topbar-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  outline: none;
  font-size: 19px;
}

/* 价格区间：平台切换做成「logo + 名称」的可选按钮，列表限高保证弹窗居中不溢出 */
.h5-price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-price-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
}

.h5-price-tab-ico {
  width: 16px;
  height: 16px;
}

.h5-price-list {
  max-height: 34vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 价格区间面板：一行一个类型 + 建议区间，底部规则说明 */
.h5-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.h5-price-range {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.h5-price-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.h5-price-note p + p {
  margin-top: 4px;
}

/* 登录 / 注册：渐变品牌区满宽铺开，表单卡上移压住它形成层次 */
.h5-auth-hero {
  position: relative;
  overflow: hidden;
  margin: -16px -16px 0;
  padding: 30px 20px 52px;
  border-radius: 0 0 26px 26px;
}

/* 两个装饰圆：只做视觉，不接收事件 */
.h5-auth-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.h5-auth-bubble.is-1 {
  top: -46px;
  right: -34px;
  width: 150px;
  height: 150px;
}

.h5-auth-bubble.is-2 {
  bottom: -60px;
  left: -36px;
  width: 120px;
  height: 120px;
}

.h5-auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.h5-auth-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 700;
}

.h5-auth-brand-text {
  min-width: 0;
}

.h5-auth-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
}

.h5-auth-slogan {
  margin-top: 4px;
  font-size: 12px;
}

/* 三个数据：半透明玻璃块，一行三等分 */
.h5-auth-stats {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.h5-auth-stats > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 6px;
  border-radius: var(--r-md);
  text-align: center;
}

.h5-auth-stats b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.h5-auth-stats span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.h5-auth-card {
  position: relative;
  margin-top: -30px;
}

/* 标签：灰色轨道 + 选中白块（比大厅的实心胶囊更轻盈，像开关） */
.h5-auth-seg {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--r-md);
}

.h5-auth-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: background-color var(--dur-press) var(--ease),
              color var(--dur-press) var(--ease),
              box-shadow var(--dur-press) var(--ease);
}

/* 输入行：图标 + 输入框 + 右侧动作，整块可点聚焦 */
.h5-auth-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: var(--r-md);
}

.h5-auth-field > .layui-icon {
  flex: none;
  font-size: 17px;
}

.h5-auth-field > input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.h5-auth-field > .h5-auth-eye,
.h5-auth-field > .h5-auth-send {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.h5-auth-field > .h5-auth-send {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* 主按钮：整宽 46px，圆角与输入行一致 */
.h5-auth-submit {
  height: 46px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}

/* 注册协议勾选：复选框与文案同一行，文案可换行 */
.h5-auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 14px;
  line-height: 1.5;
}

.h5-auth-agree > input {
  flex: none;
  margin-top: 2px;
}

/* 字段帮助按钮：跟在输入框右侧的小问号 */
.h5-field-help {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 15px;
}

/* 帮助弹窗正文：段落间距统一，关键词加粗 */
.h5-help-text p + p {
  margin-top: 8px;
}

/* 平台公告：一整段富文本（段落 / 列表 / 加粗），不需要列表卡片 */
.h5-notice {
  font-size: 13px;
  line-height: 1.75;
  word-break: break-word;
}

.h5-notice > p + p {
  margin-top: 8px;
}

.h5-notice > ul {
  margin-top: 8px;
  padding-left: 18px;
}

.h5-notice > ul > li {
  list-style: disc;
  margin-top: 4px;
}

.h5-notice > ul > li:first-child {
  margin-top: 0;
}

/* 消息行：标题一行放类型 chip + 时间，未读在右侧给个圆点 */
.h5-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h5-msg-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.h5-msg-desc {
  margin-top: 2px;
}

.h5-msg.is-unread .h5-msg-title {
  font-weight: 700;
}

.h5-msg-dot {
  flex: none;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 顶部栏右侧按钮推到最右 */
.h5-topbar > .h5-push {
  margin-left: auto;
}

/* 搜索按钮：与输入框等高，文字垂直居中不贴边 */
.h5-topbar > .layui-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 1;
}

/* 收款账号列表：渠道品牌图标 + 右侧「设为默认 / 解绑」竖排文字按钮 */
.h5-payout-ico {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
}

.h5-payout-acts {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.h5-payout-act {
  font-size: 12px;
  line-height: 1.2;
}

/* 保证金档位行：一行「单量区间 — 金额」，当前档位高亮 */
.h5-dp-level {
  padding: 8px 10px;
}

/* 快捷入口：三等分瓦片，图标在上名称在下，整块可点 */
.h5-quick {
  display: flex;
  gap: 8px;
}

.h5-quick-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 62px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.h5-quick-item > .layui-icon {
  font-size: 20px;
  line-height: 1;
}

.h5-dp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.h5-dp-ops {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   我的模板：卡片操作行 / 弹窗两列
   ========================================================================== */
.h5-tpl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.h5-tpl-ops {
  display: flex;
  gap: 8px;
}

.h5-wd-row {
  display: flex;
  gap: 10px;
}

.h5-wd-col {
  flex: 1 1 0;
  min-width: 0;
}

/* ==========================================================================
   发布页：任务步骤 / 收集项
   ========================================================================== */
.h5-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 流程空状态：图标 + 主文案 + 操作提示 */
.h5-flow-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 12px;
  text-align: center;
}

.h5-flow-empty > .layui-icon {
  margin-bottom: 2px;
}

.h5-flow-item {
  padding: 12px;
}

.h5-step-head,
.h5-collect,
.h5-flow-item.h5-collect {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 任务详情里的步骤配图：整行宽度，比编辑器里的 56px 缩略图大一号 */
.h5-step-shot {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* 任务详情里的收集项：标签放大一档，作为流程里和步骤同级的关键节点
   （编辑器里的 h5-collect 是 .h5-flow-item 自身，不会被这条命中） */
.h5-flow-item .h5-collect .chip {
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
}

/* 上传示例图 / 二维码的空状态预览：虚线方块，整块可点，点了直接选图 */
.h5-media-empty {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  height: 80px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

/* 截图示例行：缩略图（图上压「示例图」）+ 上传格，整行居中 */
.h5-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* 缩略图外层：作为「示例图」文字定位的参照 */
.h5-sample-thumb-wrap {
  position: relative;
  flex: none;
  display: block;
}

/* 「示例图」压在图片正中间，半透明底保证在任何截图上都看得清 */
.h5-sample-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* 行内的上传格：单格定宽定高，不再按 3 列网格平分整行 */
.h5-uploader-inline {
  display: flex;
  flex: none;
  gap: 8px;
}

.h5-uploader-inline > .h5-uploader-add,
.h5-uploader-inline > .h5-uploader-item {
  width: 84px;
  height: 84px;
  aspect-ratio: auto;
}

/* 行内空槽：图标 + 文案竖排，一眼看清「这里要传哪张截图」 */
.h5-uploader-inline > .h5-uploader-add {
  flex-direction: column;
  gap: 2px;
  width: auto;
  min-width: 96px;
  padding: 0 10px;
  line-height: 1.25;
  text-align: center;
}

.h5-uploader-inline > .h5-uploader-add .layui-icon {
  font-size: 22px;
}

.h5-uploader-inline > .h5-uploader-add > span {
  max-width: 100px;
  font-size: 12px;
  word-break: break-all;
}

.h5-sample-thumb {
  display: block;
  width: 112px;
  height: 84px;
  object-fit: cover;
}

.h5-sample-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* 结果状态卡：与空状态同一套居中排版（图标 + 主文案 + 说明 + 入口） */
.h5-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
  text-align: center;
}

.h5-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 30px;
}

/* 可点整卡：空白处点进任务详情，按压给一点点缩放反馈 */
.h5-card-link {
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease);
}

.h5-card-link:active {
  transform: scale(.995);
}

/* 任务卡类型标签：比平台名弱一档，小圆角 + 细边框 */
.h5-type-chip {
  flex: none;
  box-sizing: border-box;
  height: 20px;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: .01em;
  border-radius: 2px;
}

/* 数据项：文本在左、复制按钮贴右同一行 */
.h5-data-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.h5-data-row > .h5-data-box {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-data-row > .layui-btn {
  flex: none;
  margin: 0;
}

/* 维权答辩：左（对方）/ 右（我）/ 居中（平台）三种气泡 */
.h5-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.h5-chat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 84%;
}

.h5-chat-item.is-me {
  align-self: flex-end;
  align-items: flex-end;
}

.h5-chat-item.is-platform {
  align-self: center;
  align-items: center;
  max-width: 100%;
}

.h5-chat-bubble {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

/* 答辩里的举证图：气泡下方缩略图，最多 3 张自动换行 */
.h5-chat-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.h5-chat-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

/* 已选举证图预览：64px 小缩略图，有图才出现 */
.h5-chat-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.h5-chat-pick {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.h5-chat-pick > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 举证图入口：36px 方形小按钮，贴在发送按钮左边 */
.h5-chat-upload {
  flex: none;
  width: 36px;
  padding: 0;
}

.h5-chat-upload > .layui-icon {
  font-size: 16px;
}

/* 答复输入：文本域占满剩余宽度，按钮贴右下 */
.h5-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.h5-chat-input > .layui-textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
}

.h5-chat-input > .layui-btn {
  flex: none;
  margin: 0;
}

/* 数据项要复制的内容：可换行的灰底块，长文案不会被截断 */
.h5-data-box {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

/* 数据项里的二维码：收小居中，别占满整行 */
.h5-qr {
  display: block;
  width: 180px;
  max-width: 62%;
  margin: 8px auto 0;
}

/* 演示图外层容器：图片自身不接收指针事件，长按/右键落不到图上 */
.h5-shot-wrap {
  display: block;
}

.h5-step-head {
  margin-bottom: 8px;
}

/* 投放设置：左标题 + 右输入框 */
.h5-set-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h5-set-row > .h5-set-label {
  flex: none;
  width: 72px;
}

.h5-set-row > .layui-input,
.h5-set-row > .layui-form-select {
  flex: 1 1 auto;
  min-width: 0;
}

/* 添加入口：三等分按钮一行居中（步骤 / 收集 / 数据） */
.h5-flow-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.h5-flow-btn {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 6px;
}

.h5-flow-del {
  flex: none;
  margin-left: auto;
  font-size: 13px;
}

/* 自适应文本域：最小高度按需，内容变多自动增高 */
.h5-tx-sm,
.h5-tx-step {
  min-height: 0;
  resize: none;
  overflow-y: hidden;
}

.h5-tx-sm {
  height: 50px;
  padding: 13px 14px;
  line-height: 1.6;
}

.h5-tx-step {
  height: 55px;
  padding: 14px;
  line-height: 1.5;
}

.h5-step-no {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.h5-step-media {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.h5-step-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.h5-collect-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* 收集项类型选择行（弹窗内） */
.h5-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
}

.h5-opt-radio {
  flex: none;
  width: 18px;
  height: 18px;
}

.h5-opt > .t-caption {
  margin-left: auto;
  text-align: right;
}

/* ==========================================================================
   「我的」页：个人卡 / 资产卡 / 接单数据
   只负责尺寸与排布，颜色圆角在 theme.css
   ========================================================================== */
.h5-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.h5-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.h5-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h5-profile-main {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.h5-profile-name > b {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.h5-profile-name > span {
  flex: none;
  display: flex;
  align-items: center;
}

.h5-profile-sub {
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.h5-profile-edit {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
}

/* 小号头像：任务详情发布方用，尺寸比个人卡小一号 */
.h5-avatar-sm {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

/* 用户主页资料卡右侧「信誉」按钮：不参与压缩，内边距收紧 */
.h5-profile-action {
  flex: none;
  padding: 0 10px;
}

/* 发布方右侧入口按钮：两个并排，不参与压缩；左右内边距收紧，把宽度让给昵称 */
.h5-pub-actions {
  flex: none;
  display: flex;
  gap: 6px;
}

.h5-pub-actions > .layui-btn {
  padding: 0 8px;
}

/* 个人卡上的消息入口：图标 + 右上角未读红点 */
.h5-profile-msg {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  font-size: 20px;
  color: var(--text-2);
}

/* 未读数字角标：正圆（18×18）+ 1px 细边；单位数就是标准圆，两位数自然撑成小胶囊 */
.h5-profile-msg > .layui-badge {
  position: absolute;
  top: 2px;
  right: -5px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.h5-info {
  margin-top: 14px;
  padding-top: 6px;
}

.h5-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.h5-info-row > .h5-info-val {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.h5-asset-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.h5-asset-row > div,
.h5-asset-row > a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* 可点的资产格：纵向排列，标签与数值都居中，按压有反馈 */
.h5-asset-row > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--r-sm);
}

.h5-asset-arrow {
  font-size: 10px;
  vertical-align: 0;
  opacity: .7;
}

.h5-asset-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.h5-asset-actions > .layui-btn {
  flex: 1 1 0;
  margin: 0;
}

/* 主数据：两列等宽、居中，中间用竖线分隔 */
.h5-stat2 {
  display: flex;
  gap: 0;
}

.h5-stat2 > .h5-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 8px;
  text-align: center;
}

/* 次级数据：四列等宽，顶部分割线 + 列间细线 */
.h5-stat4 {
  display: flex;
  gap: 0;
  margin-top: 16px;
  padding-top: 14px;
}

.h5-stat4 > div {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* ==========================================================================
   通用小工具：两端对齐、小间距、协议勾选
   ========================================================================== */
.h5-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h5-ml-1 { margin-left: 4px; }

.h5-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.h5-agree input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

/* ==========================================================================
   帮助与申诉：FAQ 折叠项
   ========================================================================== */
.h5-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.h5-faq-q > i {
  flex: none;
  transition: transform var(--dur-press) var(--ease);
}

.h5-faq-a {
  padding-bottom: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   设置：开关行
   ========================================================================== */
.h5-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.h5-setting-main {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-setting-main > .t-caption {
  margin-top: 2px;
}

.h5-setting > .layui-form-switch {
  flex: none;
  margin: 0;
}

/* ==========================================================================
   提现弹窗：金额输入 / 快捷金额 / 提现方式 / 手续费试算
   ========================================================================== */
.h5-wd {
  padding: 20px 20px 16px;
}

.h5-wd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.h5-wd-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.h5-wd-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 10px;
}

.h5-wd-amount > .h5-wd-symbol {
  flex: none;
}

.h5-wd-amount > .h5-wd-input {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-wd-quick {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.h5-wd-quick > .layui-btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.h5-wd-label {
  margin-top: 18px;
  margin-bottom: 8px;
}

/* 金额行右侧的「可提现」提示，随金额行一起下对齐 */
.h5-wd-bal {
  flex: none;
  margin-left: auto;
  font-size: 12px;
  text-align: right;
}

/* 提现账号：输入框 + 右侧「修改」文字按钮 */
.h5-wd-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-wd-account > .layui-input {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-wd-edit {
  flex: none;
  padding: 0 2px;
  font-size: 13px;
}

/* 提现弹窗里的收款账号展示：单行省略，右侧「修改」跳绑定页 */
.h5-wd-payout {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 渠道按钮里的品牌图标 */
.h5-wd-channel-ico {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.h5-wd-channels {
  display: flex;
  gap: 10px;
}

.h5-wd-channel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.h5-wd-fee {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.h5-wd-fee > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   桌面端：整站收成手机屏宽度（480px）并居中，看起来就是一台手机
   手机端（≤ 480px）不进入本段，保持全宽原样
   ========================================================================== */
@media (min-width: 481px) {
  html {
    background: var(--gray-200);
  }

  .h5-app {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--h5-bg);
    box-shadow: 0 0 32px rgba(16, 24, 40, .10);
  }

  /* 底栏是 fixed，参考系是视口而不是 .h5-app，必须同步收窄并居中 */
  .h5-tabbar {
    right: auto;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 448px;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   26. 推广中心（/promote）
   只做定位 / flex / 尺寸 / 间距；颜色、圆角、阴影、渐变全部在 theme.css
   ========================================================================== */

/* 战绩卡片内部：标签与等级标签两端对齐 */
.h5-hero-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-hero-head > :last-child {
  margin-left: auto;
}

/* 累计返佣：整页最大的数字，压过其它数据 */
.h5-hero-big {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

/* 深色卡里的四项数据：沿用 h5-stat4 的等宽分栏，只改线色 */
.h5-hero .h5-stat4 {
  margin-top: 14px;
  padding-top: 12px;
}

/* 升级进度：当前等级 → 下一等级，中间箭头不参与拉伸 */
.h5-lv-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-lv-arrow {
  font-size: 12px;
}

.h5-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--r-full);
}

.h5-progress > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width var(--dur-sheet) var(--ease);
}

/* 提现特权：图标 + 两行说明，图标固定占位不随文字折行 */
.h5-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.h5-perk:first-child {
  padding-top: 0;
}

.h5-perk:last-child {
  padding-bottom: 0;
}

.h5-perk + .h5-perk {
  border-top: 1px solid var(--line);
}

.h5-perk-ico {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 18px;
}

.h5-perk-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* 团队头像墙：负边距叠成一串，最后一个是「+N」 */
.h5-wall {
  display: flex;
  align-items: center;
  padding-bottom: 14px;
}

.h5-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: -10px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.h5-wall-more {
  margin-right: 0;
  font-size: 12px;
}

/* 周榜：名次 / 昵称 / 人数 / 金额，四段固定，昵称吃掉剩余宽度 */
.h5-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.h5-rank-row + .h5-rank-row {
  border-top: 1px solid var(--line);
}

.h5-rank-no {
  flex: 0 0 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.h5-rank-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.h5-rank-amt {
  flex: 0 0 auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* 我的名次：榜尾单独一条，和 Top10 用上边线隔开 */
.h5-rank-me {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 话术：三个页签等宽，正文保留换行 */
.h5-mat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.h5-mat-tabs a {
  flex: 1 1 0;
  padding: 7px 0;
  border-radius: var(--r-md);
  text-align: center;
  font-size: 13px;
  transition: background-color var(--dur-press) var(--ease),
              color var(--dur-press) var(--ease);
}

.h5-mat-body {
  margin: 0;
  padding: 12px;
  border-radius: var(--r-md);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}

/* 分享面板：底部弹出的三项操作，等宽三列 */
.h5-share-sheet {
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
}

.h5-share-code {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: 2px;
}

.h5-share-grid {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.h5-share-cell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  border: 0;
  border-radius: var(--r-lg);
  font-size: 12px;
  cursor: pointer;
}

.h5-share-cell .layui-icon {
  font-size: 24px;
}

/* 邀请落地页：邀请人一行 + 三条卖点 + CTA */
.h5-guest-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h5-guest-main {
  flex: 1 1 auto;
  min-width: 0;
}

.h5-guest-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.h5-guest-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
}

.h5-guest-login {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}
