/* ==========================================================================
   泵易联 H5 移动端样式（小程序 / APK WebView 共用）
   依赖 design.css 的变量与基础类
   ========================================================================== */

html, body { height: 100%; }
body {
  background: var(--bg-app);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

#app { min-height: 100%; display: flex; flex-direction: column; }

/* ---------- 移动端骨架 ---------- */
.m-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-app);
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.m-page.no-tabbar { padding-bottom: 0; }

/* 顶部导航 */
.m-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.m-nav .nav-back {
  width: 32px; height: 32px; margin-left: -6px;
  display: grid; place-items: center; color: var(--text-primary); border-radius: var(--r-sm);
}
.m-nav .nav-back:active { background: var(--gray-100); }
.m-nav .nav-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; flex: 1; min-width: 0; }
.m-nav .nav-right { display: flex; align-items: center; gap: 6px; }

/* 主内容 */
.m-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.m-body.flush { padding: 0; gap: 0; }

/* ---------- 底部 TabBar ---------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
}
.m-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-tertiary); font-size: 11px; font-weight: 500;
  position: relative; transition: color var(--dur-fast);
}
.m-tabbar .tab.is-active { color: var(--primary-500); }
.m-tabbar .tab svg { width: 22px; height: 22px; }
.m-tabbar .tab .badge {
  position: absolute; top: 7px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand-red); color: #fff; border-radius: var(--r-full);
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
  border: 1.5px solid #fff;
}

/* ---------- 角色工作台头部 ---------- */
.m-hero {
  position: relative; overflow: hidden;
  padding: 18px 16px 22px;
  background: linear-gradient(135deg, #0E1420 0%, #1A2C4A 55%, #16406E 100%);
  color: #fff;
}
.m-hero::after {
  content: ""; position: absolute; right: -60px; top: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,37,27,.42) 0%, transparent 68%);
}
.m-hero::before {
  content: ""; position: absolute; left: -40px; bottom: -90px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,104,227,.4) 0%, transparent 70%);
}
.m-hero-inner { position: relative; z-index: 1; }
.m-hero .hello { font-size: 12px; opacity: .68; margin-bottom: 3px; }
.m-hero .name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.m-hero .role-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; margin-top: 7px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-full); font-size: 11px; font-weight: 500;
}

/* KPI 行 */
.m-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 16px;
}
.m-kpi {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 9px 8px; text-align: center;
  backdrop-filter: blur(6px);
}
.m-kpi .num { font-size: 19px; font-weight: 600; font-family: var(--font-num); letter-spacing: -.02em; line-height: 1.2; }
.m-kpi .lbl { font-size: 10.5px; opacity: .72; margin-top: 1px; }
.m-kpi.is-warn .num { color: #FFC9A3; }

/* ---------- 快捷入口 ---------- */
.m-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: #fff; border-radius: var(--r-lg); padding: 14px 6px;
  box-shadow: var(--shadow-xs); border: 1px solid var(--border);
}
.m-quick .q {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 0; border-radius: var(--r-md);
}
.m-quick .q:active { background: var(--gray-50); }
.m-quick .q .qi {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
}
.m-quick .q .qt { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }

/* ---------- 卡片 ---------- */
.m-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.m-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
}
.m-card-hd .t { font-size: 14.5px; font-weight: 600; }
.m-card-bd { padding: 14px; }
.m-card-bd.flush { padding: 0; }

/* 区块标题 */
.m-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 0; font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.m-sec-title .more { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }

/* ---------- 工单卡片 ---------- */
.m-order {
  display: block; background: #fff;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 13px 14px; box-shadow: var(--shadow-xs);
  transition: transform .1s, box-shadow var(--dur);
}
.m-order:active { transform: scale(.994); box-shadow: var(--shadow-sm); }
.m-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.m-order-no { font-family: var(--font-num); font-size: 12px; color: var(--text-tertiary); letter-spacing: -.01em; }
.m-order-cust { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.m-order-cust .cn { font-size: 15.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -.01em; }
.m-order-cust .cp { font-size: 12.5px; color: var(--text-tertiary); font-family: var(--font-num); }
.m-order-addr { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-order-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-order-ft {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--border);
}
.m-order-ft .time { font-size: 11.5px; color: var(--text-tertiary); font-family: var(--font-num); }
.m-order-ft .fee { font-size: 13px; font-weight: 600; color: var(--brand-red); font-family: var(--font-num); }

/* ---------- 筛选条 ---------- */
.m-filter {
  position: sticky; top: 52px; z-index: 40;
  display: flex; gap: 6px; padding: 10px 14px;
  background: rgba(245,247,250,.95); backdrop-filter: blur(10px);
  overflow-x: auto; scrollbar-width: none;
}
.m-filter::-webkit-scrollbar { display: none; }
.m-chip {
  flex: none; height: 30px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-full);
  font-size: 12.5px; color: var(--text-secondary); font-weight: 500;
  transition: all var(--dur-fast); white-space: nowrap;
}
.m-chip.is-active {
  background: var(--primary-500); border-color: var(--primary-500); color: #fff;
}
.m-chip .cnt { font-size: 11px; opacity: .7; }

/* ---------- 表单 ---------- */
.m-form { display: flex; flex-direction: column; gap: 0; }
.m-field {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: #fff;
}
.m-field:last-child { border-bottom: none; }
.m-field-label {
  flex: none; width: 88px; padding-top: 10px;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.4;
}
.m-field-label .req { color: var(--danger-500); margin-left: 1px; }
/* 所有位置的必填星号统一标红（含卡片标题内的 .req） */
.req { color: var(--danger-500); font-weight: 600; }
.m-card-hd .t .req { color: var(--danger-500); }
.m-field-ctrl { flex: 1; min-width: 0; }
.m-field-tip { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; line-height: 1.4; }
/* 纵向布局：子元素必须撑满整行（否则分段按钮/文本域会被压窄换行） */
.m-field.is-block { flex-direction: column; align-items: stretch; gap: 7px; }
.m-field.is-block > .m-field-ctrl { width: 100%; }
.m-field.is-block .m-segment { width: 100%; }
.m-field.is-block .m-field-label { width: auto; padding-top: 0; }
.m-field.is-error { background: #FFFCFC; }

/* 移动端输入框更大 */
.m-field .input, .m-field .select, .m-field .textarea {
  border-color: transparent; background: var(--gray-50);
  height: 40px; font-size: 15px; border-radius: var(--r-md);
}
.m-field .textarea { height: auto; min-height: 76px; padding: 10px 11px; }
.m-field .input:focus, .m-field .select:focus, .m-field .textarea:focus {
  background: #fff; border-color: var(--primary-500); box-shadow: var(--shadow-focus);
}

/* 分段控件 */
.m-segment {
  display: flex; background: var(--gray-100); border-radius: var(--r-md);
  padding: 3px; gap: 3px;
}
.m-segment .seg {
  flex: 1; min-width: 0; height: 34px; border-radius: 6px;
  font-size: 13.5px; color: var(--text-secondary); font-weight: 500;
  white-space: nowrap; transition: all var(--dur-fast);
}
.m-segment .seg.is-active {
  background: #fff; color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(16,24,40,.1); font-weight: 600;
}

/* 图片上传 */
.m-uploader { display: flex; flex-wrap: wrap; gap: 8px; }
.m-uploader .u-item, .m-uploader .u-add {
  width: 74px; height: 74px; border-radius: var(--r-md); position: relative; overflow: hidden;
}
.m-uploader .u-item img { width: 100%; height: 100%; object-fit: cover; }
.m-uploader .u-item .del {
  position: absolute; top: 2px; right: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(16,24,40,.66); color: #fff;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.m-uploader .u-add {
  display: grid; place-items: center; gap: 2px;
  background: var(--gray-50); border: 1px dashed var(--border-strong);
  color: var(--text-tertiary); font-size: 11px;
}
.m-uploader .u-add:active { background: var(--gray-100); }

/* 独立使用的上传占位块（实名认证等页面不包在 .m-uploader 里） */
.u-add {
  display: grid; place-items: center; gap: 2px;
  background: var(--gray-50); border: 1px dashed var(--border-strong);
  color: var(--text-tertiary); font-size: 11px;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  min-width: 64px; min-height: 64px;
}
.u-add:active { background: var(--gray-100); }
.u-add svg { pointer-events: none; }
.u-add span { pointer-events: none; line-height: 1.3; }

/* ---------- 底部操作栏 ---------- */
.m-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.m-actions .btn { flex: 1; height: 46px; font-size: 15.5px; font-weight: 600; border-radius: var(--r-lg); }

/* ---------- 时间轴 ---------- */
.m-timeline { position: relative; padding-left: 26px; }
.m-timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.m-tl-item { position: relative; padding-bottom: 18px; }
.m-tl-item:last-child { padding-bottom: 0; }
.m-tl-item .dot {
  position: absolute; left: -26px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--gray-300);
}
.m-tl-item.is-done .dot { border-color: var(--success-500); background: var(--success-500); }
.m-tl-item.is-current .dot { border-color: var(--primary-500); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.m-tl-item .tl-t { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.m-tl-item .tl-m { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; line-height: 1.5; }
.m-tl-item .tl-time { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-num); margin-top: 3px; }

/* ---------- 信息行 ---------- */
.m-info { display: flex; flex-direction: column; }
.m-info-row {
  display: flex; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.m-info-row:last-child { border-bottom: none; }
.m-info-row .k { flex: none; width: 84px; color: var(--text-tertiary); }
.m-info-row .v { flex: 1; min-width: 0; color: var(--text-primary); word-break: break-word; text-align: right; }
.m-info-row .v.mono { font-family: var(--font-num); }
.m-info-row .v.strong { font-weight: 600; }
.m-info-row .v.fee { font-weight: 600; color: var(--brand-red); font-family: var(--font-num); }

/* ---------- 登录页 ---------- */
.m-login {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(165deg, #0E1420 0%, #16253D 42%, #1B3A63 72%, #1E4B7A 100%);
  position: relative; overflow: hidden;
}
.m-login::before {
  content: ""; position: absolute; top: -90px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,37,27,.38), transparent 66%);
}
.m-login::after {
  content: ""; position: absolute; bottom: -120px; left: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,104,227,.32), transparent 68%);
}
.m-login-top {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 28px 20px; color: #fff;
}
.m-login-logo {
  width: 66px; height: 66px; border-radius: 17px;
  background: #fff; padding: 7px; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.m-login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.m-login-title { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.m-login-sub { font-size: 13.5px; opacity: .62; margin-top: 8px; line-height: 1.6; }
.m-login-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0,0,0,.16);
}
.m-login-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.m-login-tabs { display: flex; gap: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.m-login-tabs .lt {
  padding: 0 2px 10px; font-size: 14px; color: var(--text-tertiary);
  font-weight: 500; position: relative;
}
.m-login-tabs .lt.is-active { color: var(--text-primary); font-weight: 600; }
.m-login-tabs .lt.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--brand-red); border-radius: 2px;
}

/* ---------- 空态 / 加载 ---------- */
.m-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 56px 24px; text-align: center;
}
.m-empty .ico {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--gray-100); display: grid; place-items: center; color: var(--gray-300);
  margin-bottom: 2px;
}
.m-empty .t { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.m-empty .d { font-size: 12.5px; color: var(--text-tertiary); max-width: 240px; line-height: 1.5; }

/* ---------- 顶部下拉刷新提示 ---------- */
.m-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 22px; font-size: 12.5px; color: var(--text-tertiary);
}
.m-loadmore {
  padding: 16px; text-align: center; font-size: 12.5px; color: var(--text-tertiary);
}

/* ---------- 师傅工作台专用 ---------- */
.m-task {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-xs);
}
.m-task-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: linear-gradient(90deg, #F8FAFD, #fff);
  border-bottom: 1px solid var(--border);
}
.m-task-hd .t { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.m-task-bd { padding: 13px 14px; }
.m-task-ft {
  display: flex; gap: 8px; padding: 0 14px 13px;
}
.m-task-ft .btn { flex: 1; height: 40px; border-radius: var(--r-md); font-weight: 600; }

/* 步骤条 */
.m-steps { display: flex; align-items: center; gap: 0; padding: 14px; background: #fff; }
.m-steps .st {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative;
}
.m-steps .st::before {
  content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.m-steps .st:first-child::before { display: none; }
.m-steps .st.is-done::before { background: var(--success-500); }
.m-steps .st .sc {
  width: 20px; height: 20px; border-radius: 50%; z-index: 1;
  background: var(--gray-200); color: var(--text-tertiary);
  display: grid; place-items: center; font-size: 10px; font-weight: 600;
}
.m-steps .st.is-done .sc { background: var(--success-500); color: #fff; }
.m-steps .st.is-current .sc { background: var(--primary-500); color: #fff; box-shadow: 0 0 0 3px var(--primary-50); }
.m-steps .st .sl { font-size: 10.5px; color: var(--text-tertiary); white-space: nowrap; }
.m-steps .st.is-done .sl, .m-steps .st.is-current .sl { color: var(--text-secondary); font-weight: 500; }

/* ==========================================================================
   小程序客户端（买家）—— 产品 / 服务 / 我的
   ========================================================================== */

/* 简洁表单行（客户端页面专用，比 PC 的 .field 更紧凑） */
.fld {
  display: block; padding: 11px 0; border-bottom: 1px solid var(--border);
}
.fld:last-child { border-bottom: 0; }
.fld > span {
  display: block; font-size: 12px; color: var(--text-tertiary); margin-bottom: 5px;
}
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--text-primary); font-family: inherit;
}
.fld input::placeholder { color: var(--gray-300, #D0D5DD); }

.hint {
  font-size: 12px; color: var(--text-tertiary); line-height: 1.6;
  padding: 10px 12px; background: var(--warning-50); border-radius: var(--r-sm);
}
.hint.center { text-align: center; background: transparent; padding: 18px 12px; }
.hint a { color: var(--primary-500); text-decoration: none; font-weight: 500; }

/* 产品列表 */
.c-hero {
  padding: 18px 16px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #0E1420 0%, #1A2C4A 60%, #16406E 100%);
}
.c-hero-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.c-hero-s { font-size: 12px; opacity: .78; margin-top: 5px; }

.c-prod {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px; box-shadow: var(--shadow-xs);
}
.c-prod:active { background: var(--gray-50); }
.c-prod-img {
  width: 68px; height: 68px; flex: 0 0 68px; border-radius: var(--r-sm);
  background: var(--gray-100) center/cover no-repeat;
  display: grid; place-items: center; color: var(--gray-400, #98A2B3);
}
.c-prod-main { flex: 1; min-width: 0; }
.c-prod-name { font-size: 14.5px; font-weight: 600; }
.c-prod-model { font-size: 11.5px; color: var(--primary-600); margin-top: 2px; }
.c-prod-desc { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-prod-arrow { color: var(--gray-300, #D0D5DD); flex: 0 0 auto; }

/* 产品详情 */
.c-detail-img {
  width: 100%; height: 190px; border-radius: var(--r-lg);
  background: var(--gray-100) center/cover no-repeat;
  display: grid; place-items: center; color: var(--gray-400, #98A2B3);
}
.c-detail-name { font-size: 18px; font-weight: 700; }
.c-detail-meta { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; }
.c-intro { font-size: 13.5px; line-height: 1.75; color: var(--text-secondary); white-space: pre-wrap; }
.c-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-gallery-item { padding-top: 100%; border-radius: var(--r-sm); background: var(--gray-100) center/cover no-repeat; }
.c-actions { display: flex; gap: 10px; padding: 6px 0 12px; }
.c-actions .btn { flex: 1; }

/* 服务入口 */
.c-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-entry-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 12px; box-shadow: var(--shadow-xs);
}
.c-entry-item:active { background: var(--gray-50); }
.c-entry-ic {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 8px;
}
.c-entry-ic.ic-warranty { background: var(--warning-50); color: var(--warning-500); }
.c-entry-ic.ic-install { background: var(--primary-50); color: var(--primary-500); }
.c-entry-t { font-size: 14px; font-weight: 600; }
.c-entry-s { font-size: 11.5px; color: var(--text-tertiary); margin-top: 3px; }

.c-chip {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full);
  white-space: nowrap;
}
.c-chip.is-doing { background: var(--primary-50); color: var(--primary-600); }
.c-chip.is-done { background: var(--success-50); color: var(--success-500); }

/* 进度步骤 */
.c-steps { display: flex; align-items: flex-start; gap: 0; padding: 10px 2px 4px; }
.c-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.c-step::before {
  content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--border);
}
.c-step:first-child::before { display: none; }
.c-step.done::before { background: var(--success-500); }
.c-step .dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--gray-200); z-index: 1;
}
.c-step.done .dot { background: var(--success-500); box-shadow: 0 0 0 3px var(--success-50); }
.c-step .lb { font-size: 10px; color: var(--text-tertiary); white-space: nowrap; }
.c-step.done .lb { color: var(--text-secondary); font-weight: 500; }

/* 我的 */
.c-me {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px; box-shadow: var(--shadow-xs);
}
.c-me-avatar {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
  background: var(--gray-100) center/cover no-repeat;
  display: grid; place-items: center; color: var(--gray-400, #98A2B3);
}
.c-me-main { flex: 1; min-width: 0; }
.c-me-name { font-size: 16px; font-weight: 700; }
.c-me-phone { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; }
.c-avatar-row { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; }

.c-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-kpi {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow-xs);
}
.c-kpi .n { font-size: 19px; font-weight: 700; color: var(--text-primary); }
.c-kpi .l { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }

.c-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
}
.c-row:last-child { border-bottom: 0; }
.c-row:active { background: var(--gray-50); }
.c-row-ic { color: var(--text-tertiary); display: grid; place-items: center; }
.c-row-t { flex: 1; font-size: 14px; }
.c-row-a { color: var(--gray-300, #D0D5DD); display: grid; place-items: center; }
.c-pwd { padding: 4px 14px 14px; }

/* 设备档案 */
.c-dev-hd { display: flex; align-items: center; gap: 8px; }
.c-dev-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.c-dev-act { display: flex; gap: 4px; }
.c-dev-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--text-tertiary); flex-wrap: wrap; }
.c-dev-addr { margin-top: 6px; font-size: 12px; color: var(--text-secondary); }

/* 弹窗 */
.c-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(14, 20, 32, .5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}
.c-modal-box {
  width: 100%; max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px 20px;
}
.c-modal-hd { font-size: 16px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.c-modal-ft { display: flex; gap: 10px; padding-top: 16px; }
.c-modal-ft .btn { flex: 1; }
