/* ==========================================================================
   screens-a.css — A 组：search（搜索）/ service（服务详情）/ escorts（陪诊师列表）
   只补 ui.css 里没有的结构性样式。颜色 / 圆角 / 阴影 / 间距 / 字号一律取 tokens.css，
   语义色通过挂 ui.css 的 .tag--* 类获得，本文件不写死任何色值。
   ========================================================================== */

/* ---------- 通用小件 ---------- */
.chip { cursor: pointer; }                     /* span 形态的 chip 也要有手型 */
.hl { font-style: normal; color: var(--c-brand-ink); font-weight: var(--fw-s); }
/* 分组淡入上浮：复用 base.css 的 rise 关键帧 */
.pop { animation: rise 320ms var(--ease-out) both; }
/* grid2 里两张卡不该被 .card + .card 的间距错开 */
.grid2 > .card + .card { margin-top: 0; }
.pricepop { animation: pricePop 320ms var(--ease-spring); }
@keyframes pricePop { from { opacity: .35; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* 圆点清单（服务包含 / 适用人群 / 准备材料）：颜色借 .tag--* 语义类 */
.tick { width: 20px; height: 20px; border-radius: var(--r-99); display: grid; place-items: center; flex: 0 0 auto; }
.tickbox { width: 22px; height: 22px; border-radius: var(--r-8); display: grid; place-items: center; flex: 0 0 auto; }
.blist { display: flex; flex-direction: column; gap: var(--sp-10); }
.blist__item { display: flex; align-items: flex-start; gap: var(--sp-8); }
.blist__txt { font-size: var(--fs-13); line-height: var(--lh-body); color: var(--c-text-2); }

/* ==========================================================================
   1. search — 搜索
   ========================================================================== */
/* 导航栏中间的输入框 */
.navsearch {
  display: flex; align-items: center; gap: var(--sp-6);
  width: 100%; height: 34px; padding: 0 var(--sp-12);
  border-radius: var(--r-99); background: var(--c-fill); color: var(--c-text-3);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.navsearch:focus-within { background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-brand); }
.navsearch__in {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0;
  background: none; border: 0; outline: none;
  font-size: var(--fs-14); font-weight: var(--fw-r); color: var(--c-text-1);
}
.navsearch__in::placeholder { color: var(--c-text-4); }
.navsearch__in::-webkit-search-cancel-button { display: none; }

/* 历史 chip 的删除按钮 */
.chip__x {
  display: grid; place-items: center; width: 16px; height: 16px;
  margin-right: calc(var(--sp-4) * -1); border-radius: var(--r-99); color: var(--c-text-4);
}
.chip__x:active { background: var(--c-line-2); }
.hot__no { font-style: normal; font-family: var(--font-num); font-size: var(--fs-12); font-weight: var(--fw-s); color: var(--c-accent); }

/* 推荐科室：展开 / 收起 */
.deptmore {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  width: 100%; height: 32px; margin-top: var(--sp-4);
  font-size: var(--fs-12); color: var(--c-brand-ink);
}

/* ==========================================================================
   2. service — 服务详情
   ========================================================================== */
.hero--svc { border-radius: 0 0 var(--r-20) var(--r-20); }
.hero__icon {
  width: 64px; height: 64px; border-radius: var(--r-20); flex: 0 0 auto;
  display: grid; place-items: center; background: var(--c-card); color: var(--c-brand-ink);
}
.hero__name { display: block; font-size: var(--fs-24); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: var(--lh-tight); }
.hero__sub { display: block; margin-top: var(--sp-4); font-size: var(--fs-12); opacity: .9; }
.hero__price { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--fs-28); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1; }
.hero__origin { font-size: var(--fs-13); opacity: .72; }
.hero__stat { display: flex; align-items: center; gap: var(--sp-16); margin-top: var(--sp-12); font-size: var(--fs-12); opacity: .95; }

/* 常见问题：手风琴（高度过渡） */
.faq__item { border-top: 1px solid var(--c-line); }
.faq__item:first-child { border-top: 0; }
.faq__q {
  display: flex; align-items: center; gap: var(--sp-8); width: 100%;
  padding: var(--sp-12) 0; text-align: left;
  font-size: var(--fs-14); font-weight: var(--fw-m); color: var(--c-text-1);
}
.faq__q .chev { margin-left: auto; transition: transform var(--t-base) var(--ease-out); }
.faq__item--on .faq__q .chev { transform: rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease-out); }
.faq__a > p { padding-bottom: var(--sp-14); font-size: var(--fs-13); color: var(--c-text-2); }

/* 底部操作条里的客服圆钮 */
.roundbtn {
  width: 46px; height: 46px; border-radius: var(--r-99); flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--c-line-2); color: var(--c-text-2); font-size: var(--fs-11);
}

/* ==========================================================================
   3. escorts — 陪诊师列表
   ========================================================================== */
.sortbar {
  position: sticky; top: 0; z-index: 12;
  padding: var(--sp-8) 0 var(--sp-2);
  background: var(--c-card); border-bottom: 1px solid var(--c-line);
}
.sortbar__row { display: flex; align-items: flex-start; gap: var(--sp-12); padding: 0 var(--sp-16); }
/* 筛选标签条：换行，不横滑。
   横滑时最后半枚 chip 会被切在「筛选」按钮旁边（看起来像坏了），
   而且用户不滑就不知道还有条件。
   实测 5 枚标签在 13px 下合计 380px，容器只有 290px，手机上本来排不进一行——
   换行只是让它占两行（72px 高），代价小于「有 3 个筛选条件永远看不见」。
   列间距 6px：比默认 8px 省 8px 宽度，只在折行位置上有差别。 */
/* 右侧「筛选」按钮钉死，不许被折行的标签条压窄：
   少了 flex:0 0 auto 与 nowrap，按钮会被挤成半个字宽，文字竖排成「筛/选」。
   align-self:flex-start 让它贴第一行——居中时在 320px 三行布局里会浮在
   第二行右边、第三行跑到它下面，看着像错位。 */
.sortbar__row > .chip { flex: 0 0 auto; align-self: flex-start; white-space: nowrap; }
.chip-row--flex { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; overflow: visible; column-gap: var(--sp-6); row-gap: var(--sp-8); }

.ecstat { font-size: var(--fs-12); color: var(--c-text-2); }
.ecstat b { color: var(--c-brand-ink); }

.ecard {
  display: block; width: 100%; text-align: left;
  margin-top: var(--sp-12); padding: var(--sp-14);
  background: var(--c-card); border-radius: var(--r-16); box-shadow: var(--sh-1);
}
.ecard__name { font-size: var(--fs-16); font-weight: var(--fw-s); letter-spacing: -.01em; }
.ecard__meta { margin-top: var(--sp-2); font-size: var(--fs-12); color: var(--c-text-3); }
.ecard__price { text-align: right; }
.ecard__hosp { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-10); font-size: var(--fs-12); color: var(--c-text-2); }
.ecard__tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.ecard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8);
  margin-top: var(--sp-12); padding-top: var(--sp-12); border-top: 1px solid var(--c-line);
}

/* 筛选抽屉里的分组 */
.fsheet { display: flex; flex-direction: column; gap: var(--sp-16); padding: var(--sp-4) 0 var(--sp-8); }
.fsheet__k { display: block; margin-bottom: var(--sp-8); font-size: var(--fs-13); font-weight: var(--fw-m); color: var(--c-text-2); }
