/* ==========================================================================
   screens-c.css — C 组补充样式：我的订单 / 订单详情 / 消息中心 / 我的
   规则：只用 tokens.css 变量；新类一律 od- 前缀；字号 / 字重 / 间距走阶内值。
   ========================================================================== */

/* ---------- 订单卡：操作按钮行 ---------- */
.odacts {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--sp-8); margin-top: var(--sp-12);
}

/* ---------- 通用小头像（订单卡 / 订单信息行） ---------- */
.odava--xs { width: 28px; height: 28px; border-radius: var(--r-8); }
.odava--sm { width: 24px; height: 24px; border-radius: var(--r-6); }

/* ---------- 订单详情 · 状态头 ---------- */
.odhead__st {
  display: block; font-size: var(--fs-24); font-weight: var(--fw-s);
  letter-spacing: -.02em; line-height: var(--lh-tight); color: var(--c-text-1);
}
.odhead__sub { display: block; font-size: var(--fs-12); color: var(--c-text-3); margin-top: var(--sp-2); }
.odhead__sub b { color: var(--c-accent); font-size: var(--fs-14); font-family: var(--font-num); }
.odpulse { width: var(--sp-8); height: var(--sp-8); border-radius: var(--r-99); background: var(--c-brand); flex: 0 0 auto; }

/* 到院时间大字 */
.odat { display: flex; align-items: baseline; gap: var(--sp-8); }
.odat__d {
  font-family: var(--font-num); font-size: var(--fs-24); font-weight: var(--fw-s);
  letter-spacing: -.02em; color: var(--c-text-1);
}
.odat__t { font-size: var(--fs-15); color: var(--c-text-2); }

/* 取消原因条 */
.odreason {
  font-size: var(--fs-13); color: var(--c-text-2); line-height: var(--lh-body);
  background: var(--c-fill); border-radius: var(--r-8); padding: var(--sp-8) var(--sp-12);
}

/* ---------- 体检报告摘要（抽屉内） ---------- */
.odrep { text-align: left; }
.odrep__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12);
  padding: var(--sp-8) 0; font-size: var(--fs-13);
}
.odrep__row + .odrep__row { border-top: 1px solid var(--c-line); }
.odrep__k { color: var(--c-text-3); }
.odrep__v { color: var(--c-text-1); font-weight: var(--fw-m); }
.odrep__v--ok { color: var(--c-success-ink); }
.odrep__note {
  font-size: var(--fs-11); color: var(--c-text-3); line-height: var(--lh-body);
  margin-top: var(--sp-8); text-align: left;
}

/* ---------- 消息中心 ---------- */
.odnote__ic {
  width: 36px; height: 36px; border-radius: var(--r-10);
  display: grid; place-items: center; flex: 0 0 auto;
}
.odnote__ic--warn { background: var(--c-warn-soft); color: var(--c-warn-ink); }
.odnote__ic--info { background: var(--c-info-soft); color: var(--c-info-ink); }
.odnote__ic--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.odnote__ic--brand { background: var(--c-brand-soft); color: var(--c-brand-ink); }

/* ---------- 我的 · 会员码按钮（沉浸头内） ---------- */
.odcodebtn {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: 32px; padding: 0 var(--sp-12); border-radius: var(--r-99);
  background: var(--c-image-tint); color: var(--c-on-brand);
  font-size: var(--fs-12); font-weight: var(--fw-m);
}
.odcodebtn:active { background: var(--c-image-tint-2); }

/* ---------- 我的 · 资产三宫格 ---------- */
.odasset { display: grid; grid-template-columns: repeat(3, 1fr); padding: var(--sp-12) 0; }
.odasset__cell {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); padding: var(--sp-4) var(--sp-8);
}
.odasset__cell + .odasset__cell::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--c-line);
}
.odasset__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.02em; color: var(--c-text-1);
}
.odasset__k { font-size: var(--fs-12); color: var(--c-text-3); }

/* ---------- 我的 · 宠物行 ---------- */
.odpets { display: flex; align-items: center; gap: var(--sp-12); }
/* 名称与说明压到同一行，说明省略号收尾 */
.odpets__body { display: flex; align-items: baseline; gap: var(--sp-8); min-width: 0; }
.odpets__body .t-h3 { white-space: nowrap; flex: 0 0 auto; }
.odpets__body .t-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.odpets__avas { display: flex; }
.odpets__ava { width: 32px; height: 32px; border-radius: var(--r-8); box-shadow: 0 0 0 2px var(--c-card); }
.odpets__avas .odpets__ava + .odpets__ava { margin-left: calc(-1 * var(--sp-8)); }

/* ---------- 我的 · 订单四格（横向一行四个图标） ---------- */
.odgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.odcard { padding: var(--sp-8); }
.odcell {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-2); border-radius: var(--r-12);
  transition: background var(--t-fast);
}
.odcell:active { background: var(--c-fill); }
.odcell__ic { width: 32px; height: 32px; border-radius: var(--r-10); display: grid; place-items: center; }
.odcell__ic--warn { background: var(--c-warn-soft); color: var(--c-warn-ink); }
.odcell__ic--brand { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.odcell__ic--success { background: var(--c-success-soft); color: var(--c-success-ink); }
.odcell__ic--mute { background: var(--c-fill); color: var(--c-text-3); }
.odcell__k { font-size: var(--fs-12); color: var(--c-text-2); }
.odcell__k b { color: var(--c-text-1); font-family: var(--font-num); }
/* 资产三格：¥ 与数字同一档（父级 600，b 自己也要写，否则被 .num 的 500 拉开） */
.odasset__v b { font-weight: var(--fw-s); }

/* ---------- 会员码（抽屉内） ---------- */
.odqr {
  display: grid; grid-template-columns: repeat(8, 14px); grid-auto-rows: 14px;
  gap: var(--sp-4); justify-content: center;
  padding: var(--sp-12); background: var(--c-card);
  border: 1px solid var(--c-line); border-radius: var(--r-12);
}
.odqr__c--on { background: var(--c-text-1); }
.odqr__note { font-size: var(--fs-11); color: var(--c-text-3); text-align: center; margin-top: var(--sp-8); }
.odcode { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-top: var(--sp-12); }
.odcode b {
  font-family: var(--font-num); font-size: var(--fs-24); font-weight: var(--fw-s);
  letter-spacing: .06em; color: var(--c-text-1);
}
