/* 客户 H5 前台 · 与小程序同一套 Apple 风格 Design Token
 * 颜色 / 圆角 / 阴影 / 文案层级逐项对照 app.wxss 与各页面 wxss（rpx ÷ 2 = px）
 * 改这里之前先看 it-service-miniprogram/app.wxss，两边要保持一个视觉。 */
:root {
  --bg-canvas: #F5F5F7;
  --bg-card: #FFFFFF;
  --line: rgba(60, 60, 67, 0.12);
  --text-1: #1D1D1F;
  --text-2: #3C3C43;
  --text-3: #6E6E73;
  --text-4: #86868B;
  --brand: #0071E3;
  --brand-soft: #E8F1FF;
  --ok: #248A3D;
  --ok-soft: #E8F9EE;
  --warn: #C77700;
  --warn-soft: #FFF4E0;
  --danger: #D70015;
  --danger-soft: #FFECEB;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-canvas); color: var(--text-1);
  font-family: -apple-system, "SF Pro SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.6;
  font-variant-numeric: tabular-nums;
  padding-bottom: env(safe-area-inset-bottom);
}
.page { padding: 8px 0 0; }
a { text-decoration: none; color: inherit; }

/* ===== 页头（eyebrow + 大标题 + 副标题，同 repair-create/home） ===== */
.page-hero { padding: 16px 24px 6px; }
.hero-eyebrow, .page-eyebrow {
  font-size: 11px; letter-spacing: 3px; color: var(--brand);
  font-weight: 700; text-transform: uppercase; margin-bottom: 4px;
}
.page-title, .hero-title {
  font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.2;
  color: var(--text-1);
}
.page-sub, .hero-sub { font-size: 13px; color: var(--text-4); margin-top: 4px; }
.hero-underline {
  width: 28px; height: 4px; border-radius: 2px;
  background: var(--brand); margin-top: 10px;
}

/* ===== 卡片 ===== */
.card {
  margin: 0 16px 12px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 0.5px solid rgba(255,255,255,0.8);
}
.card.plain { padding: 22px 0; }

/* ===== 分组标题（蓝色竖条） ===== */
.section { margin-bottom: 20px; }
.section-head { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; }
.sh-bar { width: 3px; height: 20px; border-radius: 1.5px; background: var(--brand); align-self: flex-start; margin-top: 3px; flex-shrink: 0; }
.sh-body { flex: 1; min-width: 0; }
.sh-title { font-size: 17px; font-weight: 800; letter-spacing: -0.25px; color: var(--text-1); }
.sh-sub { font-size: 11px; color: var(--text-4); margin-top: 2px; }
.sh-more { font-size: 12px; color: var(--brand); font-weight: 500; flex-shrink: 0; }

/* ===== 首页：进行中工单提示 ===== */
.notice {
  margin: 0 16px 16px; background: var(--brand-soft);
  border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 9px; cursor: pointer;
}
.notice-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0,113,227,0.45);
  animation: pulse 1.9s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,113,227,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(0,113,227,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,113,227,0); }
}
.notice-body { flex: 1; min-width: 0; }
.notice-text { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.notice-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-arrow { color: var(--brand); font-size: 17px; opacity: 0.6; flex-shrink: 0; }

/* ===== 首页：三入口（一张卡内三等分 + 渐变图标块） ===== */
.entries-group { display: flex; align-items: stretch; padding: 22px 0 20px; }
.entry {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.15s cubic-bezier(0.32,0.72,0,1); cursor: pointer; position: relative;
}
.entry:active { transform: scale(0.94); }
.entry-tile {
  width: 50px; height: 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.3);
}
.tile-icon { width: 29px; height: 29px; }
.tile-mall   { background: linear-gradient(150deg, #0A84FF, #0060CC); }
.tile-rent   { background: linear-gradient(150deg, #30D158, #229A43); }
.tile-repair { background: linear-gradient(150deg, #FF9F0A, #E07600); }
.entry-name { font-size: 15px; font-weight: 700; color: var(--text-1); letter-spacing: 0.5px; }
.entry-desc { font-size: 10.5px; color: var(--text-4); margin-top: 3px; }
.entry.soon .entry-tile { filter: grayscale(1); opacity: 0.45; }
.entry.soon .entry-name { color: var(--text-3); }
.soon-flag {
  position: absolute; top: -6px; right: 8px; font-size: 9px;
  background: rgba(120,120,128,0.14); color: var(--text-4);
  border-radius: 20px; padding: 1px 7px;
}
.v-line { width: 0.5px; background: var(--line); margin: 3px 0; }

/* ===== 首页：服务行卡片 ===== */
.row-card {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px; cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.32,0.72,0,1);
}
.row-card:active { transform: scale(0.985); }
.row-tile {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.3);
}
.row-icon { width: 25px; height: 25px; }
.tile-user    { background: linear-gradient(150deg, #0A84FF, #0060CC); }
.tile-support { background: linear-gradient(150deg, #5E5CE6, #4240B0); }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 600; color: var(--text-1); }
.row-sub { font-size: 11.5px; color: var(--text-4); margin-top: 2.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-arrow { color: #C7C7CC; font-size: 18px; font-weight: 400; flex-shrink: 0; }

/* ===== 表单 ===== */
.section-title {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  padding: 14px 24px 6px; text-transform: uppercase; letter-spacing: 2px;
}
.field-label { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 12px 0 6px; display: block; }
.field-label:first-child { margin-top: 0; }
.field-hint { font-size: 11px; color: var(--text-4); margin-top: 6px; }
.req { color: var(--danger); }

input[type=text], input[type=tel], input[type=date], textarea, select {
  width: 100%; border: none; border-radius: 10px;
  background: #F5F5F7; color: var(--text-1);
  height: 44px; padding: 0 14px; font-size: 15px; outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 90px; padding: 12px 14px; resize: none; line-height: 1.6; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 2px rgba(0,113,227,0.35); }

.chip-wrap, .tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .tag {
  background: #F5F5F7; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--text-2);
  cursor: pointer; user-select: none;
}
.chip-on, .tag-on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

.type-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip {
  background: #F5F5F7; border-radius: 9px; padding: 7px 14px;
  font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none;
}
.type-chip-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.row-2 { display: flex; gap: 10px; }
.row-2-item { flex: 1; min-width: 0; }

.switch-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 15px; padding-top: 13px; border-top: 0.5px solid var(--line);
}
.switch-title { font-size: 14px; font-weight: 700; }
.switch-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.switch-row input { width: 40px; height: 24px; accent-color: var(--brand); }

/* 紧急程度（纵向列表，同 repair-create） */
.urgency-list { display: flex; flex-direction: column; gap: 8px; }
.urgency {
  background: #F5F5F7; border-radius: 10px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.urgency-on { background: var(--brand-soft); }
.urgency-label { font-size: 14px; font-weight: 600; color: var(--text-1); }
.urgency-on .urgency-label { color: var(--brand); }
.urgency-sub { font-size: 11px; color: var(--text-4); }
.urgency-on .urgency-sub { color: var(--brand); }

/* 照片九宫格 */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-cell { position: relative; width: 98px; height: 98px; }
.photo { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; background: #F5F5F7; }
.photo-del {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
}
.photo-add {
  width: 98px; height: 98px; border-radius: 10px;
  background: #F5F5F7; border: 1px dashed rgba(60,60,67,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-4); cursor: pointer;
}
.photo-tip { font-size: 11px; color: var(--text-4); margin-top: 8px; }

/* ===== 按钮（胶囊） ===== */
.btn-primary {
  display: block; width: 100%; border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  border-radius: 22px; font-size: 16px; font-weight: 600;
  height: 44px; line-height: 44px; text-align: center; font-family: inherit;
}
.btn-primary:disabled { background: rgba(0,113,227,0.35); color: rgba(255,255,255,0.8); }
.btn-ghost {
  display: block; width: 100%; border: none; cursor: pointer;
  background: rgba(120,120,128,0.12); color: var(--text-1);
  border-radius: 22px; font-size: 15px; height: 42px; line-height: 42px;
  text-align: center; font-family: inherit;
}
.action-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.14);
  border: 0.5px solid rgba(255,255,255,0.65);
  z-index: 50; max-width: 496px; margin: 0 auto;
}
.action-bar .act { flex: 1; }
.bottom-space { height: 90px; }

/* ===== 状态胶囊（与 components/status-tag 完全同色） ===== */
.pill {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 600;
}
.tone-brand   { background: #E8F1FF; color: #0071E3; }
.tone-info    { background: #E8F1FF; color: #0071E3; }
.tone-ok      { background: #E8F9EE; color: #248A3D; }
.tone-warn    { background: #FFF4E0; color: #C77700; }
.tone-danger  { background: #FFECEB; color: #D70015; }
.tone-neutral { background: rgba(120,120,128,0.12); color: #6E6E73; }

/* ===== 工单列表卡片（同 repair-list） ===== */
.order-card { cursor: pointer; }
.order-head { display: flex; justify-content: space-between; align-items: center; }
.order-no { font-size: 11.5px; color: var(--text-3); }
.order-body { margin-top: 6px; }
.order-main { font-size: 15px; font-weight: 700; color: var(--text-1); }
.order-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.mini-tag {
  font-size: 10.5px; color: var(--text-3);
  background: rgba(120,120,128,0.10); border-radius: 6px; padding: 1px 8px;
}
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-time { font-size: 11px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.urg { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.urg-P0 { color: var(--danger); }
.urg-P1 { color: var(--warn); }
.urg-P2 { color: var(--text-3); }
.urg-P3 { color: var(--text-4); }

/* 受理提示条 / 处理结果（同 progress.wxss 的左右色条卡片） */
.accept-card { border-left: 3px solid var(--brand); }
.accept-card .acc-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.accept-card .acc-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.fix-card { border-left: 3px solid #34C759; }
.fix-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #248A3D; text-transform: uppercase; }
.fix-desc { font-size: 14px; color: var(--text-1); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fix-meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

.photo-grid-sm { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.photo-grid-sm img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: rgba(120,120,128,0.10); }

/* ===== 处理轨迹时间线（同 styles/progress.wxss） ===== */
.timeline { padding: 2px 0 2px 3px; position: relative; }
.tl-item { display: flex; gap: 11px; position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: 7.5px; top: 17px; bottom: -3px;
  width: 1px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--bg-card); border: 2px solid rgba(120,120,128,0.28);
  margin-top: 2px; z-index: 1;
}
.tl-dot-now { border-color: var(--brand); background: var(--brand-soft); }
.tl-body { flex: 1; padding-bottom: 15px; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-action { font-size: 14.5px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-1); }
.tl-role {
  font-size: 9.5px; border-radius: 4px; padding: 1.5px 6px;
  font-weight: 600; letter-spacing: 0.5px;
}
.role-USER { background: var(--brand-soft); color: var(--brand); }
.role-TECH, .role-WORKER { background: var(--ok-soft); color: #248A3D; }
.role-ADMIN { background: var(--warn-soft); color: var(--warn); }
.role-SYSTEM { background: rgba(120,120,128,0.12); color: var(--text-3); }
.tl-remark { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tl-time { font-size: 10.5px; color: var(--text-4); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ===== 成功页 / 空状态 ===== */
.empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; color: var(--text-3); text-align: center;
}
.empty-art {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 10px;
}
.art-ok { background: var(--ok-soft); color: #248A3D; }
.art-ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-title { font-size: 16px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.empty-sub { font-size: 13px; color: var(--text-3); }
.empty .btn-ghost { margin-top: 16px; width: auto; padding: 0 22px; }

/* ===== 页脚 / toast ===== */
.foot-note { text-align: center; font-size: 10.5px; color: #C7C7CC; letter-spacing: 0.5px; padding: 4px 0 24px; }
.toast {
  position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%) translateY(10px);
  background: rgba(20,22,28,.92); color: #fff; font-size: 14px;
  border-radius: 12px; padding: 10px 18px; max-width: 80vw;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-err { background: rgba(180,50,45,.95); }

/* ===== 商城 / 租赁列表 ===== */
.search-row { display: flex; gap: 8px; margin: 0 16px 10px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border-radius: 12px; padding: 0 12px; height: 38px;
  box-shadow: var(--shadow-card);
}
.search-box .si { color: var(--text-4); font-size: 15px; }
.search-box input { flex: 1; height: 100%; background: transparent; padding: 0; font-size: 14px; border-radius: 0; }
.search-box input:focus { box-shadow: none; }
.orders-btn {
  background: var(--brand); color: #fff; border-radius: 12px; padding: 0 16px;
  display: flex; align-items: center; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.cat-scroll { overflow-x: auto; padding: 2px 16px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-row { display: flex; gap: 8px; width: max-content; }
.cat-chip {
  background: var(--bg-card); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.cat-on { background: #1D1D1F; color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .cat-on { background: #F5F5F7; color: #1D1D1F; } }
.prod-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px; }
.p-card {
  width: calc(50% - 5px); background: var(--bg-card); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.32,0.72,0,1);
}
.p-card:active { transform: scale(0.97); }
.p-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #F5F5F7; display: block; }
.p-img.empty { display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--text-4); }
.p-body { padding: 10px 12px 12px; }
.p-name {
  font-size: 13.5px; font-weight: 600; color: var(--text-1); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}
.p-spec { font-size: 11px; color: var(--text-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-price { margin-top: 6px; font-size: 17px; font-weight: 800; color: var(--brand); }
.p-price .pu { font-size: 11px; font-weight: 400; color: var(--text-4); margin-left: 2px; }
.p-sub { font-size: 10.5px; color: var(--text-4); margin-top: 2px; }

/* ===== 详情 ===== */
.d-img { margin: 0 16px; border-radius: 16px; overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-card); }
.d-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.d-price { font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; }
.d-price .pu { font-size: 12px; font-weight: 400; color: var(--text-4); }
.hl { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.hl::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.desc-text { font-size: 13.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* 数量步进器 */
.stepper { display: flex; align-items: center; border-radius: 10px; overflow: hidden; border: 0.5px solid var(--line); width: max-content; }
.stepper button { width: 34px; height: 34px; border: none; background: #F5F5F7; font-size: 17px; cursor: pointer; color: var(--text-1); font-family: inherit; }
.stepper .st-num { width: 44px; text-align: center; font-size: 15px; font-weight: 600; }

/* 租期/金额小结 */
.summary { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 2px 0; }
.sum-row .v { font-weight: 600; color: var(--text-1); }
.sum-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 0.5px solid rgba(0,113,227,0.25); margin-top: 6px; padding-top: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.sum-total .v { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }

/* 提交栏带合计 */
.ab-amount { text-align: left; padding-left: 4px; }
.ab-total { font-size: 19px; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; line-height: 1.2; }
.ab-sub { font-size: 10.5px; color: var(--text-4); }
.action-bar .act-buy { flex: 1.4; }

/* ===== 我的单据：三 Tab ===== */
.tabs { display: flex; gap: 8px; padding: 0 16px 12px; }
.tab {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 12px;
  background: var(--bg-card); font-size: 13.5px; color: var(--text-2);
  box-shadow: var(--shadow-card); cursor: pointer; font-weight: 600;
}
.tab.on { background: var(--brand); color: #fff; }

/* 详情内的商品行 */
.item-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.item-row .iv { font-weight: 600; color: var(--text-1); white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.kv .k { color: var(--text-4); flex-shrink: 0; }
.kv .v { text-align: right; color: var(--text-1); word-break: break-all; }

/* ===== 商品占位色块（无图时：渐变底 + 分类首字 + 折扣角标，同小程序商城） ===== */
.ph-tile {
  width: 100%; aspect-ratio: 1/1; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ph-char { font-size: 44px; font-weight: 800; color: rgba(255,255,255,0.92); letter-spacing: 2px; }
.ph-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,0.92); color: var(--danger);
  font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
}
.p-price-row { display: flex; align-items: baseline; gap: 6px; }
.p-market { font-size: 11px; color: var(--text-4); text-decoration: line-through; }
.p-stock { font-size: 10.5px; color: var(--text-4); margin-top: 3px; }

/* ===== 租赁单列横排卡（同小程序 rent 列表） ===== */
.r-card {
  display: flex; gap: 12px; padding: 14px;
  background: var(--bg-card); border-radius: 14px;
  box-shadow: var(--shadow-card); margin: 0 16px 10px;
  cursor: pointer; transition: transform 0.15s cubic-bezier(0.32,0.72,0,1);
}
.r-card:active { transform: scale(0.98); }
.r-tile {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: rgba(255,255,255,0.92);
}
.r-body { flex: 1; min-width: 0; }
.r-name { font-size: 16px; font-weight: 700; color: var(--text-1); line-height: 1.35; }
.r-spec { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.r-right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.r-price { font-size: 17px; font-weight: 800; color: var(--brand); }
.r-price .pu { font-size: 11px; font-weight: 400; }
.r-dep { font-size: 11.5px; color: var(--text-3); }
.r-stock { font-size: 11.5px; color: #248A3D; font-weight: 600; }
.r-stock.out { color: var(--text-4); font-weight: 400; }

/* 详情页占位大图 */
.d-ph { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.d-ph .ph-char { font-size: 72px; }

/* ===== 购物车浮动按钮 + 徽标 ===== */
.cart-fab {
  position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px;
  background: rgba(29,29,31,0.92); color: #fff;
  border-radius: 999px; padding: 11px 18px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; z-index: 40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 16px 40px rgba(0,0,0,0.22);
}
.cart-fab .n {
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; padding: 1px 6px; min-width: 16px; text-align: center;
}
/* 购物车行 */
.cart-item { display: flex; gap: 10px; align-items: center; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.cart-item .ci-price { font-size: 13px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.cart-item .ci-del { border: none; background: none; color: var(--text-4); font-size: 18px; cursor: pointer; padding: 4px; }
.hero-orders-pill {
  position: absolute; right: 16px; top: 14px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
