Files
hms/apps/miniprogram/src/pages/consultation/index.scss
iven 50eae8b809 feat(miniprogram): 温润东方风全面 UI 重设计
73 文件变更,覆盖全部 40 个页面 SCSS + TabBar 图标 + 组件样式。
统一赤陶主色 #C4623A + 暖米背景 + 衬线标题字体 + 12px 圆角体系。
2026-04-28 00:19:52 +08:00

164 lines
2.7 KiB
SCSS

@import '../../styles/variables.scss';
@import '../../styles/mixins.scss';
.consultation-page {
min-height: 100vh;
background: $bg;
}
/* ─── 页头 ─── */
.consultation-header {
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
padding: 48px 32px 36px;
color: #fff;
}
.consultation-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 40px;
font-weight: bold;
color: #fff;
display: block;
margin-bottom: 8px;
}
.consultation-subtitle {
font-size: 24px;
color: rgba(255, 255, 255, 0.75);
display: block;
}
/* ─── 居中容器 ─── */
.consultation-center {
display: flex;
justify-content: center;
align-items: center;
padding: 120px 40px;
}
.consultation-error {
font-size: 26px;
color: $dan;
}
/* ─── 空状态 ─── */
.consultation-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 160px 40px;
}
.empty-icon {
width: 120px;
height: 120px;
border-radius: 50%;
background: $pri-l;
@include flex-center;
margin-bottom: 32px;
}
.empty-char {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 52px;
font-weight: bold;
color: $pri;
line-height: 1;
}
.empty-title {
font-size: 32px;
font-weight: 600;
color: $tx;
margin-bottom: 12px;
}
.empty-hint {
font-size: 26px;
color: $tx3;
text-align: center;
}
/* ─── 会话列表 ─── */
.session-list {
padding: 20px 24px;
}
.session-card {
display: flex;
align-items: center;
background: $card;
border-radius: $r;
padding: 24px;
margin-bottom: 12px;
box-shadow: $shadow-sm;
&:active {
opacity: 0.7;
}
}
.session-main {
flex: 1;
min-width: 0;
}
.session-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.session-subject {
font-size: 28px;
color: $tx;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
margin-right: 12px;
}
.session-tag {
&.tag-ok { @include tag($acc-l, $acc); }
&.tag-warn { @include tag($wrn-l, $wrn); }
&.tag-default { @include tag($bd-l, $tx2); }
}
.session-message {
font-size: 26px;
color: $tx2;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 8px;
}
.session-time {
font-size: 22px;
color: $tx3;
display: block;
}
/* ─── 未读角标 ─── */
.session-badge {
background: $dan;
border-radius: $r-pill;
min-width: 36px;
height: 36px;
@include flex-center;
padding: 0 10px;
margin-left: 12px;
flex-shrink: 0;
}
.session-badge-text {
font-size: 22px;
color: #fff;
font-weight: 600;
}