Files
wxapp_escort/pages/attendant/attendantlist.wxss
T

233 lines
5.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* pages/attendant/attendantlist.wxss
陪诊师公示页:与首页、陪诊指南页、联系我们页共用同一套暖橙 + 暖白令牌。
本页原有的 page 级令牌副本(停在旧值 #C2410C / #9A3412)已按
DESIGN.md §5.1 删掉,改用 app.wxss 的唯一来源(#B8520A / #9B4508) */
page {
background-color: var(--paper);
}
.page-bg {
min-height: 100vh;
background: var(--paper);
}
.container {
padding: 32rpx 32rpx 0;
}
/* ===== 头部:小色带 + 深墨标题 ===== */
.page-header {
padding: 24rpx 0 8rpx;
}
.header-accent {
width: 64rpx;
height: 8rpx;
border-radius: 4rpx;
background: var(--brand-strong);
}
.header-title {
display: block;
margin-top: 20rpx;
font-size: 46rpx;
font-weight: 700;
color: var(--ink);
letter-spacing: 1rpx;
}
.header-subtitle {
display: block;
margin-top: 12rpx;
font-size: 26rpx;
color: var(--muted);
letter-spacing: 1rpx;
}
/* ===== 加载 / 空状态 ===== */
.state {
padding: 120rpx 0;
text-align: center;
}
.state-text {
font-size: 26rpx;
color: var(--muted);
}
/* ===== 陪诊师卡片:发丝边 + 紧阴影,与首页白卡同语言 ===== */
.list {
display: flex;
flex-direction: column;
margin-top: 32rpx;
}
.staff-card {
padding: 28rpx 26rpx;
border-radius: 28rpx;
background: var(--white);
border: 2rpx solid var(--line);
box-shadow: var(--shadow-card);
}
.staff-card + .staff-card {
margin-top: 24rpx;
}
/* stretch 而非 center:让文字块与 160rpx 的头像同高,
由 .staff-main 内部用 space-between 把行铺满,
否则文字块居中后,头像下半部右侧会留出一片空白 */
.staff-head {
display: flex;
align-items: stretch;
}
.staff-avatar {
width: 160rpx;
height: 160rpx;
border-radius: 40rpx;
flex-shrink: 0;
}
/* 无头像兜底:浅橙衬底 + 姓氏首字。
box-sizing 必须显式声明,否则 2rpx 描边会把 160rpx 撑成 164rpx */
.staff-avatar-fallback {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
}
.staff-avatar-text {
font-size: 60rpx;
font-weight: 700;
color: var(--brand-ink);
}
.staff-main {
/* min-width: 0 让长内容可收缩,避免把右侧徽标与箭头挤出行外 */
flex: 1;
min-width: 0;
margin-left: 20rpx;
/* 纵向两行铺满头像高度:姓名行贴顶、从业信息贴底 */
display: flex;
flex-direction: column;
justify-content: space-between;
}
.staff-name-row {
display: flex;
align-items: center;
}
.staff-name {
font-size: 32rpx;
font-weight: 700;
color: var(--ink);
letter-spacing: 1rpx;
}
/* 资质徽标:浅橙衬底 + 暖橙图标,不引入新的色相 */
.staff-badge {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: 14rpx;
padding: 4rpx 12rpx;
border-radius: 8rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
}
.staff-badge-text {
margin-left: 4rpx;
/* 中文最小 24rpx(12px),低于此不达可读下限 */
font-size: 24rpx;
color: var(--brand-ink);
}
/* 竖向位置交给 .staff-main 的 space-between,
这里不再加 margin-top,免得和铺满逻辑叠加 */
.staff-meta {
display: flex;
align-items: center;
}
.staff-meta-text {
font-size: 24rpx;
color: var(--muted);
}
/* 竖分隔线:与场景行、页脚同一档 --sep,
比 --line 深一档,保证在浅橙底与白卡上都看得见 */
.meta-sep {
width: 2rpx;
height: 20rpx;
flex-shrink: 0;
margin: 0 14rpx;
background: var(--sep);
}
/* ===== 擅长场景标签(已在头像右侧文字列内,排在从业信息下方) ===== */
.staff-tags {
display: flex;
flex-wrap: wrap;
/* 作为 .staff-main 的第三行:这里只负责与从业信息的最小间距,
竖向富余空间交给 .staff-main 的 space-between 分配。
列宽只有约 414rpx,3 个标签通常会折成两行 */
margin-top: 12rpx;
}
.staff-tag {
margin: 0 12rpx 12rpx 0;
padding: 6rpx 14rpx;
border-radius: 8rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
font-size: 24rpx;
color: var(--brand-ink);
}
/* ===== 服务区域 / 语言 ===== */
.staff-area {
display: flex;
align-items: center;
/* border-top 画在元素上边缘,padding-top 是线内侧的空隙,
所以线外侧与照片的间距只能用 margin-top 给。
标签行从卡片主体移入头部后,原本垫在线上的那层间距没了,
不补这里就会让照片底线直接贴住这条发丝线 */
margin-top: 24rpx;
padding-top: 16rpx;
border-top: 2rpx solid var(--line);
}
.staff-area-text {
font-size: 24rpx;
color: var(--muted);
}
.area-sep {
width: 2rpx;
height: 20rpx;
flex-shrink: 0;
margin: 0 14rpx;
background: var(--sep);
}
/* ===== 底部说明 ===== */
.notice {
margin-top: 32rpx;
}
.notice-text {
font-size: 24rpx;
line-height: 1.6;
color: var(--muted);
}
.footer-space {
height: 48rpx;
}