/* screens-c.css — 只属于该组页面的补充样式。优先复用 ui.css 里的组件；
   新增样式必须只用 tokens.css 的变量，禁止写死颜色 / 圆角 / 阴影。 */

/* ---------- 分段控件里的数量角标 ---------- */
.c-seg__in { display: flex; align-items: center; }
.c-seg__n { margin-left: var(--sp-4); font-size: var(--fs-11); opacity: .55; }

/* ---------- 吸顶筛选条（订单 / 消息） ---------- */
.c-sticky {
  position: sticky; top: 0; z-index: 6;
  padding: var(--sp-8) var(--sp-16) var(--sp-10);
  background: var(--c-bg);
}

/* ---------- 系统头像（平台派单助手） ---------- */
.oz-sys {
  width: 48px; height: 48px; border-radius: var(--r-99); flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--c-fill); color: var(--c-text-3);
}
.oz-sys--sm { width: 34px; height: 34px; }

/* ---------- 订单卡内的浅色提示块 ---------- */
.c-softbox {
  padding: var(--sp-10) var(--sp-12);
  border-radius: var(--r-10); background: var(--c-fill);
  color: var(--c-text-3);
}

/* ---------- 行内文字按钮 ---------- */
.c-link {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-12); color: var(--c-brand-ink);
}
.c-link:active { opacity: .6; }

/* ---------- 订单详情 · 品牌渐变状态头 ---------- */
.od-hero__btn { color: inherit; }
.od-hero__title { font-size: var(--fs-17); font-weight: var(--fw-s); letter-spacing: -.01em; }
.od-hero__st { font-size: var(--fs-15); font-weight: var(--fw-s); }
.od-hero .dot { background: var(--c-brand-soft); }
.od-hero__tag { height: 22px; background: var(--c-brand-strong); color: var(--c-brand-soft); }
.od-hero__num {
  font-size: var(--fs-28); font-weight: var(--fw-s); letter-spacing: -.02em;
  line-height: var(--lh-tight); margin-top: var(--sp-6);
  /* 倒计时每秒变一次：等宽数字，位数变化时整体不左右跳 */
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.od-hero__num--sm { font-size: var(--fs-24); }
.od-hero__cap { font-size: var(--fs-12); opacity: .85; margin-top: var(--sp-2); }
.od-hero__line {
  font-size: var(--fs-13); margin-top: var(--sp-10); padding-top: var(--sp-10);
  border-top: 1px solid var(--c-brand-weak);
}

/* ---------- 地图：陪诊师实时位置 ---------- */
.map__pin-dot--escort { background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }

/* ---------- 圆形操作按钮（消息 / 电话） ---------- */
.od-round {
  width: 38px; height: 38px; border-radius: var(--r-99); flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand-ink);
  transition: transform var(--t-fast) var(--ease-out);
}
.od-round:active { transform: scale(.92); }
.od-round--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }

/* ---------- 录音回放条 ---------- */
.od-audio__btn {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: 34px; padding: 0 var(--sp-12); flex: 0 0 auto;
  border-radius: var(--r-99);
  background: var(--c-brand-soft); color: var(--c-brand-ink);
  font-size: var(--fs-12); font-weight: var(--fw-m);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast);
}
.od-audio__btn:active { transform: scale(.94); }
.od-audio__btn.c-on { background: var(--c-brand); color: var(--c-brand-soft); }
.od-audio__bar .progress__bar { background: var(--c-brand); transition: width 120ms linear; }

/* ---------- 拨号面板 ---------- */
.c-call { padding: var(--sp-8) 0 var(--sp-12); text-align: center; }
.c-call__num { font-size: var(--fs-24); font-weight: var(--fw-s); letter-spacing: .04em; font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- 评价面板 ---------- */
.c-rate__stars { display: flex; justify-content: center; gap: var(--sp-8); }
.c-rate__star { color: var(--c-line-2); transition: transform var(--t-fast) var(--ease-spring); }
.c-rate__star--on { color: var(--c-warn); }
.c-rate__star:active { transform: scale(1.14); }
.c-rate__tip { text-align: center; font-size: var(--fs-12); color: var(--c-text-3); margin-top: var(--sp-6); }
.c-rate__ta {
  width: 100%; min-height: 72px; padding: var(--sp-10) var(--sp-12);
  border-radius: var(--r-10); background: var(--c-fill); border: 1px solid transparent;
  font-size: var(--fs-13); line-height: var(--lh-body); resize: none;
}
.c-rate__ta:focus { outline: none; background: var(--c-card); border-color: var(--c-brand); }

/* ---------- 会话行 · 更多按钮 ---------- */
.c-more {
  width: 28px; height: 28px; border-radius: var(--r-8); flex: 0 0 auto;
  display: grid; place-items: center; color: var(--c-text-4);
}
.c-more:active { background: var(--c-fill); color: var(--c-text-2); }

/* ---------- 行内右侧：时间戳 / 未读角标不参与压缩 ----------
   预览文字是 `.ellipsis`（可收缩），右侧这组默认也会被一起压缩：
   实测「9 分钟前」被挤成 2 行、「5 小时前」竖排成 4 行。
   角标与时间必须 flex:0 0 auto + nowrap，让压缩只发生在预览文字上。 */
.c-meta { flex: 0 0 auto; white-space: nowrap; }
.c-time {
  flex: 0 0 auto; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 两行列表的副行间距（标题行与副行统一 2px） ---------- */
.c-line { margin-top: var(--sp-2); }

/* ---------- 未读角标消失动效 ---------- */
.c-pop { animation: cPop 240ms var(--ease-out) forwards; }
@keyframes cPop { to { transform: scale(.3); opacity: 0; } }

/* ---------- 聊天底栏：快捷短语 + 输入框叠在一起 ---------- */
.c-chatbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--c-card); border-top: 1px solid var(--c-line);
  padding-bottom: var(--h-home);
}
.c-chatbar .chip-row { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.c-chatbar .chat-input {
  position: static; left: auto; right: auto; bottom: auto;
  padding: var(--sp-2) var(--sp-12) var(--sp-8);
  background: transparent; border-top: 0; backdrop-filter: none; z-index: auto;
}

/* ---------- 图片消息占位（无外链图片） ---------- */
.c-imgph {
  width: 148px; height: 104px; border-radius: var(--r-12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-6);
  background: linear-gradient(135deg, var(--c-brand-soft) 0%, var(--c-info-soft) 100%);
  color: var(--c-brand-ink);
}
.c-imgph__name { font-size: var(--fs-11); }

/* ---------- 报告 / 摘要长文 ---------- */
.c-report .hr { margin: var(--sp-10) 0; }

/* ---------- 服务详情 · 可以指定陪诊师入口：名称与说明压到同一行 ---------- */
.svc-escort__body { display: flex; align-items: baseline; gap: var(--sp-8); min-width: 0; }
.svc-escort__body .t-h3 { white-space: nowrap; flex: 0 0 auto; }
.svc-escort__body .t-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- 服务详情 · 选择规格描述与角标同一行 ---------- */
/* 描述过长省略号收尾，右侧角标不收缩，避免描述换行把角标挤成两行 */
#svSpecDesc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
#svSpecTag { flex: 0 0 auto; white-space: nowrap; }
